[PATCH AUTOSEL 4.4 01/14] xtensa: fix build for cores with coprocessors

2019-08-06 Thread Sasha Levin
From: Max Filippov [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] Assembly entry/return abstraction change didn't add asmmacro.h include statement to coprocessor.S, resulting in references to undefined macros abi_entry and abi_ret on cores that define XTENSA_HAVE_COPROCESSORS. Fix

[PATCH AUTOSEL 4.9 01/17] xtensa: fix build for cores with coprocessors

2019-08-06 Thread Sasha Levin
From: Max Filippov [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] Assembly entry/return abstraction change didn't add asmmacro.h include statement to coprocessor.S, resulting in references to undefined macros abi_entry and abi_ret on cores that define XTENSA_HAVE_COPROCESSORS. Fix

Re: [PATCH v4 1/4] RISC-V: Remove per cpu clocksource

2019-08-06 Thread Paul Walmsley
On Fri, 2 Aug 2019, Atish Patra wrote: > There is only one clocksource in RISC-V. The boot cpu initializes > that clocksource. No need to keep a percpu data structure. > > Signed-off-by: Atish Patra Thanks, queued for v5.3-rc4. - Paul

[PATCH AUTOSEL 4.9 16/17] coredump: split pipe command whitespace before expanding template

2019-08-06 Thread Sasha Levin
From: Paul Wise [ Upstream commit 315c69261dd3fa12dbc830d4fa00d1fad98d3b03 ] Save the offsets of the start of each argument to avoid having to update pointers to each argument after every corename krealloc and to avoid having to duplicate the memory for the dump command. Executable names contai

[PATCH AUTOSEL 4.4 11/14] IB/core: Add mitigation for Spectre V1

2019-08-06 Thread Sasha Levin
From: "Luck, Tony" [ Upstream commit 61f259821dd3306e49b7d42a3f90fb5a4ff3351b ] Some processors may mispredict an array bounds check and speculatively access memory that they should not. With a user supplied array index we like to play things safe by masking the value with the array size before

[PATCH AUTOSEL 4.14 24/25] coredump: split pipe command whitespace before expanding template

2019-08-06 Thread Sasha Levin
From: Paul Wise [ Upstream commit 315c69261dd3fa12dbc830d4fa00d1fad98d3b03 ] Save the offsets of the start of each argument to avoid having to update pointers to each argument after every corename krealloc and to avoid having to duplicate the memory for the dump command. Executable names contai

[PATCH AUTOSEL 4.4 13/14] coredump: split pipe command whitespace before expanding template

2019-08-06 Thread Sasha Levin
From: Paul Wise [ Upstream commit 315c69261dd3fa12dbc830d4fa00d1fad98d3b03 ] Save the offsets of the start of each argument to avoid having to update pointers to each argument after every corename krealloc and to avoid having to duplicate the memory for the dump command. Executable names contai

[PATCH AUTOSEL 4.4 12/14] ocfs2: remove set but not used variable 'last_hash'

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 7bc36e3ce91471b6377c8eadc0a2f220a2280083 ] Fixes gcc '-Wunused-but-set-variable' warning: fs/ocfs2/xattr.c: In function ocfs2_xattr_bucket_find: fs/ocfs2/xattr.c:3828:6: warning: variable last_hash set but not used [-Wunused-but-set-variable] It's never

[PATCH AUTOSEL 4.4 14/14] asm-generic: fix -Wtype-limits compiler warnings

2019-08-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit cbedfe11347fe418621bd188d58a206beb676218 ] Commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a compilation warning because "rx_frag_size" is an "ushort" while PAGE_SHIFT here is 16. The commit changed the get_order() to be a multi-line macro where

[PATCH AUTOSEL 4.4 08/14] exit: make setting exit_state consistent

2019-08-06 Thread Sasha Levin
From: Christian Brauner [ Upstream commit 30b692d3b390c6fe78a5064be0c4bbd44a41be59 ] Since commit b191d6491be6 ("pidfd: fix a poll race when setting exit_state") we unconditionally set exit_state to EXIT_ZOMBIE before calling into do_notify_parent(). This was done to eliminate a race when queryi

[PATCH AUTOSEL 4.4 09/14] ata: libahci: do not complain in case of deferred probe

2019-08-06 Thread Sasha Levin
From: Miquel Raynal [ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ] Retrieving PHYs can defer the probe, do not spawn an error when -EPROBE_DEFER is returned, it is normal behavior. Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs") Reviewed-by: Hans de Goede Signed-

[PATCH AUTOSEL 4.4 07/14] scsi: hpsa: correct scsi command status issue after reset

2019-08-06 Thread Sasha Levin
From: Don Brace [ Upstream commit eeebce1862970653cdf5c01e98bc669edd8f529a ] Reviewed-by: Bader Ali - Saleh Reviewed-by: Scott Teel Reviewed-by: Scott Benesh Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/

[PATCH AUTOSEL 4.4 10/14] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) wh

[PATCH AUTOSEL 4.4 05/14] perf header: Fix use of unitialized value warning

