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

2017-10-27 Thread Dmitry Vyukov
On Thu, Oct 26, 2017 at 7:58 PM, Tejun Heo wrote: > Hello, > > On Thu, Oct 26, 2017 at 09:35:44AM -0700, syzbot wrote: >> BUG: KASAN: use-after-free in __read_once_size >> include/linux/compiler.h:276 [inline] >> BUG: KASAN: use-after-free in atomic64_read >>

[PATCH v2 3/3] dts: arm64: Add mailbox binding for hi3660

2017-10-27 Thread Kaihua Zhong
Add DT binding for mailbox driver. Cc: John Stultz Cc: Guodong Xu Cc: Haojian Zhuang Cc: Niranjan Yadla Cc: Raj Pawate Signed-off-by: Leo Yan Signed-off-by:

[PATCH v2 1/3] dt-bindings: mailbox: Introduce Hi3660 controller binding

2017-10-27 Thread Kaihua Zhong
From: Leo Yan Introduce a binding for the Hi3660 mailbox controller, the mailbox is used within application processor (AP), communication processor (CP), HIFI and MCU, etc. Cc: John Stultz Cc: Guodong Xu Cc: Haojian Zhuang

[PATCH v2 0/3] mailbox: Add support for Hi3660 mailbox

2017-10-27 Thread Kaihua Zhong
From: Leo Yan Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. This patch series is to implement an initial version for Hi3660 mailbox driver with "automatic acknowledge" mode. The patch set have been verified with Hi3660 stub

[PATCH v2 2/3] mailbox: Add support for Hi3660 mailbox

2017-10-27 Thread Kaihua Zhong
Hi3660 mailbox controller is used to send message within multiple processors, MCU, HIFI, etc. It supports 32 mailbox channels and every channel can only be used for single transferring direction. Once the channel is enabled, it needs to specify the destination interrupt and acknowledge

[PATCH] selftests/ftrace: Do not use arch dependent do_IRQ as a target function

2017-10-27 Thread Masami Hiramatsu
Instead using arch-dependent do_IRQ, use do_softirq as a target function. Applying do_IRQ to set_ftrace_filter always fail on arm/arm64 and any other architectures which don't define do_IRQ. So, instead of using that, use do_softirq which is defined in kernel/softirq.c. Signed-off-by: Masami

Re: [PATCH v2] kprobes: avoid the kprobe being re-registered

2017-10-27 Thread zhouchengming
On 2017/10/27 13:57, Masami Hiramatsu wrote: On Fri, 27 Oct 2017 09:56:40 +0800 Zhou Chengming wrote: Changes from v1: - We should put the modifies of the kprobe after the re-reg check. - And then the address_safe check. - When check_kprobe_address_safe() return

Re: WARNING in refcount_sub_and_test

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 4:30 AM, ChunYu Wang wrote: > Maybe I have just made some mistakes on understanding the reproduction > methods, will try it again. This is reproducible with the C program. If bot posts it, it was able to reproduce the bug with the compiled C program.

Re: WARNING in refcount_sub_and_test

2017-10-27 Thread Dmitry Vyukov
On Thu, Oct 26, 2017 at 6:56 PM, Xin Long wrote: > Hi all, > > I am failed to reproduce it on target kernel with the reproducer file > or replaying the target syzkaller description log file, do I made > something wrong or there exists more subjects then

Re: [PATCH 01/12] Input: ad7897 - use managed devm_device_add_group

2017-10-27 Thread Andi Shyti
Hi Dmitry, > > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > > and friends") has added the the managed version for creating > > sysfs group files. > > > > Use devm_device_add_group instead of sysfs_create_group and > > remove the relative sysfs_remove_group and goto label. > >

Re: [PATCH 3/3] KVM: MMU: consider host cache type in MMIO pfn check

2017-10-27 Thread Ingo Molnar
* Haozhong Zhang wrote: > By default, KVM treats a reserved page as for MMIO purpose, and maps > it to guest with UC memory type. However, some reserved pages are not > for MMIO, such as pages of DAX device (e.g., /dev/daxX.Y). Mapping > them with UC memory type will

