[PATCH 4.19 21/45] net: bridge: delete local fdb on device init failure

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit d7bae09fa008c6c9a489580db0a5a12063b97f97 ] On initialization failure we have to delete the local fdb which was inserted due to the default pvid creation. This problem has been present since the inception of default_pvid. Note that currently there are

[PATCH 4.19 42/45] cgroup: Include dying leaders with live threads in PROCS iterations

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit c03cd7738a83b13739f00546166969342c8ff014 upstream. CSS_TASK_ITER_PROCS currently iterates live group leaders; however, this means that a process with dying leader and live threads will be skipped. IOW, cgroup.procs might be empty while cgroup.threads isn't, which is

[PATCH 4.19 23/45] net: fix ifindex collision during namespace removal

2019-08-08 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 55b40dbf0e76b4bfb9d8b3a16a0208640a9a45df ] Commit aca51397d014 ("netns: Fix arbitrary net_device-s corruptions on net_ns stop.") introduced a possibility to hit a BUG in case device is returning back to init_net and two following conditions are met: 1)

[PATCH 4.19 40/45] cgroup: Call cgroup_release() before __exit_signal()

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit 6b115bf58e6f013ca75e7115aabcbd56c20ff31d upstream. cgroup_release() calls cgroup_subsys->release() which is used by the pids controller to uncharge its pid. We want to use it to manage iteration of dying tasks which requires putting it before __unhash_process(). Move

[PATCH 4.14 17/33] net: fix ifindex collision during namespace removal

2019-08-08 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 55b40dbf0e76b4bfb9d8b3a16a0208640a9a45df ] Commit aca51397d014 ("netns: Fix arbitrary net_device-s corruptions on net_ns stop.") introduced a possibility to hit a BUG in case device is returning back to init_net and two following conditions are met: 1)

[PATCH 4.14 20/33] net: sched: Fix a possible null-pointer dereference in dequeue_func()

2019-08-08 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 051c7b39be4a91f6b7d8c4548444e4b850f1f56c ] In dequeue_func(), there is an if statement on line 74 to check whether skb is NULL: if (skb) When skb is NULL, it is used on line 77: prefetch(>end); Thus, a possible null-pointer dereference may occur. To

[PATCH 4.14 04/33] tcp: be more careful in tcp_fragment()

2019-08-08 Thread Greg Kroah-Hartman
commit b617158dc096709d8600c53b6052144d12b89fab upstream. Some applications set tiny SO_SNDBUF values and expect TCP to just work. Recent patches to address CVE-2019-11478 broke them in case of losses, since retransmits might be prevented. We should allow these flows to make progress. This

[PATCH 4.14 03/33] ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD torpedo

2019-08-08 Thread Greg Kroah-Hartman
[ Upstream commit a135a392acbec7ecda782981788e8c03767a1571 ] Since I2C1 and I2C4 have explicit pinmuxing set, let's be on the safe side and set the pin muxing for I2C2 and I2C3. Signed-off-by: Adam Ford Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH 4.14 15/33] net: bridge: delete local fdb on device init failure

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit d7bae09fa008c6c9a489580db0a5a12063b97f97 ] On initialization failure we have to delete the local fdb which was inserted due to the default pvid creation. This problem has been present since the inception of default_pvid. Note that currently there are

[PATCH 4.14 24/33] net/mlx5e: Prevent encap flow counter update async to user query

2019-08-08 Thread Greg Kroah-Hartman
From: Ariel Levkovich [ Upstream commit 90bb769291161cf25a818d69cf608c181654473e ] This patch prevents a race between user invoked cached counters query and a neighbor last usage updater. The cached flow counter stats can be queried by calling "mlx5_fc_query_cached" which provides the number

[PATCH 4.14 29/33] cgroup: Implement css_task_iter_skip()

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit b636fd38dc40113f853337a7d2a6885ad23b8811 upstream. When a task is moved out of a cset, task iterators pointing to the task are advanced using the normal css_task_iter_advance() call. This is fine but we'll be tracking dying tasks on csets and thus moving tasks from

[PATCH 4.14 33/33] spi: bcm2835: Fix 3-wire mode if DMA is enabled

2019-08-08 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 8d8bef50365847134b51c1ec46786bc2873e4e47 upstream. Commit 6935224da248 ("spi: bcm2835: enable support of 3-wire mode") added 3-wire support to the BCM2835 SPI driver by setting the REN bit (Read Enable) in the CS register when receiving data. The REN bit puts the

[PATCH 4.14 32/33] cgroup: Fix css_task_iter_advance_css_set() cset skip condition

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit c596687a008b579c503afb7a64fcacc7270fae9e upstream. While adding handling for dying task group leaders c03cd7738a83 ("cgroup: Include dying leaders with live threads in PROCS iterations") added an inverted cset skip condition to css_task_iter_advance_css_set(). It should

[PATCH 4.14 30/33] cgroup: Include dying leaders with live threads in PROCS iterations

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit c03cd7738a83b13739f00546166969342c8ff014 upstream. CSS_TASK_ITER_PROCS currently iterates live group leaders; however, this means that a process with dying leader and live threads will be skipped. IOW, cgroup.procs might be empty while cgroup.threads isn't, which is

[PATCH 4.14 00/33] 4.14.138-stable review

