Re: FS-Cache: Duplicate cookie detected

2019-03-12 Thread Christian Kujau
On Mon, 11 Mar 2019, David Howells wrote: > I've a couple more patches for you - one a bugfix and one that will print more > information. They don't actually affect the problem you're seeing. I'll post > them as replies to this message. Thanks for the patches. I've applied all three to v5.0 and

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-12 Thread Dmitry Vyukov
On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton wrote: > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > wrote: > > > syzbot has bisected this bug to: > > > > commit 29a4b8e275d1f10c51c7891362877ef6cffae9e7 > > Author: Shakeel Butt > > Date: Wed Jan 9 22:02:21 2019 + > > > > memcg:

[PATCH v2] hid: logitech: check the return value of create_singlethread_workqueue

2019-03-12 Thread Kangjie Lu
create_singlethread_workqueue may fail and return NULL. The fix checks if it is NULL to avoid NULL pointer dereference. Also, the fix moves the call of create_singlethread_workqueue earlier to avoid resource-release issues. Signed-off-by: Kangjie Lu --- drivers/hid/hid-logitech-hidpp.c | 8

Re: [PATCH 2/3] arm64: dts: fsl: Build the Librem5 devkit devicetree

2019-03-12 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:48 AM Angus Ainslie (Purism) wrote: > > Compile the Librem5 devkit device tree > > Signed-off-by: Angus Ainslie (Purism) > --- > arch/arm64/boot/dts/freescale/Makefile | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm64/boot/dts/freescale/Makefile >

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-12 Thread Andrew Morton
On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > wrote: > > > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > > wrote: > > > > > syzbot has bisected this bug to: > > > > > > commit 29a4b8e275d1f10c51c7891362877ef6cffae9e7 > > > Author:

Re: [RFC PATCH v3 0/5] tracing: common error_log for ftrace

2019-03-12 Thread Masami Hiramatsu
Hi Tom, On Tue, 5 Mar 2019 23:06:46 +0900 Masami Hiramatsu wrote: > On Mon, 4 Mar 2019 17:36:43 -0600 > > Changes from v2: > > > > - Added [n] numbering as suggested by Masami > Hmm, this seems a bit different what I suggested. I'm trying to port probe event's error report on your error

Re: [PATCH 3/3] arm64: librem5-devkit: Add defconfig for the Librem5 devkit

2019-03-12 Thread Daniel Baluta
On Tue, Mar 12, 2019 at 1:47 AM Angus Ainslie (Purism) wrote: > > Signed-off-by: Angus Ainslie (Purism) Hi Angus, My impression was that for arm64 world there will be only one defconfig. So, I'm not sure if this patch would be acceptable. thanks, Daniel. > --- >

Re: [PATCH] PM / OPP: Update performance state when freq == old_freq

2019-03-12 Thread Jorge Ramirez
On 3/12/19 05:57, Viresh Kumar wrote: > At boot up, CPUfreq core performs a sanity check to see if the system is > running at a frequency defined in the frequency table of the CPU. If so, > we try to find a valid frequency (lowest frequency greater than the > currently programmed frequency) from

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread maowenan
ping... On 2019/3/9 11:26, Mao Wenan wrote: > Using is_zero_ether_addr() instead of directly use > memcmp() to determine if the ethernet address is all > zeros. > > Signed-off-by: Mao Wenan > --- > drivers/staging/rtl8188eu/core/rtw_mlme.c | 3 +-- > 1 file changed, 1 insertion(+), 2

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread Joe Perches
On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > ping... > > On 2019/3/9 11:26, Mao Wenan wrote: > > Using is_zero_ether_addr() instead of directly use > > memcmp() to determine if the ethernet address is all > > zeros. [] > > diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c > >

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-12 Thread Eric Biggers
On Mon, Mar 11, 2019 at 11:25:41PM -0700, Andrew Morton wrote: > On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > > > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > > wrote: > > > > > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > > > wrote: > > > > > > > syzbot has bisected this

Re: [PATCH] mfd: cros: Update EC protocol to match current EC code

2019-03-12 Thread Gwendal Grignou
Regarding: """While we are here I'd suggest if we can also fix the few errors (3) and warnings (5) spotted by checkpatch. With that it's an ack from my side.""" These errors and warning are for code that is not used by the kernel: WARNING: __aligned(size) is preferred over

[PATCH 1/1] PM / Domains: Avoid a potential deadlock

2019-03-12 Thread Jiada Wang
Lockdep warns that prepare_lock and genpd->mlock can cause a deadlock the deadlock scenario is like following: First thread is probing cs2000 cs2000_probe() clk_register() __clk_core_init() clk_prepare_lock()> acquires prepare_lock

