[PATCH 4.9 040/102] 9p/rdma: do not disconnect on down_interruptible EAGAIN

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 8b894adb2b7e1d1e64b8954569c761eaf3d51ab5 ] 9p/rdma would sometimes drop the connection and display errors in recv_done when the user does ^C. The errors were caused by recv buffers that were posted at the time of disconnect, and we just do not want to disconnect when

[PATCH 4.9 006/102] Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

2019-07-08 Thread Greg Kroah-Hartman
From: Andrey Smirnov commit 7c7da40da1640ce6814dab1e8031b44e19e5a3f6 upstream. In the case of compat syscall ioctl numbers for UI_BEGIN_FF_UPLOAD and UI_END_FF_UPLOAD need to be adjusted before being passed on uinput_ioctl_handler() since code built with -m32 will be passing slightly different

[PATCH 4.9 039/102] perf header: Fix unchecked usage of strncpy()

2019-07-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 5192bde7d98c99f2cd80225649e3c2e7493722f7 upstream. The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an Alpine

[PATCH 4.9 036/102] IB/hfi1: Avoid hardlockup with flushlist_lock

2019-07-08 Thread Greg Kroah-Hartman
commit cf131a81967583ae737df6383a0893b9fee75b4e upstream. Heavy contention of the sde flushlist_lock can cause hard lockups at extreme scale when the flushing logic is under stress. Mitigate by replacing the item at a time copy to the local list with an O(1) list_splice_init() and using the high

[PATCH 4.9 038/102] perf help: Remove needless use of strncpy()

2019-07-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit b6313899f4ed2e76b8375cf8069556f5b94fbff0 upstream. Since we make sure the destination buffer has at least strlen(orig) + 1, no need to do a strncpy(dest, orig, strlen(orig)), just use strcpy(dest, orig). This silences this gcc 8.2 warning on Alpine Linux:

[PATCH 4.9 027/102] can: flexcan: fix timeout when set small bitrate

2019-07-08 Thread Greg Kroah-Hartman
From: Joakim Zhang commit 247e5356a709eb49a0d95ff2a7f07dac05c8252c upstream. Current we can meet timeout issue when setting a small bitrate like 1 as follows on i.MX6UL EVK board (ipg clock = 66MHZ, per clock = 30MHZ): | root@imx6ul7d:~# ip link set can0 up type can bitrate 1 A link

[PATCH 4.9 037/102] perf ui helpline: Use strlcpy() as a shorter form of strncpy() + explicit set nul

2019-07-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 4d0f16d059ddb91424480d88473f7392f24aebdc upstream. The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this case we are actually setting

[PATCH 4.9 026/102] btrfs: start readahead also in seed devices

2019-07-08 Thread Greg Kroah-Hartman
From: Naohiro Aota commit c4e0540d0ad49c8ceab06cceed1de27c4fe29f6e upstream. Currently, btrfs does not consult seed devices to start readahead. As a result, if readahead zone is added to the seed devices, btrfs_reada_wait() indefinitely wait for the reada_ctl to finish. You can reproduce the

[PATCH 4.9 003/102] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-07-08 Thread Greg Kroah-Hartman
From: Stanley Chu commit 24e2e7a19f7e4b83d0d5189040d997bce3596473 upstream. UFS runtime suspend can be triggered after pm_runtime_enable() is invoked in ufshcd_pltfrm_init(). However if the first runtime suspend is triggered before binding ufs_hba structure to ufs device structure via

[PATCH 4.9 029/102] powerpc/bpf: use unsigned division instruction for 64-bit operations

2019-07-08 Thread Greg Kroah-Hartman
From: Naveen N. Rao commit 758f2046ea040773ae8ea7f72dd3bbd8fa984501 upstream. BPF_ALU64 div/mod operations are currently using signed division, unlike BPF_ALU32 operations. Fix the same. DIV64 and MOD64 overflow tests pass with this fix. Fixes: 156d0e290e969c ("powerpc/ebpf/jit: Implement JIT

[PATCH 4.9 028/102] can: purge socket error queue on sock destruct

2019-07-08 Thread Greg Kroah-Hartman
From: Willem de Bruijn commit fd704bd5ee749d560e86c4f1fd2ef486d8abf7cf upstream. CAN supports software tx timestamps as of the below commit. Purge any queued timestamp packets on socket destroy. Fixes: 51f31cabe3ce ("ip: support for TX timestamps on UDP and RAW sockets") Reported-by:

[PATCH 4.9 030/102] ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX

2019-07-08 Thread Greg Kroah-Hartman
From: Fabio Estevam commit b25af2ff7c07bd19af74e3f64ff82e2880d13d81 upstream. Since commit 1e434b703248 ("ARM: imx: update the cpu power up timing setting on i.mx6sx") some characters loss is noticed on i.MX6ULL UART as reported by Christoph Niedermaier. The intention of such commit was to

[PATCH 4.9 031/102] Bluetooth: Align minimum encryption key size for LE and BR/EDR connections

2019-07-08 Thread Greg Kroah-Hartman
From: Marcel Holtmann commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream. The minimum encryption key size for LE connections is 56 bits and to align LE with BR/EDR, enforce 56 bits of minimum encryption key size for BR/EDR connections as well. Signed-off-by: Marcel Holtmann

[PATCH 4.9 025/102] nvme: Fix u32 overflow in the number of namespace list calculation

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit c8e8c77b3bdbade6e26e8e76595f141ede12b692 ] The Number of Namespaces (nn) field in the identify controller data structure is defined as u32 and the maximum allowed value in NVMe specification is 0xFFFEUL. This change fixes the possible overflow of the DIV_ROUND_UP() operation