2019-08-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.138 release. There are 33 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sat 10 Aug 2019 07:03:19 PM UTC. Anything

[PATCH 4.14 25/33] tun: mark small packets as owned by the tap sock

2019-08-08 Thread Greg Kroah-Hartman
From: Alexis Bauvin [ Upstream commit 4b663366246be1d1d4b1b8b01245b2e88ad9e706 ] - v1 -> v2: Move skb_set_owner_w to __tun_build_skb to reduce patch size Small packets going out of a tap device go through an optimized code path that uses build_skb() rather than sock_alloc_send_pskb(). The

[PATCH 4.14 31/33] cgroup: css_task_iter_skip()d iterators must be advanced before accessed

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit cee0c33c546a93957a52ae9ab6bebadbee765ec5 upstream. b636fd38dc40 ("cgroup: Implement css_task_iter_skip()") introduced css_task_iter_skip() which is used to fix task iterations skipping dying threadgroup leaders with live threads. Skipping is implemented as a subportion

[PATCH 4.14 02/33] ARM: dts: Add pinmuxing for i2c2 and i2c3 for LogicPD SOM-LV

2019-08-08 Thread Greg Kroah-Hartman
[ Upstream commit 5fe3c0fa0d54877c65e7c9b4442aeeb25cdf469a ] Since I2C1 and I2C4 have explicit pinmuxing set, let's be on the safe side and set the pin muxing for I2C2 and I2C3. Signed-off-by: Adam Ford Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin ---

[PATCH 4.14 06/33] HID: wacom: fix bit shift for Cintiq Companion 2

2019-08-08 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit 693c3dab4e50403f91bca4b52fc6d8562a3180f6 upstream. The bit indicating BTN_6 on this device is overshifted by 2 bits, resulting in the incorrect button being reported. Also fix copy-paste mistake in comments. Signed-off-by: Aaron Armstrong Skomra

[PATCH 4.14 26/33] mvpp2: refactor MTU change code

2019-08-08 Thread Greg Kroah-Hartman
From: Matteo Croce [ Upstream commit 230bd958c2c846ee292aa38bc6b006296c24ca01 ] The MTU change code can call napi_disable() with the device already down, leading to a deadlock. Also, lot of code is duplicated unnecessarily. Rework mvpp2_change_mtu() to avoid the deadlock and remove duplicated

[PATCH 4.14 05/33] arm64: cpufeature: Fix feature comparison for CTR_EL0.{CWG,ERG}

2019-08-08 Thread Greg Kroah-Hartman
From: Will Deacon commit 147b9635e6347104b91f48ca9dca61eb0fbf2a54 upstream. If CTR_EL0.{CWG,ERG} are 0b then they must be interpreted to have their architecturally maximum values, which defeats the use of FTR_HIGHER_SAFE when sanitising CPU ID registers on heterogeneous machines. Introduce

[PATCH 4.14 08/33] RDMA: Directly cast the sockaddr union to sockaddr

2019-08-08 Thread Greg Kroah-Hartman
From: Jason Gunthorpe commit 641114d2af312d39ca9bbc2369d18a5823da51c6 upstream. gcc 9 now does allocation size tracking and thinks that passing the member of a union and then accessing beyond that member's bounds is an overflow. Instead of using the union member, use the entire union with a

[PATCH 4.14 21/33] NFC: nfcmrvl: fix gpio-handling regression

2019-08-08 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit c3953a3c2d3175d2f9f0304c9a1ba89e7743c5e4 ] Fix two reset-gpio sanity checks which were never converted to use gpio_is_valid(), and make sure to use -EINVAL to indicate a missing reset line also for the UART-driver module parameter and for the USB driver.

[PATCH 4.14 27/33] bnx2x: Disable multi-cos feature.

2019-08-08 Thread Greg Kroah-Hartman
From: Sudarsana Reddy Kalluru [ Upstream commit d1f0b5dce8fda09a7f5f04c1878f181d548e42f5 ] Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos feature after prolonged time in driver added some regression causing numerous issues (sudden reboots, tx timeout etc.) reported by

[PATCH 4.14 28/33] cgroup: Call cgroup_release() before __exit_signal()

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit 6b115bf58e6f013ca75e7115aabcbd56c20ff31d upstream. cgroup_release() calls cgroup_subsys->release() which is used by the pids controller to uncharge its pid. We want to use it to manage iteration of dying tasks which requires putting it before __unhash_process(). Move

[PATCH 4.14 22/33] tipc: compat: allow tipc commands without arguments

2019-08-08 Thread Greg Kroah-Hartman
From: Taras Kondratiuk [ Upstream commit 4da5f0018eef4c0de31675b670c80e82e13e99d1 ] Commit 2753ca5d9009 ("tipc: fix uninit-value in tipc_nl_compat_doit") broke older tipc tools that use compat interface (e.g. tipc-config from tipcutils package): % tipc-config -p operation not supported The

[PATCH 4.14 07/33] HID: Add quirk for HP X1200 PIXART OEM mouse

2019-08-08 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 49869d2ea9eecc105a10724c1abf035151a3c4e2 upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Jonathan Teh (@jonathan-teh) reported and tested

[PATCH 4.14 23/33] compat_ioctl: pppoe: fix PPPOEIOCSFWD handling