Re: [RESEND PATCH v11 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-10-27 Thread Byungchul Park
On Tue, Oct 10, 2017 at 03:37:53PM +0900, Byungchul Park wrote: > It would be better to try to check other siblings first if > SD_PREFER_SIBLING is flaged when pushing tasks - migration. Hello everyone, Could you tell me opinions? > Suggested-by: Peter Zijlstra >

Re: WARNING in sysfs_remove_group

2017-10-27 Thread Greg KH
On Fri, Oct 27, 2017 at 01:29:31AM -0700, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 4ed590271a65b0fbe3eb1cf828ad5af16603c8ce > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console

[PATCH] fs/seq_file: clear private buffer when resetting iterator

2017-10-27 Thread Eduard Sanou
Commit e522751d605d99a81508e58390a8f51ee96fb662 ("seq_file: reset iterator to first record for zero offset") introduced a reset to the first iterator object when reads have zero offset, but this can leave unflushed data from previous reads in the 'private_data' buffer generating a repeated first

Re: 答复: [PATCH] tty: fix flush_to_ldisc() oops before tty_open is done

2017-10-27 Thread Greg KH
On Thu, Oct 26, 2017 at 12:10:20PM +, taoyuhong wrote: > 本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁 > 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中 > 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件! > This e-mail and its attachments contain confidential information from HUAWEI, > which > is intended only for

Re: Linux 4.13.10

2017-10-27 Thread Greg KH
diff --git a/Makefile b/Makefile index aa0267950444..0e30a0d282e8 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 13 -SUBLEVEL = 9 +SUBLEVEL = 10 EXTRAVERSION = NAME = Fearless Coyote diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi

Re: Linux 4.9.59

2017-10-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 32686667bb7e..900cd7c3a9ee 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 58 +SUBLEVEL = 59 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index

Linux 4.13.10

2017-10-27 Thread Greg KH
I'm announcing the release of the 4.13.10 kernel. All users of the 4.13 kernel series must upgrade. The updated 4.13.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.13.y and can be browsed at the normal kernel.org git web

Linux 4.9.59

2017-10-27 Thread Greg KH
I'm announcing the release of the 4.9.59 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

RE: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Du, Fan
>-Original Message- >From: Michal Hocko [mailto:mho...@kernel.org] >Sent: Friday, October 27, 2017 4:43 PM >To: Du, Fan >Cc: Hansen, Dave ; a...@linux-foundation.org; >h...@lst.de; Williams, Dan J ;

Re: [PATCH 1/9] staging: lustre: ldlm: remove 'first_enq' arg from ldlm_process_flock_lock()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > it is only ever set to '1', so we can just assume that and remove the code. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- >

Re: WARNING in sysfs_remove_group

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 10:43 AM, Greg KH wrote: > On Fri, Oct 27, 2017 at 01:29:31AM -0700, syzbot wrote: >> Hello, >> >> syzkaller hit the following crash on >> 4ed590271a65b0fbe3eb1cf828ad5af16603c8ce >>

Re: [PATCH 2/9] staging: lustre: ldlm: remove unused 'work_list' arg from ldlm_process_flock_lock()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > 'work_list' is only set to NULL, and is never used. > So discard it. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |

Re: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Michal Hocko
On Fri 27-10-17 09:03:12, Du, Fan wrote: [...] > >I am not deeply familiar with DAX but I would expect that most users > >will use a FS on top of it where we have standard tools. If the use is > >direct then I can see how this make things more complicated but smaps is > >not the right answer IMHO.

Re: Timer breakage in net-next

2017-10-27 Thread Kees Cook
On Fri, Oct 27, 2017 at 10:05 AM, David Howells wrote: > Hi Dave, Kees, > > Is it possible to get this timer fix: > > https://patchwork.ozlabs.org/patch/828333/ > > timer: Provide wrappers safe for use with LOCKDEP > > included in net-next? FWIW, the LOCKDEP

Re: [PATCH 4/9] staging: lustre: ldlm: remove 'flags' arg from ldlm_process_flock_lock()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > This is only ever set to LDLM_FL_WAIT_NOREPROC, so we can remove the arg > and discard any code that is only run when it doesn't have that value. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger

[PATCH v2] target/iscsi: Convert timers to use timer_setup()

2017-10-27 Thread Kees Cook
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. Includes a fix for correcting an on-stack timer usage. Cc: "Nicholas A. Bellinger"

Re: drivers/wireless: ath: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc:

Re: [PATCH] paravirt/locks: avoid modifying static key before jump_label_init()

2017-10-27 Thread Juergen Gross
On 27/10/17 10:43, Ingo Molnar wrote: > > * Juergen Gross wrote: > >> Don't try to set the static virt_spin_lock_key to a value before >> jump_label_init() has been called, as this will result in a WARN(). >> >> Solve the problem by introducing a new lock_init() hook called

Re: [PATCH 03/14] VFS: Implement a filesystem superblock creation/configuration context [ver #6]

2017-10-27 Thread Miklos Szeredi
On Thu, Oct 26, 2017 at 6:24 PM, David Howells wrote: > Miklos Szeredi wrote: > >> > +/** >> > + * vfs_parse_mount_option - Add a single mount option to a superblock >> > config >> >> Mount options are those that refer to the mount >>

Re: general protection fault in n_tty_receive_buf_common

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 11:22 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 623ce3456671ea842c0ebda79c38655c8c04af74 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master >

Re: [PATCH 6/9] staging: lustre: ldlm: remove 'flags' arg from ldlm_flock_destroy()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > The only value ever passed in LDLM_FL_WAIT_NOREPROC, so assume that > instead of passing it. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- >

Re: WARNING in sysfs_remove_group

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 11:23 AM, Greg KH wrote: > On Fri, Oct 27, 2017 at 11:10:08AM +0200, Dmitry Vyukov wrote: >> On Fri, Oct 27, 2017 at 10:43 AM, Greg KH wrote: >> > On Fri, Oct 27, 2017 at 01:29:31AM -0700, syzbot wrote: >> >> Hello,

[PATCH] kprobes, x86/alternatives: use text_mutex to protect smp_alt_modules

2017-10-27 Thread Zhou Chengming
Fixes: 2cfa197 "ftrace/alternatives: Introducing *_text_reserved functions" We use alternatives_text_reserved() to check if the address is in the fixed pieces of alternative reserved, but the problem is that we don't hold the smp_alt mutex when call this function. So the list traversal may

Re: [RESEND v12 0/6] cgroup-aware OOM killer

2017-10-27 Thread Roman Gushchin
On Thu, Oct 26, 2017 at 02:03:41PM -0700, David Rientjes wrote: > On Thu, 26 Oct 2017, Johannes Weiner wrote: > > > > The nack is for three reasons: > > > > > > (1) unfair comparison of root mem cgroup usage to bias against that mem > > > cgroup from oom kill in system oom conditions, > >

Re: [PATCH net-next] qed: Set error code for allocation failures

2017-10-27 Thread Yunsheng Lin
Hi, Dan On 2017/10/27 14:40, Dan Carpenter wrote: > There are several places where we accidentally return success when > kcalloc() fails. > > Fixes: fcb39f6c10b2 ("qed: Add mpa buffer descriptors for storing and > processing mpa fpdus") > Signed-off-by: Dan Carpenter

Re: WARNING in refcount_sub_and_test

2017-10-27 Thread Eric Dumazet
On Fri, 2017-10-27 at 08:09 +0200, Dmitry Vyukov wrote: > Yes, I've noticed this one. It seems to happen on a first incoming > network connection (ssh/scp). I have not seen it before.

[GIT PULL] timers-conversion updates for next

2017-10-27 Thread Kees Cook
Hi Thomas, Please pull these timer conversions for tip/timers/core. These are the first batch that Martin asked us to carry in the timers tree. Thanks! -Kees The following changes since commit 52f737c2da40259ac9962170ce608b6fb1b55ee4: timer: Provide wrappers safe for use with LOCKDEP

Re: [PATCH] paravirt/locks: avoid modifying static key before jump_label_init()

2017-10-27 Thread Dou Liyang
Hi Juergen At 10/27/2017 05:21 PM, Juergen Gross wrote: On 27/10/17 10:43, Ingo Molnar wrote: * Juergen Gross wrote: Don't try to set the static virt_spin_lock_key to a value before jump_label_init() has been called, as this will result in a WARN(). Solve the problem by

Re: [lustre-devel] [PATCH 9/9] staging: lustre: ldlm: remove unused field 'fwd_generation'

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > With this field gone, we don't need local variables 'imp' or 'obd' > any more. > > Signed-off-by: NeilBrown Thanks for the patches. Reviewed-by: Andreas Dilger > --- >

Re: [Xen-devel] ce56a86e2a ("x86/mm: Limit mmap() of /dev/mem to valid physical addresses"): kernel BUG at arch/x86/mm/physaddr.c:79!

2017-10-27 Thread Jan Beulich
>>> On 26.10.17 at 21:29, wrote: > On 26/10/17 19:49, Craig Bergstrom wrote: >> Sander, thanks for the details, they've been very useful. >> >> I suspect that your host system's mem=2048M parameter is causing the >> problem. Any chance you can confirm by removing the

[PATCH] x86/alternatives: free smp_alt_modules when enable smp

2017-10-27 Thread Zhou Chengming
In the current code, we don't free smp_alt_modules when enable smp, so have to wait module unload to call alternatives_smp_module_del() to free its smp_alt_module. This strategy has shortcomings. We can make sure smp_alt_modules will be useless after enable smp, so free it all. And

Re: [Xen-devel] [PATCH v3 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-27 Thread Dongli Zhang
Hi Boris, On 10/25/2017 11:12 PM, Boris Ostrovsky wrote: > On 10/25/2017 02:45 AM, Dongli Zhang wrote: >> After guest live migration on xen, steal time in /proc/stat >> (cpustat[CPUTIME_STEAL]) might decrease because steal returned by >> xen_steal_lock() might be less than

[RFC PATCH v10 0/7] PCI: rockchip: Move PCIe WAKE# handling into pci core

2017-10-27 Thread Jeffy Chen
Currently we are handling wake irq in mrvl wifi driver. Move it into pci core. Tested on my chromebook bob(with cros 4.4 kernel and mrvl wifi). Changes in v10: Use device_set_wakeup_capable() instead of device_set_wakeup_enable(), since dedicated wakeirq will be lost in

Re: [Xen-devel] [PATCH v3 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-27 Thread Juergen Gross
On 27/10/17 09:16, Dongli Zhang wrote: > Hi Boris, > > On 10/25/2017 11:12 PM, Boris Ostrovsky wrote: >> On 10/25/2017 02:45 AM, Dongli Zhang wrote: >>> After guest live migration on xen, steal time in /proc/stat >>> (cpustat[CPUTIME_STEAL]) might decrease because steal returned by >>>

Re: [08/58] net/wireless/ray_cs: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc:

Re: [RFC PATCH v8 7/7] PCI / PM: Add support for the PCIe WAKE# signal for OF

2017-10-27 Thread jeffy
Hi Tony, thanks for your Acked-by. but i'm moving the dedicated wakeirq setup to the setup(), so that the irq would be tracked in the /proc/interrupts. please help to check the new v10 patches, thanks :) On 10/26/2017 10:42 PM, Tony Lindgren wrote: * Jeffy Chen

[PATCH] perf: Fix header.size for namespace events

2017-10-27 Thread Jiri Olsa
Reset header size for namespace events, otherwise it only gets bigger in ctx iterations. Cc: Hari Bathini Link: http://lkml.kernel.org/n/tip-nlo4gonz9d4guyb8153uk...@git.kernel.org Signed-off-by: Jiri Olsa --- kernel/events/core.c | 5 - 1

Re: rtlwifi: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc: Larry

Re: qtnfmac: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc: Igor

Re: drivers/wireless: rsi: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc: Amitkumar

Re: mwifiex: Convert timers to use timer_setup()

2017-10-27 Thread Kalle Valo
Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: Kalle Valo > Cc: Amitkumar

Re: [PATCH] panic: add support to update panic_timeout via DT

2017-10-27 Thread Sergey Senozhatsky
On (10/27/17 09:27), Jeetesh Burman wrote: > Add support to set 'panic_timeout' value via dtb to have > control from device tree. This makes sense when you have > multiple platforms support from same defconfig and > differentiated only through device tree blob. > The patch will check for panic

Re: [PATCH v2] cpuidle: ladder: Add per CPU PM QoS resume latency support

2017-10-27 Thread Rafael J. Wysocki
On Fri, Oct 27, 2017 at 4:01 AM, Ramesh Thomas wrote: > Individual CPUs may have special requirements to not enter > deep idle states. For example, a CPU running real time > applications would not want to enter deep idle states to > avoid latency impacts. At the same time

Re: [V2] bcma: Use bcma_debug and not pr_cont in MIPS driver

2017-10-27 Thread Kalle Valo
Joe Perches wrote: > Commit 66cc04424960 ("bcma: use bcma_debug and pr_cont in MIPS driver") > converted a printk(KERN_DEBUG to bcma_debug. > > bcma_debug is guarded by a #define DEBUG via pr_debug. > > This means that the bcma_debug will generally not be emitted > but any

Re: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Michal Hocko
On Fri 27-10-17 02:47:43, Du, Fan wrote: > > > >-Original Message- > >From: Hansen, Dave > >Sent: Thursday, October 26, 2017 10:03 PM > >To: Du, Fan ; a...@linux-foundation.org; h...@lst.de; > >Williams, Dan J ; mho...@kernel.org > >Cc:

Re: [PATCH] x86/alternatives: free smp_alt_modules when enable smp

2017-10-27 Thread zhouchengming
On 2017/10/27 15:49, Borislav Petkov wrote: On Fri, Oct 27, 2017 at 03:18:12PM +0800, Zhou Chengming wrote: In the current code, we don't free smp_alt_modules when enable smp, so have to wait module unload to call alternatives_smp_module_del() to free its smp_alt_module. This strategy has

Re: [PATCH v2 2/9] irqchip: stm32: add multi-bank management

2017-10-27 Thread Ludovic BARRE
Hi Julien thank for your review On 10/26/2017 04:36 PM, Julien Thierry wrote: Hi Ludovic, On 25/10/17 18:10, Ludovic Barre wrote: From: Ludovic Barre -Prepare to manage multi-bank of external interrupts (N banks of 32 inputs). -Prepare to manage registers offsets by

Re: possible deadlock in snd_seq_deliver_event

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 10:09 AM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master >

RE: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Du, Fan
>-Original Message- >From: Michal Hocko [mailto:mho...@kernel.org] >Sent: Friday, October 27, 2017 4:08 PM >To: Du, Fan >Cc: Hansen, Dave ; a...@linux-foundation.org; >h...@lst.de; Williams, Dan J ;

Re: [PATCH] staging: ccree: Fix indentation in ssi_buffer_mgr.c

2017-10-27 Thread Dan Carpenter
On Thu, Oct 26, 2017 at 06:53:42PM -0700, Stephen Brennan wrote: > In particular, fixes some over-indented if statement bodies as well as a > couple lines indented with spaces. checkpatch.pl now reports no warnings > on this file other than 80 character warnings. > > Signed-off-by: Stephen

[PATCH v5 12/20] genirq: Document vcpu_info usage for percpu_devid interrupts

2017-10-27 Thread Christoffer Dall
It is currently unclear how to set the VCPU affinity for a percpu_devid interrupt , since the Linux irq_data structure describes the state for multiple interrupts, one for each physical CPU on the system. Since each such interrupt can be associated with different VCPUs or none at all, associating

Re: [PATCH v2] arm64: prevent regressions in compressed kernel image size when upgrading to binutils 2.27

2017-10-27 Thread Ard Biesheuvel
On 26 October 2017 at 22:43, Nick Desaulniers wrote: > Upon upgrading to binutils 2.27, we found that our lz4 compressed kernel > images were significantly larger, resulting is 10ms boot time regressions. > > As noted by Rahul: > "aarch64 binaries uses RELA relocations,

[PATCH V2] panic: add support to update panic_timeout via DT

2017-10-27 Thread Jeetesh Burman
Add support to set 'panic_timeout' value via dtb to have control from device tree. This makes sense when you have multiple platforms support from same defconfig and differentiated only through device tree blob. The patch will check for panic time out value coming from dtb if it exists, otherwise

Re: WARNING in refcount_sub_and_test

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 11:36 AM, Eric Dumazet wrote: > On Fri, 2017-10-27 at 08:09 +0200, Dmitry Vyukov wrote: > >> Yes, I've noticed this one. It seems to happen on a first incoming >> network connection (ssh/scp). I have not seen it before. > >

Re: [RESEND PATCH v2 1/2] sched/deadline: Add cpudl_maximum_dl() for clean-up

2017-10-27 Thread Byungchul Park
On Tue, Oct 10, 2017 at 03:44:03PM +0900, Byungchul Park wrote: > Changes from v1 > - Enhance commit msg > - Prevent WARN in cpumask_test_cpu() in cpudl_find() when best_cpu == -1 > > -8<- > >From 7735382d07ae6a61d740ae39ba2ecf169d43b8a2 Mon Sep 17 00:00:00 2001 > From: Byungchul Park

Re: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Michal Hocko
On Fri 27-10-17 08:24:07, Du, Fan wrote: > > > >-Original Message- > >From: Michal Hocko [mailto:mho...@kernel.org] > >Sent: Friday, October 27, 2017 4:08 PM > >To: Du, Fan > >Cc: Hansen, Dave ; a...@linux-foundation.org; > >h...@lst.de;

Re: [PATCH] paravirt/locks: avoid modifying static key before jump_label_init()

2017-10-27 Thread Ingo Molnar
* Juergen Gross wrote: > Don't try to set the static virt_spin_lock_key to a value before > jump_label_init() has been called, as this will result in a WARN(). > > Solve the problem by introducing a new lock_init() hook called after > jump_label_init() instead of doing the

Re: [PATCHv4 1/1] [tools/selftests]: android/ion: userspace test utility for ion buffer sharing

2017-10-27 Thread Greg Kroah-Hartman
On Fri, Oct 27, 2017 at 11:04:49AM +0530, Pintu Kumar wrote: > Dear Laura, Shuah, > > Request you to please review the PATCHv4. A response with only 3 days, while everyone is traveling at conferences, is a bit unexpected. Give people a chance to catch up, a week at the least is the minimum

Re: [PATCH net-next 0/2] net: stmmac: Support DWMAC5 and TSN

2017-10-27 Thread Jose Abreu
Hi Jesus, On 26-10-2017 17:28, Jesus Sanchez-Palencia wrote: > Hi Jose, > > > On 10/25/2017 07:02 AM, Jose Abreu wrote: >> Hi, >> >> This adds support for a new IP version (5) of dwmac and for >> TSN features as defined by IEEE802.1Qbv-2015 and IEEE802.1Qbu. > > Just out of curiosity, are you

Re: kernel BUG at arch/x86/kvm/x86.c:LINE!

2017-10-27 Thread Wanpeng Li
Hi Dmitry, 2017-10-27 16:34 GMT+08:00 Dmitry Vyukov : > On Fri, Oct 27, 2017 at 10:34 AM, syzbot > > wrote: >> Hello, >> >> syzkaller hit the following crash on >> bb70832dd42b298d4303fd054bf18a78650ff04a

Re: [PATCH] x86: Remove unnecessary return from void function

2017-10-27 Thread Ingo Molnar
* Juergen Gross wrote: > On 23/06/17 18:23, Anton Vasilyev wrote: > > The patch removes unnecessary return from void function. > > > > Found by Linux Driver Verification project (linuxtesting.org). > > > > Signed-off-by: Anton Vasilyev > > Reviewed-by:

Re: Linux 3.18.78

2017-10-27 Thread Greg KH
diff --git a/Makefile b/Makefile index 6f71303316d5..527627294778 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 77 +SUBLEVEL = 78 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S index

Linux 3.18.78

2017-10-27 Thread Greg KH
I'm announcing the release of the 3.18.78 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web

Query regarding srcu_funnel_exp_start()

2017-10-27 Thread Neeraj Upadhyay
Hi, One query regarding srcu_funnel_exp_start() function in kernel/rcu/srcutree.c. static void srcu_funnel_exp_start(struct srcu_struct *sp, struct srcu_node *snp, unsigned long s) { if (!ULONG_CMP_LT(sp->srcu_gp_seq_needed_exp, s))

Re: [PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters

2017-10-27 Thread Jose Abreu
Hi Jesus, On 26-10-2017 17:23, Jesus Sanchez-Palencia wrote: > Hi Jose, > > > On 10/26/2017 03:08 AM, Jose Abreu wrote: >> Hi Andrew, >> >> On 26-10-2017 10:03, Andrew Lunn wrote: These parameters may also need to change in runtime depending on the scheduled traffic. Unfortunately, net

Re: Linux 4.4.95

2017-10-27 Thread Greg KH
diff --git a/Makefile b/Makefile index ff9d6bbf2210..57e1ea2a189a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 94 +SUBLEVEL = 95 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S

Linux 4.4.95

2017-10-27 Thread Greg KH
I'm announcing the release of the 4.4.95 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 02/14] soundwire: Add SoundWire bus type

2017-10-27 Thread Greg Kroah-Hartman
On Thu, Oct 26, 2017 at 02:03:42PM +0530, Vinod Koul wrote: > On Fri, Oct 20, 2017 at 09:31:34PM +0530, Vinod Koul wrote: > > On Fri, Oct 20, 2017 at 12:45:28PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Oct 19, 2017 at 08:33:18AM +0530, Vinod Koul wrote: > > > > > +struct bus_type

Re: [PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters

2017-10-27 Thread Jose Abreu
Hi Andrew, On 26-10-2017 22:56, Andrew Lunn wrote: >> About my patches, what I think would be better now would be to >> drop the configuration by DT and integrate the remaining >> configuration, letting the EST parameters be populated by SoC >> specific wrappers. > Hi Jose > > The problem with

Re: kernel BUG at arch/x86/kvm/x86.c:LINE!

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 10:48 AM, Wanpeng Li wrote: > Hi Dmitry, > 2017-10-27 16:34 GMT+08:00 Dmitry Vyukov : >> On Fri, Oct 27, 2017 at 10:34 AM, syzbot >> >> wrote: >>> Hello, >>>

Re: [PATCH 3/9] staging: lustre: ldlm: remove unneeded 'err' arg to ldlm_process_flock_lock()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > This arg is used to return an error code, but the returned code is never > looked at. So there is no point returning it. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > ---

Re: kernel BUG at arch/x86/kvm/x86.c:LINE!

2017-10-27 Thread Dmitry Vyukov
On Fri, Oct 27, 2017 at 11:11 AM, Dmitry Vyukov wrote: > On Fri, Oct 27, 2017 at 10:48 AM, Wanpeng Li wrote: >> Hi Dmitry, >> 2017-10-27 16:34 GMT+08:00 Dmitry Vyukov : >>> On Fri, Oct 27, 2017 at 10:34 AM, syzbot >>>

Re: Proposal: rename tpm1_eventlog.c and tpm2_eventlog.c

2017-10-27 Thread Thiebaud Weksteen
On Thu, Oct 26, 2017 at 4:14 PM, Jarkko Sakkinen wrote: > On Wed, Oct 25, 2017 at 03:18:48PM +0200, Jarkko Sakkinen wrote: >> > Since this may conflict with the last patch set I sent, are you happy >> > for me to base this new set on tpmdd/master? >> >> What about

Re: [PATCH] Documentation: support kernel enforcement

2017-10-27 Thread Greg Kroah-Hartman
On Wed, Oct 25, 2017 at 03:27:07PM +0200, Jarkko Sakkinen wrote: > I'm sorry that I forgot to add my name on time. > > Signed-off-by: Jarkko Sakkinen > --- > Documentation/process/kernel-enforcement-statement.rst | 1 + > 1 file changed, 1 insertion(+) > > diff

RE: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Du, Fan
>-Original Message- >From: Michal Hocko [mailto:mho...@kernel.org] >Sent: Friday, October 27, 2017 5:09 PM >To: Du, Fan >Cc: Hansen, Dave ; a...@linux-foundation.org; >h...@lst.de; Williams, Dan J ;

[PATCH v3 2/2] kprobes: initialize probed_mod to NULL

2017-10-27 Thread Zhou Chengming
When check_kprobe_address_safe() return fail, the probed_mod should be set to NULL, because no module refcount held. And we initialize probed_mod to NULL in register_kprobe() for the same reason. Signed-off-by: Zhou Chengming --- kernel/kprobes.c | 3 ++- 1 file

[PATCH v3 1/2] kprobes: avoid the kprobe being re-registered

2017-10-27 Thread Zhou Chengming
Changes: - We should put the modifies of the kprobe after the re-reg check. - And then the address_safe check. Old code use check_kprobe_rereg() to check if the kprobe has been registered already, but check_kprobe_rereg() will release the kprobe_mutex then, so maybe two paths will pass the check

Re: [PATCH 5/9] staging: lustre: ldlm: remove unused 'overlaps' variable

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > 'overlaps' is never used, only incremented. > > Signed-off-by: NeilBrown Reviewed-by: Andreas Dilger > --- > drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |3 --- > 1 file changed,

Re: [PATCH V12 2/5] mmc: block: Add blk-mq support

2017-10-27 Thread Ulf Hansson
On 24 October 2017 at 10:40, Adrian Hunter wrote: > Define and use a blk-mq queue. Discards and flushes are processed > synchronously, but reads and writes asynchronously. In order to support > slow DMA unmapping, DMA unmapping is not done until after the next request >

Re: WARNING in sysfs_remove_group

2017-10-27 Thread Greg KH
On Fri, Oct 27, 2017 at 11:10:08AM +0200, Dmitry Vyukov wrote: > On Fri, Oct 27, 2017 at 10:43 AM, Greg KH wrote: > > On Fri, Oct 27, 2017 at 01:29:31AM -0700, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >>

Re: [PATCH] fs/seq_file: clear private buffer when resetting iterator

2017-10-27 Thread Eduard
Sorry but I messed up sending the patch and it ended up with two entries in the From header field, which git am will parse as: "Author: sa...@posteo.net " rather than: "Author: Eduard Sanou " The right From header should be the one seen in this email.

Re: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Michal Hocko
On Fri 27-10-17 09:17:07, Du, Fan wrote: [...] > >But you cannot touch rss and pss because you are going to break existing > >users as Dave already pointed out. > > Why it will break something? Do you mind to elaborate? > The vma part of each smaps portion has associated file if does exist, >

Re: drivers/wireless: ath: Convert timers to use timer_setup()

2017-10-27 Thread Kees Cook
On Fri, Oct 27, 2017 at 11:18 AM, Kalle Valo wrote: > Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to >> all timer callbacks, switch to using the new timer_setup() and from_timer() >> to pass the

Re: general protection fault in n_tty_receive_buf_common

2017-10-27 Thread Jiri Slaby
On 10/27/2017, 11:24 AM, Dmitry Vyukov wrote: > On Fri, Oct 27, 2017 at 11:22 AM, syzbot > > wrote: >> Hello, >> >> syzkaller hit the following crash on >> 623ce3456671ea842c0ebda79c38655c8c04af74 >>

Re: [PATCH 7/9] staging: lustre: ldlm: tidy list walking in ldlm_flock()

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > Use list_for_each_entry variants to > avoid the explicit list_entry() calls. > This allows us to use list_for_each_entry_safe_from() > instread of adding a local list-walking macro. > > Also improve some comments so that it is more

Re: possible deadlock in lru_add_drain_all

2017-10-27 Thread Michal Hocko
On Fri 27-10-17 02:22:40, syzbot wrote: > Hello, > > syzkaller hit the following crash on > a31cc455c512f3f1dd5f79cac8e29a7c8a617af8 > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is

Re: [PATCH 8/9] staging: lustre: ldlm: remove unnecessary 'ownlocks' variable.

2017-10-27 Thread Dilger, Andreas
On Oct 22, 2017, at 18:53, NeilBrown wrote: > > Now that the code has been simplified, 'ownlocks' is not > necessary. > > The loop which sets it exits with 'lock' having the same value as > 'ownlocks', or pointing to the head of the list if ownlocks is NULL. > > The current

[PATCH] powerpc/kernel/sysfs: Export ldbar spr to sysfs

2017-10-27 Thread Anju T Sudhakar
Add ldbar spr to sysfs. The spr will hold thread level In-Memory Collection (IMC) counter configuration data. Signed-off-by: Anju T Sudhakar Acked-by: Madhavan Srinivasan --- arch/powerpc/kernel/sysfs.c | 8 1 file changed, 8

RE: [PATCH v4] Add /proc/PID/smaps support for DAX

2017-10-27 Thread Du, Fan
>-Original Message- >From: Michal Hocko [mailto:mho...@kernel.org] >Sent: Friday, October 27, 2017 4:43 PM >To: Du, Fan >Cc: Hansen, Dave ; a...@linux-foundation.org; >h...@lst.de; Williams, Dan J ;

  1   2   3   4   5   6   7   8   9   10   >