2019-08-06 Thread Sasha Levin
From: Numfor Mbiziwo-Tiapo [ Upstream commit 20f9781f491360e7459c589705a2e4b1f136bee9 ] When building our local version of perf with MSAN (Memory Sanitizer) and running the perf record command, MSAN throws a use of uninitialized value warning in "tools/perf/util/util.c:333:6". This warning stem

[PATCH AUTOSEL 4.9 17/17] asm-generic: fix -Wtype-limits compiler warnings

2019-08-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit cbedfe11347fe418621bd188d58a206beb676218 ] Commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a compilation warning because "rx_frag_size" is an "ushort" while PAGE_SHIFT here is 16. The commit changed the get_order() to be a multi-line macro where

[PATCH AUTOSEL 4.4 06/14] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-08-06 Thread Sasha Levin
From: Kees Cook [ Upstream commit 71d6c505b4d9e6f76586350450e785e3d452b346 ] Jeffrin reported a KASAN issue: BUG: KASAN: global-out-of-bounds in ata_exec_internal_sg+0x50f/0xc70 Read of size 16 at addr 91f41f80 by task scsi_eh_1/149 ... The buggy address belongs to the variable:

[PATCH AUTOSEL 4.4 03/14] irqchip/irq-imx-gpcv2: Forward irq type to parent

2019-08-06 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8 ] The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't care about the IRQ type itself, but needs to forward the type to the parent IRQ controller, so this one can be configured correctly. Signed-off-by:

[PATCH AUTOSEL 4.9 03/17] irqchip/irq-imx-gpcv2: Forward irq type to parent

2019-08-06 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8 ] The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't care about the IRQ type itself, but needs to forward the type to the parent IRQ controller, so this one can be configured correctly. Signed-off-by:

[PATCH AUTOSEL 4.9 02/17] xen/pciback: remove set but not used variable 'old_state'

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but n

[PATCH AUTOSEL 4.9 09/17] ata: libahci: do not complain in case of deferred probe

2019-08-06 Thread Sasha Levin
From: Miquel Raynal [ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ] Retrieving PHYs can defer the probe, do not spawn an error when -EPROBE_DEFER is returned, it is normal behavior. Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs") Reviewed-by: Hans de Goede Signed-

[PATCH AUTOSEL 4.9 07/17] scsi: hpsa: correct scsi command status issue after reset

2019-08-06 Thread Sasha Levin
From: Don Brace [ Upstream commit eeebce1862970653cdf5c01e98bc669edd8f529a ] Reviewed-by: Bader Ali - Saleh Reviewed-by: Scott Teel Reviewed-by: Scott Benesh Reviewed-by: Kevin Barnett Signed-off-by: Don Brace Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/

[PATCH AUTOSEL 4.9 10/17] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) wh

[PATCH AUTOSEL 4.14 21/25] IB/mad: Fix use-after-free in ib mad completion handling

2019-08-06 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit 770b7d96cfff6a8bf6c9f261ba6f135dc9edf484 ] We encountered a use-after-free bug when unloading the driver: [ 3562.116059] BUG: KASAN: use-after-free in ib_mad_post_receive_mads+0xddc/0xed0 [ib_core] [ 3562.117233] Read of size 4 at addr 8882ca5aa868

[PATCH AUTOSEL 4.14 22/25] drm: msm: Fix add_gpu_components

2019-08-06 Thread Sasha Levin
From: Jeffrey Hugo [ Upstream commit 9ca7ad6c7706edeae331c1632d0c63897418ebad ] add_gpu_components() adds found GPU nodes from the DT to the match list, regardless of the status of the nodes. This is a problem, because if the nodes are disabled, they should not be on the match list because they

[PATCH AUTOSEL 4.14 20/25] IB/core: Add mitigation for Spectre V1

2019-08-06 Thread Sasha Levin
From: "Luck, Tony" [ Upstream commit 61f259821dd3306e49b7d42a3f90fb5a4ff3351b ] Some processors may mispredict an array bounds check and speculatively access memory that they should not. With a user supplied array index we like to play things safe by masking the value with the array size before

[PATCH AUTOSEL 4.14 23/25] ocfs2: remove set but not used variable 'last_hash'

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 7bc36e3ce91471b6377c8eadc0a2f220a2280083 ] Fixes gcc '-Wunused-but-set-variable' warning: fs/ocfs2/xattr.c: In function ocfs2_xattr_bucket_find: fs/ocfs2/xattr.c:3828:6: warning: variable last_hash set but not used [-Wunused-but-set-variable] It's never

[PATCH AUTOSEL 4.14 18/25] arm64: unwind: Prohibit probing on return_address()

2019-08-06 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit ee07b93e7721ccd5d5b9fa6f0c10cb3fe2f1f4f9 ] Prohibit probing on return_address() and subroutines which is called from return_address(), since the it is invoked from trace_hardirqs_off() which is also kprobe blacklisted. Reported-by: Naresh Kamboju Signed

[PATCH AUTOSEL 4.14 09/25] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-08-06 Thread Sasha Levin
From: Kees Cook [ Upstream commit 71d6c505b4d9e6f76586350450e785e3d452b346 ] Jeffrin reported a KASAN issue: BUG: KASAN: global-out-of-bounds in ata_exec_internal_sg+0x50f/0xc70 Read of size 16 at addr 91f41f80 by task scsi_eh_1/149 ... The buggy address belongs to the variable:

[PATCH AUTOSEL 4.14 10/25] drm/bridge: lvds-encoder: Fix build error while CONFIG_DRM_KMS_HELPER=m

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit f4cc743a98136df3c3763050a0e8223b52d9a960 ] If DRM_LVDS_ENCODER=y but CONFIG_DRM_KMS_HELPER=m, build fails: drivers/gpu/drm/bridge/lvds-encoder.o: In function `lvds_encoder_probe': lvds-encoder.c:(.text+0x155): undefined reference to `devm_drm_panel_bridge_add'

[PATCH AUTOSEL 4.14 14/25] ata: libahci: do not complain in case of deferred probe

2019-08-06 Thread Sasha Levin
From: Miquel Raynal [ Upstream commit 090bb803708198e5ab6b0046398c7ed9f4d12d6b ] Retrieving PHYs can defer the probe, do not spawn an error when -EPROBE_DEFER is returned, it is normal behavior. Fixes: b1a9edbda040 ("ata: libahci: allow to use multiple PHYs") Reviewed-by: Hans de Goede Signed-

[PATCH AUTOSEL 4.14 02/25] clk: renesas: cpg-mssr: Fix reset control race condition

2019-08-06 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e1f1ae8002e4b06addc52443fcd975bbf554ae92 ] The module reset code in the Renesas CPG/MSSR driver uses read-modify-write (RMW) operations to write to a Software Reset Register (SRCRn), and simple writes to write to a Software Reset Clearing Register (SRST

[PATCH AUTOSEL 4.14 04/25] xen/pciback: remove set but not used variable 'old_state'

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but n

Re: [PATCH net-next 2/5] r8152: replace array with linking list for rx information

2019-08-06 Thread Jakub Kicinski
On Tue, 6 Aug 2019 12:53:42 -0700, Jakub Kicinski wrote: > > @@ -744,6 +745,8 @@ struct r8152 { > > void (*autosuspend_en)(struct r8152 *tp, bool enable); > > } rtl_ops; > > > > + atomic_t rx_count; > > I wonder what the advantage of rx_count being atomic is, perhpas it > cou

[PATCH AUTOSEL 4.14 13/25] exit: make setting exit_state consistent

2019-08-06 Thread Sasha Levin
From: Christian Brauner [ Upstream commit 30b692d3b390c6fe78a5064be0c4bbd44a41be59 ] Since commit b191d6491be6 ("pidfd: fix a poll race when setting exit_state") we unconditionally set exit_state to EXIT_ZOMBIE before calling into do_notify_parent(). This was done to eliminate a race when queryi

[PATCH AUTOSEL 4.14 06/25] irqchip/irq-imx-gpcv2: Forward irq type to parent

2019-08-06 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8 ] The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't care about the IRQ type itself, but needs to forward the type to the parent IRQ controller, so this one can be configured correctly. Signed-off-by:

[PATCH AUTOSEL 4.14 15/25] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) wh

[PATCH AUTOSEL 4.19 27/32] drm: msm: Fix add_gpu_components

2019-08-06 Thread Sasha Levin
From: Jeffrey Hugo [ Upstream commit 9ca7ad6c7706edeae331c1632d0c63897418ebad ] add_gpu_components() adds found GPU nodes from the DT to the match list, regardless of the status of the nodes. This is a problem, because if the nodes are disabled, they should not be on the match list because they

[PATCH AUTOSEL 4.19 15/32] exit: make setting exit_state consistent

2019-08-06 Thread Sasha Levin
From: Christian Brauner [ Upstream commit 30b692d3b390c6fe78a5064be0c4bbd44a41be59 ] Since commit b191d6491be6 ("pidfd: fix a poll race when setting exit_state") we unconditionally set exit_state to EXIT_ZOMBIE before calling into do_notify_parent(). This was done to eliminate a race when queryi

[PATCH AUTOSEL 4.19 29/32] Revert "kmemleak: allow to coexist with fault injection"

2019-08-06 Thread Sasha Levin
From: Yang Shi [ Upstream commit df9576def004d2cd5beedc00cb6e8901427634b9 ] When running ltp's oom test with kmemleak enabled, the below warning was triggerred since kernel detects __GFP_NOFAIL & ~__GFP_DIRECT_RECLAIM is passed in: WARNING: CPU: 105 PID: 2138 at mm/page_alloc.c:4608 __alloc_

[PATCH AUTOSEL 4.19 19/32] kbuild: Check for unknown options with cc-option usage in Kconfig and clang

2019-08-06 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit e8de12fb7cde2c85bc31097cd098da79a4818305 ] If the particular version of clang a user has doesn't enable -Werror=unknown-warning-option by default, even though it is the default[1], then make sure to pass the option to the Kconfig cc-option command so that tes

[PATCH AUTOSEL 4.19 16/32] drm/amdgpu: fix a potential information leaking bug

2019-08-06 Thread Sasha Levin
From: Wang Xiayang [ Upstream commit 929e571c04c285861e0bb049a396a2bdaea63282 ] Coccinelle reports a path that the array "data" is never initialized. The path skips the checks in the conditional branches when either of callback functions, read_wave_vgprs and read_wave_sgprs, is not registered. L