2019-08-08 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 055d88242a6046a1ceac3167290f054c72571cd9 ] Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in linux-2.5.69 along with hundreds of other commands, but was always broken sincen only the structure is compatible, but the command number is

[PATCH 4.14 09/33] [PATCH] IB: directly cast the sockaddr union to aockaddr

2019-08-08 Thread Greg Kroah-Hartman
Like commit 641114d2af31 ("RDMA: Directly cast the sockaddr union to sockaddr") we need to quiet gcc 9 from warning about this crazy union. That commit did not fix all of the warnings in 4.19 and older kernels because the logic in roce_resolve_route_from_path() was rewritten between 4.19 and 5.2

[PATCH 4.14 18/33] net/mlx5: Use reversed order when unregister devices

2019-08-08 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 08aa5e7da6bce1a1963f63cf32c2e7ad434ad578 ] When lag is active, which is controlled by the bonded mlx5e netdev, mlx5 interface unregestering must happen in the reverse order where rdma is unregistered (unloaded) first, to guarantee all references to the lag

[PATCH 4.14 19/33] net: phylink: Fix flow control for fixed-link

2019-08-08 Thread Greg Kroah-Hartman
From: "Ren� van Dorst" [ Upstream commit 8aace4f3eba2a3ceb431e18683ea0e1ecbade5cd ] In phylink_parse_fixedlink() the pl->link_config.advertising bits are AND with pl->supported, pl->supported is zeroed and only the speed/duplex modes and MII bits are set. So pl->link_config.advertising always

[PATCH 4.14 16/33] net: bridge: mcast: dont delete permanent entries when fast leave is enabled

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit 5c725b6b65067909548ac9ca9bc777098ec9883d ] When permanent entries were introduced by the commit below, they were exempt from timing out and thus igmp leave wouldn't affect them unless fast leave was enabled on the port which was added before permanent

[PATCH 4.14 14/33] ip6_tunnel: fix possible use-after-free on xmit

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 01f5bffad555f8e22a61f4b1261fe09cf1b96994 ] ip4ip6/ip6ip6 tunnels run iptunnel_handle_offloads on xmit which can cause a possible use-after-free accessing iph/ipv6h pointer since the packet will be 'uncloned' running pskb_expand_head if it is a cloned gso

[PATCH 4.14 11/33] objtool: Add rewind_stack_do_exit() to the noreturn list

2019-08-08 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 4fa5ecda2bf96be7464eb406df8aba9d89260227 upstream. This fixes the following warning seen on GCC 7.3: arch/x86/kernel/dumpstack.o: warning: objtool: oops_end() falls through to next function show_regs() Reported-by: kbuild test robot Signed-off-by: Josh

[PATCH 4.14 10/33] objtool: Add machine_real_restart() to the noreturn list

2019-08-08 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 684fb246578b9e81fc7b4ca5c71eae22edb650b2 upstream. machine_real_restart() is annotated as '__noreturn", so add it to the objtool noreturn list. This fixes the following warning with clang and CONFIG_CC_OPTIMIZE_FOR_SIZE=y: arch/x86/kernel/reboot.o: warning:

[PATCH 4.19 16/45] ip6_tunnel: fix possible use-after-free on xmit

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 01f5bffad555f8e22a61f4b1261fe09cf1b96994 ] ip4ip6/ip6ip6 tunnels run iptunnel_handle_offloads on xmit which can cause a possible use-after-free accessing iph/ipv6h pointer since the packet will be 'uncloned' running pskb_expand_head if it is a cloned gso

[PATCH 4.19 25/45] net/mlx5: Use reversed order when unregister devices

2019-08-08 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 08aa5e7da6bce1a1963f63cf32c2e7ad434ad578 ] When lag is active, which is controlled by the bonded mlx5e netdev, mlx5 interface unregestering must happen in the reverse order where rdma is unregistered (unloaded) first, to guarantee all references to the lag

[PATCH 4.14 12/33] atm: iphase: Fix Spectre v1 vulnerability

2019-08-08 Thread Greg Kroah-Hartman
From: "Gustavo A. R. Silva" [ Upstream commit ea443e5e98b5b74e317ef3d26bcaea54931ccdee ] board is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: drivers/atm/iphase.c:2765 ia_ioctl()

[PATCH 4.14 01/33] scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure

2019-08-08 Thread Greg Kroah-Hartman
From: Hannes Reinecke commit 023358b136d490ca91735ac6490db3741af5a8bd upstream. Gcc-9 complains for a memset across pointer boundaries, which happens as the code tries to allocate a flexible array on the stack. Turns out we cannot do this without relying on gcc-isms, so with this patch we'll

[PATCH 4.19 37/45] net/mlx5e: Prevent encap flow counter update async to user query

2019-08-08 Thread Greg Kroah-Hartman
From: Ariel Levkovich [ Upstream commit 90bb769291161cf25a818d69cf608c181654473e ] This patch prevents a race between user invoked cached counters query and a neighbor last usage updater. The cached flow counter stats can be queried by calling "mlx5_fc_query_cached" which provides the number

[PATCH 4.19 35/45] tun: mark small packets as owned by the tap sock