[PATCH 4.9 024/102] hwmon: (pmbus/core) Treat parameters as paged if on multiple pages

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 4a60570dce658e3f8885bbcf852430b99f65aca5 ] Some chips have attributes which exist on more than one page but the attribute is not presently marked as paged. This causes the attributes to be generated with the same label, which makes it impossible for userspace to tell them apart.

[PATCH 4.9 015/102] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 62394708f3e01c9f2be6be74eb6305bae1ed924f ] When non-bridged, non-vlan'ed mv88e6xxx port is moving down, error message is logged: failed to kill vid 0081/0 for device eth_cu_1000_4 This is caused by call from __vlan_vid_del() with vin set to zero, over call chain this results

[PATCH 4.4 34/73] 9p: p9dirent_read: check network-provided name length

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit ef5305f1f72eb1cfcda25c382bb0368509c0385b ] strcpy to dirent->d_name could overflow the buffer, use strscpy to check the provided string length and error out if the size was too big. While we are here, make the function return an error when the pdu parsing failed, instead of

[PATCH 4.4 73/73] dmaengine: imx-sdma: remove BD_INTR for channel0

2019-07-08 Thread Greg Kroah-Hartman
From: Robin Gong commit 3f93a4f297961c12bb17aa16cb3a4d1291823cae upstream. It is possible for an irq triggered by channel0 to be received later after clks are disabled once firmware loaded during sdma probe. If that happens then clearing them by writing to SDMA_H_INTR won't work and the kernel

[PATCH 4.4 35/73] net/9p: include trans_common.h to fix missing prototype warning.

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 52ad259eaac0454c1ac7123e7148cf8d6e6f5301 ] This silences -Wmissing-prototypes when defining p9_release_pages. Link: http://lkml.kernel.org/r/b1c4df8f21689b10d451c28fe38e860722d20e71.1542089696.git.d...@net.com.org.es Signed-off-by: Adeodato Simó Signed-off-by: Dominique

[PATCH 4.9 013/102] IB/{qib, hfi1, rdmavt}: Correct ibv_devinfo max_mr value

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 35164f5259a47ea756fa1deb3e463ac2a4f10dc9 ] The command 'ibv_devinfo -v' reports 0 for max_mr. Fix by assigning the query values after the mr lkey_table has been built rather than early on in the driver. Fixes: 7b1e2099adc8 ("IB/rdmavt: Move memory registration into rdmavt")

[PATCH 4.9 010/102] parisc: Fix compiler warnings in float emulation code

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 6b98d9134e14f5ef4bcf64b27eedf484ed19a1ec ] Avoid such compiler warnings: arch/parisc/math-emu/cnv_float.h:71:27: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context] ((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) || Dintp2(dint_valueB))

[PATCH 4.9 014/102] MIPS: uprobes: remove set but not used variable epc

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit f532beeeff0c0a3586cc15538bc52d249eb19e7c ] Fixes gcc '-Wunused-but-set-variable' warning: arch/mips/kernel/uprobes.c: In function 'arch_uprobe_pre_xol': arch/mips/kernel/uprobes.c:115:17: warning: variable 'epc' set but not used [-Wunused-but-set-variable] It's never used

[PATCH 4.9 011/102] IB/rdmavt: Fix alloc_qpn() WARN_ON()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 2abae62a26a265129b364d8c1ef3be55e2c01309 ] The qpn allocation logic has a WARN_ON() that intends to detect the use of an index that will introduce bits in the lower order bits of the QOS bits in the QPN. Unfortunately, it has the following bugs: - it misfires when wrapping QPN

[PATCH 4.9 016/102] net: hns: Fix loopback test failed at copper ports

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 2e1f164861e500f4e068a9d909bbd3fcc7841483 ] When doing a loopback test at copper ports, the serdes loopback and the phy loopback will fail, because of the adjust link had not finished, and phy not ready. Adds sleep between adjust link and test process to fix it. Signed-off-by:

[PATCH 4.9 012/102] IB/hfi1: Insure freeze_work work_struct is canceled on shutdown

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 6d517353c70bb0818b691ca003afdcb5ee5ea44e ] By code inspection, the freeze_work is never canceled. Fix by adding a cancel_work_sync in the shutdown path to insure it is no longer running. Fixes: 7724105686e7 ("IB/hfi1: add driver files") Reviewed-by: Michael J. Ruhl

[PATCH 4.9 023/102] s390/qeth: fix VLAN attribute in bridge_hostnotify udev event

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 335726195e460cb6b3f795b695bfd31f0ea70ef0 ] Enabling sysfs attribute bridge_hostnotify triggers a series of udev events for the MAC addresses of all currently connected peers. In case no VLAN is set for a peer, the device reports the corresponding MAC addresses with VLAN ID 4096.