[PATCH AUTOSEL 4.19 18/32] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) wh

[PATCH AUTOSEL 4.19 28/32] drm/exynos: fix missing decrement of retry counter

2019-08-06 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 1bbbab097a05276e312dd2462791d32b21ceb1ee ] Currently the retry counter is not being decremented, leading to a potential infinite spin if the scalar_reads don't change state. Addresses-Coverity: ("Infinite loop") Fixes: 280e54c9f614 ("drm/exynos: scaler: Re

[PATCH AUTOSEL 4.19 26/32] IB/mad: Fix use-after-free in ib mad completion handling

2019-08-06 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit 770b7d96cfff6a8bf6c9f261ba6f135dc9edf484 ] We encountered a use-after-free bug when unloading the driver: [ 3562.116059] BUG: KASAN: use-after-free in ib_mad_post_receive_mads+0xddc/0xed0 [ib_core] [ 3562.117233] Read of size 4 at addr 8882ca5aa868

[PATCH AUTOSEL 4.19 08/32] perf header: Fix divide by zero error if f_header.attr_size==0

2019-08-06 Thread Sasha Levin
From: Vince Weaver [ Upstream commit 7622236ceb167aa3857395f9bdaf871442aa467e ] So I have been having lots of trouble with hand-crafted perf.data files causing segfaults and the like, so I have started fuzzing the perf tool. First issue found: If f_header.attr_size is 0 in the perf.data file,

[PATCH AUTOSEL 4.19 01/32] clk: at91: generated: Truncate divisor to GENERATED_MAX_DIV + 1

2019-08-06 Thread Sasha Levin
From: Codrin Ciubotariu [ Upstream commit 1573eebeaa8055777eb753f9b4d1cbe653380c38 ] In clk_generated_determine_rate(), if the divisor is greater than GENERATED_MAX_DIV + 1, then the wrong best_rate will be returned. If clk_generated_set_rate() will be called later with this wrong rate, it will

[PATCH AUTOSEL 4.19 06/32] irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail

2019-08-06 Thread Sasha Levin
From: Nianyao Tang [ Upstream commit 34f8eb92ca053cbba2887bb7e4dbf2b2cd6eb733 ] In its_vpe_init, when its_alloc_vpe_table fails, we should free vpt_page allocated just before, instead of vpe->vpt_page. Let's fix it. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Signed-off-by: Nianyao

[PATCH AUTOSEL 4.19 07/32] irqchip/irq-imx-gpcv2: Forward irq type to parent

2019-08-06 Thread Sasha Levin
From: Lucas Stach [ Upstream commit 9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8 ] The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't care about the IRQ type itself, but needs to forward the type to the parent IRQ controller, so this one can be configured correctly. Signed-off-by:

[PATCH AUTOSEL 5.2 47/59] IB/mad: Fix use-after-free in ib mad completion handling

2019-08-06 Thread Sasha Levin
From: Jack Morgenstein [ Upstream commit 770b7d96cfff6a8bf6c9f261ba6f135dc9edf484 ] We encountered a use-after-free bug when unloading the driver: [ 3562.116059] BUG: KASAN: use-after-free in ib_mad_post_receive_mads+0xddc/0xed0 [ib_core] [ 3562.117233] Read of size 4 at addr 8882ca5aa868

[PATCH AUTOSEL 4.19 10/32] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-08-06 Thread Sasha Levin
From: Kees Cook [ Upstream commit 71d6c505b4d9e6f76586350450e785e3d452b346 ] Jeffrin reported a KASAN issue: BUG: KASAN: global-out-of-bounds in ata_exec_internal_sg+0x50f/0xc70 Read of size 16 at addr 91f41f80 by task scsi_eh_1/149 ... The buggy address belongs to the variable:

[PATCH AUTOSEL 4.19 02/32] clk: sprd: Select REGMAP_MMIO to avoid compile errors

2019-08-06 Thread Sasha Levin
From: Chunyan Zhang [ Upstream commit c9a67cbb5189e966c70451562b2ca4c3876ab546 ] Make REGMAP_MMIO selected to avoid undefined reference to regmap symbols. Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") Signed-off-by: Chunyan Zhang Signed-off-by: Stephen Boyd Signed-off-by: Sasha

[PATCH AUTOSEL 4.19 03/32] clk: renesas: cpg-mssr: Fix reset control race condition

2019-08-06 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit e1f1ae8002e4b06addc52443fcd975bbf554ae92 ] The module reset code in the Renesas CPG/MSSR driver uses read-modify-write (RMW) operations to write to a Software Reset Register (SRCRn), and simple writes to write to a Software Reset Clearing Register (SRST

[PATCH AUTOSEL 5.2 58/59] asm-generic: fix -Wtype-limits compiler warnings

2019-08-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit cbedfe11347fe418621bd188d58a206beb676218 ] Commit d66acc39c7ce ("bitops: Optimise get_order()") introduced a compilation warning because "rx_frag_size" is an "ushort" while PAGE_SHIFT here is 16. The commit changed the get_order() to be a multi-line macro where

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-06 Thread Tao Ren
Hi Andrew / Heiner / Vladimir, On 8/6/19 2:09 PM, Tao Ren wrote: > The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for > example, on Facebook CMM BMC platform), mainly because genphy functions > are designed for copper links, and 1000Base-X (clause 37) auto negotiation > needs t