2019-08-08 Thread Greg Kroah-Hartman
From: Alexis Bauvin [ Upstream commit 4b663366246be1d1d4b1b8b01245b2e88ad9e706 ] - v1 -> v2: Move skb_set_owner_w to __tun_build_skb to reduce patch size Small packets going out of a tap device go through an optimized code path that uses build_skb() rather than sock_alloc_send_pskb(). The

[PATCH 4.19 18/45] mlxsw: spectrum: Fix error path in mlxsw_sp_module_init()

2019-08-08 Thread Greg Kroah-Hartman
From: Jiri Pirko [ Upstream commit 28fe79000e9b0a6f99959869947f1ca305f14599 ] In case of sp2 pci driver registration fail, fix the error path to start with sp1 pci driver unregister. Fixes: c3ab435466d5 ("mlxsw: spectrum: Extend to support Spectrum-2 ASIC") Signed-off-by: Jiri Pirko

[PATCH 4.19 24/45] net/mlx5e: always initialize frag->last_in_page

2019-08-08 Thread Greg Kroah-Hartman
From: Qian Cai [ Upstream commit 60d60c8fbd8d1acf25b041ecd72ae4fa16e9405b ] The commit 069d11465a80 ("net/mlx5e: RX, Enhance legacy Receive Queue memory scheme") introduced an undefined behaviour below due to "frag->last_in_page" is only initialized in mlx5e_init_frags_partition() when, if

[PATCH 4.19 44/45] cgroup: Fix css_task_iter_advance_css_set() cset skip condition

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit c596687a008b579c503afb7a64fcacc7270fae9e upstream. While adding handling for dying task group leaders c03cd7738a83 ("cgroup: Include dying leaders with live threads in PROCS iterations") added an inverted cset skip condition to css_task_iter_advance_css_set(). It should

[PATCH 4.19 19/45] mvpp2: fix panic on module removal

2019-08-08 Thread Greg Kroah-Hartman
From: Matteo Croce [ Upstream commit 944a83a2669ae8aa2c7664e79376ca7468eb0a2b ] mvpp2 uses a delayed workqueue to gather traffic statistics. On module removal the workqueue can be destroyed before calling cancel_delayed_work_sync() on its works. Fix it by moving the destroy_workqueue() call

[PATCH 4.19 45/45] spi: bcm2835: Fix 3-wire mode if DMA is enabled

2019-08-08 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 8d8bef50365847134b51c1ec46786bc2873e4e47 upstream. Commit 6935224da248 ("spi: bcm2835: enable support of 3-wire mode") added 3-wire support to the BCM2835 SPI driver by setting the REN bit (Read Enable) in the CS register when receiving data. The REN bit puts the

[PATCH 4.19 39/45] compat_ioctl: pppoe: fix PPPOEIOCSFWD handling

2019-08-08 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 055d88242a6046a1ceac3167290f054c72571cd9 ] Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in linux-2.5.69 along with hundreds of other commands, but was always broken sincen only the structure is compatible, but the command number is

[PATCH 4.19 43/45] cgroup: css_task_iter_skip()d iterators must be advanced before accessed

2019-08-08 Thread Greg Kroah-Hartman
From: Tejun Heo commit cee0c33c546a93957a52ae9ab6bebadbee765ec5 upstream. b636fd38dc40 ("cgroup: Implement css_task_iter_skip()") introduced css_task_iter_skip() which is used to fix task iterations skipping dying threadgroup leaders with live threads. Skipping is implemented as a subportion

[PATCH 4.19 20/45] mvpp2: refactor MTU change code

2019-08-08 Thread Greg Kroah-Hartman
From: Matteo Croce [ Upstream commit 230bd958c2c846ee292aa38bc6b006296c24ca01 ] The MTU change code can call napi_disable() with the device already down, leading to a deadlock. Also, lot of code is duplicated unnecessarily. Rework mvpp2_change_mtu() to avoid the deadlock and remove duplicated

[PATCH 4.19 33/45] ocelot: Cancel delayed work before wq destruction

2019-08-08 Thread Greg Kroah-Hartman
From: Claudiu Manoil [ Upstream commit c5d139697d5d9ecf9c7cd92d7d7838a173508900 ] Make sure the delayed work for stats update is not pending before wq destruction. This fixes the module unload path. The issue is there since day 1. Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch

[PATCH 4.19 34/45] tipc: compat: allow tipc commands without arguments

2019-08-08 Thread Greg Kroah-Hartman
From: Taras Kondratiuk [ Upstream commit 4da5f0018eef4c0de31675b670c80e82e13e99d1 ] Commit 2753ca5d9009 ("tipc: fix uninit-value in tipc_nl_compat_doit") broke older tipc tools that use compat interface (e.g. tipc-config from tipcutils package): % tipc-config -p operation not supported The

[PATCH 4.19 32/45] NFC: nfcmrvl: fix gpio-handling regression

2019-08-08 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit c3953a3c2d3175d2f9f0304c9a1ba89e7743c5e4 ] Fix two reset-gpio sanity checks which were never converted to use gpio_is_valid(), and make sure to use -EINVAL to indicate a missing reset line also for the UART-driver module parameter and for the USB driver.

[PATCH 4.19 30/45] net: sched: use temporary variable for actions indexes