[PATCH 4.9 022/102] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 1c90836f70f9a8ef7b7ad9e1fdd8961903e6ced6 ] struct ufs_dev_cmd is the main container that supports device management commands. In the case of a read descriptor request, we assume that the proper space was allocated in dev_cmd to hold the returning descriptor. This is no longer

[PATCH 4.9 018/102] net: ethernet: mediatek: Use hw_feature to judge if HWLRO is supported

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 9e4f56f1a7f3287718d0083b5cb85298dc05a5fd ] Should hw_feature as hardware capability flags to check if hardware LRO got support. Signed-off-by: Mark Lee Signed-off-by: Sean Wang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH v2] kernfs: fix potential null pointer dereference

2019-07-08 Thread Peng Wang
Get root safely after kn is ensureed to be not null. Signed-off-by: Peng Wang --- fs/kernfs/dir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/kernfs/dir.c b/fs/kernfs/dir.c index a387534c9577..ddf537923a0a 100644 --- a/fs/kernfs/dir.c +++ b/fs/kernfs/dir.c @@ -430,7

[PATCH 4.9 019/102] net: ethernet: mediatek: Use NET_IP_ALIGN to judge if HW RX_2BYTE_OFFSET is enabled

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 880c2d4b2fdfd580ebcd6bb7240a8027a1d34751 ] Should only enable HW RX_2BYTE_OFFSET function in the case NET_IP_ALIGN equals to 2. Signed-off-by: Mark Lee Signed-off-by: Sean Wang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 4.4 61/73] MIPS: Workaround GCC __builtin_unreachable reordering bug

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 906d441febc0de974b2a6ef848a8f058f3bfada3 ] Some versions of GCC for the MIPS architecture suffer from a bug which can lead to instructions from beyond an unreachable statement being incorrectly reordered into earlier branch delay slots if the unreachable statement is the only

[PATCH 4.4 32/73] 9p: acl: fix uninitialized iattr access

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit e02a53d92e197706cad1627bd84705d4aa20a145 ] iattr is passed to v9fs_vfs_setattr_dotl which does send various values from iattr over the wire, even if it tells the server to only look at iattr.ia_valid fields this could leak some stack data. Link:

[PATCH 4.4 69/73] tty: rocket: fix incorrect forward declaration of rp_init()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 423ea3255424b954947d167681b71ded1b8fca53 ] Make the forward declaration actually match the real function definition, something that previous versions of gcc had just ignored. This is another patch to fix new warnings from gcc-9 before I start the merge window pulls. I don't

[PATCH 4.4 31/73] 9p/rdma: do not disconnect on down_interruptible EAGAIN

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 8b894adb2b7e1d1e64b8954569c761eaf3d51ab5 ] 9p/rdma would sometimes drop the connection and display errors in recv_done when the user does ^C. The errors were caused by recv buffers that were posted at the time of disconnect, and we just do not want to disconnect when

[PATCH 4.4 72/73] KVM: x86: degrade WARN to pr_warn_ratelimited

2019-07-08 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 3f16a5c318392cbb5a0c7a3d19dff8c8ef3c38ee upstream. This warning can be triggered easily by userspace, so it should certainly not cause a panic if panic_on_warn is set. Reported-by: syzbot+c03f30b4f4c46bdf8...@syzkaller.appspotmail.com Suggested-by: Alexander

[PATCH 4.4 68/73] btrfs: Ensure replaced device doesnt have pending chunk allocation

2019-07-08 Thread Greg Kroah-Hartman
From: Nikolay Borisov commit debd1c065d2037919a7da67baf55cc683fee09f0 upstream. Recent FITRIM work, namely bbbf7243d62d ("btrfs: combine device update operations during transaction commit") combined the way certain operations are recoded in a transaction. As a result an ASSERT was added in

[PATCH 4.4 66/73] ALSA: usb-audio: fix sign unintended sign extension on left shifts

2019-07-08 Thread Greg Kroah-Hartman
From: Colin Ian King commit 2acf5a3e6e9371e63c9e4ff54d84d08f630467a0 upstream. There are a couple of left shifts of unsigned 8 bit values that first get promoted to signed ints and hence get sign extended on the shift if the top bit of the 8 bit values are set. Fix this by casting the 8 bit

[PATCH 4.4 30/73] perf help: Remove needless use of strncpy()

2019-07-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit b6313899f4ed2e76b8375cf8069556f5b94fbff0 upstream. Since we make sure the destination buffer has at least strlen(orig) + 1, no need to do a strncpy(dest, orig, strlen(orig)), just use strcpy(dest, orig). This silences this gcc 8.2 warning on Alpine Linux:

[PATCH 4.4 67/73] lib/mpi: Fix karactx leak in mpi_powm

2019-07-08 Thread Greg Kroah-Hartman
From: Herbert Xu commit c8ea9fce2baf7b643384f36f29e4194fa40d33a6 upstream. Sometimes mpi_powm will leak karactx because a memory allocation failure causes a bail-out that skips the freeing of karactx. This patch moves the freeing of karactx to the end of the function like everything else so