Re: [PATCH v8 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-12 Thread Yash Shah
On Mon, Mar 11, 2019 at 6:59 PM Uwe Kleine-König wrote: > > Hello, > > On Mon, Mar 11, 2019 at 05:10:17PM +0530, Yash Shah wrote: > > On Fri, Mar 8, 2019 at 5:27 PM Uwe Kleine-König > > wrote: > > > On Fri, Mar 08, 2019 at 04:59:36PM +0530, Yash Shah wrote: > > > > On Thu, Mar 7, 2019 at 8:57 PM

Re: [PATCH 1/3] userfaultfd/sysctl: introduce unprivileged_userfaultfd

2019-03-12 Thread Mike Rapoport
On Mon, Mar 11, 2019 at 05:36:59PM +0800, Peter Xu wrote: > Introduce a new sysctl called "vm.unprivileged_userfaultfd" that can > be used to decide whether userfaultfd syscalls are allowed by > unprivileged users. It'll allow three modes: > > - disabled: disallow unprivileged users to use

[PATCH v2] media: rga: fix NULL pointer dereferences and a memory leak

2019-03-12 Thread Kangjie Lu
In case __get_free_pages fails, the fix releases resources and return -ENOMEM to avoid NULL pointer dereferences. Also, the fix frees pages when video_register_device fails to avoid a memory leak. Signed-off-by: Kangjie Lu --- drivers/media/platform/rockchip/rga/rga.c | 15 ++- 1

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread maowenan
On 2019/3/12 14:35, Joe Perches wrote: > On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: >> ping... >> >> On 2019/3/9 11:26, Mao Wenan wrote: >>> Using is_zero_ether_addr() instead of directly use >>> memcmp() to determine if the ethernet address is all >>> zeros. > [] >>> diff --git

Re: FS-Cache: Duplicate cookie detected

2019-03-12 Thread David Howells
Christian Kujau wrote: > My /usr/local/src mount was mounted with vers=4.2 (default), while > nfstest_cache was mounting its test-mount with vers=4.1! Apart from the > different rsize/wsize values, the version number stood out. And indeed, > when I mount my regular NFS mount /usr/local/src

Re: [PATCH 0/3] userfaultfd: allow to forbid unprivileged users

2019-03-12 Thread Mike Rapoport
Hi Peter, On Mon, Mar 11, 2019 at 05:36:58PM +0800, Peter Xu wrote: > Hi, > > (The idea comes from Andrea, and following discussions with Mike and > other people) > > This patchset introduces a new sysctl flag to allow the admin to > forbid users from using userfaultfd: > > $ cat

Re: [PATCH] mm/swap: Avoid undefined behavior in __swapoffset

2019-03-12 Thread Pi-Hsun Shih
On Thu, Mar 7, 2019 at 9:23 PM Michal Hocko wrote: > > On Thu 07-03-19 20:47:52, Pi-Hsun Shih wrote: > > On Thu, Mar 7, 2019 at 8:23 PM Michal Hocko wrote: > > > > > > On Thu 07-03-19 17:46:50, Pi-Hsun Shih wrote: > > > > Use offsetof to calculate offset of a field to avoid UBSAN warning like: >

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread Joe Perches
On Tue, 2019-03-12 at 14:58 +0800, maowenan wrote: > On 2019/3/12 14:35, Joe Perches wrote: > > On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > > > ping... > > > > > > On 2019/3/9 11:26, Mao Wenan wrote: > > > > Using is_zero_ether_addr() instead of directly use > > > > memcmp() to determine

Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-12 Thread Andy Shevchenko
On Tue, Mar 12, 2019 at 7:04 AM Masahiro Yamada wrote: > On Sun, Mar 3, 2019 at 4:48 PM William Breathitt Gray > wrote: > > > > This macro iterates for each 8-bit group of bits (clump) with set bits, > > within a bitmap memory region. For each iteration, "start" is set to the > > bit offset of

Re: [PATCH net] staging: rtl8188eu: use is_zero_ether_addr() instead of memcmp()

2019-03-12 Thread Julia Lawall
On Tue, 12 Mar 2019, maowenan wrote: > > > On 2019/3/12 14:35, Joe Perches wrote: > > On Tue, 2019-03-12 at 14:29 +0800, maowenan wrote: > >> ping... > >> > >> On 2019/3/9 11:26, Mao Wenan wrote: > >>> Using is_zero_ether_addr() instead of directly use > >>> memcmp() to determine if the

RE: [PATCH v5] PM / devfreq: Restart previous governor if new governor fails to start

2019-03-12 Thread MyungJoo Ham
>From: Saravana Kannan > >If the new governor fails to start, switch back to old governor so that the >devfreq state is not left in some weird limbo. > >[Mjungjoo: assume fatal on revert failure and set df->governor to NULL] >Signed-off-by: Sibi Sankar >Signed-off-by: Saravana Kannan

Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-12 Thread Andy Shevchenko
On Tue, Mar 12, 2019 at 6:40 AM Masahiro Yamada wrote: > On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray > wrote: > > > > Replace verbose implementation in set_multiple callback with > > for_each_set_clump8 macro to simplify code and improve clarity. An > > improvement in this case is that

Re: [PATCH v9 1/9] bitops: Introduce the for_each_set_clump8 macro

2019-03-12 Thread William Breathitt Gray
On Tue, Mar 12, 2019 at 02:36:21PM +0900, Masahiro Yamada wrote: > On Fri, Mar 8, 2019 at 5:57 PM William Breathitt Gray > wrote: > > > > On Fri, Mar 08, 2019 at 09:31:00AM +0100, Linus Walleij wrote: > > > On Sun, Mar 3, 2019 at 8:47 AM William Breathitt Gray > > > wrote: > > > > > > > This

Re: [PATCH v5 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-12 Thread Uwe Kleine-König
Hello, On Thu, Feb 14, 2019 at 04:59:03PM +0100, Uwe Kleine-König wrote: > On Wed, Feb 13, 2019 at 01:37:03PM +0100, Thierry Reding wrote: > > On Thu, Feb 07, 2019 at 11:16:57AM +0100, Uwe Kleine-König wrote: > > > On Tue, Jan 29, 2019 at 05:13:19PM +0530, Yash Shah wrote: > > [...] > > > > diff

Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-12 Thread William Breathitt Gray
On Tue, Mar 12, 2019 at 01:36:57PM +0900, Masahiro Yamada wrote: > On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray > wrote: > > > > Replace verbose implementation in set_multiple callback with > > for_each_set_clump8 macro to simplify code and improve clarity. An > > improvement in this

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-03-12 Thread Aaron Lu
On Mon, Mar 11, 2019 at 05:20:19PM -0700, Greg Kerr wrote: > On Mon, Mar 11, 2019 at 4:36 PM Subhra Mazumdar > wrote: > > > > > > On 3/11/19 11:34 AM, Subhra Mazumdar wrote: > > > > > > On 3/10/19 9:23 PM, Aubrey Li wrote: > > >> On Sat, Mar 9, 2019 at 3:50 AM Subhra Mazumdar > > >> wrote: > >

Re: [PATCH v3 1/2] x86/mm/KASLR: Only build one PUD entry of area for real mode trampoline

2019-03-12 Thread Kirill A. Shutemov
On Fri, Mar 08, 2019 at 10:56:15AM +0800, Baoquan He wrote: > The current code builds identity mapping for real mode treampoline by > borrowing page tables from the direct mapping section if KASLR is > enabled. It will copy present entries of the first PUD table in 4-level > paging mode, or the

Re: [PATCH v3 2/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-03-12 Thread Kirill A. Shutemov
On Fri, Mar 08, 2019 at 10:56:16AM +0800, Baoquan He wrote: > The current randomization granularity of 5-level is 512 GB. Improve > it to 1 GB. This can add more randomness to memory region KASLR in > 5-level paging mode > > Signed-off-by: Baoquan He Acked-by: Kirill A. Shutemov -- Kirill

Re: [PATCH] dt-bindings: clock: imx8mq: Fix numbering overlaps and gaps

2019-03-12 Thread Patrick Wildt
On Fri, Mar 08, 2019 at 07:29:05AM -0800, Stephen Boyd wrote: > It's mostly about making sure that any existing dtbs don't have their > numbers shifted around. So hopefully any overlapping identifiers aren't > in use yet and then those ids can be changed while leaving the ones that > are in use

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-03-12 Thread Aubrey Li
On Tue, Mar 12, 2019 at 7:36 AM Subhra Mazumdar wrote: > > > On 3/11/19 11:34 AM, Subhra Mazumdar wrote: > > > > On 3/10/19 9:23 PM, Aubrey Li wrote: > >> On Sat, Mar 9, 2019 at 3:50 AM Subhra Mazumdar > >> wrote: > >>> expected. Most of the performance recovery happens in patch 15 which, > >>>

[PATCH] b/arch/x86/mm/pti.c - make local symbols static

2019-03-12 Thread Valdis Klētnieks
With 'make C=2 W=1', sparse and gcc both complain: CHECK arch/x86/mm/pti.c arch/x86/mm/pti.c:84:3: warning: symbol 'pti_mode' was not declared. Should it be static? arch/x86/mm/pti.c:605:6: warning: symbol 'pti_set_kernel_image_nonglobal' was not declared. Should it be static? CC

Re: [PATCH 0/3] userfaultfd: allow to forbid unprivileged users

2019-03-12 Thread Kirill A. Shutemov
On Mon, Mar 11, 2019 at 05:36:58PM +0800, Peter Xu wrote: > Hi, > > (The idea comes from Andrea, and following discussions with Mike and > other people) > > This patchset introduces a new sysctl flag to allow the admin to > forbid users from using userfaultfd: > > $ cat

Re: [RFC] simple_lmk: Introduce Simple Low Memory Killer for Android

2019-03-12 Thread Michal Hocko
On Mon 11-03-19 15:15:35, Suren Baghdasaryan wrote: > On Mon, Mar 11, 2019 at 1:46 PM Sultan Alsawaf wrote: > > > > On Mon, Mar 11, 2019 at 01:10:36PM -0700, Suren Baghdasaryan wrote: > > > The idea seems interesting although I need to think about this a bit > > > more. Killing processes based on

[PATCH] notifiers: double register detection

2019-03-12 Thread Vasily Averin
By design notifiers can be registerd once only, 2nd register attempt called by mistake silently corrupts notifiers list. Proposed check cannot prevent described problem, however it allows to detect its reason quickly without coredump analyze. Signed-off-by: Vasily Averin --- kernel/notifier.c

[PATCH] kernel/events/core.c - make perf_swevent_init_cpu static

2019-03-12 Thread Valdis Klētnieks
'make W=1' causes a gcc complaint: CC kernel/events/core.o kernel/events/core.c:11877:6: warning: no previous prototype for 'perf_swevent_init_cpu' [-Wmissing-prototypes] 11877 | void perf_swevent_init_cpu(unsigned int cpu) | ^ It's not referenced anyplace

Re: [PATCH] mm/swap: Avoid undefined behavior in __swapoffset

2019-03-12 Thread Michal Hocko
On Tue 12-03-19 15:02:38, Pi-Hsun Shih wrote: > On Thu, Mar 7, 2019 at 9:23 PM Michal Hocko wrote: > > > > On Thu 07-03-19 20:47:52, Pi-Hsun Shih wrote: > > > On Thu, Mar 7, 2019 at 8:23 PM Michal Hocko wrote: > > > > > > > > On Thu 07-03-19 17:46:50, Pi-Hsun Shih wrote: > > > > > Use offsetof

Re: [PATCH 09/42] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-12 Thread Enrico Weigelt, metux IT consult
On 12.03.19 03:38, Baolin Wang wrote: > On Tue, 12 Mar 2019 at 02:55, Enrico Weigelt, metux IT consult > wrote: >> >> Use the new helper that wraps the calls to platform_get_resource() >> and devm_ioremap_resource() together. >> >> Signed-off-by: Enrico Weigelt, metux IT consult >> --- >>

[PATCH v2] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-12 Thread Enrico Weigelt, metux IT consult
Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/gpio/gpio-eic-sprd.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/gpio-eic-sprd.c

[PATCH v9 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2019-03-12 Thread Yash Shah
DT documentation for PWM controller added. Signed-off-by: Wesley W. Terpstra [Atish: Compatible string update] Signed-off-by: Atish Patra Signed-off-by: Yash Shah Reviewed-by: Rob Herring --- .../devicetree/bindings/pwm/pwm-sifive.txt | 33 ++ 1 file changed, 33

[PATCH v9 0/2] PWM support for HiFive Unleashed

2019-03-12 Thread Yash Shah
This patch series adds a PWM driver and DT documentation for HiFive Unleashed board. The patches are mostly based on Wesley's patch. v9 - Use appropriate bitfield macros - Add approx_period in pwm_sifive_ddata struct and related changes - Correct the eqn for calculation of frac (in

[PATCH v9 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-12 Thread Yash Shah
Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. Signed-off-by: Wesley W. Terpstra [Atish: Various fixes and code cleanup] Signed-off-by: Atish Patra Signed-off-by: Yash Shah --- drivers/pwm/Kconfig | 11 ++ drivers/pwm/Makefile | 1 +

Re: [PATCH] mm/swap: Avoid undefined behavior in __swapoffset

2019-03-12 Thread Pi-Hsun Shih
On Tue, Mar 12, 2019 at 4:07 PM Michal Hocko wrote: > > On Tue 12-03-19 15:02:38, Pi-Hsun Shih wrote: > > On Thu, Mar 7, 2019 at 9:23 PM Michal Hocko wrote: > > > > > > On Thu 07-03-19 20:47:52, Pi-Hsun Shih wrote: > > > > On Thu, Mar 7, 2019 at 8:23 PM Michal Hocko wrote: > > > > > > > > > >

[PATCH] kernel/irq/devres.c - fix kerneldoc comment

2019-03-12 Thread Valdis Klētnieks
Building with 'make W=1' complains: CC kernel/irq/devres.o kernel/irq/devres.c:104: warning: Excess function parameter 'thread_fn' description in 'devm_request_any_context_irq' Fix up the kerneldoc comment Signed-off-by: Valdis Kletnieks --- diff --git a/kernel/irq/devres.c

[PATCH v2] mm/swap: Use offsetof instead of custom __swapoffset macro.

2019-03-12 Thread Pi-Hsun Shih
Use offsetof to calculate offset of a field to take advantage of compiler built-in version when possible, and avoid UBSAN warning when compiling with Clang: UBSAN: Undefined behaviour in mm/swapfile.c:3010:38 member access within null pointer of type 'union swap_header' CPU: 6 PID: 1833 Comm:

Re: [PATCH] notifiers: double register detection

2019-03-12 Thread Vasily Averin
Dear Andrew, could you please pick up this patch? Few years ago I investigated described problem, host was cycled because of notifier's list corruption. I've prepared this patch applied it to OpenVZ kernel and sent this patch first time, but nobody commented it. Later it helped us to detect

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-12 Thread Dmitry Vyukov
On Tue, Mar 12, 2019 at 7:43 AM Eric Biggers wrote: > > On Mon, Mar 11, 2019 at 11:25:41PM -0700, Andrew Morton wrote: > > On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > > > > > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > > > wrote: > > > > > > > > On Mon, 11 Mar 2019 06:08:01

Re: [PATCH v2] mm/swap: Use offsetof instead of custom __swapoffset macro.

2019-03-12 Thread Michal Hocko
On Tue 12-03-19 16:18:59, Pi-Hsun Shih wrote: > Use offsetof to calculate offset of a field to take advantage of > compiler built-in version when possible, and avoid UBSAN warning when > compiling with Clang: > > UBSAN: Undefined behaviour in mm/swapfile.c:3010:38 > member access within null

Re: [PATCH v2] ARM: dts: rockchip: remove disable-wp from rv1108-elgin-r1 emmc node

2019-03-12 Thread Heiko Stuebner
Am Sonntag, 10. März 2019, 16:19:28 CET schrieb Johan Jonker: > The mmc.txt didn't explicitly say disable-wp is for SD card slot only, > but that is what it was designed for in the first place. > Remove all disable-wp from emmc or sdio controllers. > > Signed-off-by: Johan Jonker > Reviewed-by:

Re: New syscalls (was: Re: linux-next: manual merge of the pidfd tree with the y2038 tree (now block and tip trees))

2019-03-12 Thread Arnd Bergmann
On Mon, Mar 11, 2019 at 10:43 PM Christian Brauner wrote: > On Mon, Mar 11, 2019 at 10:38:07PM +0100, Arnd Bergmann wrote: > > On Mon, Mar 11, 2019 at 9:36 AM Geert Uytterhoeven > > wrote: > > > > > > Shall each architcture maintainer take care of this hxxself, or will > > > this be done in > >

[PATCH] arm64: dts: meson-gxl-s905d-phicomm-n1: add status LED

2019-03-12 Thread Chuanhong Guo
There is a white LED on the front panel behind the logo and the manufacturer uses that LED to indicate network and USB drive status. Signed-off-by: Chuanhong Guo --- .../boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts| 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: KASAN: null-ptr-deref Read in reclaim_high

2019-03-12 Thread Dmitry Vyukov
On Tue, Mar 12, 2019 at 7:25 AM Andrew Morton wrote: > > On Tue, 12 Mar 2019 07:08:38 +0100 Dmitry Vyukov wrote: > > > On Tue, Mar 12, 2019 at 12:37 AM Andrew Morton > > wrote: > > > > > > On Mon, 11 Mar 2019 06:08:01 -0700 syzbot > > > wrote: > > > > > > > syzbot has bisected this bug to: >

[PATCH] thunderbolt: property: fix a NULL pointer dereference

2019-03-12 Thread Kangjie Lu
In case kzalloc fails, the fix releases resources and returns -ENOMEM to avoid the NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/thunderbolt/property.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/thunderbolt/property.c b/drivers/thunderbolt/property.c

[PATCH] kernel/time/jiffies.c - make variable static

2019-03-12 Thread Valdis Klētnieks
sparse complains: CHECK kernel/time/jiffies.c kernel/time/jiffies.c:92:20: warning: symbol 'refined_jiffies' was not declared. Should it be static? __clocksource_register() is passed a pointer, and nothing else refers to it. Make it static. Signed-off-by: Valdis Kletnieks --- diff --git

Re: [PATCH] ARM: dts: rockchip: rk3288: fix missing grf reference in tsadc node

2019-03-12 Thread Heiko Stuebner
Am Sonntag, 24. Februar 2019, 22:52:00 CET schrieb Jonas Karlman: > The following message can be seen during boot: > > rockchip-thermal ff28.tsadc: Missing rockchip,grf property > > Fix this by adding rockchip,grf property to tsadc node. > > Fixes: b67d6bc38823 ("ARM: dts: rockchip: add

Re: [PATCH] ARM: dts: rockchip: Enable HDMI CEC on rk3288-tinker-s

2019-03-12 Thread Heiko Stuebner
Am Sonntag, 24. Februar 2019, 21:10:06 CET schrieb Jonas Karlman: > This patch enables HDMI CEC on Tinker Board S > > Signed-off-by: Jonas Karlman applied for 5.2 Thanks Heiko

Re: [PATCH] spi: spi-fsl-qspi: call spi_unregister_controller

2019-03-12 Thread Volker Haspel
On Mon, 11 Mar 2019 17:03:34 + Mark Brown wrote: > On Thu, Mar 07, 2019 at 11:30:08AM +0100, Volker Haspel wrote: > > The driver does not clearly unregister the spi controller. > > Therefore calling an unbind and bind again will end up in a > > Kernel crash. > > Each driver who calls

[GIT PULL] fuse update for 5.1

2019-03-12 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git tags/fuse-update-5.1 Scalability and performance improvements, as well as minor bug fixes and cleanups. Thanks, Miklos Chad Austin

[PATCH v3 1/9] mtd: rawnand: denali: use nand_chip pointer more for internal functions

2019-03-12 Thread Masahiro Yamada
With the recent refactoring, the NAND driver hooks now take a pointer to nand_chip. Add to_denali() in order to convert (struct nand_chip *) to (struct denali_nand_info *) directly. It is more useful than the current mtd_to_denali(). I changed some helper functions to take (struct nand_chip *).

[PATCH v3 9/9] mtd: rawnand: denali: clean up coding style

2019-03-12 Thread Masahiro Yamada
Eliminate the following reports from 'scripts/checkpatch.pl --strict'. CHECK: Prefer kernel type 'u8' over 'uint8_t' CHECK: Prefer kernel type 'u32' over 'uint32_t' CHECK: Alignment should match open parenthesis I slightly changed denali_check_erased_page() to make it shorter.

[PATCH v3 5/9] mtd: rawnand: denali: use bool type instead of int where appropriate

2019-03-12 Thread Masahiro Yamada
Use 'bool' type for the following boolean parameters. - write (write or read?) - raw (raw access or not?) - dma_avail (DMA engine available or not?) Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: - Use bool for dma_avail as well drivers/mtd/nand/raw/denali.c | 27

[PATCH v3 2/9] mtd: rawnand: denali: refactor syndrome layout handling for raw access

2019-03-12 Thread Masahiro Yamada
The Denali IP adopts the syndrome page layout (payload and ECC are interleaved). The *_page_raw() and *_oob() callbacks are complicated because they must hide the underlying layout used by the hardware, and always return contiguous in-band and out-of-band data. Currently, similar code is

[PATCH v3 6/9] mtd: rawnand: denali_pci: rename goto labels

2019-03-12 Thread Masahiro Yamada
As Documentation/process/coding-style.rst says, choose label names which say what the goto does. The out_ label style is already used in denali_dt.c. Rename likewise for denali_pci.c Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None drivers/mtd/nand/raw/denali_pci.c |

[PATCH v3 3/9] mtd: rawnand: denali: remove unneeded casts in denali_{read,write}_pio

2019-03-12 Thread Masahiro Yamada
Since (u32 *) can accept an opaque pointer, the explicit casting from (void *) to (u32 *) is redundant. Change the function argument type to remove the casts. Signed-off-by: Masahiro Yamada --- Changes in v3: None Changes in v2: None drivers/mtd/nand/raw/denali.c | 12 +--- 1 file

[PATCH v3 0/9] mtd: rawnand: denali: exec_op(), controller/chip separation, and cleanups

2019-03-12 Thread Masahiro Yamada
I took time for the Denali driver to catch up with the latest framework. - switch over to exec_op() and remove legacy hooks - separate controller/chips - various cleanups Major changes in v3: - Drop "mtd: rawnand: denali: use more precise timeout for NAND_OP_WAITRDT_INSTR" entirely

[PATCH v3 4/9] mtd: rawnand: denali: switch over to ->exec_op() from legacy hooks

2019-03-12 Thread Masahiro Yamada
Implement ->exec_op(), and remove the deprecated hooks. Signed-off-by: Masahiro Yamada --- Changes in v3: - Fix byte-swap in denali_exec_in16() Changes in v2: None drivers/mtd/nand/raw/denali.c | 234 +++--- 1 file changed, 126 insertions(+), 108

[PATCH v3 8/9] mtd: rawnand: denali: remove DENALI_NR_BANKS macro

2019-03-12 Thread Masahiro Yamada
Use the runtime-detected denali->nbanks instead of hard-coded DENALI_NR_BANKS (=4). The actual number of banks depends on the IP configuration, and can be less than DENALI_NR_BANKS. It is pointless to touch registers of unsupported banks. Signed-off-by: Masahiro Yamada --- Changes in v3: None

[PATCH v3 7/9] mtd: rawnand: denali: decouple controller and NAND chips

2019-03-12 Thread Masahiro Yamada
Currently, this driver sticks to the legacy NAND model because it was upstreamed before commit 2d472aba15ff ("mtd: nand: document the NAND controller/NAND chip DT representation"). However, relying on the dummy_controller is already deprecated. Switch over to the new controller/chip

Re: New syscalls (was: Re: linux-next: manual merge of the pidfd tree with the y2038 tree (now block and tip trees))

2019-03-12 Thread Christian Brauner
On March 12, 2019 9:31:33 AM GMT+01:00, Arnd Bergmann wrote: >On Mon, Mar 11, 2019 at 10:43 PM Christian Brauner > wrote: >> On Mon, Mar 11, 2019 at 10:38:07PM +0100, Arnd Bergmann wrote: >> > On Mon, Mar 11, 2019 at 9:36 AM Geert Uytterhoeven > wrote: >> > > >> > > Shall each architcture

Re: [PATCH v2] drivers: gpio: sprd: use devm_platform_ioremap_resource()

2019-03-12 Thread Baolin Wang
On Tue, 12 Mar 2019 at 16:08, Enrico Weigelt, metux IT consult wrote: > > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-eic-sprd.c | 9 ++--- > 1 file

Re: [PATCH] ARM: dts: rockchip: fix rk3288 cpu opp node reference

2019-03-12 Thread Heiko Stuebner
Am Sonntag, 24. Februar 2019, 22:51:22 CET schrieb Jonas Karlman: > The following error can be seen during boot: > > of: /cpus/cpu@501: Couldn't find opp node > > Change cpu nodes to use operating-points-v2 in order to fix this. > > Fixes: ce76de984649 ("ARM: dts: rockchip: convert rk3288 to

[PATCH] kernel/trace/trace_probe.c - make variable static

2019-03-12 Thread Valdis Klētnieks
sparse complains: CHECK kernel/trace/trace_probe.c kernel/trace/trace_probe.c:16:12: warning: symbol 'reserved_field_names' was not declared. Should it be static? Yes, it should be static. Signed-off-by: Valdis Kletnieks diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c

Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-12 Thread Masahiro Yamada
On Tue, Mar 12, 2019 at 4:19 PM Andy Shevchenko wrote: > > On Tue, Mar 12, 2019 at 6:40 AM Masahiro Yamada > wrote: > > On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray > > wrote: > > > > > > Replace verbose implementation in set_multiple callback with > > > for_each_set_clump8 macro to

[PATCH] kernel/trace/trace_kprobe.c - fix comment format

2019-03-12 Thread Valdis Klētnieks
CC kernel/trace/trace_kprobe.o kernel/trace/trace_kprobe.c:41: warning: cannot understand function prototype: 'struct trace_kprobe ' The real problem is that a comment looked like kerneldoc when it shouldn't be... Signed-off-by: Valdis Kletnieks diff --git

Re: [PATCH] arm64: dts: meson-gxl-s905d-phicomm-n1: add status LED

2019-03-12 Thread Neil Armstrong
Hi Chuanhong, On 12/03/2019 09:33, Chuanhong Guo wrote: > There is a white LED on the front panel behind the logo and the > manufacturer uses that LED to indicate network and USB drive status. > > Signed-off-by: Chuanhong Guo > --- > .../boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts| 10

Re: WARN ON at kernel/sched/deadline.c task_non_contending

2019-03-12 Thread luca abeni
Hi all, On Tue, 12 Mar 2019 10:03:12 +0800 "chengjian (D)" wrote: > Hi. > > When looking to test SCHED_DEADLINE syzkaller report an warn in > task_non_contending(). I tested the mainline kernel with the C program > and captured the same call trace. [...] > diff --git a/kernel/sched/deadline.c

Re: [PATCH v1] Bluetooth: hci_qca: Enable the ldisc for ROME for x86 platforms.

2019-03-12 Thread rjliao
在 2019-03-09 02:52,Matthias Kaehlcke 写道: On Fri, Mar 08, 2019 at 10:43:14AM +0530, Balakrishna Godavarthi wrote: Hi Matthias, On 2019-03-08 02:12, Matthias Kaehlcke wrote: > Hi Balakrishna, > > On Thu, Mar 07, 2019 at 03:47:22PM +0530, Balakrishna Godavarthi wrote: > > When using btattach to

Re: [PATCH v3 4/9] mtd: rawnand: denali: switch over to ->exec_op() from legacy hooks

2019-03-12 Thread Boris Brezillon
On Tue, 12 Mar 2019 17:44:45 +0900 Masahiro Yamada wrote: > + > +static int denali_exec_instr(struct nand_chip *chip, > + const struct nand_op_instr *instr) > +{ > + struct denali_nand_info *denali = to_denali(chip); > + bool width16 = chip->options &

[GIT PULL] overlayfs update for 5.1

2019-03-12 Thread Miklos Szeredi
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git tags/ovl-update-5.1 Fix copy up of security related xattrs. Thanks, Miklos Vivek Goyal (2): ovl: During copy up, first copy up

Re: [PATCH 1/2] PM / wakeup: Remove timer from wakeup_source_remove()

2019-03-12 Thread Rafael J. Wysocki
On Tue, Mar 12, 2019 at 4:28 AM Viresh Kumar wrote: > > On 11-03-19, 13:05, Rafael J. Wysocki wrote: > > On Friday, March 8, 2019 10:53:11 AM CET Viresh Kumar wrote: > > > wakeup_source_remove() is the counterpart of wakeup_source_add() helper > > > and must undo the initializations done by

[PATCH 0/2] clk: keystone: Add new driver to handle syscon based clock

2019-03-12 Thread Vignesh Raghavendra
On TI's K2 and K3 SoCs, certain clocks can be gated/ungated by setting a single bit in SoC's System Control registers. Sometime more than one clock control can be in the same register. But these registers might also have bits to control other SoC functionalities. For example, Time Base

Re: [PATCH 1/2] PM / wakeup: Remove timer from wakeup_source_remove()

2019-03-12 Thread Pavel Machek
On Tue 2019-03-12 08:58:02, Viresh Kumar wrote: > On 11-03-19, 13:05, Rafael J. Wysocki wrote: > > On Friday, March 8, 2019 10:53:11 AM CET Viresh Kumar wrote: > > > wakeup_source_remove() is the counterpart of wakeup_source_add() helper > > > and must undo the initializations done by

[PATCH 2/2] clk: keystone: Add new driver to handle syscon based clock

2019-03-12 Thread Vignesh Raghavendra
On TI's K2 and K3 SoCs, certain clocks can be gated/ungated by setting a single bit in SoC's System Control Module registers. Sometime more than one clock control can be in the same register. Add driver to support such clocks. Registers that control clocks will be grouped into a syscon regmap.

[PATCH 1/2] dt-bindings: clock: Add binding documentation for TI syscon gate clock

2019-03-12 Thread Vignesh Raghavendra
Add dt bindings for TI syscon gate clock. Signed-off-by: Vignesh Raghavendra --- .../bindings/clock/ti,syscon-gate-clock.txt | 35 +++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/ti,syscon-gate-clock.txt diff --git

Re: [RFC PATCH nand-next 0/2] meson-nand: support for older SoCs

2019-03-12 Thread Liang Yang
Hi Martin and Miquel, On 2019/3/7 21:09, Miquel Raynal wrote: Hello, Martin Blumenstingl wrote on Tue, 5 Mar 2019 23:12:51 +0100: Hi Liang, On Mon, Mar 4, 2019 at 5:55 AM Liang Yang wrote: Hello Martin, On 2019/3/2 2:29, Martin Blumenstingl wrote: Hi Liang, I am trying to add support

[PATCH] pwm: tiehrpwm: Update shadow register for disabling PWMs

2019-03-12 Thread Vignesh Raghavendra
From: Christoph Vogtländer It must be made sure that immediate mode is not already set, when modifying shadow register value in ehrpwm_pwm_disable(). Otherwise modifications to the action-qualifier continuous S/W force register(AQSFRC) will be done in the active register. This may happen when

Re: [PATCH v9 9/9] gpio: uniphier: Utilize for_each_set_clump8 macro

2019-03-12 Thread Andy Shevchenko
On Tue, Mar 12, 2019 at 10:58 AM Masahiro Yamada wrote: > On Tue, Mar 12, 2019 at 4:19 PM Andy Shevchenko > wrote: > > On Tue, Mar 12, 2019 at 6:40 AM Masahiro Yamada > > wrote: > > > On Sun, Mar 3, 2019 at 4:51 PM William Breathitt Gray > > > wrote: > > > > > > > > Replace verbose

[PATCH 0/4] Loongson-32 initial DeviceTree support

2019-03-12 Thread Jiaxun Yang
Hi More works should be done after rework on clk and other drivers accepted. Thanks.

[PATCH 1/2] dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible

2019-03-12 Thread Vignesh Raghavendra
Add a new compatible string "ti,am654-ehrpwm" to support EHRPWM IP on TI AM654 SoC. Signed-off-by: Vignesh Raghavendra --- Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt

[PATCH 2/2] pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3

2019-03-12 Thread Vignesh Raghavendra
K3 devices have the same EHRPWM IP as OMAP SoCs. Enable driver to be built for K3 devices. Also, drop reference to AM33xx in help text, as IP is found on multiple TI SoCs. Signed-off-by: Vignesh Raghavendra --- drivers/pwm/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 0/2] pwm: tiehrpwm: Enable EHRPWM for AM654 SoCs

2019-03-12 Thread Vignesh Raghavendra
This series adds support for EHRPWM IP on TI AM654 SoC Vignesh Raghavendra (2): dt-bindings: pwm: tiehrpwm: Add TI AM654 SoC specific compatible pwm: Kconfig: Enable ehrpwm driver to be compiled for ARCH_K3 Documentation/devicetree/bindings/pwm/pwm-tiehrpwm.txt | 1 + drivers/pwm/Kconfig

[PATCH 3/4] MIPS: Loongson32: Kconfig merge CPU_LOONGSON1B

2019-03-12 Thread Jiaxun Yang
Loongson-1B have totally identical GS232 core, so merge them into same CPU config. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 38 +--- arch/mips/include/asm/cpu-type.h | 3 +-- arch/mips/loongson32/Kconfig | 4 ++-- 3 files changed, 14

[PATCH 1/4] MIPS: Loongson32: Remove ehci platform device

2019-03-12 Thread Jiaxun Yang
It's going to be enabled by DeviceTree Signed-off-by: Jiaxun Yang --- .../include/asm/mach-loongson32/platform.h| 1 - arch/mips/loongson32/common/platform.c| 30 --- arch/mips/loongson32/ls1b/board.c | 1 - 3 files changed, 32 deletions(-) diff --git

[PATCH 2/4] MIPS: Loongson32: Add DeviceTree support

2019-03-12 Thread Jiaxun Yang
Initial DeviceTree support for loongson32 Also remove the old IRQ driver since it have been replaced by generic LS1X_IRQ. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig| 5 +- arch/mips/loongson32/common/Makefile | 2 +- arch/mips/loongson32/common/irq.c| 196

[PATCH 4/4] MIPS: Loongson32: dts: add ls1b & ls1c

2019-03-12 Thread Jiaxun Yang
Add devicetree skeleton for ls1b and ls1c Signed-off-by: Jiaxun Yang --- arch/mips/boot/dts/loongson/Makefile | 6 ++ arch/mips/boot/dts/loongson/ls1b.dts | 21 + arch/mips/boot/dts/loongson/ls1c.dts | 25 ++ arch/mips/boot/dts/loongson/ls1x.dtsi | 117 ++

Re: [PATCH linux-next v2 1/2] ASoC: rsnd: src: Avoid a potential deadlock

2019-03-12 Thread Geert Uytterhoeven
Hi Jiada, Fabrizio, On Thu, Mar 7, 2019 at 7:17 AM Jiada Wang wrote: > lockdep warns us that priv->lock and k->k_lock can cause a > deadlock when after acquire of k->k_lock, process is interrupted > by src, while in another routine of src .init, k->k_lock is > acquired with priv->lock held. > >

[PATCH] ARM: dma-mapping: always clear allocated buffers in __alloc_from_pool

2019-03-12 Thread Yue Haibing
From: YueHaibing Like commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*"), if we want to map memory from the DMA allocator to userspace it must be zeroed at allocation time to prevent stale data leaks. On arm platform, if the allocator is pool_allocator in __dma_alloc,

Re: [PATCH v5 1/8] clk: samsung: add needed IDs for DMC clocks in Exynos5420

2019-03-12 Thread Lukasz Luba
Hi Rob, On 3/11/19 11:06 PM, Rob Herring wrote: > On Tue, 5 Mar 2019 11:19:04 +0100, Lukasz Luba wrote: >> Define new IDs for clocks used by Dynamic Memory Controller in >> Exynos5422 SoC. >> >> Signed-off-by: Lukasz Luba >> --- >> include/dt-bindings/clock/exynos5420.h | 18

  1   2   3   4   5   6   7   8   9   10   >