2019-08-08 Thread Greg Kroah-Hartman
From: Dmytro Linkin [ Upstream commit 7be8ef2cdbfe41a2e524b7c6cc3f8e6cfaa906e4 ] Currently init call of all actions (except ipt) init their 'parm' structure as a direct pointer to nla data in skb. This leads to race condition when some of the filter actions were initialized successfully (and

[PATCH 4.19 29/45] net sched: update vlan action for batched events operations

2019-08-08 Thread Greg Kroah-Hartman
From: Roman Mashak [ Upstream commit b35475c5491a14c8ce7a5046ef7bcda8a860581a ] Add get_fill_size() routine used to calculate the action size when building a batch of events. Fixes: c7e2b9689 ("sched: introduce vlan action") Signed-off-by: Roman Mashak Signed-off-by: David S. Miller

[PATCH 4.19 28/45] net: sched: Fix a possible null-pointer dereference in dequeue_func()

2019-08-08 Thread Greg Kroah-Hartman
From: Jia-Ju Bai [ Upstream commit 051c7b39be4a91f6b7d8c4548444e4b850f1f56c ] In dequeue_func(), there is an if statement on line 74 to check whether skb is NULL: if (skb) When skb is NULL, it is used on line 77: prefetch(>end); Thus, a possible null-pointer dereference may occur. To

[PATCH 4.19 06/45] libnvdimm/region: Register badblocks before namespaces

2019-08-08 Thread Greg Kroah-Hartman
commit 700cd033a82d466ad8f9615f9985525e45f8960a upstream. Namespace activation expects to be able to reference region badblocks. The following warning sometimes triggers when asynchronous namespace activation races in front of the completion of namespace probing. Move all possible namespace

[PATCH 4.19 17/45] ipip: validate header length in ipip_tunnel_xmit

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 47d858d0bdcd47cc1c6c9eeca91b091dd9e55637 ] We need the same checks introduced by commit cb9f1b783850 ("ip: validate header length on virtual device xmit") for ipip tunnel. Fixes: cb9f1b783850b ("ip: validate header length on virtual device xmit")

[PATCH 4.19 09/45] HID: wacom: fix bit shift for Cintiq Companion 2

2019-08-08 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit 693c3dab4e50403f91bca4b52fc6d8562a3180f6 upstream. The bit indicating BTN_6 on this device is overshifted by 2 bits, resulting in the incorrect button being reported. Also fix copy-paste mistake in comments. Signed-off-by: Aaron Armstrong Skomra

[PATCH 4.19 13/45] bnx2x: Disable multi-cos feature.

2019-08-08 Thread Greg Kroah-Hartman
From: Sudarsana Reddy Kalluru [ Upstream commit d1f0b5dce8fda09a7f5f04c1878f181d548e42f5 ] Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos feature after prolonged time in driver added some regression causing numerous issues (sudden reboots, tx timeout etc.) reported by

[PATCH 4.19 02/45] gcc-9: dont warn about uninitialized variable

2019-08-08 Thread Greg Kroah-Hartman
From: Linus Torvalds commit cf676908846a06443fa5e6724ca3f5dd7460eca1 upstream. I'm not sure what made gcc warn about this code now. The 'ret' variable does end up initialized in all cases, but it's definitely not obvious, so the compiler is quite reasonable to warn about this. So just add

[PATCH 4.19 04/45] drivers/base: Introduce kill_device()

2019-08-08 Thread Greg Kroah-Hartman
commit 00289cd87676e14913d2d8492d1ce05c4baafdae upstream. The libnvdimm subsystem arranges for devices to be destroyed as a result of a sysfs operation. Since device_unregister() cannot be called from an actively running sysfs attribute of the same device libnvdimm arranges for

[PATCH 4.19 14/45] ife: error out when nla attributes are empty

2019-08-08 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit c8ec4632c6ac9cda0e8c3d51aa41eeab66585bd5 ] act_ife at least requires TCA_IFE_PARMS, so we have to bail out when there is no attribute passed in. Reported-by: syzbot+fbb5b288c9cb6a2ee...@syzkaller.appspotmail.com Fixes: ef6980b6becb ("introduce IFE action") Cc:

[PATCH 5.2 44/56] selftests/bpf: reduce time to execute test_xdp_vlan.sh

2019-08-08 Thread Greg Kroah-Hartman
From: Jesper Dangaard Brouer [ Upstream commit 13978d1e73d2fcfb6addcf3392707ad68fa88ccb ] Given the increasing number of BPF selftests, it makes sense to reduce the time to execute these tests. The ping parameters are adjusted to reduce the time from measures 9 sec to approx 2.8 sec.

[PATCH 5.2 38/56] tun: mark small packets as owned by the tap sock

2019-08-08 Thread Greg Kroah-Hartman
From: Alexis Bauvin [ Upstream commit 4b663366246be1d1d4b1b8b01245b2e88ad9e706 ] - v1 -> v2: Move skb_set_owner_w to __tun_build_skb to reduce patch size Small packets going out of a tap device go through an optimized code path that uses build_skb() rather than sock_alloc_send_pskb(). The

[PATCH 4.19 10/45] HID: Add quirk for HP X1200 PIXART OEM mouse

2019-08-08 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 49869d2ea9eecc105a10724c1abf035151a3c4e2 upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Jonathan Teh (@jonathan-teh) reported and tested