[PATCH 4.4 70/73] ARC: handle gcc generated __builtin_trap for older compiler

2019-07-08 Thread Greg Kroah-Hartman
From: Vineet Gupta commit af1be2e21203867cb958aaceed5366e2e24b88e8 upstream. ARC gcc prior to GNU 2018.03 release didn't have a target specific __builtin_trap() implementation, generating default abort() call. Implement the abort() call - emulating what newer gcc does for the same, as

[PATCH 4.4 65/73] ALSA: firewire-lib/fireworks: fix miss detection of received MIDI messages

2019-07-08 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit 7fbd1753b64eafe21cf842348a40a691d0dee440 upstream. In IEC 61883-6, 8 MIDI data streams are multiplexed into single MIDI conformant data channel. The index of stream is calculated by modulo 8 of the value of data block counter. In fireworks, the value of data block

[PATCH 4.4 63/73] crypto: user - prevent operating on larval algorithms

2019-07-08 Thread Greg Kroah-Hartman
From: Eric Biggers commit 21d4120ec6f5b5992b01b96ac484701163917b63 upstream. Michal Suchanek reported [1] that running the pcrypt_aead01 test from LTP [2] in a loop and holding Ctrl-C causes a NULL dereference of alg->cra_users.next in crypto_remove_spawns(), via crypto_del_alg(). The test

[PATCH 4.4 60/73] bug.h: work around GCC PR82365 in BUG()

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 173a3efd3edb2ef6ef07471397c5f542a360e9c1 ] Looking at functions with large stack frames across all architectures led me discovering that BUG() suffers from the same problem as fortify_panic(), which I've added a workaround for already. In short, variables that go out of scope

[PATCH 4.4 57/73] MIPS: math-emu: do not use bools for arithmetic

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 8535f2ba0a9b971df62a5890699b9dfe2e0d5580 ] GCC-7 complains about a boolean value being used with an arithmetic AND: arch/mips/math-emu/cp1emu.c: In function 'cop1Emulate': arch/mips/math-emu/cp1emu.c:838:14: warning: '~' on a boolean expression [-Wbool-operation] fpr = (x) &

[PATCH 4.4 56/73] ARC: fix build warning in elf.h

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 1dec78585328db00e33fb18dc1a6deed0e2095a5 ] The cast valid since TASK_SIZE * 2 will never actually cause overflow. | CC fs/binfmt_elf.o | In file included from ../include/linux/elf.h:4:0, | from ../include/linux/module.h:15, | from

[PATCH 4.4 55/73] ARC: Assume multiplier is always present

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 0eca6fdb3193410fbe66b6f064431cc394513e82 ] It is unlikely that designs running Linux will not have multiplier. Further the current support is not complete as tool don't generate a multilib w/o multiplier. Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin ---

[PATCH 4.4 29/73] perf ui helpline: Use strlcpy() as a shorter form of strncpy() + explicit set nul

2019-07-08 Thread Greg Kroah-Hartman
From: Arnaldo Carvalho de Melo commit 4d0f16d059ddb91424480d88473f7392f24aebdc upstream. The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this case we are actually setting

[PATCH 4.4 53/73] usb: gadget: udc: lpc32xx: allocate descriptor with GFP_ATOMIC

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit fbc318afadd6e7ae2252d6158cf7d0c5a2132f7d ] Gadget drivers may queue request in interrupt context. This would lead to a descriptor allocation in that context. In that case we would hit BUG_ON(in_interrupt()) in __get_vm_area_node. Also remove the unnecessary cast. Acked-by:

[PATCH 4.4 54/73] scsi: hpsa: correct ioaccel2 chaining

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 625d7d3518875c4d303c652a198feaa13d9f52d9 ] - set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_LAST_SG for the last s/g element. - set ioaccel2_sg_element member 'chain_indicator' to IOACCEL2_CHAIN when chaining. Reviewed-by: Bader Ali - Saleh Reviewed-by:

[PATCH 4.4 48/73] um: Compile with modern headers

2019-07-08 Thread Greg Kroah-Hartman
From: Jason A. Donenfeld commit 530ba6c7cb3c22435a4d26de47037bb6f86a5329 upstream. Recent libcs have gotten a bit more strict, so we actually need to include the right headers and use the right types. This enables UML to compile again. Signed-off-by: Jason A. Donenfeld Cc:

[PATCH 4.4 46/73] net: check before dereferencing netdev_ops during busy poll

2019-07-08 Thread Greg Kroah-Hartman
From: Josh Elsasser init_dummy_netdev() leaves its netdev_ops pointer zeroed. This leads to a NULL pointer dereference when sk_busy_loop fires against an iwlwifi wireless adapter and checks napi->dev->netdev_ops->ndo_busy_poll. Avoid this by ensuring napi->dev->netdev_ops is valid before

[PATCH 4.4 51/73] ASoC: max98090: remove 24-bit format support if RJ is 0

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 5628c8979642a076f91ee86c3bae5ad251639af0 ] The supported formats are S16_LE and S24_LE now. However, by datasheet of max98090, S24_LE is only supported when it is in the right justified mode. We should remove 24-bit format if it is not in that mode to avoid triggering error.

