RE: [RFC][PATCH v2 0/7] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-25 Thread Luck, Tony
> speaking of upstream, any objections if this patch set will go through > the printk tree, in one piece? Seems to be a better idea than trying to coordinate pulls from three separate "arch/" trees. Fine with me. -Tony

Re: [PATCH 11/12] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-25 Thread Pali Rohár
On Thursday 21 September 2017 08:57:16 Mario Limonciello wrote: > This userspace character device will be used to perform SMBIOS calls > from any applications sending a properly formatted 4k calling interface > buffer. > > This character device is intended to deprecate the dcdbas kernel module > a

RE: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI

2017-09-25 Thread Mario.Limonciello
Hi Pali, > -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Monday, September 25, 2017 12:14 PM > To: Limonciello, Mario > Cc: dvh...@infradead.org; LKML ; > platform-driver- > x...@vger.kernel.org; quasi...@google.com > Subject: Re: [PATCH 00/12] Introduce sup

Re: [PATCH v2 03/22] fpga: bridge: remove OF dependency for fpga-bridge

2017-09-25 Thread Moritz Fischer
On Wed, Aug 02, 2017 at 04:21:19PM -0500, Alan Tull wrote: > On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: > > This patch removes OF dependency of fpga-bridge, it allows drivers > > to use fpga-bridge class without device tree support. > > > > Signed-off-by: Wu Hao > Acked-by: Alan Tull Acked-b

Re: [patch v2] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Mike Kravetz
On 09/20/2017 12:25 AM, Michael Kerrisk (man-pages) wrote: > Hello Mike, > > On 09/19/2017 11:42 PM, Mike Kravetz wrote: >> v2: Fix incorrect wording noticed by Jann Horn. >> Remove deprecated and memfd_create discussion as suggested >> by Florian Weimer. >> >> Since at least the 2.6 time

Re: include/linux/kernel.h:860:32: error: dereferencing pointer to incomplete type 'struct clock_event_device'