[PATCH 4.19 12/45] atm: iphase: Fix Spectre v1 vulnerability

2019-08-08 Thread Greg Kroah-Hartman
From: "Gustavo A. R. Silva" [ Upstream commit ea443e5e98b5b74e317ef3d26bcaea54931ccdee ] board is controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: drivers/atm/iphase.c:2765 ia_ioctl()

[PATCH 4.19 11/45] [PATCH] IB: directly cast the sockaddr union to aockaddr

2019-08-08 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman Like commit 641114d2af31 ("RDMA: Directly cast the sockaddr union to sockaddr") we need to quiet gcc 9 from warning about this crazy union. That commit did not fix all of the warnings in 4.19 and older kernels because the logic in roce_resolve_route_from_path() was

[PATCH 5.2 41/56] r8169: dont use MSI before RTL8168d

2019-08-08 Thread Greg Kroah-Hartman
From: Heiner Kallweit [ Upstream commit 003bd5b4a7b4a94b501e3a1e2e7c9df6b2a94ed4 ] It was reported that after resuming from suspend network fails with error "do_IRQ: 3.38 No irq handler for vector", see [0]. Enabling WoL can work around the issue, but the only actual fix is to disable MSI. So

[PATCH 5.2 40/56] net/mlx5e: Prevent encap flow counter update async to user query

2019-08-08 Thread Greg Kroah-Hartman
From: Ariel Levkovich [ Upstream commit 90bb769291161cf25a818d69cf608c181654473e ] This patch prevents a race between user invoked cached counters query and a neighbor last usage updater. The cached flow counter stats can be queried by calling "mlx5_fc_query_cached" which provides the number

[PATCH 5.2 56/56] spi: bcm2835: Fix 3-wire mode if DMA is enabled

2019-08-08 Thread Greg Kroah-Hartman
From: Lukas Wunner commit 8d8bef50365847134b51c1ec46786bc2873e4e47 upstream. Commit 6935224da248 ("spi: bcm2835: enable support of 3-wire mode") added 3-wire support to the BCM2835 SPI driver by setting the REN bit (Read Enable) in the CS register when receiving data. The REN bit puts the

[PATCH 5.2 55/56] Revert "mac80211: set NETIF_F_LLTX when using intermediate tx queues"

2019-08-08 Thread Greg Kroah-Hartman
From: Johannes Berg commit eef347f846ee8f7296a6f84e3866c057ca6bcce0 upstream. Revert this for now, it has been reported multiple times that it completely breaks connectivity on various devices. Cc: sta...@vger.kernel.org Fixes: 8dbb000ee73b ("mac80211: set NETIF_F_LLTX when using intermediate

[PATCH 5.2 49/56] rocker: fix memory leaks of fib_work on two error return paths

2019-08-08 Thread Greg Kroah-Hartman
From: Colin Ian King [ Upstream commit 011f175428d46461f94a65dacb9a416529d08dda ] Currently there are two error return paths that leak memory allocated to fib_work. Fix this by kfree'ing fib_work before returning. Addresses-Coverity: ("Resource leak") Fixes: 19a9d136f198 ("ipv4: Flag fib_info

[PATCH 5.2 53/56] compat_ioctl: pppoe: fix PPPOEIOCSFWD handling

2019-08-08 Thread Greg Kroah-Hartman
From: Arnd Bergmann [ Upstream commit 055d88242a6046a1ceac3167290f054c72571cd9 ] Support for handling the PPPOEIOCSFWD ioctl in compat mode was added in linux-2.5.69 along with hundreds of other commands, but was always broken sincen only the structure is compatible, but the command number is

[PATCH 5.2 52/56] net/mlx5e: Fix matching of speed to PRM link modes

2019-08-08 Thread Greg Kroah-Hartman
From: Aya Levin [ Upstream commit 4b95840a6ced0634082f6d962ba9aa0ce797f12f ] Speed translation is performed based on legacy or extended PTYS register. Translate speed with respect to: 1) Capability bit of extended PTYS table. 2) User request: a) When auto-negotiation is turned on, inspect

[PATCH 5.2 50/56] mlxsw: spectrum_buffers: Further reduce pool size on Spectrum-2

2019-08-08 Thread Greg Kroah-Hartman
From: Petr Machata [ Upstream commit 744ad9a357280d03d567538cee7e1e457dedd481 ] In commit e891ce1dd2a5 ("mlxsw: spectrum_buffers: Reduce pool size on Spectrum-2"), pool size was reduced to mitigate a problem in port buffer usage of ports split four ways. It turns out that this work around does

[PATCH 5.2 48/56] net/smc: avoid fallback in case of non-blocking connect

2019-08-08 Thread Greg Kroah-Hartman
From: Ursula Braun [ Upstream commit cd2063604ea6a8c2683b4eb9b5f4c4da74592d87 ] FASTOPEN is not possible with SMC. sendmsg() with msg_flag MSG_FASTOPEN triggers a fallback to TCP if the socket is in state SMC_INIT. But if a nonblocking connect is already started, fallback to TCP is no longer

[PATCH 5.2 54/56] drm/i915/vbt: Fix VBT parsing for the PSR section