[PATCH 4.4 52/73] usb: gadget: fusb300_udc: Fix memory leak of fusb300->ep[i]

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 62fd0e0a24abeebe2c19fce49dd5716d9b62042d ] There is no deallocation of fusb300->ep[i] elements, allocated at fusb300_probe. The patch adds deallocation of fusb300->ep array elements. Signed-off-by: Young Xiao <92siuy...@gmail.com> Signed-off-by: Felipe Balbi Signed-off-by:

[PATCH 4.4 28/73] mac80211: drop robust management frames from unknown TA

2019-07-08 Thread Greg Kroah-Hartman
From: Johannes Berg commit 588f7d39b3592a36fb7702ae3b8bdd9be4621e2f upstream. When receiving a robust management frame, drop it if we don't have rx->sta since then we don't have a security association and thus couldn't possibly validate the frame. Cc: sta...@vger.kernel.org Signed-off-by:

Re: [PATCH] [net-next] net/mlx5e: xsk: dynamically allocate mlx5e_channel_param

2019-07-08 Thread Maxim Mikityanskiy
On 2019-07-08 15:55, Arnd Bergmann wrote: > The structure is too large to put on the stack, resulting in a > warning on 32-bit ARM: > > drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c:59:5: error: stack > frame size of 1344 bytes in function >'mlx5e_open_xsk'

[PATCH 4.4 43/73] team: Always enable vlan tx offload

2019-07-08 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit ee4297420d56a0033a8593e80b33fcc93fda8509 ] We should rather have vlan_tci filled all the way down to the transmitting netdevice and let it do the hw/sw vlan implementation. Suggested-by: Jiri Pirko Signed-off-by: YueHaibing Signed-off-by: David S. Miller

[PATCH 4.4 45/73] bonding: Always enable vlan tx offload

2019-07-08 Thread Greg Kroah-Hartman
From: YueHaibing [ Upstream commit 30d8177e8ac776d89d387fad547af6a0f599210e ] We build vlan on top of bonding interface, which vlan offload is off, bond mode is 802.3ad (LACP) and xmit_hash_policy is BOND_XMIT_POLICY_ENCAP34. Because vlan tx offload is off, vlan tci is cleared and skb push the

[PATCH 4.4 37/73] ovl: modify ovl_permission() to do checks on two inodes

2019-07-08 Thread Greg Kroah-Hartman
From: Vivek Goyal commit c0ca3d70e8d3cf81e2255a217f7ca402f5ed0862 upstream. Right now ovl_permission() calls __inode_permission(realinode), to do permission checks on real inode and no checks are done on overlay inode. Modify it to do checks both on overlay inode as well as underlying inode.

[PATCH 4.4 36/73] KVM: X86: Fix scan ioapic use-before-initialization

