Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Joel Fernandes
On Tue, Mar 26, 2019 at 07:47:51PM -0700, Paul E. McKenney wrote: > On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > > In the future we would like to combine the dynticks and dynticks_nesting > > counters thus leading to simplifying the code. At the moment we cannot > > do

Re: [PATCH v4 00/11] ARM: davinci: modernize the timer support

2019-03-27 Thread Sekhar Nori
Hi Daniel, Thomas, On 18/03/19 5:40 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This series removes the legacy timer code from mach-davinci in favor of > a new clocksource driver it introduces. > > Patch 1 adds a new clocksource driver for davinci. > > Patch 2 enables the ne

[PATCH v2] MAiNTAINERS: add Paolo, Stefan for virtio blk/scsi

2019-03-27 Thread Michael S. Tsirkin
Jason doesn't really have the time to review blk/scsi patches. Paolo and Setfan agreed to help out. Thanks guys! Signed-off-by: Michael S. Tsirkin --- changes from v1: - use R tag for new reviewers - readd Jason as M MAINTAINERS | 15 ++- 1 file changed, 14 insertions(+), 1 deleti

[PATCH] security: don't use RCU accessors for cred->session_keyring

2019-03-27 Thread Jann Horn
sparse complains that a bunch of places in kernel/cred.c access cred->session_keyring without the RCU helpers required by the __rcu annotation. cred->session_keyring is written in the following places: - prepare_kernel_cred() [in a new cred struct] - keyctl_session_to_parent() [in a new cred st

Re: [RESEND PATCH v1] moduleparam: Save information about built-in modules in separate file

2019-03-27 Thread Jessica Yu
+++ Alexey Gladkov [26/03/19 18:24 +0100]: On Fri, Mar 22, 2019 at 02:34:12PM +0900, Masahiro Yamada wrote: Hi. (added some people to CC) (Thanks Masahiro for the CC!) On Fri, Mar 15, 2019 at 7:10 PM Alexey Gladkov wrote: > > Problem: > > When a kernel module is compiled as a separate mod

[PATCH -next] ASoC: fix SND_SOC_LOCHNAGAR_SC kconfig warning

2019-03-27 Thread Randy Dunlap
alsa-project.org --- sound/soc/codecs/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20190327.orig/sound/soc/codecs/Kconfig +++ linux-next-20190327/sound/soc/codecs/Kconfig @@ -94,7 +94,7 @@ config SND_SOC_ALL_CODECS select SND_SOC_JZ4725B_CODEC

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Hi Abel, Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > This work is a workaround I'm looking into (more as a background task) > in order to add support for cpuidle on i.MX8MQ based platforms. > > The main idea here is getting around the missing GIC wake_request signal > (due to in

Re: [PATCH 02/17] x86, lto: Mark all top level asm statements as .text

2019-03-27 Thread Andi Kleen
> Why on earth is this needed for LTO? > > From the GCC manual: > > "This attribute, attached to a global variable or function, nullifies the > effect of the -fw hole-program command-line option, so the object remains > visible outside the current compilation unit." > > Neither the variable

Re: [PATCH 5/6] acpi/cppc: Add support for optional CPPC registers

2019-03-27 Thread Pandruvada, Srinivas
On Fri, 2019-03-22 at 20:26 +, Natarajan, Janakarajan wrote: > From: Yazen Ghannam > > Newer AMD processors support a subset of the optional CPPC registers. > Create show, store and helper routines for supported CPPC registers. > > Signed-off-by: Yazen Ghannam > [ carved out into a patch, c

hello dear

2019-03-27 Thread Aisha Gadafi
Assalamu Alaikum Wa Rahmatullahi Wa Barakatuh, hello dear I came across your contact during my private search. Mrs Aisha Al- Qaddafi is my name, the only daughter of late Libyan president, am a single Mother and a Widow with three Children.I have funds the sum of $27.5 million USD for, investme

Re: [PATCH] trace: events: fix error directive in argument list

2019-03-27 Thread Steven Rostedt
On Tue, 26 Mar 2019 01:23:03 +0530 Hariprasad Kelam wrote: > This patch fixes below spare errors. > > Sparse error: > make C=2 CF=-D__CHECK_ENDIAN__ M=net/core > ./include/trace/events/neigh.h:73:1: error: directive in argument list > ./include/trace/events/neigh.h:78:1: error: directive in argu

Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Paul E. McKenney
On Wed, Mar 27, 2019 at 11:34:01AM -0400, Joel Fernandes wrote: > On Tue, Mar 26, 2019 at 07:47:51PM -0700, Paul E. McKenney wrote: > > On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > > > In the future we would like to combine the dynticks and dynticks_nesting > > > count

[PATCH] keys: safe concurrent user->{session,uid}_keyring access

2019-03-27 Thread Jann Horn
The current code can perform concurrent updates and reads on user->session_keyring and user->uid_keyring. Add a comment to struct user_struct to document the nontrivial locking semantics, and use READ_ONCE() for unlocked readers and smp_store_release() for writers to prevent memory ordering issues.

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Marc Zyngier
On 27/03/2019 15:44, Lucas Stach wrote: > Hi Abel, > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: >> This work is a workaround I'm looking into (more as a background task) >> in order to add support for cpuidle on i.MX8MQ based platforms. >> >> The main idea here is getting around

Re: [PATCH V31 19/25] x86/mmiotrace: Lock down the testmmiotrace module

2019-03-27 Thread Steven Rostedt
On Tue, 26 Mar 2019 11:27:35 -0700 Matthew Garrett wrote: > From: David Howells > > The testmmiotrace module shouldn't be permitted when the kernel is locked > down as it can be used to arbitrarily read and write MMIO space. This is > a runtime check rather than buildtime in order to allow conf

Re: [PATCH v1] gpio: gpio-mlxbf: Add dependency on 64BIT to Kconfig entry

2019-03-27 Thread Bartosz Golaszewski
śr., 27 mar 2019 o 15:15 Shravan Kumar Ramani napisał(a): > > Fixes a compile test failure > > Signed-off-by: Shravan Kumar Ramani > --- > drivers/gpio/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 0d9ddff..53

Re: [PATCH] HID: intel-ish-hid: ISH firmware loader client driver

2019-03-27 Thread Nick Crews
On Tue, Mar 26, 2019 at 8:22 PM Srinivas Pandruvada wrote: > > On Tue, 2019-03-26 at 18:39 -0600, Nick Crews wrote: > > Hi Rushikesh, I know I've been reviewing this on Chromium, but I have > > some more larges-scale design thoughts. > Hi Nick. > > Does this fundamentally change, the way it is don

Re: [PATCH v2] mtd: spi-nor: Return error when nor->addr_width does not match the device size

2019-03-27 Thread Vignesh Raghavendra
On 26/03/19 8:50 PM, Liu Xiang wrote: > At 2019-03-19 13:22:15, "Vignesh Raghavendra" wrote: >> Hi, >> >> On 13/03/19 7:15 PM, Liu Xiang wrote: >>> In some is25lp256, the DWORD1 of JEDEC Basic Flash Parameter Header >>> is 0xfff920e5. So the DWORD1[18:17] Address Bytes bits are 0b00, >>> means tha

Re: [RESEND PATCH v1] moduleparam: Save information about built-in modules in separate file

2019-03-27 Thread Alexey Gladkov
On Wed, Mar 27, 2019 at 04:40:25PM +0100, Jessica Yu wrote: > +++ Alexey Gladkov [26/03/19 18:24 +0100]: > >On Fri, Mar 22, 2019 at 02:34:12PM +0900, Masahiro Yamada wrote: > >> Hi. > >> > >> (added some people to CC) > > (Thanks Masahiro for the CC!) > > >> > >> On Fri, Mar 15, 2019 at 7:10 PM A

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Hi Marc, Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > On 27/03/2019 15:44, Lucas Stach wrote: > > Hi Abel, > > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > > > This work is a workaround I'm looking into (more as a background task) > > > in order to add sup

Re: [PATCH v6 1/7] s390: ap: kvm: add PQAP interception for AQIC

2019-03-27 Thread Tony Krowiak
On 3/26/19 2:57 PM, Tony Krowiak wrote: On 3/22/19 10:43 AM, Pierre Morel wrote: We prepare the interception of the PQAP/AQIC instruction for the case the AQIC facility is enabled in the guest. First of all we do not want to change existing behavior when intercepting AP instructions without the

Re: [Patch v3 2/2] tracing: gpio: add Kconfig option for enabling/disabling trace events

2019-03-27 Thread Uwe Kleine-König
On Sat, Aug 01, 2015 at 03:27:58PM +0300, Tal Shorer wrote: > Add a new options to trace Kconfig, CONFIG_TRACING_EVENTS_GPIO, that is > used for enabling/disabling compilation of gpio function trace events. > > Signed-off-by: Tal Shorer > Acked-by: Linus Walleij > --- > include/trace/events/gpi

Re: [PATCH v2] arch_topology: Make cpu_capacity sysfs node as ready-only

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 5:27 PM, Lingutla Chandrasekhar wrote: If user updates any cpu's cpu_capacity, then the new value is going to be applied to all its online sibling cpus. But this need not to be correct always, as sibling cpus (in ARM, same micro architecture cpus) would have different cpu_capacity

[PATCH] arch:sh:mach-sh03/rtc.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- arch/sh/boards/mach-sh03/rtc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/boards/mach-sh03/rtc.c b/arch/sh/boards/mach-sh03/rtc.c index 8b23ed7..165e2cc 100644 --- a/

[PATCH 0/4] pidfd_open()

2019-03-27 Thread Christian Brauner
Hey, After the discussion over the last days, this is a fresh approach to getting pidfds independent of the translate_pid() patchset. pidfd_open() allows to retrieve pidfds for processes and removes the dependency of pidfd on procfs. These pidfds are allocated using anon_inode_getfd(), are O_CLOE

[PATCH 4/4] tests: add pidfd_open() tests

2019-03-27 Thread Christian Brauner
This adds a simple test case for pidfd_open(). Signed-off-by: Christian Brauner Cc: Arnd Bergmann Cc: "Eric W. Biederman" Cc: Kees Cook Cc: Alexey Dobriyan Cc: Thomas Gleixner Cc: Jann Horn Cc: "Michael Kerrisk (man-pages)" Cc: Konstantin Khlebnikov Cc: Jonathan Kowalski Cc: "Dmitry V. L

[PATCH 3/4] signal: support pidfd_open() with pidfd_send_signal()

2019-03-27 Thread Christian Brauner
Let pidfd_send_signal() use pidfds retrieved via pidfd_open(). With this patch pidfd_send_signal() becomes independent of procfs. This fullfils the request made when we merged the pidfd_send_signal() patchset. The pidfd_send_signal() syscall is now always available allowing for it to be used by use

[PATCH 1/4] Make anon_inodes unconditional

2019-03-27 Thread Christian Brauner
From: David Howells Make the anon_inodes facility unconditional so that it can be used by core VFS code and the pidfd_open() syscall. Signed-off-by: David Howells Signed-off-by: Al Viro [christ...@brauner.io: adapt commit message to mention pidfd_open()] Signed-off-by: Christian Brauner ---

[PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Christian Brauner
pidfd_open() allows to retrieve pidfds for processes and removes the dependency of pidfd on procfs. Multiple people have expressed a desire to do this even when pidfd_send_signal() was merged. It is even recorded in the commit message for pidfd_send_signal() itself (cf. commit 3eb39f47934f9d5a3027f

Re: [PATCH] jbd2: remove repeated assignments in __jbd2_log_wait_for_space

2019-03-27 Thread Jan Kara
On Wed 27-03-19 22:31:35, Liu Song wrote: > From: Liu Song > > At the beginning, nblocks has been assigned. There is no need > to repeat the assignment in the while loop, and remove it. > > Signed-off-by: Liu Song Looks good. You can add: Reviewed-by: Jan Kara

Re: [PATCH] MIPS: KGDB: fix kgdb support for SMP platforms.

2019-03-27 Thread Doug Anderson
Hi, On Wed, Mar 27, 2019 at 8:06 AM qiaochong wrote: > > KGDB_call_nmi_hook is called by other cpu through smp call. > MIPS smp call is processed in ipi irq handler and regs is saved in > handle_int. > So kgdb_call_nmi_hook get regs by get_irq_regs and regs will be passed > to kgdb_cpu_enter. >

Re: [PATCH 09/14] bus: ti-sysc: Move rstctrl reset to happen later

2019-03-27 Thread Suman Anna
Hi Tony, On 3/26/19 6:40 PM, Tony Lindgren wrote: > Hi, > > * Suman Anna [190326 23:22]: >> On 3/26/19 6:13 PM, Tony Lindgren wrote: >> Hmm, are you envisioning the SYSC reset (OCP SoftReset) here or the PRCM >> RSTCTRL hardresets here? The latter in general requires the clocks to be >> running

Re: [PATCH] tracing: Kernel access to Ftrace instances

2019-03-27 Thread Steven Rostedt
On Wed, 20 Mar 2019 11:28:51 -0700 Divya Indi wrote: > Ftrace provides the feature “instances” that provides the capability to > create multiple Ftrace ring buffers. However, currently these buffers > are created/accessed via userspace only. The kernel APIs providing these > features are not expo

[PATCH] arch:sparc:kernel/uprobes.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- arch/sparc/kernel/uprobes.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sparc/kernel/uprobes.c b/arch/sparc/kernel/uprobes.c index d852ae5..c44bf5b 100644 --- a/arch/spar

Re: [PATCH] [v2] ceph: fix clang warning for CEPH_DEFINE_OID_ONSTACK

2019-03-27 Thread Ilya Dryomov
On Mon, Mar 25, 2019 at 1:51 PM Arnd Bergmann wrote: > > clang complains about assigning a variable to itself during the > declaration: > > fs/ceph/ioctl.c:187:26: error: variable 'oid' is uninitialized when used > within its own initialization [-Werror,-Wuninitialized] > CEPH_DEFINE_OID_

Re: [PATCH 2/2] arm64: dts: imx8qxp: Add EDMA0/EDMA1 nodes

2019-03-27 Thread Daniel Baluta
On Wed, Mar 27, 2019 at 11:33 AM Lucas Stach wrote: > > Hi Daniel, > > Am Mittwoch, den 27.03.2019, 10:51 +0200 schrieb Daniel Baluta: > [...] > > > > > or > > > "fsl,imx8qxp-edma", "fsl,imx8qm-edma"? > > > > One thing that it is not clear for me is why there are places > > where we use two compat

Re: [PATCH v6 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-27 Thread Balakrishna Godavarthi
Hi Harish, On 2019-03-27 17:58, Harish Bandi wrote: Added new compatible for WCN3998 and corresponding voltage and current values to WCN3998 compatible. Changed driver code to support WCN3998 Signed-off-by: Harish Bandi --- Changes in V6: - changed return value to false in the qca_is_wcn399x()

[PATCH] perf: fix help message of perf-record --no-bpf-event

2019-03-27 Thread Song Liu
It should be "do not record bpf events". Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Alexander Shishkin Signed-off-by: Song Liu --- tools/perf/builtin-record.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-rec

Re: [PATCH] vhost: zero vhost_vsock memory on allocation

2019-03-27 Thread Stefan Hajnoczi
On Tue, Mar 26, 2019 at 08:56:14PM -0400, Vitaly Mayatskikh wrote: > This fixes OOPS when using under-initialized vhost_vsock object. > > The code had a combo of kzalloc plus vmalloc as a fallback > initially, but it has been replaced by plain kvmalloc in > commit 6c5ab6511f71 ("mm: support __GFP_

[PATCH] selftests:powerpc/tm/tm-vmx-unavail.c : Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c b/tools/testing/selftests/

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread James Morris
On Wed, 27 Mar 2019, Greg KH wrote: > Personally, I think these are all just "confidentiality" type things, > but who really knows given the wild-west nature of debugfs (which is as > designed). And given that I think this patch series just crazy anyway, > I really don't care :) Why do you think

Re: [PATCH V31 19/25] x86/mmiotrace: Lock down the testmmiotrace module

2019-03-27 Thread Matthew Garrett
On Wed, Mar 27, 2019 at 8:57 AM Steven Rostedt wrote: > > On Tue, 26 Mar 2019 11:27:35 -0700 > Matthew Garrett wrote: > > > From: David Howells > > > > The testmmiotrace module shouldn't be permitted when the kernel is locked > > down as it can be used to arbitrarily read and write MMIO space. T

Re: [PATCH 1/3] fs: stream_open - opener for stream-like files so that read and write can run simultaneously without deadlock

2019-03-27 Thread Juergen Gross
On 26/03/2019 23:20, Kirill Smelkov wrote: > Commit 9c225f2655 (vfs: atomic f_pos accesses as per POSIX) added locking for > file.f_pos access and in particular made concurrent read and write not > possible > - now both those functions take f_pos lock for the whole run, and so if e.g. a > read is

Re: KASAN: use-after-free Read in path_lookupat

2019-03-27 Thread Jan Kara
On Tue 26-03-19 04:15:10, Al Viro wrote: > On Mon, Mar 25, 2019 at 08:18:25PM -0700, Mark Fasheh wrote: > > > Hey Al, > > > > It's been a while since I've looked at that bit of code but it looks like > > Ocfs2 is syncing the inode to disk and disposing of it's memory > > representation (which wou

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Leonard Crestez
On Wed, 2019-03-27 at 17:06 +0100, Lucas Stach wrote: > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > > On 27/03/2019 15:44, Lucas Stach wrote: > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: > > > > This work is a workaround I'm looking into (more as a backgrou

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Zi Yan
On 27 Mar 2019, at 6:08, Keith Busch wrote: > On Tue, Mar 26, 2019 at 08:41:15PM -0700, Yang Shi wrote: >> On 3/26/19 5:35 PM, Keith Busch wrote: >>> migration nodes have higher free capacity than source nodes. And since >>> your attempting THP's without ever splitting them, that also requires >>>

Re: [PATCH v6 1/2] Bluetooth: hci_qca: Added support for WCN3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 05:58:42PM +0530, Harish Bandi wrote: > Added new compatible for WCN3998 and corresponding voltage > and current values to WCN3998 compatible. > Changed driver code to support WCN3998 > > Signed-off-by: Harish Bandi You forgot to add 'Reviewed-by' my tag from v5. No need

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Dave Hansen
On 3/27/19 10:00 AM, Zi Yan wrote: > I ask this because I observe that migrating a list of pages can > achieve higher throughput compared to migrating individual page. > For example, migrating 512 4KB pages can achieve ~750MB/s > throughput, whereas migrating one 4KB page might only achieve > ~40MB

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Jann Horn
On Wed, Mar 27, 2019 at 5:22 PM Christian Brauner wrote: > pidfd_open() allows to retrieve pidfds for processes and removes the > dependency of pidfd on procfs. Multiple people have expressed a desire to > do this even when pidfd_send_signal() was merged. It is even recorded in [...] > IF PROCFD_T

Re: [PATCH] vhost: zero vhost_vsock memory on allocation

2019-03-27 Thread Vitaly Mayatskih
On Wed, Mar 27, 2019 at 12:49 PM Stefan Hajnoczi wrote: > Which field was accessed before initialization? > > I ask because the situation is now unclear since code remains that > assumes vsock is *not* zero-initialized: > > vsock->guest_cid = 0; /* no CID assigned yet */ > > atomic_set(&vsock

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Am Mittwoch, den 27.03.2019, 17:00 + schrieb Leonard Crestez: > On Wed, 2019-03-27 at 17:06 +0100, Lucas Stach wrote: > > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > > > On 27/03/2019 15:44, Lucas Stach wrote: > > > > Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Ve

Re: [PATCH v3] KEYS: trusted: allow trusted.ko to initialize w/o a TPM

2019-03-27 Thread Dan Williams
On Tue, Mar 26, 2019 at 5:13 AM Jarkko Sakkinen wrote: > > Allow trusted.ko to initialize w/o a TPM. This commit adds checks to the > key type callbacks and exported functions to fail when a TPM is not > available. > > Cc: James Morris > Reported-by: Dan Williams > Tested-by: Dan Williams > Fix

Device Description for FPGA Components on x86 system

2019-03-27 Thread Federico Vaga
Hello, I'm looking for guidance What I have: * Intel x86_64 computer * PCIe card with FPGA on it What I want to achieve: * load an FPGA bitstream on the card * load a device-tree like description for the FPGA devices contained in the bitstream This is achievable on ARM with DeviceTree, overlay

[PATCH] kernel/trace/trace.h: Remove duplicate header

2019-03-27 Thread jagdsh . linux
From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala --- kernel/trace/trace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d80cee4..e1e16f9 100644 --- a/kernel/trace/trace.h +++ b/ker

syzbot bisection analysis

2019-03-27 Thread Dmitry Vyukov
Hello, As most of you probably already noticed, syzbot started bisecting cause commits for crashes about 2 weeks ago and sending emails like this: https://groups.google.com/d/msg/syzkaller-bugs/2XhfN2Kfbqs/0U3YnKsGBQAJ The bisection results are also available on the dashboard, e.g.: https://syzkal

Re: [PATCH v3 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip wcn3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 03:53:58PM +0530, Harish Bandi wrote: > Hi Matthias, > > > > > > > You mentioned in an earlier version of the series that there are > > > > > > multiple WCN3998 variants with different requirements for > > > > > > voltage/current. This seems to suggests that multiple compat

Re: KASAN: use-after-free Read in path_lookupat

2019-03-27 Thread Jan Kara
On Mon 25-03-19 23:02:11, Al Viro wrote: > On Tue, Mar 26, 2019 at 09:48:23AM +1100, Dave Chinner wrote: > > > And when it comes to VFS inode reclaim, XFS does not implement > > ->evict_inode because there is nothing at the VFS level to do. > > And ->destroy_inode ends up doing cleanup work (e.g.

Re: [PATCH v6 2/2] dt-bindings: net: bluetooth: Add device tree bindings for QTI chip WCN3998

2019-03-27 Thread Matthias Kaehlcke
On Wed, Mar 27, 2019 at 05:58:43PM +0530, Harish Bandi wrote: > This patch enables regulators for the Qualcomm Bluetooth WCN3998 > controller. I commented on this on v3, but you didn't update it: No, it doesn't. The next version should probably say something like "Add compatible string for

Re: [PATCH] pinctrl: intel: save HOSTSW_OWN register over suspend/resume

2019-03-27 Thread Mika Westerberg
+Andy On Wed, Mar 27, 2019 at 04:22:04PM +0800, Daniel Drake wrote: > Hi Mika, > > Digging up this old thread again... > > On Tue, Nov 21, 2017 at 8:13 PM Mika Westerberg > wrote: > > > > On Tue, Nov 21, 2017 at 07:54:26PM +0800, Chris Chiu wrote: > > > Yup, I checked the value of the correspon

Re: [PATCH v4] kmemleak: survive in a low-memory situation

2019-03-27 Thread Catalin Marinas
On Wed, Mar 27, 2019 at 09:44:32AM +0100, Michal Hocko wrote: > On Tue 26-03-19 20:59:48, Qian Cai wrote: > [...] > > Unless there is a brave soul to reimplement the kmemleak to embed it's > > metadata into the tracked memory itself in a foreseeable future, Revisiting the kmemleak memory scanning

Re: [PATCH 05/25] coresight: Merge the static and dynamic replicator drivers

2019-03-27 Thread Suzuki K Poulose
On 03/27/2019 03:27 PM, Mathieu Poirier wrote: On Wed, Mar 20, 2019 at 06:49:22PM +, Suzuki K Poulose wrote: Merge the drivers for the two varieties of replicators into a singel one. The dynamic replicator has programming base which can be programmed to filter the trace data. The driver dete

Re: [PATCH V2 1/2] watchdog: f71808e_wdt: separate declaration and assignment

2019-03-27 Thread Guenter Roeck
On Wed, Mar 27, 2019 at 02:42:50PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Separate declaration and assignment in watchdog_start() > > Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck Note though that it would be much more valuable if you could consider converting the driver t

Re: [PATCH V2 2/2] watchdog: f71808e_wdt: fix F81866 bit operation

2019-03-27 Thread Guenter Roeck
On Wed, Mar 27, 2019 at 02:42:51PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Fix error bit operation in watchdog_start() > > Fixes: 14b24a88a3660 ("watchdog: f71808e_wdt: Add F81866 support") > Signed-off-by: Ji-Ze Hong (Peter Hong) Reviewed-by: Guenter Roeck > --- > drivers/watchdog/f71808e_wd

Re: [RFC PATCH 0/10] Another Approach to Use PMEM as NUMA Node

2019-03-27 Thread Dan Williams
On Wed, Mar 27, 2019 at 2:01 AM Michal Hocko wrote: > > On Tue 26-03-19 19:58:56, Yang Shi wrote: > > > > > > On 3/26/19 11:37 AM, Michal Hocko wrote: > > > On Tue 26-03-19 11:33:17, Yang Shi wrote: > > > > > > > > On 3/26/19 6:58 AM, Michal Hocko wrote: > > > > > On Sat 23-03-19 12:44:25, Yang Sh

Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree

2019-03-27 Thread Tim Harvey
On Sun, Mar 17, 2019 at 10:00 AM Russell King - ARM Linux admin wrote: > > On Sun, Mar 17, 2019 at 04:48:24PM +, Måns Rullgård wrote: > > Stefan Agner writes: > > > > > On 16.03.2019 16:39, Russell King - ARM Linux admin wrote: > > >> On Sat, Mar 16, 2019 at 01:33:58PM +0100, Marek Vasut wrot

Re: [PATCHv4 16/28] PCI: mobiveil: refactor Mobiveil PCIe Host Bridge IP driver

2019-03-27 Thread Lorenzo Pieralisi
On Wed, Mar 27, 2019 at 02:04:00AM +, Z.q. Hou wrote: > Hi Lorenzo, > > Thanks for your comments! > > > -Original Message- > > From: Lorenzo Pieralisi > > Sent: 2019年3月27日 1:34 > > To: Z.q. Hou > > Cc: linux-...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > > devicet...@v

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Andy Lutomirski
On Tue, Mar 26, 2019 at 10:33 PM Greg KH wrote: > > On Tue, Mar 26, 2019 at 10:29:41PM -0700, Andy Lutomirski wrote: > > > > > > > On Mar 26, 2019, at 10:06 PM, Greg KH wrote: > > > > > >> On Tue, Mar 26, 2019 at 09:29:14PM -0700, Andy Lutomirski wrote: > > >>> On Tue, Mar 26, 2019 at 5:31 PM Gre

Issues with i.MX SPI DMA transfers

2019-03-27 Thread Igor Plyatov
Dear developers, please, help to resolve two issues with SPI DMA transfers at i.MX6Q platform. First issue is  [ 4465.008003] spi_master spi0: I/O Error in DMA RX Second issue is duplication for one of received bytes. Probably, these issues related to each one. I think suspicious code is on

Re: [PATCH V31 25/25] debugfs: Disable open() when kernel is locked down

2019-03-27 Thread Matthew Garrett
On Wed, Mar 27, 2019 at 10:40 AM Andy Lutomirski wrote: > As far as I'm concerned, preventing root from crashing the system > should not be a design goal of lockdown at all. And I think that the > "integrity" mode should be as non-annoying as possible, so I think we > should allow reading from de

Re: [PATCH -next] ASoC: fix SND_SOC_LOCHNAGAR_SC kconfig warning

2019-03-27 Thread Charles Keepax
On Wed, Mar 27, 2019 at 08:43:19AM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Fix kconfig warning for SND_SOC_LOCHNAGAR_SC: > > WARNING: unmet direct dependencies detected for SND_SOC_LOCHNAGAR_SC > Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=m] && > MFD_LOCHNAGAR [=n

Re: [Potential Spoof] Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH v2] misc: aspeed-lpc-ctrl: make parameter optional

2019-03-27 Thread Vijay Khemka
Hi Joel, Can you please apply this below patch to kernel 5.0. Regards -Vijay On 3/18/19, 12:46 PM, "openbmc on behalf of Vijay Khemka" wrote: Hi Joel, Can you please apply this patch as " Documentation/devicetree/bindings/mfd/aspeed-lpc.txt" has already been applied Regards

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Marc Zyngier
On 27/03/2019 16:06, Lucas Stach wrote: > Hi Marc, > > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: >> On 27/03/2019 15:44, Lucas Stach wrote: >>> Hi Abel, >>> >>> Am Mittwoch, den 27.03.2019, 13:21 + schrieb Abel Vesa: This work is a workaround I'm looking into (more as

Re: [PATCH v2 2/4] rcutree: Add checks for dynticks counters in rcu_is_cpu_rrupt_from_idle

2019-03-27 Thread Joel Fernandes
On Wed, Mar 27, 2019 at 08:53:51AM -0700, Paul E. McKenney wrote: > On Wed, Mar 27, 2019 at 11:34:01AM -0400, Joel Fernandes wrote: > > On Tue, Mar 26, 2019 at 07:47:51PM -0700, Paul E. McKenney wrote: > > > On Tue, Mar 26, 2019 at 03:24:09PM -0400, Joel Fernandes (Google) wrote: > > > > In the fut

Re: [PATCH 2/4] pid: add pidfd_open()

2019-03-27 Thread Yann Droneaud
Le mercredi 27 mars 2019 à 17:21 +0100, Christian Brauner a écrit : > diff --git a/kernel/pid.c b/kernel/pid.c > index 20881598bdfa..c9e24e726aba 100644 > --- a/kernel/pid.c > +++ b/kernel/pid.c > @@ -26,8 +26,10 @@ > +SYSCALL_DEFINE4(pidfd_open, pid_t, pid, int, procfd, int, pidfd, > unsigned int

Re: [Potential Spoof] Re: [Potential Spoof] Re: [PATCH] ARM: dts: aspeed: tiogapass: Enable VUART

2019-03-27 Thread Vijay Khemka
Hi Joel, Please apply this patch. Regards -Vijay On 3/18/19, 12:46 PM, "openbmc on behalf of Vijay Khemka" wrote: Hi Joel, Please apply this patch. Regards -Vijay On 3/5/19, 12:06 PM, "openbmc on behalf of Vijay Khemka" wrote: Please review below p

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Zi Yan
On 27 Mar 2019, at 10:05, Dave Hansen wrote: > On 3/27/19 10:00 AM, Zi Yan wrote: >> I ask this because I observe that migrating a list of pages can >> achieve higher throughput compared to migrating individual page. >> For example, migrating 512 4KB pages can achieve ~750MB/s >> throughput, where

Re: WARNING in arch_install_hw_breakpoint

2019-03-27 Thread Borislav Petkov
On Wed, Mar 27, 2019 at 04:17:25PM +0100, Borislav Petkov wrote: > On Wed, Mar 27, 2019 at 02:45:24PM +0100, Dmitry Vyukov wrote: > > And run this program: > > https://syzkaller.appspot.com/text?tag=ReproC&x=15439f2720 > > Yap, that worked in my guest, after segfaulting a lot first: > > [ 10

Re: [PATCH v4 00/11] ARM: davinci: modernize the timer support

2019-03-27 Thread Daniel Lezcano
Hi Sekhar, On 27/03/2019 16:36, Sekhar Nori wrote: > Hi Daniel, Thomas, > > On 18/03/19 5:40 PM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> This series removes the legacy timer code from mach-davinci in favor of >> a new clocksource driver it introduces. >> >> Patch 1 adds a

Re: [RFC PATCH v2 1/1] mm/vmap: keep track of free blocks for vmap allocation

2019-03-27 Thread Uladzislau Rezki
Hello, Roman. > > Hello, Uladzislau! > > Yeah, the version above looks much simpler! > Looking forward for the next version of the patchset. > > Thanks! Will upload it soon. Thanks! -- Vlad Rezki

Re: [RFC 0/7] cpuidle: Add poking mechanism to support non-IPI wakeup

2019-03-27 Thread Lucas Stach
Am Mittwoch, den 27.03.2019, 17:45 + schrieb Marc Zyngier: > On 27/03/2019 16:06, Lucas Stach wrote: > > Hi Marc, > > > > Am Mittwoch, den 27.03.2019, 15:57 + schrieb Marc Zyngier: > > > On 27/03/2019 15:44, Lucas Stach wrote: > > > > Hi Abel, > > > > > > > > Am Mittwoch, den 27.03.2019,

Re: [PATCH 16/32] x86/vdso: Generate vdso{,32}-timens.lds

2019-03-27 Thread Andrei Vagin
While the generic vdso patchset is in development, we decided to think about what other ways of generating two vdso libraries. In this patchset, we use a linker script, but it looks too complicated, so we decided to look at other options. Another obvious approach is the code patching technique. The

Re: [PATCH 06/10] mm: vmscan: demote anon DRAM pages to PMEM node

2019-03-27 Thread Dave Hansen
On 3/27/19 10:48 AM, Zi Yan wrote: > For 40MB/s vs 750MB/s, they were using sys_migrate_pages(). Sorry > about the confusion there. As I measure only the migrate_pages() in > the kernel, the throughput becomes: migrating 4KB page: 0.312GB/s > vs migrating 512 4KB pages: 0.854GB/s. They are still >2

[PATCH AUTOSEL 5.0 001/262] CIFS: fix POSIX lock leak and invalid ptr deref

2019-03-27 Thread Sasha Levin
From: Aurelien Aptel [ Upstream commit bc31d0cdcfbadb6258b45db97e93b1c83822ba33 ] We have a customer reporting crashes in lock_get_status() with many "Leaked POSIX lock" messages preceeding the crash. Leaked POSIX lock on dev=0x0:0x56 ... Leaked POSIX lock on dev=0x0:0x56 ... Leaked POSIX lo

[PATCH AUTOSEL 5.0 002/262] nvme-fc: fix numa_node when dev is null

2019-03-27 Thread Sasha Levin
From: James Smart [ Upstream commit 06f3d71ea071b70e62bcc146cd9ff7ed1f9d4e43 ] A recent change added a numa_node field to the nvme controller and has the transport assign the node using dev_to_node(). However, fcloop registers with a NULL device struct, so the dev_to_node() call oops. Revise th

[PATCH AUTOSEL 5.0 005/262] f2fs: fix to adapt small inline xattr space in __find_inline_xattr()

2019-03-27 Thread Sasha Levin
From: Chao Yu [ Upstream commit 2c28aba8b2e2a51749fa66e01b68e1cd5b53e022 ] With below testcase, we will fail to find existed xattr entry: 1. mkfs.f2fs -O extra_attr -O flexible_inline_xattr /dev/zram0 2. mount -t f2fs -o inline_xattr_size=1 /dev/zram0 /mnt/f2fs/ 3. touch /mnt/f2fs/file 4. setfa

[PATCH AUTOSEL 5.0 011/262] tracing: kdb: Fix ftdump to not sleep

2019-03-27 Thread Sasha Levin
From: Douglas Anderson [ Upstream commit 31b265b3baaf55f209229888b7ffea523ddab366 ] As reported back in 2016-11 [1], the "ftdump" kdb command triggers a BUG for "sleeping function called from invalid context". kdb's "ftdump" command wants to call ring_buffer_read_prepare() in atomic context. A

[PATCH AUTOSEL 5.0 030/262] mm/sparse: fix a bad comparison

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit d778015ac95bc036af73342c878ab19250e01fe1 ] next_present_section_nr() could only return an unsigned number -1, so just check it specifically where compilers will convert -1 to unsigned if needed. mm/sparse.c: In function 'sparse_init_nid': mm/sparse.c:200:20:

[PATCH AUTOSEL 5.0 025/262] scsi: hisi_sas: Set PHY linkrate when disconnected

2019-03-27 Thread Sasha Levin
From: John Garry [ Upstream commit efdcad62e7b8a02f5ccca57806dce1482ac8 ] When the PHY comes down, we currently do not set the negotiated linkrate: root@(none)$ pwd /sys/class/sas_phy/phy-0:0 root@(none)$ more enable 1 root@(none)$ more negotiated_linkrate 12.0 Gbit root@(none)$ echo 0 > en

[PATCH AUTOSEL 5.0 028/262] x86/hyperv: Fix kernel panic when kexec on HyperV

2019-03-27 Thread Sasha Levin
From: Kairui Song [ Upstream commit 179fb36abb097976997f50733d5b122a29158cba ] After commit 68bb7bfb7985 ("X86/Hyper-V: Enable IPI enlightenments"), kexec fails with a kernel panic: kexec_core: Starting new kernel BUG: unable to handle kernel NULL pointer dereference at Hardwar

[PATCH AUTOSEL 5.0 021/262] sysctl: handle overflow for file-max

2019-03-27 Thread Sasha Levin
From: Christian Brauner [ Upstream commit 32a5ad9c22852e6bd9e74bdec5934ef9d1480bc5 ] Currently, when writing echo 18446744073709551616 > /proc/sys/fs/file-max /proc/sys/fs/file-max will overflow and be set to 0. That quickly crashes the system. This commit sets the max and min value for fi

[PATCH AUTOSEL 5.0 031/262] mm/cma.c: cma_declare_contiguous: correct err handling

2019-03-27 Thread Sasha Levin
From: Peng Fan [ Upstream commit 0d3bd18a5efd66097ef58622b898d3139790aa9d ] In case cma_init_reserved_mem failed, need to free the memblock allocated by memblock_reserve or memblock_alloc_range. Quote Catalin's comments: https://lkml.org/lkml/2019/2/26/482 Kmemleak is supposed to work with t

[PATCH AUTOSEL 5.0 034/262] docs/core-api/mm: fix user memory accessors formatting

2019-03-27 Thread Sasha Levin
From: Mike Rapoport [ Upstream commit bc8ff3ca6589d63c6d10f5ee8bed38f74851b469 ] The descriptions of userspace memory access functions had minor issues with formatting that made kernel-doc unable to properly detect the function/macro names and the return value sections: ./arch/x86/include/asm/u

[PATCH AUTOSEL 5.0 032/262] mm/page_ext.c: fix an imbalance with kmemleak

2019-03-27 Thread Sasha Levin
From: Qian Cai [ Upstream commit 0c81585499601acd1d0e1cbf424cabfaee60628c ] After offlining a memory block, kmemleak scan will trigger a crash, as it encounters a page ext address that has already been freed during memory offlining. At the beginning in alloc_page_ext(), it calls kmemleak_alloc(

[PATCH AUTOSEL 5.0 035/262] mm,oom: don't kill global init via memory.oom.group

2019-03-27 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit d342a0b38674867ea67fde47b0e1e60ffe9f17a2 ] Since setting global init process to some memory cgroup is technically possible, oom_kill_memcg_member() must check it. Tasks in /test1 are going to be killed due to memory.oom.group set Memory cgroup out of mem

[PATCH AUTOSEL 5.0 019/262] include/linux/relay.h: fix percpu annotation in struct rchan

2019-03-27 Thread Sasha Levin
From: Luc Van Oostenryck [ Upstream commit 62461ac2e5b6520b6d65fc6d7d7b4b8df4b848d8 ] The percpu member of this structure is declared as: struct ... ** __percpu member; So its type is: __percpu pointer to pointer to struct ... But looking at how it's used, its type should be:

[PATCH AUTOSEL 5.0 022/262] net: stmmac: Avoid sometimes uninitialized Clang warnings

2019-03-27 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit df103170854e87124ee7bdd2bca64b178e653f97 ] When building with -Wsometimes-uninitialized, Clang warns: drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:495:3: warning: variable 'ns' is used uninitialized whenever 'if' condition is false [-Wsometimes-u

[PATCH AUTOSEL 5.0 016/262] xsk: fix to reject invalid flags in xsk_bind

2019-03-27 Thread Sasha Levin
From: Björn Töpel [ Upstream commit f54ba391d88f5a5d032175b4c308c176e34b80b7 ] Passing a non-existing flag in the sxdp_flags member of struct sockaddr_xdp was, incorrectly, silently ignored. This patch addresses that behavior, and rejects any non-existing flags. We have examined existing user s

[PATCH AUTOSEL 5.0 041/262] f2fs: do not use mutex lock in atomic context

2019-03-27 Thread Sasha Levin
From: Sahitya Tummala [ Upstream commit 9083977dabf3833298ddcd40dee28687f1e6b483 ] Fix below warning coming because of using mutex lock in atomic context. BUG: sleeping function called from invalid context at kernel/locking/mutex.c:98 in_atomic(): 1, irqs_disabled(): 0, pid: 585, name: sh Preem

[PATCH AUTOSEL 5.0 038/262] mm/vmalloc.c: fix kernel BUG at mm/vmalloc.c:512!

2019-03-27 Thread Sasha Levin
From: "Uladzislau Rezki (Sony)" [ Upstream commit afd07389d3f4933c7f7817a92fb5e053d59a3182 ] One of the vmalloc stress test case triggers the kernel BUG(): [60.562151] [ cut here ] [60.562154] kernel BUG at mm/vmalloc.c:512! [60.562206] invalid opcode: [#1]

[PATCH AUTOSEL 5.0 037/262] mm, mempolicy: fix uninit memory access

2019-03-27 Thread Sasha Levin
From: Vlastimil Babka [ Upstream commit 2e25644e8da4ed3a27e7b8315aaae74660be72dc ] Syzbot with KMSAN reports (excerpt): == BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:353 [inline] BUG: KMSAN: uninit-value in mpol_

<    1   2   3   4   5   6   7   8   9   10   >