2019-08-08 Thread Greg Kroah-Hartman
From: Dhinakaran Pandiyan commit 6d61f716a01ec0e134de38ae97e71d6fec5a6ff6 upstream. A single 32-bit PSR2 training pattern field follows the sixteen element array of PSR table entries in the VBT spec. But, we incorrectly define this PSR2 field for each of the PSR table entries. As a result, the

[PATCH 5.2 09/56] bnx2x: Disable multi-cos feature.

2019-08-08 Thread Greg Kroah-Hartman
From: Sudarsana Reddy Kalluru [ Upstream commit d1f0b5dce8fda09a7f5f04c1878f181d548e42f5 ] Commit 3968d38917eb ("bnx2x: Fix Multi-Cos.") which enabled multi-cos feature after prolonged time in driver added some regression causing numerous issues (sudden reboots, tx timeout etc.) reported by

[PATCH 5.2 26/56] net: phylink: Fix flow control for fixed-link

2019-08-08 Thread Greg Kroah-Hartman
From: "Ren� van Dorst" [ Upstream commit 8aace4f3eba2a3ceb431e18683ea0e1ecbade5cd ] In phylink_parse_fixedlink() the pl->link_config.advertising bits are AND with pl->supported, pl->supported is zeroed and only the speed/duplex modes and MII bits are set. So pl->link_config.advertising always

[PATCH 5.2 34/56] NFC: nfcmrvl: fix gpio-handling regression

2019-08-08 Thread Greg Kroah-Hartman
From: Johan Hovold [ Upstream commit c3953a3c2d3175d2f9f0304c9a1ba89e7743c5e4 ] Fix two reset-gpio sanity checks which were never converted to use gpio_is_valid(), and make sure to use -EINVAL to indicate a missing reset line also for the UART-driver module parameter and for the USB driver.

[PATCH 5.2 05/56] ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check

2019-08-08 Thread Greg Kroah-Hartman
[ Upstream commit 5d78e1c2b7f4be00bbe62141603a631dc7812f35 ] syzbot found the following crash on: general protection fault: [#1] SMP KASAN RIP: 0010:snd_usb_pipe_sanity_check+0x80/0x130 sound/usb/helper.c:75 Call Trace: snd_usb_motu_microbookii_communicate.constprop.0+0xa0/0x2fb

[PATCH 5.2 35/56] ocelot: Cancel delayed work before wq destruction

2019-08-08 Thread Greg Kroah-Hartman
From: Claudiu Manoil [ Upstream commit c5d139697d5d9ecf9c7cd92d7d7838a173508900 ] Make sure the delayed work for stats update is not pending before wq destruction. This fixes the module unload path. The issue is there since day 1. Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch

[PATCH 5.2 33/56] net: stmmac: Use netif_tx_napi_add() for TX polling function

2019-08-08 Thread Greg Kroah-Hartman
From: Frode Isaksen [ Upstream commit 4d97972b45f080db4c6d27cc0b54321d9cd7be17 ] This variant of netif_napi_add() should be used from drivers using NAPI to exclusively poll a TX queue. Signed-off-by: Frode Isaksen Tested-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski

[PATCH 5.2 31/56] net: sched: use temporary variable for actions indexes

2019-08-08 Thread Greg Kroah-Hartman
From: Dmytro Linkin [ Upstream commit 7be8ef2cdbfe41a2e524b7c6cc3f8e6cfaa906e4 ] Currently init call of all actions (except ipt) init their 'parm' structure as a direct pointer to nla data in skb. This leads to race condition when some of the filter actions were initialized successfully (and

[PATCH 5.2 03/56] libnvdimm/bus: Fix wait_nvdimm_bus_probe_idle() ABBA deadlock

2019-08-08 Thread Greg Kroah-Hartman
commit ca6bf264f6d856f959c4239cda1047b587745c67 upstream. A multithreaded namespace creation/destruction stress test currently deadlocks with the following lockup signature: INFO: task ndctl:2924 blocked for more than 122 seconds. Tainted: G OE 5.2.0-rc4+ #3382

[PATCH 5.2 06/56] HID: wacom: fix bit shift for Cintiq Companion 2

2019-08-08 Thread Greg Kroah-Hartman
From: Aaron Armstrong Skomra commit 693c3dab4e50403f91bca4b52fc6d8562a3180f6 upstream. The bit indicating BTN_6 on this device is overshifted by 2 bits, resulting in the incorrect button being reported. Also fix copy-paste mistake in comments. Signed-off-by: Aaron Armstrong Skomra

[PATCH 5.2 25/56] net: phylink: dont start and stop SGMII PHYs in SFP modules twice

2019-08-08 Thread Greg Kroah-Hartman
From: Arseny Solokha [ Upstream commit c7fa7f567cab6532be285a5df104617d80bce245 ] SFP modules connected using the SGMII interface have their own PHYs which are handled by the struct phylink's phydev field. On the other hand, for the modules connected using 1000Base-X interface that field is not

[PATCH 5.2 24/56] net: phy: fixed_phy: print gpio error only if gpio node is present

2019-08-08 Thread Greg Kroah-Hartman
From: Hubert Feurstein [ Upstream commit ab98c008ac761752cdc27f9eb053419feadeb2f7 ] It is perfectly ok to not have an gpio attached to the fixed-link node. So the driver should not throw an error message when the gpio is missing. Fixes: 5468e82f7034 ("net: phy: fixed-phy: Drop GPIO from

[PATCH 5.2 10/56] drivers/net/ethernet/marvell/mvmdio.c: Fix non OF case

2019-08-08 Thread Greg Kroah-Hartman
From: "Arnaud Patard (Rtp)" [ Upstream commit d934423ac26ed373dfe089734d505dca5ff679b6 ] Orion5.x systems are still using machine files and not device-tree. Commit 96cb4342382290c9 ("net: mvmdio: allow up to three clocks to be specified for orion-mdio") has replaced devm_clk_get() with

[PATCH 5.2 16/56] mvpp2: fix panic on module removal

2019-08-08 Thread Greg Kroah-Hartman
From: Matteo Croce [ Upstream commit 944a83a2669ae8aa2c7664e79376ca7468eb0a2b ] mvpp2 uses a delayed workqueue to gather traffic statistics. On module removal the workqueue can be destroyed before calling cancel_delayed_work_sync() on its works. Fix it by moving the destroy_workqueue() call

[PATCH 5.2 17/56] mvpp2: refactor MTU change code

2019-08-08 Thread Greg Kroah-Hartman
From: Matteo Croce [ Upstream commit 230bd958c2c846ee292aa38bc6b006296c24ca01 ] The MTU change code can call napi_disable() with the device already down, leading to a deadlock. Also, lot of code is duplicated unnecessarily. Rework mvpp2_change_mtu() to avoid the deadlock and remove duplicated

[PATCH 5.2 02/56] libnvdimm/bus: Prepare the nd_ioctl() path to be re-entrant

2019-08-08 Thread Greg Kroah-Hartman
commit 6de5d06e657acdbcf9637dac37916a4a5309e0f4 upstream. In preparation for not holding a lock over the execution of nd_ioctl(), update the implementation to allow multiple threads to be attempting ioctls at the same time. The bus lock still prevents multiple in-flight ->ndctl() invocations from

[PATCH 5.2 20/56] net: bridge: move default pvid init/deinit to NETDEV_REGISTER/UNREGISTER

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit 091adf9ba6cdb432cbcc217b47e4ffb8aa0d8865 ] Most of the bridge device's vlan init bugs come from the fact that its default pvid is created at the wrong time, way too early in ndo_init() before the device is even assigned an ifindex. It introduces a bug

[PATCH 5.2 23/56] net/mlx5: Use reversed order when unregister devices

2019-08-08 Thread Greg Kroah-Hartman
From: Mark Zhang [ Upstream commit 08aa5e7da6bce1a1963f63cf32c2e7ad434ad578 ] When lag is active, which is controlled by the bonded mlx5e netdev, mlx5 interface unregestering must happen in the reverse order where rdma is unregistered (unloaded) first, to guarantee all references to the lag

[PATCH 5.2 18/56] net: bridge: delete local fdb on device init failure

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit d7bae09fa008c6c9a489580db0a5a12063b97f97 ] On initialization failure we have to delete the local fdb which was inserted due to the default pvid creation. This problem has been present since the inception of default_pvid. Note that currently there are

[PATCH 5.2 14/56] ipip: validate header length in ipip_tunnel_xmit

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 47d858d0bdcd47cc1c6c9eeca91b091dd9e55637 ] We need the same checks introduced by commit cb9f1b783850 ("ip: validate header length on virtual device xmit") for ipip tunnel. Fixes: cb9f1b783850b ("ip: validate header length on virtual device xmit")