[PATCH AUTOSEL 5.2 50/59] RDMA/hns: Fix error return code in hns_roce_v1_rsv_lp_qp()

2019-08-06 Thread Sasha Levin
From: Wei Yongjun [ Upstream commit 020fb3bebc224dfe9353a56ecbe2d5fac499dffc ] Fix to return error code -ENOMEM from the rdma_zalloc_drv_obj() error handling case instead of 0, as done elsewhere in this function. Fixes: e8ac9389f0d7 ("RDMA: Fix allocation failure on pointer pd") Fixes: 21a428a0

[PATCH AUTOSEL 5.2 39/59] i2c: iproc: Fix i2c master read more than 63 bytes

2019-08-06 Thread Sasha Levin
From: Rayagonda Kokatanur [ Upstream commit fd01eecdf9591453177d7b06faaabef8c300114a ] Use SMBUS_MASTER_DATA_READ.MASTER_RD_STATUS bit to check for RX FIFO empty condition because SMBUS_MASTER_FIFO_CONTROL.MASTER_RX_PKT_COUNT is not updated for read >= 64 bytes. This fixes the issue when trying

[PATCH AUTOSEL 5.2 43/59] arm64/mm: fix variable 'tag' set but not used

2019-08-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit 7732d20a160c76006c7fe7bca5178aea6af1d2e8 ] When CONFIG_KASAN_SW_TAGS=n, set_tag() is compiled away. GCC throws a warning, mm/kasan/common.c: In function '__kasan_kmalloc': mm/kasan/common.c:464:5: warning: variable 'tag' set but not used [-Wunused-but-set-variab

[PATCH AUTOSEL 5.2 32/59] drm/amdgpu: fix a potential information leaking bug

2019-08-06 Thread Sasha Levin
From: Wang Xiayang [ Upstream commit 929e571c04c285861e0bb049a396a2bdaea63282 ] Coccinelle reports a path that the array "data" is never initialized. The path skips the checks in the conditional branches when either of callback functions, read_wave_vgprs and read_wave_sgprs, is not registered. L

[PATCH AUTOSEL 5.2 34/59] kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules

2019-08-06 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit cb4819934a7f9b87876f11ed05b8624c0114551b ] KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) wh

Re: [PATCH v4 4/4] dt-bindings: Update the riscv,isa string description

2019-08-06 Thread Paul Walmsley
On Fri, 2 Aug 2019, Atish Patra wrote: > Since the RISC-V specification states that ISA description strings are > case-insensitive, there's no functional difference between mixed-case, > upper-case, and lower-case ISA strings. Thus, to simplify parsing, > specify that the letters present in "riscv

[PATCH AUTOSEL 5.2 29/59] drm/amdkfd: Fix byte align on VegaM

2019-08-06 Thread Sasha Levin
From: Kent Russell [ Upstream commit d65848657c3da5c0d4b685f823d0230f151ab34e ] This was missed during the addition of VegaM support Reviewed-by: Alex Deucher Signed-off-by: Kent Russell Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpu

[PATCH AUTOSEL 5.2 26/59] scsi: qla2xxx: Fix possible fcport null-pointer dereferences

2019-08-06 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit e82f04ec6ba91065fd33a6201ffd7cab840e1475 ] In qla2x00_alloc_fcport(), fcport is assigned to NULL in the error handling code on line 4880: fcport = NULL; Then fcport is used on lines 4883-4886: INIT_WORK(&fcport->del_work, qla24xx_delete_sess_fn);

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-06 Thread James Courtier-Dutton
On Tue, 6 Aug 2019 at 02:09, Suren Baghdasaryan wrote: > > 80% of the last 10 seconds spent in full stall would definitely be a > problem. If the system was already low on memory (which it probably > is, or we would not be reclaiming so hard and registering such a big > stall) then oom-killer woul

[PATCH AUTOSEL 5.2 36/59] arm64/efi: fix variable 'si' set but not used

2019-08-06 Thread Sasha Levin
From: Qian Cai [ Upstream commit f1d4836201543e88ebe70237e67938168d5fab19 ] GCC throws out this warning on arm64. drivers/firmware/efi/libstub/arm-stub.c: In function 'efi_entry': drivers/firmware/efi/libstub/arm-stub.c:132:22: warning: variable 'si' set but not used [-Wunused-but-set-variable]

[PATCH AUTOSEL 5.2 24/59] Btrfs: fix deadlock between fiemap and transaction commits

2019-08-06 Thread Sasha Levin
From: Filipe Manana [ Upstream commit a6d155d2e363f26290ffd50591169cb96c2a609e ] The fiemap handler locks a file range that can have unflushed delalloc, and after locking the range, it tries to attach to a running transaction. If the running transaction started its commit, that is, it is in stat

[PATCH AUTOSEL 5.2 20/59] libata: zpodd: Fix small read overflow in zpodd_get_mech_type()