2019-07-08 Thread Greg Kroah-Hartman
From: Wanpeng Li commit e97f852fd4561e77721bb9a4e0ea9d98305b1e93 upstream. Reported by syzkaller: BUG: unable to handle kernel NULL pointer dereference at 01c8 PGD 8003ec4da067 P4D 8003ec4da067 PUD 3f7bfa067 PMD 0 Oops: [#1] PREEMPT SMP PTI CPU: 7 PID: 5059 Comm:

[PATCH 4.4 27/73] cfg80211: fix memory leak of wiphy device name

2019-07-08 Thread Greg Kroah-Hartman
From: Eric Biggers commit 4f488fbca2a86cc7714a128952eead92cac279ab upstream. In wiphy_new_nm(), if an error occurs after dev_set_name() and device_initialize() have already been called, it's necessary to call put_device() (via wiphy_free()) to avoid a memory leak. Reported-by:

[PATCH 4.4 09/73] parport: Fix mem leak in parport_register_dev_model

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 1c7ebeabc9e5ee12e42075a597de40fdb9059530 ] BUG: memory leak unreferenced object 0x8881df48cda0 (size 16): comm "syz-executor.0", pid 5077, jiffies 4295994670 (age 22.280s) hex dump (first 16 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

[PATCH] lib/lz4: remove the exporting of LZ4HC_setExternalDict

2019-07-08 Thread Denis Efremov
The function LZ4HC_setExternalDict is declared static and marked EXPORT_SYMBOL, which is at best an odd combination. Because the function is not used outside of the lib/lz4/lz4hc_compress.c file it is defined in, this commit removes the EXPORT_SYMBOL() marking. Signed-off-by: Denis Efremov ---

[PATCH 4.4 07/73] Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

2019-07-08 Thread Greg Kroah-Hartman
From: Andrey Smirnov commit 7c7da40da1640ce6814dab1e8031b44e19e5a3f6 upstream. In the case of compat syscall ioctl numbers for UI_BEGIN_FF_UPLOAD and UI_END_FF_UPLOAD need to be adjusted before being passed on uinput_ioctl_handler() since code built with -m32 will be passing slightly different

[PATCH 4.4 00/73] 4.4.185-stable review

2019-07-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.4.185 release. There are 73 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 Wed 10 Jul 2019 03:03:52 PM UTC. Anything

[PATCH 4.4 04/73] tracing: Silence GCC 9 array bounds warning

2019-07-08 Thread Greg Kroah-Hartman
From: Miguel Ojeda commit 0c97bf863efce63d6ab7971dad811601e6171d2f upstream. Starting with GCC 9, -Warray-bounds detects cases when memset is called starting on a member of a struct but the size to be cleared ends up writing over further members. Such a call happens in the trace code to clear,

[PATCH 4.4 03/73] scsi: vmw_pscsi: Fix use-after-free in pvscsi_queue_lck()

2019-07-08 Thread Greg Kroah-Hartman
From: Jan Kara commit 240b4cc8fd5db138b675297d4226ec46594d9b3b upstream. Once we unlock adapter->hw_lock in pvscsi_queue_lck() nothing prevents just queued scsi_cmnd from completing and freeing the request. Thus cmd->cmnd[0] dereference can dereference already freed request leading to kernel

[PATCH 4.4 25/73] Bluetooth: Fix regression with minimum encryption key size alignment

2019-07-08 Thread Greg Kroah-Hartman
From: Marcel Holtmann commit 693cd8ce3f882524a5d06f7800dd8492411877b3 upstream. When trying to align the minimum encryption key size requirement for Bluetooth connections, it turns out doing this in a central location in the HCI connection handling code is not possible. Original Bluetooth

[PATCH 4.4 24/73] Bluetooth: Align minimum encryption key size for LE and BR/EDR connections

2019-07-08 Thread Greg Kroah-Hartman
From: Marcel Holtmann commit d5bb334a8e171b262e48f378bd2096c0ea458265 upstream. The minimum encryption key size for LE connections is 56 bits and to align LE with BR/EDR, enforce 56 bits of minimum encryption key size for BR/EDR connections as well. Signed-off-by: Marcel Holtmann

[PATCH 4.4 22/73] can: purge socket error queue on sock destruct

2019-07-08 Thread Greg Kroah-Hartman
From: Willem de Bruijn commit fd704bd5ee749d560e86c4f1fd2ef486d8abf7cf upstream. CAN supports software tx timestamps as of the below commit. Purge any queued timestamp packets on socket destroy. Fixes: 51f31cabe3ce ("ip: support for TX timestamps on UDP and RAW sockets") Reported-by:

[PATCH 4.4 02/73] mm/page_idle.c: fix oops because end_pfn is larger than max_pfn

2019-07-08 Thread Greg Kroah-Hartman
From: Colin Ian King commit 7298e3b0a149c91323b3205d325e942c3b3b9ef6 upstream. Currently the calcuation of end_pfn can round up the pfn number to more than the actual maximum number of pfns, causing an Oops. Fix this by ensuring end_pfn is never more than max_pfn. This can be easily triggered

[PATCH 4.4 19/73] Btrfs: fix race between readahead and device replace/removal

2019-07-08 Thread Greg Kroah-Hartman
From: Filipe Manana commit ce7791ffee1e1ee9f97193b817c7dd1fa6746aad upstream. The list of devices is protected by the device_list_mutex and the device replace code, in its finishing phase correctly takes that mutex before removing the source device from that list. However the readahead code was

[PATCH 4.4 21/73] can: flexcan: fix timeout when set small bitrate

2019-07-08 Thread Greg Kroah-Hartman
From: Joakim Zhang commit 247e5356a709eb49a0d95ff2a7f07dac05c8252c upstream. Current we can meet timeout issue when setting a small bitrate like 1 as follows on i.MX6UL EVK board (ipg clock = 66MHZ, per clock = 30MHZ): | root@imx6ul7d:~# ip link set can0 up type can bitrate 1 A link

[PATCH 4.4 20/73] btrfs: start readahead also in seed devices

2019-07-08 Thread Greg Kroah-Hartman
From: Naohiro Aota commit c4e0540d0ad49c8ceab06cceed1de27c4fe29f6e upstream. Currently, btrfs does not consult seed devices to start readahead. As a result, if readahead zone is added to the seed devices, btrfs_reada_wait() indefinitely wait for the reada_ctl to finish. You can reproduce the

[PATCH 4.4 18/73] hwmon: (pmbus/core) Treat parameters as paged if on multiple pages

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 4a60570dce658e3f8885bbcf852430b99f65aca5 ] Some chips have attributes which exist on more than one page but the attribute is not presently marked as paged. This causes the attributes to be generated with the same label, which makes it impossible for userspace to tell them apart.

[PATCH 4.4 17/73] s390/qeth: fix VLAN attribute in bridge_hostnotify udev event

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 335726195e460cb6b3f795b695bfd31f0ea70ef0 ] Enabling sysfs attribute bridge_hostnotify triggers a series of udev events for the MAC addresses of all currently connected peers. In case no VLAN is set for a peer, the device reports the corresponding MAC addresses with VLAN ID 4096.

[PATCH 4.4 16/73] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 1c90836f70f9a8ef7b7ad9e1fdd8961903e6ced6 ] struct ufs_dev_cmd is the main container that supports device management commands. In the case of a read descriptor request, we assume that the proper space was allocated in dev_cmd to hold the returning descriptor. This is no longer