2017-09-25 Thread Daniel Lezcano
On 25/09/2017 17:15, Ian Abbott wrote: > [Sorry for the repost.  I forgot to Cc the people I said I was Cc'ing!] Hi Ian, [ ... ] > On 24/09/17 09:26, kbuild test robot wrote: >> Hi Ian, >> >> FYI, the error/warning still remains. >> >> tree:   >> https://git.kernel.org/pub/scm/linux/kernel/git/

Re: [PATCH v7 2/2] security/keys: rewrite all of big_key crypto

2017-09-25 Thread Jason A. Donenfeld
On Mon, Sep 25, 2017 at 4:43 PM, David Howells wrote: > Jason A. Donenfeld wrote: > >> + /* no ->update(); don't add it without changing big_key_crypt() nonce >> */ > > Should update be a problem. It's should be a complete payload replacement - > kind of like unlink and add, but keeping the

Re: [PATCH V3 0/4] block: make loop block device cgroup aware

2017-09-25 Thread Shaohua Li
On Thu, Sep 14, 2017 at 02:02:03PM -0700, Shaohua Li wrote: > From: Shaohua Li > > Hi, > > The IO dispatched to under layer disk by loop block device isn't cloned from > original bio, so the IO loses cgroup information of original bio. These IO > escapes from cgroup control. The patches try to a

Re: [PATCH 1/3] x86/kernel: Add option that TSC on Socket 0 being non-null is valid

2017-09-25 Thread Mike Travis
On 9/25/2017 8:30 AM, Thomas Gleixner wrote: On Thu, 21 Sep 2017, mike.tra...@hpe.com wrote: +/* + * TSC on socket 0 being non-zero may be correct as set by BIOS + */ +static int __read_mostly tsc_socket0_nonzero; + /* native_sched_clock() is called before tsc_init(), so we must start w

Re: [PATCH] nvme: use menu Kconfig interface

2017-09-25 Thread Keith Busch
On Fri, Sep 22, 2017 at 06:04:43PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Add a menu interface for NVME host and target support so that it is > presented to users more like other Kconfig symbols. > This makes the Device Driver menu less cluttered (easier to read) > and keeps all of t

Re: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI

2017-09-25 Thread Pali Rohár
On Monday 25 September 2017 16:32:52 mario.limoncie...@dell.com wrote: > Hi Pali, > > > -Original Message- > > From: Pali Rohár [mailto:pali.ro...@gmail.com] > > Sent: Monday, September 25, 2017 12:14 PM > > To: Limonciello, Mario > > Cc: dvh...@infradead.org; LKML ; > > platform-driver-

[PATCH v8 6/9] sparc64: Add auxiliary vectors to report platform ADI properties

2017-09-25 Thread Khalid Aziz
ADI feature on M7 and newer processors has three important properties relevant to userspace apps using ADI capabilities - (1) Size of block of memory an ADI version tag applies to, (2) Number of uppermost bits in virtual address used to encode ADI tag, and (3) The value M7 processor will force the

[PATCH v8 4/9] sparc64: Add HV fault type handlers for ADI related faults

2017-09-25 Thread Khalid Aziz
ADI (Application Data Integrity) feature on M7 and newer processors adds new fault types for hypervisor - Invalid ASI and MCD disabled. This patch expands data access exception handler to handle these faults. Signed-off-by: Khalid Aziz Cc: Khalid Aziz --- v7: - new patch split off from p

[PATCH v8 7/9] mm: Add address parameter to arch_validate_prot()

2017-09-25 Thread Khalid Aziz
A protection flag may not be valid across entire address space and hence arch_validate_prot() might need the address a protection bit is being set on to ensure it is a valid protection flag. For example, sparc processors support memory corruption detection (as part of ADI feature) flag on memory ad

[PATCH v8 8/9] mm: Clear arch specific VM flags on protection change

2017-09-25 Thread Khalid Aziz
When protection bits are changed on a VMA, some of the architecture specific flags should be cleared as well. An examples of this are the PKEY flags on x86. This patch expands the current code that clears PKEY flags for x86, to support similar functionality for other architectures as well. Signed-

[PATCH v8 1/9] signals, sparc: Add signal codes for ADI violations

2017-09-25 Thread Khalid Aziz
SPARC M7 processor introduces a new feature - Application Data Integrity (ADI). ADI allows MMU to catch rogue accesses to memory. When a rogue access occurs, MMU blocks the access and raises an exception. In response to the exception, kernel sends the offending task a SIGSEGV with si_code that ind

[PATCH v8 3/9] sparc64: Add support for ADI register fields, ASIs and traps

2017-09-25 Thread Khalid Aziz
SPARC M7 processor adds new control register fields, ASIs and a new trap to support the ADI (Application Data Integrity) feature. This patch adds definitions for these register fields, ASIs and a handler for the new precise memory corruption detected trap. Signed-off-by: Khalid Aziz Cc: Khalid Az

[PATCH v8 2/9] mm, swap: Add infrastructure for saving page metadata as well on swap

2017-09-25 Thread Khalid Aziz
If a processor supports special metadata for a page, for example ADI version tags on SPARC M7, this metadata must be saved when the page is swapped out. The same metadata must be restored when the page is swapped back in. This patch adds two new architecture specific functions - arch_do_swap_page()

[PATCH v8 5/9] sparc64: Add handler for "Memory Corruption Detected" trap

2017-09-25 Thread Khalid Aziz
M7 and newer processors add a "Memory corruption Detected" trap with the addition of ADI feature. This trap is vectored into kernel by HV through resumable error trap with error attribute for the resumable error set to 0x0800. Signed-off-by: Khalid Aziz Cc: Khalid Aziz --- v7: - new

[PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-09-25 Thread Khalid Aziz
ADI is a new feature supported on SPARC M7 and newer processors to allow hardware to catch rogue accesses to memory. ADI is supported for data fetches only and not instruction fetches. An app can enable ADI on its data pages, set version tags on them and use versioned addresses to access the data p

[PATCH v8 0/9] Application Data Integrity feature introduced by SPARC M7

2017-09-25 Thread Khalid Aziz
SPARC M7 processor adds additional metadata for memory address space that can be used to secure access to regions of memory. This additional metadata is implemented as a 4-bit tag attached to each cacheline size block of memory. A task can set a tag on any number of such blocks. Access to such bloc

Re: [PATCH 11/12] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-25 Thread Andy Shevchenko
On Mon, Sep 25, 2017 at 7:31 PM, Pali Rohár wrote: > On Thursday 21 September 2017 08:57:16 Mario Limonciello wrote: >> This userspace character device will be used to perform SMBIOS calls >> from any applications sending a properly formatted 4k calling interface >> buffer. >> >> This character de

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-25 Thread Johannes Weiner
On Mon, Sep 25, 2017 at 02:24:00PM +0200, Michal Hocko wrote: > I would really appreciate some feedback from Tejun, Johannes here. > > On Wed 20-09-17 14:53:41, Roman Gushchin wrote: > > On Mon, Sep 18, 2017 at 08:14:05AM +0200, Michal Hocko wrote: > > > On Fri 15-09-17 08:23:01, Roman Gushchin wr

Re: [PATCH 06/12] platform/x86: dell-wmi-smbios: Add a sysfs interface for SMBIOS tokens

2017-09-25 Thread Andy Shevchenko
On Mon, Sep 25, 2017 at 7:23 PM, Pali Rohár wrote: > On Thursday 21 September 2017 08:57:11 Mario Limonciello wrote: >> Currently userspace tools can access system tokens via the dcdbas >> kernel module and a SMI call that will cause the platform to execute >> SMM code. >> >> With a goal in mind o

Re: [RFC][PATCH v2 0/7] printk/ia64/ppc64/parisc64: let's deprecate %pF/%pf printk specifiers

2017-09-25 Thread Helge Deller
On 25.09.2017 18:29, Luck, Tony wrote: speaking of upstream, any objections if this patch set will go through the printk tree, in one piece? Fine with me too. Helge

[PATCH] block: cryptoloop - Fix build warning

2017-09-25 Thread Corentin Labbe
This patch fix the following build warning: drivers/block/cryptoloop.c:46:8: warning: variable 'cipher' set but not used [-Wunused-but-set-variable] Signed-off-by: Corentin Labbe --- drivers/block/cryptoloop.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/block/cryptoloop.c b/dri

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Randy Dunlap
On 09/25/17 09:12, Mark Brown wrote: > On Fri, Sep 22, 2017 at 06:46:46PM -0700, Randy Dunlap wrote: >> On 09/22/17 02:26, Mark Brown wrote: > >>> right thing - if we can use hwspinlocks in a module when they're enabled >>> I'd expect to be able to build the stubs that way too. > >> Sorry, I'm no

RE: [PATCH 0/5] constify rio_device_id

2017-09-25 Thread Bounine, Alexandre
Acked-by: Alexandre Bounine Hi Andrew, Please apply the patches listed below. I will forward them to you. Thank you, Alex. -Original Message- From: Arvind Yadav [mailto:arvind.yadav...@gmail.com] Sent: Saturday, August 26, 2017 4:04 AM To: mpor...@kernel.crashing.org; Bounine, Ale

Re: [PATCH] iio: stm32: fix adc/trigger link error

2017-09-25 Thread Jonathan Cameron
On Mon, 25 Sep 2017 11:16:04 +0100 Jonathan Cameron wrote: > On Mon, 25 Sep 2017 11:54:06 +0200 > Fabrice Gasnier wrote: > > > On 09/10/2017 06:00 PM, Jonathan Cameron wrote: > > > On Wed, 6 Sep 2017 18:16:33 +0200 > > > Fabrice Gasnier wrote: > > > > > >> On 09/06/2017 02:56 PM, Arnd B

RE: [PATCH 06/12] platform/x86: dell-wmi-smbios: Add a sysfs interface for SMBIOS tokens

2017-09-25 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, September 25, 2017 1:04 PM > To: Pali Rohár > Cc: Limonciello, Mario ; dvh...@infradead.org; > LKML ; Platform Driver x...@vger.kernel.org>; quasi...@google.com > Subject: Re: [PATCH 06/12] pla

Re: [PATCH v3 0/6] locking/rwsem/x86: Add stack frame dependency for some inline asm

2017-09-25 Thread Miguel Bernal Marin
On Wed, Sep 20, 2017 at 04:24:18PM -0500, Josh Poimboeuf wrote: > On Tue, Sep 19, 2017 at 06:37:39PM -0500, Miguel Bernal Marin wrote: > > Some warning were showed by objtool using gcc 7.2.0 > > > > kernel/locking/rwsem.o: warning: objtool: up_read()+0x11: call without > > frame pointer save/setu

Re: [linux-sunxi] [PATCH 2/3] arm64: allwinner: a64: add CPU opp table

2017-09-25 Thread Samuel Holland
Hello, On 09/22/17 19:15, Icenowy Zheng wrote: Add the operating table for the CPU (ARM cores) on Allwinner A64 SoC. OPPs higher to 816MHz is temporarily dropped, to prevent overheat on boards with AXP803 support and undervoltage on boards without AXP803 support. Signed-off-by: Icenowy Zheng

Re: [PATCH 1/4] pid: Replace pid bitmap implementation with IDR API

2017-09-25 Thread Gargi Sharma
On Mon, Sep 25, 2017 at 8:29 PM, Oleg Nesterov wrote: > On 09/25, Gargi Sharma wrote: >> >> void zap_pid_ns_processes(struct pid_namespace *pid_ns) >> { >> - int nr; >> + int nr = 2; >> int rc; >> struct task_struct *task, *me = current; >> int init_pids = thread_group_

Re: [PATCH 1/4] pid: Replace pid bitmap implementation with IDR API

2017-09-25 Thread Gargi Sharma
On Mon, Sep 25, 2017 at 8:50 PM, Oleg Nesterov wrote: > On 09/25, Gargi Sharma wrote: >> >> @@ -285,10 +145,14 @@ void free_pid(struct pid *pid) >> break; >> } >> } >> - spin_unlock_irqrestore(&pidmap_lock, flags); >> >> - for (i = 0; i <= pid->lev

Re: [PATCH 2/4] idr: Add a function idr_get()

2017-09-25 Thread Gargi Sharma
On Mon, Sep 25, 2017 at 7:42 PM, Oleg Nesterov wrote: > On 09/25, Gargi Sharma wrote: >> >> idr_get(namespace, id) returns a NULL if id is not present >> in the idr tree or returns the pointer to the struct if id is >> present in the idr tree. With this function in the idr library, >> code for pid

Re: [PATCH 3/4] pid.c: Replace pidhash lookup with idr_get()

2017-09-25 Thread Gargi Sharma
On Mon, Sep 25, 2017 at 6:50 PM, Rik van Riel wrote: > On Mon, 2017-09-25 at 08:56 -0400, Gargi Sharma wrote: >> pidhash is no longer required as all the functionalities >> are present in the idr tree associated with the namespace. >> nr can be looked up in the namespace by idr_get(). >> >> Signed

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-25 Thread Casey Leedom
| From: Robin Murphy | Sent: Wednesday, September 20, 2017 3:12 AM | | On 20/09/17 09:01, Herbert Xu wrote: | > | > Harsh Jain wrote: | >> | >> While debugging DMA mapping error in chelsio crypto driver we | >> observed that when scatter/gather list received by driver has | >> some entry with pag

RE: [PATCH 11/12] platform/x86: dell-wmi-smbios: introduce character device for userspace

2017-09-25 Thread Mario.Limonciello
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Monday, September 25, 2017 12:58 PM > To: Pali Rohár > Cc: Limonciello, Mario ; dvh...@infradead.org; > LKML ; Platform Driver x...@vger.kernel.org>; quasi...@google.com > Subject: Re: [PATCH 11/12] pl

GFS2: Please pull patch tagged gfs2-for-linus-4.14-rc3

2017-09-25 Thread Bob Peterson
Hi Linus, Would you please pull this one-off patch from Andreas Gruenbacher that fixes a GFS2 regression? Thanks. Bob Peterson --- The following changes since commit 46c1e79fee417f151547aa46fae04ab06cb666f4: Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git

[PATCH v2 0/5] iio: Introduce the generic counter interface

2017-09-25 Thread William Breathitt Gray
This version 2 submission of this patchset is more of an RFC; I haven't yet completed all the changes and additional comments/documentation I would like to make. However, I didn't want to keep pushing back this submission after so many weeks, so I'm providing this version now in the hopes that the

[PATCH v2 2/5] iio: Introduce the generic counter interface

2017-09-25 Thread William Breathitt Gray
This patch introduces the IIO generic counter interface for supporting counter devices. The generic counter interface serves as a catch-all to enable rudimentary support for devices that qualify as counters. More specific and apt counter interfaces may be developed on top of the generic counter int

[PATCH v2 1/5] iio: Implement counter channel specification and IIO_SIGNAL constant

2017-09-25 Thread William Breathitt Gray
Counters are IIO devices that are exposed via a generic counter interface consisting of one or more counter signals (IIO_SIGNAL) linked to one or more counter values (IIO_COUNT). This patch introduces the IIO_SIGNAL constant which represents a counter device signal line. Additionally, a new "count

[PATCH v2 4/5] docs: Add IIO Generic Counter Interface documentation

2017-09-25 Thread William Breathitt Gray
This patch adds top-level documentation about the IIO Generic Counter Interface. Signed-off-by: William Breathitt Gray --- Documentation/driver-api/iio/generic-counter.txt | 555 +++ 1 file changed, 555 insertions(+) create mode 100644 Documentation/driver-api/iio/generic-co

[PATCH v2 5/5] iio: 104-quad-8: Add IIO generic counter interface support

2017-09-25 Thread William Breathitt Gray
This patch adds support for the IIO generic counter interface to the 104-QUAD-8 driver. The existing 104-QUAD-8 device interface should not be affected by this patch; all changes are intended as supplemental additions as perceived by the user. IIO Counter Signals are defined for all quadrature inp

[PATCH v2 3/5] iio: Documentation: Add IIO Generic Counter sysfs documentation

2017-09-25 Thread William Breathitt Gray
This patch adds standard documentation for the userspace sysfs atrributes of the IIO Generic Counter Interface. Signed-off-by: William Breathitt Gray --- .../testing/sysfs-bus-iio-generic-counter-sysfs| 63 ++ 1 file changed, 63 insertions(+) create mode 100644 Document

Re: [PATCH 1/3] x86/kernel: Add option that TSC on Socket 0 being non-null is valid

2017-09-25 Thread Thomas Gleixner
On Mon, 25 Sep 2017, Mike Travis wrote: > On 9/25/2017 8:30 AM, Thomas Gleixner wrote: > > Aside of that I really do not like this kind of special case hackery. The > > real question is whether we need to enforce TSC_ADJUST == 0 on the boot cpu > > at all. In principle we don't anymore now that we

Re: [PATCH v3 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-09-25 Thread AKASHI Takahiro
On Mon, Sep 25, 2017 at 04:03:13PM +0800, Dave Young wrote: > HI AKASHI, > On 09/22/17 at 04:58pm, AKASHI Takahiro wrote: > > Hi Dave, > > > [snip] > > > > > /* > > > > * Apply purgatory relocations. > > > > * > > > > diff --git a/include/linux/kexec.h b/include/linux/kexec.h > > > > index d

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-25 Thread Roman Gushchin
On Mon, Sep 25, 2017 at 01:00:04PM -0400, Johannes Weiner wrote: > On Mon, Sep 25, 2017 at 02:24:00PM +0200, Michal Hocko wrote: > > I would really appreciate some feedback from Tejun, Johannes here. > > > > On Wed 20-09-17 14:53:41, Roman Gushchin wrote: > > > On Mon, Sep 18, 2017 at 08:14:05AM +

Re: [PATCH v3 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-09-25 Thread AKASHI Takahiro
On Mon, Sep 25, 2017 at 04:36:43PM +0100, David Howells wrote: > AKASHI Takahiro wrote: > > > > > -static struct kexec_file_ops *kexec_file_loaders[] = { > > > > +struct kexec_file_ops *kexec_file_loaders[] = { > > > > &kexec_elf64_ops, > > > > + NULL > > > > }; > > const? Yes, i

[PATCH 1/2] vfs: remove unneeded unlikely()

2017-09-25 Thread Hirofumi Nakagawa
IS_ERR() macro it is already including unlikely(). Signed-off-by: Hirofumi Nakagawa --- fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index c75ea03ca147..00384488fda1 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3458,7 +3458,7 @@ static in

[PATCH 2/2] pstore: remove unneeded unlikely()

2017-09-25 Thread Hirofumi Nakagawa
IS_ERR() macro it is already including unlikely(). Signed-off-by: Hirofumi Nakagawa --- fs/pstore/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 2b21d180157c..7256149af306 100644 --- a/fs/pstore/platform.c +++ b/fs

Re: [PATCH v3 2/2] staging: ion: create one device entry per heap

2017-09-25 Thread Laura Abbott
On 09/20/2017 01:45 AM, Benjamin Gaignard wrote: Instead a getting one common device "/dev/ion" for all the heaps this patch allow to create one device entry ("/dev/ionX") per heap. Getting an entry per heap could allow to set security rules per heap and global ones for all heaps. Allocation req

Re: [PATCH v2] crypto: s5p-sss: Add HASH support for Exynos

2017-09-25 Thread Krzysztof Kozlowski
On Fri, Sep 22, 2017 at 08:00:17PM +0200, Kamil Konieczny wrote: > On 19.09.2017 21:03, Krzysztof Kozlowski wrote: > > On Fri, Sep 15, 2017 at 07:50:06PM +0200, Kamil Konieczny wrote: (...) > >> + > >> +/* HASH flags */ > > > > All defines below have "HASH_FLAGS" prefix... so actually useful woul

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-25 Thread Jan Kiszka
On 2017-09-25 12:41, Thomas Gleixner wrote: > On Sun, 24 Sep 2017, Marcelo Tosatti wrote: >> On Fri, Sep 22, 2017 at 03:01:41PM +0200, Peter Zijlstra wrote: >> What the patch does is the following: >> It reduces the window where SCHED_FIFO is applied vcpu0 >> to those were a spinlock is shared betw

Re: [PATCH v2] PCIe AER: report uncorrectable errors only to the functions that logged the errors

2017-09-25 Thread Bjorn Helgaas
On Wed, Sep 06, 2017 at 10:56:42AM +, Gabriele Paoloni wrote: > Hi Bjorn > > > -Original Message- > > From: Bjorn Helgaas [mailto:helg...@kernel.org] > > Sent: 02 September 2017 18:33 > > To: Gabriele Paoloni > > Cc: Linuxarm; liudongdong (C); linux-...@vger.kernel.org; linux- > > ker.

Re: [PATCH] KEYS: prevent KEYCTL_READ on negative key

2017-09-25 Thread Eric Biggers
On Mon, Sep 25, 2017 at 02:29:56PM +0100, David Howells wrote: > Eric Biggers wrote: > > > Putting the check in key_validate() would make lookups with > > KEY_LOOKUP_PARTIAL stop returning negative keys, which would break > > keyctl_describe(), keyctl_chown(), keyctl_setperm(), keyctl_set_timeout

Re: [PATCH 1/6] lib/cmdline.c: Add backslash support to kernel commandline parsing.

2017-09-25 Thread Michal Suchánek
On Fri, 15 Sep 2017 19:28:56 +0200 Michal Suchánek wrote: > On Fri, 15 Sep 2017 18:14:09 +0100 > Al Viro wrote: > > > On Fri, Sep 15, 2017 at 07:02:46PM +0200, Michal Suchanek wrote: > > > > > for (i = 0; args[i]; i++) { > > > - if (isspace(args[i]) && !in_quote) > > > + if

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-25 Thread Raj, Ashok
Hi Casey Sorry, somehow didn't see this one come by. On Mon, Sep 25, 2017 at 05:46:40PM +, Casey Leedom wrote: > | From: Robin Murphy > | Sent: Wednesday, September 20, 2017 3:12 AM > | > | On 20/09/17 09:01, Herbert Xu wrote: > | > > | > Harsh Jain wrote: > | >> > | >> While debugging DMA

Re: [PATCH 6/6] Documentation/admin-guide: single quotes in kernel arguments.

2017-09-25 Thread Michal Suchánek
On Fri, 15 Sep 2017 10:59:00 -0700 Randy Dunlap wrote: > On 09/15/17 10:02, Michal Suchanek wrote: > > Signed-off-by: Michal Suchanek > > --- > > Documentation/admin-guide/kernel-parameters.rst | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/ad

[PATCH] Drivers: pinctrl: intel fixed typo

2017-09-25 Thread Chris Gorman
fixed typo in comment for north_community Signed-off-by: Chris Gorman --- drivers/pinctrl/intel/pinctrl-cherryview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/intel/pinctrl-cherryview.c b/drivers/pinctrl/intel/pinctrl-cherryview.c index 04e929f..8d50eae

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Mark Brown
On Mon, Sep 25, 2017 at 10:19:56AM -0700, Randy Dunlap wrote: > On 09/25/17 09:12, Mark Brown wrote: > > Why is that not just an || COMPILE_TEST dependency then? The dependency > > you're trying to introduce is weird and confusing, we shouldn't be > > having to do things like that. > It already

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-25 Thread David Woodhouse
On Wed, 2017-09-20 at 16:01 +0800, Herbert Xu wrote: > Harsh Jain wrote: > >  > > While debugging DMA mapping error in chelsio crypto driver we > observed that when scatter/gather list received by driver has some > entry with page->offset > 4096 (PAGE_SIZE). It starts giving DMA > error.  Without

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-25 Thread Casey Leedom
| From: Raj, Ashok | Sent: Monday, September 25, 2017 8:54 AM | | Not sure how the page->offset would end up being greater than page-size? | | If you have additional traces, please send them by. | | Is this a new driver? wondering how we didn't run into this? According to Herbert Xu and one of

Re: [PATCH] [v2] soc: bcm: brcmstb: fix ARM build errors

2017-09-25 Thread Florian Fainelli
On 09/12/2017 10:56 AM, Florian Fainelli wrote: > On 09/11/2017 01:13 PM, Arnd Bergmann wrote: >> When building the new PM driver on older ARM architectures, we can >> run into one of two build errors: >> >> drivers/soc/bcm/brcmstb/pm/pm-arm.c: In function >> 'brcmstb_do_pmsm_power_down': >> drive

[PATCH] ARM: dts: rk3288-vyasa: Enable mali GPU node

2017-09-25 Thread Jagan Teki
From: Jagan Teki Enable mali GPU node for rk3288 vyasa board. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rk3288-vyasa.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/dts/rk3288-vyasa.dts index 156193b..932311c 100644 --- a/a

Re: [PATCH v5 1/5] ARM: dts: imx6qdl-icore: Add Sound card support

2017-09-25 Thread Jagan Teki
Hi Shawn, On Mon, Sep 18, 2017 at 4:58 PM, Jagan Teki wrote: > From: Jagan Teki > > Linux Sound card now uses generic simple-audio-card, so add > the same along with related audmux and codec(via u2c3) for > i.CoreM6 QDL module boards. > > Cc: Shawn Guo > Cc: Matteo Lisi > Cc: Michael Trimarchi

Re: [PATCH 2/2] pci: Expose offset, stride, and VF device ID via sysfs

2017-09-25 Thread Bjorn Helgaas
Hi Filippo, On Mon, Aug 28, 2017 at 03:38:50PM +0200, Filippo Sironi wrote: > +static ssize_t sriov_vf_did_show(struct device *dev, > + struct device_attribute *attr, > + char *buf) > +{ > + struct pci_dev *pdev = to_pci_dev(dev); > + >

Re: [PATCH] ARM: brcmstb: Add appropriate ARM_BE8() macros for swapping

2017-09-25 Thread Florian Fainelli
On 08/29/2017 11:03 AM, Florian Fainelli wrote: > Building a big-endian kernel for ARCH_BRCMSTB revealed that we would not > be correctly polling for the right bit in the busyuart macro, turns out > there are a few transformations needed to work with big-endian kernels. > First we need to swap the

Re: [PATCH v3 0/6] locking/rwsem/x86: Add stack frame dependency for some inline asm

2017-09-25 Thread Josh Poimboeuf
On Mon, Sep 25, 2017 at 12:34:19PM -0500, Miguel Bernal Marin wrote: > On Wed, Sep 20, 2017 at 04:24:18PM -0500, Josh Poimboeuf wrote: > > On Tue, Sep 19, 2017 at 06:37:39PM -0500, Miguel Bernal Marin wrote: > > > Some warning were showed by objtool using gcc 7.2.0 > > > > > > kernel/locking/rwsem

Re: [PATCH V3 0/4] block: make loop block device cgroup aware

2017-09-25 Thread Jens Axboe
On 09/25/2017 10:44 AM, Shaohua Li wrote: > On Thu, Sep 14, 2017 at 02:02:03PM -0700, Shaohua Li wrote: >> From: Shaohua Li >> >> Hi, >> >> The IO dispatched to under layer disk by loop block device isn't cloned from >> original bio, so the IO loses cgroup information of original bio. These IO >>

Re: Contribution to Linux Kernel.

2017-09-25 Thread Javier Romero
Hi, Last question, it will be the same to do Kernel testing on a virtual machine, or it will be better to do kernel testing over a no virtual machine? Regards, Javi El 24/09/17 a las 17:25, Ken Moffat escribió: On Sun, Sep 24, 2017 at 12:52:08PM -0300, Javier Romero wrote: Hi Ken, Tha

Re: [PATCH v3 0/6] locking/rwsem/x86: Add stack frame dependency for some inline asm

2017-09-25 Thread Josh Poimboeuf
On Mon, Sep 25, 2017 at 02:00:43PM -0500, Josh Poimboeuf wrote: > On Mon, Sep 25, 2017 at 12:34:19PM -0500, Miguel Bernal Marin wrote: > > On Wed, Sep 20, 2017 at 04:24:18PM -0500, Josh Poimboeuf wrote: > > > On Tue, Sep 19, 2017 at 06:37:39PM -0500, Miguel Bernal Marin wrote: > > > > Some warning

Re: ARM64: kernel panics in DABT in sys_msync path

2017-09-25 Thread Yury Norov
On Mon, Sep 25, 2017 at 05:02:40PM +0300, Yury Norov wrote: > Hi Will, > > > > The bug is reproducible for ilp32 and lp64 binaries. For kernel 4.12 > > > and for all kernels if '-smp 1' is passed to qemu, everything works > > > fine. If no ideas, I think I'm able bisect it. > > > > I tried to r

[PATCH v7 1/2] iio: dac: ds4422/ds4424 dac driver

2017-09-25 Thread Ismail H. Kose
This patch provides an iio device driver for DS4422/DS4424 chips that support two/four channel 7-bit Sink/Source Current DAC. Signed-off-by: Ismail H. Kose Signed-off-by: Ismail H. Kose --- v7: * Revised function exits and fixed error code v6: * Removed reference resistor parsin

Re: [PATCH 2/2] pinctrl: single: Allow indicating loss of pin states during low-power

2017-09-25 Thread Florian Fainelli
On 09/22/2017 06:03 AM, Linus Walleij wrote: > On Thu, Sep 21, 2017 at 3:04 AM, Florian Fainelli > wrote: > >> Some platforms (e.g: Broadcom STB: BMIPS_GENERIC/ARCH_BRCMSTB) will lose >> their register contents when entering their lower power state. In such a >> case, the pinctrl-single driver t

[PATCH] [media] cx88: Use common error handling code in get_key_pvr2000()

2017-09-25 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 25 Sep 2017 21:03:57 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/pci/cx88/cx88-input.c |

Re: [PATCH 1/2] pinctrl: Allow a device to indicate when to force a state

2017-09-25 Thread Florian Fainelli
On 09/22/2017 06:57 AM, Linus Walleij wrote: > On Fri, Sep 22, 2017 at 3:20 PM, Charles Keepax > wrote: >> On Fri, Sep 22, 2017 at 01:55:22PM +0200, Linus Walleij wrote: > >>> Next point, this commit from Baolin: >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/Do

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Geert Uytterhoeven
Hi Randy, On Mon, Sep 25, 2017 at 7:19 PM, Randy Dunlap wrote: > On 09/25/17 09:12, Mark Brown wrote: >> On Fri, Sep 22, 2017 at 06:46:46PM -0700, Randy Dunlap wrote: >>> On 09/22/17 02:26, Mark Brown wrote: >> right thing - if we can use hwspinlocks in a module when they're enabled I'd

[tip:core/printk] timekeeping: Make fast accessors return 0 before timekeeping is initialized

2017-09-25 Thread tip-bot for Prarit Bhargava
Commit-ID: 5df32107f609c1f621bcdac0a685c23677ef671e Gitweb: http://git.kernel.org/tip/5df32107f609c1f621bcdac0a685c23677ef671e Author: Prarit Bhargava AuthorDate: Mon, 28 Aug 2017 08:21:53 -0400 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 21:05:59 +0200 timekeeping: Make fa

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Mark Brown
On Mon, Sep 25, 2017 at 09:20:31PM +0200, Geert Uytterhoeven wrote: > The issue is builtin drivers that depend on a modular API. The clean way > is to separate API and implementation, so the API can be builtin, and the > implementation can be modular. > Hence the API should provide stubs that cal

Re: [PATCH] block: cryptoloop - Fix build warning

2017-09-25 Thread Jens Axboe
On 09/25/2017 11:10 AM, Corentin Labbe wrote: > This patch fix the following build warning: > drivers/block/cryptoloop.c:46:8: warning: variable 'cipher' set but not used > [-Wunused-but-set-variable] Thanks, added for 4.15. -- Jens Axboe

RE: [PATCH 00/12] Introduce support for Dell SMBIOS over WMI

2017-09-25 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Monday, September 25, 2017 12:49 PM > To: Limonciello, Mario > Cc: dvh...@infradead.org; linux-kernel@vger.kernel.org; platform-driver- > x...@vger.kernel.org; quasi...@google.com > Subject: Re: [PATCH 00/12] Int

Re: [patch v2] mremap.2: Add description of old_size == 0 functionality

2017-09-25 Thread Michael Kerrisk (man-pages)
Hi Mike, On 25 September 2017 at 18:33, Mike Kravetz wrote: > On 09/20/2017 12:25 AM, Michael Kerrisk (man-pages) wrote: [...] >> I've applied this, and added Reviewed-by tags for Florian and Jann. >> But, I think it's also worth noting the older, now disallowed, behavior, >> and why the behavi

RE: [PATCH 04/12] platform/x86: dell-smbios: Switch to a WMI-ACPI interface

2017-09-25 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár [mailto:pali.ro...@gmail.com] > Sent: Monday, September 25, 2017 12:19 PM > To: Limonciello, Mario > Cc: dvh...@infradead.org; LKML ; > platform-driver- > x...@vger.kernel.org; quasi...@google.com > Subject: Re: [PATCH 04/12] platform/x86: dell-sm

[tip:core/printk] printk: Add monotonic, boottime, and realtime timestamps

2017-09-25 Thread tip-bot for Prarit Bhargava
Commit-ID: a4c1a0002f4518363da9d9ecd7b805af152dcdf1 Gitweb: http://git.kernel.org/tip/a4c1a0002f4518363da9d9ecd7b805af152dcdf1 Author: Prarit Bhargava AuthorDate: Mon, 28 Aug 2017 08:21:54 -0400 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 21:12:06 +0200 printk: Add monotoni

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Randy Dunlap
On 09/25/17 12:22, Mark Brown wrote: > On Mon, Sep 25, 2017 at 09:20:31PM +0200, Geert Uytterhoeven wrote: > >> The issue is builtin drivers that depend on a modular API. The clean way >> is to separate API and implementation, so the API can be builtin, and the >> implementation can be modular. >

Re: [PATCH] scsi: ufs: Make use of UFS_BIT macro wherever possible

2017-09-25 Thread Martin K. Petersen
Alim, > Should I drop this patch and send another one which removes UFS_BIT() > macro? I fail to see the point of UFS_BIT(). So yes. Please make sure to CC: Subhash on ufs changes. -- Martin K. Petersen Oracle Linux Engineering

Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU

2017-09-25 Thread Dan Williams
On Mon, Sep 25, 2017 at 10:46 AM, Casey Leedom wrote: > | From: Robin Murphy > | Sent: Wednesday, September 20, 2017 3:12 AM > | > | On 20/09/17 09:01, Herbert Xu wrote: > | > > | > Harsh Jain wrote: > | >> > | >> While debugging DMA mapping error in chelsio crypto driver we > | >> observed that

[PATCH v3 0/2] KSM: Replace jhash2 with xxhash

2017-09-25 Thread Timofey Titovets
ksm use jhash2 for hashing pages, in 4.14 xxhash has been merged to mainline kernel. xxhash much faster then jhash2 on big inputs (32 byte+) xxhash has 2 versions, one with 32-bit hash and one with 64-bit hash. 64-bit version works faster then 32-bit on 64-bit arch. So lets get better from two

[PATCH v3 2/2] KSM: Replace jhash2 with xxhash

2017-09-25 Thread Timofey Titovets
jhash2 used for calculating checksum for in memory pages, for detect fact of changes in page. xxhash much faster then jhash2, some tests: x86_64 host: CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz PAGE_SIZE: 4096, loop count: 1048576 jhash2: 0xacbc7a5btime: 1907 ms, th

[PATCH v3 1/2] xxHash: create arch dependent 32/64-bit xxhash()

2017-09-25 Thread Timofey Titovets
xxh32() - fast on both 32/64-bit platforms xxh64() - fast only on 64-bit platform Create xxhash() which will pickup fastest version on compile time. As result depends on cpu word size, the main proporse of that - in memory hashing. Signed-off-by: Timofey Titovets Acked-by: Andi Kleen Acked-by:

Questions about commit "ipc/shm: Fix shmat mmap nil-page protection"

2017-09-25 Thread Joe Lawrence
Hi Davidlohr, I was looking into backporting commit 95e91b831f87 ("ipc/shm: Fix shmat mmap nil-page protection") to a distro kernel and Andrea brought up some interesting questions about that change. We saw that a LTP test [1] was added some time ago to reproduce behavior matching that of the ori

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2017-09-25 Thread Steven Rostedt
On Mon, 11 Sep 2017 14:51:49 +0800 Zhou Chengming wrote: > push_rt_task() pick the first pushable task and find an eligible > lowest_rq, then double_lock_balance(rq, lowest_rq). So if > double_lock_balance() unlock the rq (when double_lock_balance() return 1), > we have to check if this task is s

Re: [PATCH 3/4] pid.c: Replace pidhash lookup with idr_get()

2017-09-25 Thread Rik van Riel
On Mon, 2017-09-25 at 23:14 +0530, Gargi Sharma wrote: > On Mon, Sep 25, 2017 at 6:50 PM, Rik van Riel > wrote: > > On Mon, 2017-09-25 at 08:56 -0400, Gargi Sharma wrote: > > > pidhash is no longer required as all the functionalities > > > are present in the idr tree associated with the namespace.

Re: [PATCH] mm: fix RODATA_TEST failure "rodata_test: test data was not read only"

2017-09-25 Thread Segher Boessenkool
On Mon, Sep 25, 2017 at 04:01:55PM +, David Laight wrote: > From: Segher Boessenkool > > The compiler puts this item in .sdata, for 32-bit. There is no .srodata, > > so if it wants to use a small data section, it must use .sdata . > > > > Non-external, non-referenced symbols are not put in .s

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Mark Brown
On Mon, Sep 25, 2017 at 12:31:03PM -0700, Randy Dunlap wrote: > On 09/25/17 12:22, Mark Brown wrote: > > In this case the problem is even more basic in that the driver does > > actually depend on having hwspinlocks for any production use. > so just add: > depends on HWSPINLOCK > Is that sa

Re: [PATCH 1/2] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-25 Thread Mark Brown
On Thu, Sep 14, 2017 at 05:30:36PM -0700, Ryan Lee wrote: > Signed-off-by: Ryan Lee This thread consists of four patches, two numbered 1/2 and two numbered 2/2. Obviously this is quite confusing to read. Please spend some time working through the patch submission process, perhaps try sending so

Re: [PATCH v2 -next] spi: fix spi-sprd-adi build errors when SPI_SPRD_ADI=y and HWSPINLOCK=m

2017-09-25 Thread Randy Dunlap
On 09/25/17 12:44, Mark Brown wrote: > On Mon, Sep 25, 2017 at 12:31:03PM -0700, Randy Dunlap wrote: >> On 09/25/17 12:22, Mark Brown wrote: > >>> In this case the problem is even more basic in that the driver does >>> actually depend on having hwspinlocks for any production use. > >> so just add

Re: [PATCH 08/33] x86/fpu: Clarify parameter names in the copy_xstate_to_*() methods

2017-09-25 Thread Thomas Gleixner
On Sat, 23 Sep 2017, Ingo Molnar wrote: > static inline int > __copy_xstate_to_kernel(void *kbuf, > const void *data, > - unsigned int pos, unsigned int count, int end_pos) > + unsigned int offset, unsigned int size, int size_total) W

Re: [PATCH 1/8] sched: Consistent task-state printing

2017-09-25 Thread Steven Rostedt
On Mon, 25 Sep 2017 14:07:48 +0200 Peter Zijlstra wrote: > +static inline char __task_state_to_char(unsigned int state) > +{ > + static const char state_char[] = "RSDTtXZ"; > + > + BUILD_BUG_ON(1 + ilog2(TASK_REPORT) != sizeof(state_char) - 2); > > - return state < sizeof(stat_nam)

<    1   2   3   4   5   6   7   8   9   >