2019-08-06 Thread Sasha Levin
From: Kees Cook [ Upstream commit 71d6c505b4d9e6f76586350450e785e3d452b346 ] Jeffrin reported a KASAN issue: BUG: KASAN: global-out-of-bounds in ata_exec_internal_sg+0x50f/0xc70 Read of size 16 at addr 91f41f80 by task scsi_eh_1/149 ... The buggy address belongs to the variable:

[PATCH AUTOSEL 5.2 08/59] platform/x86: pcengines-apuv2: Fix softdep statement

2019-08-06 Thread Sasha Levin
From: Jean Delvare [ Upstream commit edbfe83def34153a05439ecb3352ae0bb65024de ] Only first MODULE_SOFTDEP statement is handled per module. Multiple dependencies must be expressed in a single statement. Signed-off-by: Jean Delvare Cc: "Enrico Weigelt, metux IT consult" Cc: Darren Hart Cc: And

[PATCH AUTOSEL 5.2 07/59] xtensa: fix build for cores with coprocessors

2019-08-06 Thread Sasha Levin
From: Max Filippov [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] Assembly entry/return abstraction change didn't add asmmacro.h include statement to coprocessor.S, resulting in references to undefined macros abi_entry and abi_ret on cores that define XTENSA_HAVE_COPROCESSORS. Fix

[PATCH AUTOSEL 5.2 03/59] clk: at91: generated: Truncate divisor to GENERATED_MAX_DIV + 1

2019-08-06 Thread Sasha Levin
From: Codrin Ciubotariu [ Upstream commit 1573eebeaa8055777eb753f9b4d1cbe653380c38 ] In clk_generated_determine_rate(), if the divisor is greater than GENERATED_MAX_DIV + 1, then the wrong best_rate will be returned. If clk_generated_set_rate() will be called later with this wrong rate, it will

[PATCH AUTOSEL 5.2 12/59] irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail

2019-08-06 Thread Sasha Levin
From: Nianyao Tang [ Upstream commit 34f8eb92ca053cbba2887bb7e4dbf2b2cd6eb733 ] In its_vpe_init, when its_alloc_vpe_table fails, we should free vpt_page allocated just before, instead of vpe->vpt_page. Let's fix it. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Signed-off-by: Nianyao

[PATCH AUTOSEL 5.2 11/59] xen/pciback: remove set but not used variable 'old_state'