[PATCH 4.4 15/73] scripts/checkstack.pl: Fix arm64 wrong or unknown architecture

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 4f45d62a52297b10ded963412a158685647ecdec ] The following error occurs for the `make ARCH=arm64 checkstack` case: aarch64-linux-gnu-objdump -d vmlinux $(find . -name '*.ko') | \ perl ./scripts/checkstack.pl arm64 wrong or unknown architecture "arm64" As suggested by Masahiro

[PATCH 4.4 12/73] MIPS: uprobes: remove set but not used variable epc

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit f532beeeff0c0a3586cc15538bc52d249eb19e7c ] Fixes gcc '-Wunused-but-set-variable' warning: arch/mips/kernel/uprobes.c: In function 'arch_uprobe_pre_xol': arch/mips/kernel/uprobes.c:115:17: warning: variable 'epc' set but not used [-Wunused-but-set-variable] It's never used

[PATCH 4.4 01/73] fs/binfmt_flat.c: make load_flat_shared_library() work

2019-07-08 Thread Greg Kroah-Hartman
From: Jann Horn commit 867bfa4a5fcee66f2b25639acae718e8b28b25a5 upstream. load_flat_shared_library() is broken: It only calls load_flat_file() if prepare_binprm() returns zero, but prepare_binprm() returns the number of bytes read - so this only happens if the file is empty. Instead, call into

[PATCH 4.4 11/73] IB/hfi1: Insure freeze_work work_struct is canceled on shutdown

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 6d517353c70bb0818b691ca003afdcb5ee5ea44e ] By code inspection, the freeze_work is never canceled. Fix by adding a cancel_work_sync in the shutdown path to insure it is no longer running. Fixes: 7724105686e7 ("IB/hfi1: add driver files") Reviewed-by: Michael J. Ruhl

[PATCH 4.4 10/73] parisc: Fix compiler warnings in float emulation code

2019-07-08 Thread Greg Kroah-Hartman
[ Upstream commit 6b98d9134e14f5ef4bcf64b27eedf484ed19a1ec ] Avoid such compiler warnings: arch/parisc/math-emu/cnv_float.h:71:27: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context] ((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) || Dintp2(dint_valueB))

Re: [PATCH] tpm: fixes uninitialized allocated banks for IBM vtpm driver

2019-07-08 Thread Jarkko Sakkinen
On Sat, 2019-07-06 at 20:25 -0400, Nayna wrote: > Thanks Jarkko. I just now posted the v2 version that includes your and > Stefan's feedbacks. Looks almost legit :-) /Jarkko

Re: [PATCH v2] tpm: tpm_ibm_vtpm: Fix unallocated banks