[PATCH 5.2 19/56] net: bridge: mcast: dont delete permanent entries when fast leave is enabled

2019-08-08 Thread Greg Kroah-Hartman
From: Nikolay Aleksandrov [ Upstream commit 5c725b6b65067909548ac9ca9bc777098ec9883d ] When permanent entries were introduced by the commit below, they were exempt from timing out and thus igmp leave wouldn't affect them unless fast leave was enabled on the port which was added before permanent

[PATCH 5.2 13/56] ip6_tunnel: fix possible use-after-free on xmit

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 01f5bffad555f8e22a61f4b1261fe09cf1b96994 ] ip4ip6/ip6ip6 tunnels run iptunnel_handle_offloads on xmit which can cause a possible use-after-free accessing iph/ipv6h pointer since the packet will be 'uncloned' running pskb_expand_head if it is a cloned gso

[PATCH 5.2 12/56] ip6_gre: reload ipv6h in prepare_ip6gre_xmit_ipv6

2019-08-08 Thread Greg Kroah-Hartman
From: Haishuang Yan [ Upstream commit 3bc817d665ac6d9de89f59df522ad86f5b5dfc03 ] Since ip6_tnl_parse_tlv_enc_lim() can call pskb_may_pull() which may change skb->data, so we need to re-load ipv6h at the right place. Fixes: 898b29798e36 ("ip6_gre: Refactor ip6gre xmit codes") Cc: William Tu

[PATCH 5.2 01/56] scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure

2019-08-08 Thread Greg Kroah-Hartman
From: Hannes Reinecke commit 023358b136d490ca91735ac6490db3741af5a8bd upstream. Gcc-9 complains for a memset across pointer boundaries, which happens as the code tries to allocate a flexible array on the stack. Turns out we cannot do this without relying on gcc-isms, so with this patch we'll

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