2019-08-06 Thread Sasha Levin
From: YueHaibing [ Upstream commit 09e088a4903bd0dd911b4f1732b250130cdaffed ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/xen/xen-pciback/conf_space_capability.c: In function pm_ctrl_write: drivers/xen/xen-pciback/conf_space_capability.c:119:25: warning: variable old_state set but n

[PATCH AUTOSEL 5.2 01/59] RDMA/hns: Fix sg offset non-zero issue

2019-08-06 Thread Sasha Levin
From: Xi Wang [ Upstream commit 60c3becfd1a138fdcfe48f2a5ef41ef0078d481e ] When run perftest in many times, the system will report a BUG as follows: BUG: Bad rss-counter state mm:(ptrval) idx:0 val:-1 BUG: Bad rss-counter state mm:(ptrval) idx:1 val:1 We tested with diffe

Re: [PATCH 3/9] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-08-06 Thread Stephen Boyd
Quoting Jerome Brunet (2019-08-06 01:49:47) > On Wed 31 Jul 2019 at 12:35, Stephen Boyd wrote: > > > A future patch is going to change semantics of clk_register() so that > > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > > referencing this member here so that we don't r

Re: [PATCH v7 01/20] pinctrl: tegra: Add suspend and resume support

2019-08-06 Thread Sowjanya Komatineni
On 8/5/19 2:20 AM, Linus Walleij wrote: On Wed, Jul 31, 2019 at 11:11 PM Sowjanya Komatineni wrote: This patch adds support for Tegra pinctrl driver suspend and resume. During suspend, context of all pinctrl registers are stored and on resume they are all restored to have all the pinmux and

Re: [PATCH v7 01/20] pinctrl: tegra: Add suspend and resume support

2019-08-06 Thread Sowjanya Komatineni
On 8/6/19 10:59 AM, Dmitry Osipenko wrote: 05.08.2019 21:06, Sowjanya Komatineni пишет: On 8/5/19 3:50 AM, Dmitry Osipenko wrote: 01.08.2019 0:10, Sowjanya Komatineni пишет: This patch adds support for Tegra pinctrl driver suspend and resume. During suspend, context of all pinctrl registers

Re: [PATCH v4 2/4] RISC-V: Add riscv_isa reprensenting ISA features common across CPUs

2019-08-06 Thread Paul Walmsley
Hi Anup, Atish, On Fri, 2 Aug 2019, Atish Patra wrote: > From: Anup Patel > > This patch adds riscv_isa integer to represent ISA features common > across all CPUs. The riscv_isa is not same as elf_hwcap because > elf_hwcap will only have ISA features relevant for user-space apps > whereas riscv

Re: [PATCH AUTOSEL 5.2 07/59] xtensa: fix build for cores with coprocessors

2019-08-06 Thread Max Filippov
Hello, On Tue, Aug 6, 2019 at 2:33 PM Sasha Levin wrote: > From: Max Filippov > > [ Upstream commit e3cacb73e626d885b8cf24103fed0ae26518e3c4 ] > > Assembly entry/return abstraction change didn't add asmmacro.h include > statement to coprocessor.S, resulting in references to undefined macros > ab

Re: [PATCH v4 3/4] net: phy: realtek: Add helpers for accessing RTL8211E extension pages

2019-08-06 Thread Matthias Kaehlcke
On Sun, Aug 04, 2019 at 10:33:30AM +0200, Heiner Kallweit wrote: > On 01.08.2019 21:07, Matthias Kaehlcke wrote: > > The RTL8211E has extension pages, which can be accessed after > > selecting a page through a custom method. Add a function to > > modify bits in a register of an extension page and a

Re: [PATCH 0/3] mm/: 3 more put_user_page() conversions

2019-08-06 Thread Andrew Morton
On Mon, 5 Aug 2019 15:20:16 -0700 john.hubb...@gmail.com wrote: > Here are a few more mm/ files that I wasn't ready to send with the > larger 34-patch set. Seems that a v3 of "put_user_pages(): miscellaneous call sites" is in the works, so can we make that a 37 patch series?

Re: [PATCH net-next v4 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-06 Thread Heiner Kallweit
On 06.08.2019 23:09, Tao Ren wrote: > The BCM54616S PHY cannot work properly in RGMII->1000Base-KX mode (for > example, on Facebook CMM BMC platform), mainly because genphy functions > are designed for copper links, and 1000Base-X (clause 37) auto negotiation > needs to be handled differently. > >

[PATCH] media/platform: fsl-viu.c: fix build for MICROBLAZE

2019-08-06 Thread Randy Dunlap
From: Randy Dunlap arch/microblaze/ defines out_be32() and in_be32(), so don't do that again in the driver source. Fixes these build warnings: ../drivers/media/platform/fsl-viu.c:36: warning: "out_be32" redefined ../arch/microblaze/include/asm/io.h:50: note: this is the location of the previou

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-06 Thread Johannes Weiner
On Tue, Aug 06, 2019 at 09:27:05AM -0700, Suren Baghdasaryan wrote: > On Tue, Aug 6, 2019 at 7:36 AM Michal Hocko wrote: > > > > On Tue 06-08-19 10:27:28, Johannes Weiner wrote: > > > On Tue, Aug 06, 2019 at 11:36:48AM +0200, Vlastimil Babka wrote: > > > > On 8/6/19 3:08 AM, Suren Baghdasaryan wro

Re: [PATCH 2/2] of/platform: Disable generic device linking code for PowerPC

2019-08-06 Thread Saravana Kannan
On Tue, Aug 6, 2019 at 2:27 PM Rob Herring wrote: > > On Tue, Aug 6, 2019 at 1:27 PM Saravana Kannan wrote: > > > > PowerPC platforms don't use the generic of/platform code to populate the > > devices from DT. > > Yes, they do. No they don't. My wording could be better, but they don't use of_pla

Re: [PATCH 5.2 073/131] dma-direct: correct the physical addr in dma_direct_sync_sg_for_cpu/device

2019-08-06 Thread Sasha Levin
On Tue, Aug 06, 2019 at 01:57:56PM +0100, Robin Murphy wrote: On 06/08/2019 13:41, Sasha Levin wrote: On Mon, Aug 05, 2019 at 03:02:40PM +0200, Greg Kroah-Hartman wrote: [ Upstream commit 449fa54d6815be8c2c1f68fa9dbbae9384a7c03e ] dma_map_sg() may use swiotlb buffer when the kernel command lin

Re: [PATCH 0/3] mm/: 3 more put_user_page() conversions

2019-08-06 Thread John Hubbard
On 8/6/19 2:59 PM, Andrew Morton wrote: > On Mon, 5 Aug 2019 15:20:16 -0700 john.hubb...@gmail.com wrote: > >> Here are a few more mm/ files that I wasn't ready to send with the >> larger 34-patch set. > > Seems that a v3 of "put_user_pages(): miscellaneous call sites" is in > the works, so can

[PATCH v3 1/4] tpm: Add a flag to indicate TPM power is managed by firmware

2019-08-06 Thread Stephen Boyd
On some platforms, the TPM power is managed by firmware and therefore we don't need to stop the TPM on suspend when going to a light version of suspend such as S0ix ("freeze" suspend state). Add a chip flag to indicate this so that certain platforms can probe for the usage of this light suspend and

[PATCH v3 0/4] tpm: Add driver for cr50

2019-08-06 Thread Stephen Boyd
This patch series adds support for the the H1 secure microcontroller running cr50 firmware found on various recent Chromebooks. This driver is necessary to boot into a ChromeOS userspace environment. It implements support for several functions, including TPM-like functionality over a SPI interface.

[PATCH v3 2/4] tpm: tpm_tis_spi: Export functionality to other drivers

2019-08-06 Thread Stephen Boyd
We want to use most of the code in this driver, except we want to modify the flow control and idle behavior. Let's "libify" this driver so that another driver can call the code in here and slightly tweak the behavior. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc

[PATCH v3 3/4] dt-bindings: tpm: document properties for cr50

2019-08-06 Thread Stephen Boyd
From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. Cc: Andrey Pronin Cc: Duncan Laurie Cc: Jason Gunthorpe Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Guenter Roeck Cc: Alexander Steffen Signed-off-by: Andrey Pronin Reviewed-by: Rob Herring S

[PATCH v3 4/4] tpm: add driver for cr50 on SPI

2019-08-06 Thread Stephen Boyd
From: Andrey Pronin Add TPM2.0 PTP FIFO compatible SPI interface for chips with Cr50 firmware. The firmware running on the currently supported H1 Secure Microcontroller requires a special driver to handle its specifics: - need to ensure a certain delay between spi transactions, or else the c

Re: [PATCH] driver core: platform: return -ENXIO for missing GpioInt

2019-08-06 Thread Brian Norris
On Mon, Jul 29, 2019 at 1:50 PM Brian Norris wrote: > Side note: it might have helped alleviate some of this pain if there > were email notifications to the mailing list when a patch gets applied. > I didn't realize (and I'm not sure if Enrico did) that v2 was already > merged by the time I noted

Re: [linux-sunxi] [PATCH 0/3] Add basic support for RTC on Allwinner H6 SoC

2019-08-06 Thread Ondřej Jirman
On Tue, Aug 06, 2019 at 08:30:45PM +0200, megous hlavni wrote: > On Mon, Apr 15, 2019 at 04:18:12PM +0800, Chen-Yu Tsai wrote: > > On Fri, Apr 12, 2019 at 8:07 PM megous via linux-sunxi > > wrote: > > > > > > From: Ondrej Jirman > > > > > > I went through the datasheets for H6 and H5, and compare

Re: [PATCH 4.19 46/74] mmc: dw_mmc: Fix occasional hang after tuning on eMMC

2019-08-06 Thread Pavel Machek
Hi! > I'm hoping that whatever problems exynos was having in the past are > somehow magically fixed now and we can make the behavior the same for > all commands. Dunno. Maybe they are in mainline, but are they fixed in all the stable releases this is being applied to? Best regards,

[PATCH] arch/microblaze: add support for get_user() of size 8 bytes

2019-08-06 Thread Randy Dunlap
From: Randy Dunlap arch/microblaze/ is missing support for get_user() of size 8 bytes, so add it by using __copy_from_user(). Fixes these build errors: drivers/infiniband/core/uverbs_main.o: In function `ib_uverbs_write': drivers/infiniband/core/.tmp_gl_uverbs_main.o:(.text+0x13a4): undefi

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-08-06 Thread Nick Desaulniers
On Thu, Aug 1, 2019 at 12:11 AM Johannes Berg wrote: > > > > Luca, you said this was already fixed in your internal tree, and the fix > > would appear soon in next, but I don't see anything in linux-next? > > Luca is still on vacation, but I just sent out a version of the patch we > had applied in

Re: [PATCH] net: sched: sch_taprio: fix memleak in error path for sched list parse

2019-08-06 Thread Ivan Khoronzhuk
On Tue, Aug 06, 2019 at 11:41:14AM -0700, David Miller wrote: From: Ivan Khoronzhuk Date: Tue, 6 Aug 2019 13:04:25 +0300 Based on net/master I wonder about that because: Applies cleanly on net/master, but line num is not correct. I've sent v2. --- a/net/sched/sch_taprio.c +++ b/net/sch

Re: [PATCH] seq_file: fix problem when seeking mid-record.

2019-08-06 Thread Andrew Morton
On Mon, 05 Aug 2019 14:26:08 +1000 NeilBrown wrote: > If you use lseek or similar (e.g. pread) to access > a location in a seq_file file that is within a record, > rather than at a record boundary, then the first read > will return the remainder of the record, and the second > read will return th

Re: Linux 5.2.7

2019-08-06 Thread Bhaskar Chowdhury
Thanks , a bunch Greg! :) On 20:43 Tue 06 Aug 2019, Greg KH wrote: I'm announcing the release of the 5.2.7 kernel. All users of the 5.2 kernel series must upgrade. The updated 5.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-

[PATCH v2] net: sched: sch_taprio: fix memleak in error path for sched list parse

2019-08-06 Thread Ivan Khoronzhuk
In error case, all entries should be freed from the sched list before deleting it. For simplicity use rcu way. Fixes: 5a781ccbd19e46 ("tc: Add support for configuring the taprio scheduler") Acked-by: Vinicius Costa Gomes Signed-off-by: Ivan Khoronzhuk --- net/sched/sch_taprio.c | 3 ++- 1 file

Re: [PATCH AUTOSEL 5.2 37/59] drm/vgem: fix cache synchronization on arm/arm64

2019-08-06 Thread Rob Clark
please don't queue this one for stable branches.. it was causing problems in intel CI BR, -R On Tue, Aug 6, 2019 at 2:34 PM Sasha Levin wrote: > > From: Rob Clark > > [ Upstream commit 7e9e5ead55beacc6b3fb90b0de6e7cf55a69 ] > > drm_cflush_pages() is no-op on arm/arm64. But instead we can u

<    3   4   5   6   7   8   9   10   11   >