2019-07-08 Thread Jarkko Sakkinen
On Sat, 2019-07-06 at 20:18 -0400, Nayna Jain wrote: > +/* > + * tpm_get_pcr_allocation() - initialize the chip allocated banks for PCRs > + * @chip: TPM chip to use. > + */ > +static int tpm_get_pcr_allocation(struct tpm_chip *chip) > +{ > + int rc; > + > + if (chip->flags &

Re: [PATCH v7 10/12] KVM/x86/lbr: lazy save the guest lbr stack

2019-07-08 Thread Andi Kleen
> I don't understand a word of that. > > Who cares if the LBR MSRs are touched; the guest expects up-to-date > values when it does reads them. This is for only when the LBRs are disabled in the guest. It doesn't make sense to constantly save/restore disabled LBRs, which would be a large

Re: [PATCH net-next 1/2] bpf: skip sockopt hooks without CONFIG_NET

2019-07-08 Thread Yonghong Song
On 7/8/19 5:57 AM, Arnd Bergmann wrote: > When CONFIG_NET is disabled, we get a link error: > > kernel/bpf/cgroup.o: In function `__cgroup_bpf_run_filter_setsockopt': > cgroup.c:(.text+0x3010): undefined reference to `lock_sock_nested' > cgroup.c:(.text+0x3258): undefined reference to

Re: [PATCH bpf-next 1/2] bpf, libbpf: add a new API bpf_object__reuse_maps()

2019-07-08 Thread Anton Protopopov
пт, 5 июл. 2019 г. в 17:44, Daniel Borkmann : > > On 07/05/2019 10:44 PM, Anton Protopopov wrote: > > Add a new API bpf_object__reuse_maps() which can be used to replace all > > maps in > > an object by maps pinned to a directory provided in the path argument. > > Namely, > > each map M in the

Re: linux-next: build failure after merge of the usb and usb-gadget trees

2019-07-08 Thread Sekhar Nori
On 04/07/19 1:55 PM, Felipe Balbi wrote: > > Hi, > > Pawel Laszczak writes: > >>> >>> Hi, >>> >>> On Thu, Jul 4, 2019 at 9:59 AM Greg KH wrote: On Thu, Jul 04, 2019 at 04:34:58PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the usb tree, today's linux-next

Re: [PATCH v7 12/12] KVM/VMX/vPMU: support to report GLOBAL_STATUS_LBRS_FROZEN

2019-07-08 Thread Peter Zijlstra
On Mon, Jul 08, 2019 at 09:23:19AM +0800, Wei Wang wrote: > This patch enables the LBR related features in Arch v4 in advance, > though the current vPMU only has v2 support. Other arch v4 related > support will be enabled later in another series. > > Arch v4 supports streamlined

Re: Re: Re: linux-next: build failure after merge of the rdma tree

2019-07-08 Thread Bernard Metzler
-"Jason Gunthorpe" wrote: - >To: "Bernard Metzler" >From: "Jason Gunthorpe" >Date: 07/08/2019 04:56PM >Cc: "Stephen Rothwell" , "Doug Ledford" >, "Linux Next Mailing List" >, "Linux Kernel Mailing List" >, "linux-r...@vger.kernel.org" > >Subject: [EXTERNAL] Re: Re: linux-next: build

Re: [RFC PATCH 1/6] sched/dl: Improve deadline admission control for asymmetric CPU capacities

2019-07-08 Thread Quentin Perret
On Monday 08 Jul 2019 at 13:22:35 (+0200), Dietmar Eggemann wrote: > On 5/7/19 4:43 PM, luca abeni wrote: > > On Tue, 7 May 2019 15:31:27 +0100 > > Quentin Perret wrote: > > > >> On Tuesday 07 May 2019 at 16:25:23 (+0200), luca abeni wrote: > >>> On Tue, 7 May 2019 14:48:52 +0100 > >>> Quentin

[GIT PULL] clone3 for v5.3

2019-07-08 Thread Christian Brauner
Hi Linus, This is the PR for the clone3 system call. The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux

Re: [PATCH v2] PCI: hv: fix pci-hyperv build when SYSFS not enabled

2019-07-08 Thread Stephen Hemminger
On Sun, 7 Jul 2019 10:46:22 -0700 Randy Dunlap wrote: > On 7/3/19 11:06 AM, Haiyang Zhang wrote: > > > > > >> -Original Message- > >> From: Randy Dunlap > >> Sent: Wednesday, July 3, 2019 12:59 PM > >> To: LKML ; linux-pci >> p...@vger.kernel.org> > >> Cc: Matthew Wilcox ; Jake

kasan: paging percpu + kasan causes a double fault

2019-07-08 Thread Dennis Zhou
Hi Andrey, Alexander, and Dmitry, It was reported to me that when percpu is ran with param percpu_alloc=page or the embed allocation scheme fails and falls back to page that a double fault occurs. I don't know much about how kasan works, but a difference between the two is that we manually

Re: [PATCH] scsi: Remove unreachable code

2019-07-08 Thread Bart Van Assche
On 7/4/19 2:55 AM, Ding Xiang wrote: The return code after switch default is unreachable, so remove it. Signed-off-by: Ding Xiang --- drivers/scsi/scsi_error.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index bfa569f..12180f0

Re: Investment offer to you,

2019-07-08 Thread Ayesha Al-Qaddafi
Greetings Dear Friend, It’s my pleasure to contact you through this media as i am in need of your urgent assistance. My names are Mrs. Ayesha Al-Qaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Al Qaddafi).

kprobes sanity test fails on next-20190708

2019-07-08 Thread Anders Roxell
-20190708 #1 [0.110403] Hardware name: linux,dummy-virt (DT) [0.112104] pstate: 6005 (nZCv daif -PAN -UAO) [0.113852] pc : kprobe_target+0x0/0x18 [0.115268] lr : init_test_probes+0x1ac/0x3a0 [0.116890] sp : 1000bd40 [0.118122] x29: 1000bd40 x28

[PATCH net,v2] nfc: fix potential illegal memory access

2019-07-08 Thread Yang Wei
The frags_q is not properly initialized, it may result in illegal memory access when conn_info is NULL. The "goto free_exit" should be replaced by "goto exit". Signed-off-by: Yang Wei --- net/nfc/nci/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/nfc/nci/data.c

[PATCH v2] tpm: Remove a deprecated comments about implicit sysfs locking

2019-07-08 Thread Jarkko Sakkinen
Remove all comments about implicit locking tpm-sysfs.c as the file was updated in Linux v5.1 to use explicit locking. Signed-off-by: Jarkko Sakkinen --- v2: Forgot tpm-sysfs.c changes to my staging area :-/ drivers/char/tpm/tpm-chip.c | 7 ++- drivers/char/tpm/tpm-sysfs.c | 7 --- 2

Re: Re: linux-next: build failure after merge of the rdma tree

2019-07-08 Thread Jason Gunthorpe
On Mon, Jul 08, 2019 at 02:28:13PM +, Bernard Metzler wrote: > Thanks for bringing this up. Indeed, that explicit > initialization seem to be inappropriate. Can you please > fix that as you suggest? I'm applying this to fix the PER_CPU stuff in siw: >From

[PATCH] tpm: Remove a deprecated comments about implicit sysfs locking

2019-07-08 Thread Jarkko Sakkinen
Remove all comments about implicit locking tpm-sysfs.c as the file was updated in Linux v5.1 to use explicit locking. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/char/tpm/tpm-chip.c

<    5   6   7   8   9   10   11   12   13   14   >