Re: [PATCH v7 09/10] usb: roles: add USB Type-B GPIO connector driver

2019-06-24 Thread Heikki Krogerus
Hi Chunfeng, On Tue, Jun 11, 2019 at 04:44:39PM +0800, Chunfeng Yun wrote: > Due to the requirement of usb-connector.txt binding, the old way > using extcon to support USB Dual-Role switch is now deprecated > when use Type-B connector. > This patch introduces a driver of Type-B connector which typ

[PATCH 4.14 32/51] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-06-24 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 tr

[PATCH 4.14 33/51] scsi: smartpqi: unlock on error in pqi_submit_raid_request_synchronous()

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit cc8f52609bb4177febade24d11713e20c0893b0a ] We need to drop the "ctrl_info->sync_request_sem" lock before returning. Fixes: 6c223761eb54 ("smartpqi: initial commit of Microsemi smartpqi driver") Signed-off-by: Dan Carpenter Acked-by: Don Brace Signed-off-by: Martin K. Petersen

[PATCH 4.14 04/51] net: phy: broadcom: Use strlcpy() for ethtool::get_strings

2019-06-24 Thread Greg Kroah-Hartman
From: Florian Fainelli commit 8a17eefa235f73b60c0ca7d397d2e4f66f85f413 upstream. Our statistics strings are allocated at initialization without being bound to a specific size, yet, we would copy ETH_GSTRING_LEN bytes using memcpy() which would create out of bounds accesses, this was flagged by K

[PATCH 4.14 34/51] net: ipvlan: Fix ipvlan device tso disabled while NETIF_F_IP_CSUM is set

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit ceae266bf0ae6564ac16d086bf749a096fa90ded ] There's some NICs, such as hinic, with NETIF_F_IP_CSUM and NETIF_F_TSO on but NETIF_F_HW_CSUM off. And ipvlan device features will be NETIF_F_TSO on with NETIF_F_IP_CSUM and NETIF_F_IP_CSUM both off as IPVLAN_FEATURES only care about NET

[PATCH 4.14 07/51] usb: chipidea: udc: workaround for endpoint conflict issue

2019-06-24 Thread Greg Kroah-Hartman
From: Peter Chen commit c19dffc0a9511a7d7493ec21019aefd97e9a111b upstream. An endpoint conflict occurs when the USB is working in device mode during an isochronous communication. When the endpointA IN direction is an isochronous IN endpoint, and the host sends an IN token to endpointA on another

[PATCH 4.14 05/51] mmc: core: Prevent processing SDIO IRQs when the card is suspended

2019-06-24 Thread Greg Kroah-Hartman
From: Ulf Hansson commit 83293386bc95cf5e9f0c0175794455835bd1cb4a upstream. Processing of SDIO IRQs must obviously be prevented while the card is system suspended, otherwise we may end up trying to communicate with an uninitialized SDIO card. Reports throughout the years shows that this is not

[PATCH 4.14 06/51] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-24 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 platform_s

[PATCH 4.14 09/51] Input: synaptics - enable SMBus on ThinkPad E480 and E580

2019-06-24 Thread Greg Kroah-Hartman
From: Alexander Mikhaylenko commit 9843f3e08e2144724be7148e08d77a195dea257a upstream. They are capable of using intertouch and it works well with psmouse.synaptics_intertouch=1, so add them to the list. Without it, scrolling and gestures are jumpy, three-finger pinch gesture doesn't work and th

[PATCH 4.14 00/51] 4.14.130-stable review

2019-06-24 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.130 release. There are 51 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 26 Jun 2019 09:22:03 AM UTC. Anything re

[PATCH 4.14 46/51] Bluetooth: Fix regression with minimum encryption key size alignment

2019-06-24 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 versi

[PATCH 4.14 47/51] SMB3: retry on STATUS_INSUFFICIENT_RESOURCES instead of failing write

2019-06-24 Thread Greg Kroah-Hartman
From: Steve French commit 8d526d62db907e786fd88948c75d1833d82bd80e upstream. Some servers such as Windows 10 will return STATUS_INSUFFICIENT_RESOURCES as the number of simultaneous SMB3 requests grows (even though the client has sufficient credits). Return EAGAIN on STATUS_INSUFFICIENT_RESOURCE

[PATCH 4.14 39/51] btrfs: start readahead also in seed devices

2019-06-24 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 hu

[PATCH 4.14 37/51] hwmon: (pmbus/core) Treat parameters as paged if on multiple pages

2019-06-24 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.14 48/51] cfg80211: fix memory leak of wiphy device name

2019-06-24 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: syzbot+7fddca2257

[PATCH 4.14 43/51] ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX

2019-06-24 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 incr

[PATCH 4.14 41/51] can: purge socket error queue on sock destruct

2019-06-24 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: syzbot+a90

[PATCH 4.14 49/51] mac80211: drop robust management frames from unknown TA

2019-06-24 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: Johan

[PATCH 4.14 42/51] powerpc/bpf: use unsigned division instruction for 64-bit operations

2019-06-24 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 c

[PATCH 4.14 44/51] ARM: dts: am57xx-idk: Remove support for voltage switching for SD card

2019-06-24 Thread Greg Kroah-Hartman
From: Faiz Abbas commit 88a748419b84187fd1da05637b8e5928b04a1e06 upstream. If UHS speed modes are enabled, a compatible SD card switches down to 1.8V during enumeration. If after this a software reboot/crash takes place and on-chip ROM tries to enumerate the SD card, the difference in IO voltage

Re: [PATCH v3 1/2] ceph: fix buffer length handling in virtual xattrs

2019-06-24 Thread Ilya Dryomov
On Fri, Jun 21, 2019 at 4:18 PM Jeff Layton wrote: > > The convention with xattrs is to not store the termination with string > data, given that it returns the length. This is how setfattr/getfattr > operate. > > Most of ceph's virtual xattr routines use snprintf to plop the string > directly into

[PATCH 4.14 08/51] IB/hfi1: Silence txreq allocation warnings

2019-06-24 Thread Greg Kroah-Hartman
From: Mike Marciniszyn commit 3230f4a8d44e4a0bb7afea814b280b5129521f52 upstream. The following warning can happen when a memory shortage occurs during txreq allocation: [10220.939246] SLUB: Unable to allocate memory on node -1, gfp=0xa20(GFP_ATOMIC) [10220.939246] Hardware name: Intel Corporati

[PATCH 4.14 45/51] Bluetooth: Align minimum encryption key size for LE and BR/EDR connections

2019-06-24 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 Signed-off-by

x86: Spurious vectors not handled robustly

2019-06-24 Thread Jan Kiszka
Hi all, probably since "x86: Avoid building unused IRQ entry stubs" (2414e021ac8d), the kernel can no longer tell spurious IRQs by the APIC apart from spuriously triggered unused vectors. We've managed to trigger such a cause with the Jailhouse hypervisor (incorrectly injected MANAGED_IRQ_SHUT

[PATCH 4.14 50/51] mac80211: handle deauthentication/disassociation from TDLS peer

2019-06-24 Thread Greg Kroah-Hartman
From: Yu Wang commit 79c92ca42b5a3e0ea172ea2ce8df8e125af237da upstream. When receiving a deauthentication/disassociation frame from a TDLS peer, a station should not disconnect the current AP, but only disable the current TDLS link if it's enabled. Without this change, a TDLS issue can be repro

[PATCH 4.14 51/51] mac80211: Do not use stack memory with scatterlist for GMAC

2019-06-24 Thread Greg Kroah-Hartman
From: Jouni Malinen commit a71fd9dac23613d96ba3c05619a8ef4fd6cdf9b9 upstream. ieee80211_aes_gmac() uses the mic argument directly in sg_set_buf() and that does not allow use of stack memory (e.g., BUG_ON() is hit in sg_set_buf() with CONFIG_DEBUG_SG). BIP GMAC TX side is fine for this since it c

Re: [PATCH] drm/fourcc: Add Arm 16x16 block modifier

2019-06-24 Thread Daniel Vetter
On Mon, Jun 24, 2019 at 11:32 AM Brian Starkey wrote: > > Hi Daniel, > > On Fri, Jun 21, 2019 at 05:27:00PM +0200, Daniel Vetter wrote: > > On Fri, Jun 21, 2019 at 12:21 PM Raymond Smith > > wrote: > > > > > > Add the DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED modifier to > > > denote the 16x1

[PATCH 4.14 38/51] nvme: Fix u32 overflow in the number of namespace list calculation

2019-06-24 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

Re: [PATCH] Revert "x86/module: Detect and skip invalid relocations"

2019-06-24 Thread Miroslav Benes
On Sat, 22 Jun 2019, Thomas Gleixner wrote: > Miroslav, > > On Thu, 20 Jun 2019, Miroslav Benes wrote: > > On Thu, 20 Jun 2019, Cheng Jian wrote: > > > > > This reverts commit eda9cec4c9a12208a6f69fbe68f72a6311d50032. > > > > > > Since commit (eda9cec4c9a1 'x86/module: Detect and skip invalid >

[PATCH 4.14 26/51] sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 56cd0aefa475079e9613085b14a0f05037518fed ] The PERF_EVENT_IOC_PERIOD ioctl command can be used to change the sample period of a running perf_event. Consequently, when calculating the next event period, the new period will only be considered after the previous one has overflowed.

[PATCH 4.14 40/51] can: flexcan: fix timeout when set small bitrate

2019-06-24 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 ch

[PATCH 4.14 31/51] scripts/checkstack.pl: Fix arm64 wrong or unknown architecture

2019-06-24 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 Yam

[PATCH 4.14 22/51] xtensa: Fix section mismatch between memblock_reserve and mem_reserve

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit adefd051a6707a6ca0ebad278d3c1c05c960fc3b ] Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section mismatch errors. WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch in reference

Re: [PATCH] arm64: defconfig: update and enable CONFIG_RANDOMIZE_BASE

2019-06-24 Thread Will Deacon
Hi Nick, Kees, Ard, Thanks for the responses. On Fri, Jun 21, 2019 at 01:27:45PM -0700, Nick Desaulniers wrote: > On Thu, Jun 20, 2019 at 1:17 AM Ard Biesheuvel > wrote: > > On Thu, 20 Jun 2019 at 09:47, Will Deacon wrote: > > > On the flip side, I worry that it could make debugging more diffic

[PATCH 4.14 24/51] net: hns: Fix loopback test failed at copper ports

2019-06-24 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: Y

[PATCH 4.14 16/51] parisc: Fix compiler warnings in float emulation code

2019-06-24 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)) arch/parisc/ma

[PATCH 4.14 18/51] IB/hfi1: Insure freeze_work work_struct is canceled on shutdown

2019-06-24 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 Reviewed-by

[PATCH 4.14 11/51] apparmor: enforce nullbyte at end of tag string

2019-06-24 Thread Greg Kroah-Hartman
From: Jann Horn commit 8404d7a674c49278607d19726e0acc0cae299357 upstream. A packed AppArmor policy contains null-terminated tag strings that are read by unpack_nameX(). However, unpack_nameX() uses string functions on them without ensuring that they are actually null-terminated, potentially lead

[PATCH 4.19 03/90] gcc-9: silence address-of-packed-member warning

2019-06-24 Thread Greg Kroah-Hartman
From: Linus Torvalds commit 6f303d60534c46aa1a239f29c321f95c83dda748 upstream. We already did this for clang, but now gcc has that warning too. Yes, yes, the address may be unaligned. And that's kind of the point. Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Makefil

[PATCH 4.19 05/90] ovl: fix wrong flags check in FS_IOC_FS[SG]ETXATTR ioctls

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 941d935ac7636911a3fd8fa80e758e52b0b11e20 ] The ioctl argument was parsed as the wrong type. Fixes: b21d9c435f93 ("ovl: support the FS_IOC_FS[SG]ETXATTR ioctls") Signed-off-by: Amir Goldstein Signed-off-by: Miklos Szeredi Signed-off-by: Sasha Levin --- fs/overlayfs/file.c | 9

[PATCH 4.19 23/90] Input: synaptics - enable SMBus on ThinkPad E480 and E580

2019-06-24 Thread Greg Kroah-Hartman
From: Alexander Mikhaylenko commit 9843f3e08e2144724be7148e08d77a195dea257a upstream. They are capable of using intertouch and it works well with psmouse.synaptics_intertouch=1, so add them to the list. Without it, scrolling and gestures are jumpy, three-finger pinch gesture doesn't work and th

[PATCH 4.14 12/51] ARC: fix build warnings

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 89c92142f75eb80064f5b9f484b1b4d81790 ] | arch/arc/mm/tlb.c:914:2: warning: variable length array 'pd0' is used [-Wvla] | arch/arc/include/asm/cmpxchg.h:95:29: warning: value computed is not used [-Wunused-value] Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin ---

[PATCH 4.19 00/90] 4.19.56-stable review

2019-06-24 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.56 release. There are 90 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 26 Jun 2019 09:22:03 AM UTC. Anything rec

[PATCH 4.19 04/90] ovl: support the FS_IOC_FS[SG]ETXATTR ioctls

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit b21d9c435f935014d3e3fa6914f2e4fbabb0e94d ] They are the extended version of FS_IOC_FS[SG]ETFLAGS ioctls. xfs_io -c "chattr " uses the new ioctls for setting flags. This used to work in kernel pre v4.19, before stacked file ops introduced the ovl_ioctl whitelist. Reported-by: Da

[PATCH 4.19 17/90] usb: chipidea: udc: workaround for endpoint conflict issue

2019-06-24 Thread Greg Kroah-Hartman
From: Peter Chen commit c19dffc0a9511a7d7493ec21019aefd97e9a111b upstream. An endpoint conflict occurs when the USB is working in device mode during an isochronous communication. When the endpointA IN direction is an isochronous IN endpoint, and the host sends an IN token to endpointA on another

[PATCH 4.19 02/90] objtool: Support per-function rodata sections

2019-06-24 Thread Greg Kroah-Hartman
From: Allan Xavier commit 4a60aa05a0634241ce17f957bf9fb5ac1eed6576 upstream. Add support for processing switch jump tables in objects with multiple .rodata sections, such as those created by '-ffunction-sections' and '-fdata-sections'. Currently, objtool always looks in .rodata for jump table i

[PATCH 4.19 25/90] Input: silead - add MSSL0017 to acpi_device_id

2019-06-24 Thread Greg Kroah-Hartman
From: Daniel Smith commit 0e658060e5fc50dc282885dc424a94b5d95547e5 upstream. On Chuwi Hi10 Plus, the Silead device id is MSSL0017. Signed-off-by: Daniel Smith Reviewed-by: Hans de Goede Cc: sta...@vger.kernel.org Signed-off-by: Dmitry Torokhov Signed-off-by: Greg Kroah-Hartman --- drivers

[PATCH 4.19 18/90] xhci: detect USB 3.2 capable host controllers correctly

2019-06-24 Thread Greg Kroah-Hartman
From: Mathias Nyman commit ddd57980a0fde30f7b5d14b888a2cc84d01610e8 upstream. USB 3.2 capability in a host can be detected from the xHCI Supported Protocol Capability major and minor revision fields. If major is 0x3 and minor 0x20 then the host is USB 3.2 capable. For USB 3.2 capable hosts set

[PATCH 4.19 20/90] IB/hfi1: Validate fault injection opcode user input

2019-06-24 Thread Greg Kroah-Hartman
From: Kaike Wan commit 5f90677ed31963abb184ee08ebee4a4a68225dd8 upstream. The opcode range for fault injection from user should be validated before it is applied to the fault->opcodes[] bitmap to avoid out-of-bound error. Cc: Fixes: a74d5307caba ("IB/hfi1: Rework fault injection machinery") Re

[PATCH 4.19 21/90] IB/hfi1: Silence txreq allocation warnings

2019-06-24 Thread Greg Kroah-Hartman
From: Mike Marciniszyn commit 3230f4a8d44e4a0bb7afea814b280b5129521f52 upstream. The following warning can happen when a memory shortage occurs during txreq allocation: [10220.939246] SLUB: Unable to allocate memory on node -1, gfp=0xa20(GFP_ATOMIC) [10220.939246] Hardware name: Intel Corporati

[PATCH 4.19 06/90] ovl: make i_ino consistent with st_ino in more cases

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 6dde1e42f497b2d4e22466f23019016775607947 ] Relax the condition that overlayfs supports nfs export, to require that i_ino is consistent with st_ino/d_ino. It is enough to require that st_ino and d_ino are consistent. This fixes the failure of xfstest generic/504, due to mismatch

[PATCH 4.19 30/90] ARC: fix build warnings

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 89c92142f75eb80064f5b9f484b1b4d81790 ] | arch/arc/mm/tlb.c:914:2: warning: variable length array 'pd0' is used [-Wvla] | arch/arc/include/asm/cmpxchg.h:95:29: warning: value computed is not used [-Wunused-value] Signed-off-by: Vineet Gupta Signed-off-by: Sasha Levin ---

[PATCH 4.19 31/90] dmaengine: dw-axi-dmac: fix null dereference when pointer first is null

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 0788611c9a0925c607de536b2449de5ed98ef8df ] In the unlikely event that axi_desc_get returns a null desc in the very first iteration of the while-loop the error exit path ends up calling axi_desc_put on a null pointer 'first' and this causes a null pointer dereference. Fix this by

[PATCH 4.19 28/90] brcmfmac: sdio: Disable auto-tuning around commands expected to fail

2019-06-24 Thread Greg Kroah-Hartman
From: Douglas Anderson commit 2de0b42da263c97d330d276f5ccf7c4470e3324f upstream. There are certain cases, notably when transitioning between sleep and active state, when Broadcom SDIO WiFi cards will produce errors on the SDIO bus. This is evident from the source code where you can see that we

[PATCH 4.19 29/90] brcmfmac: sdio: Dont tune while the card is off

2019-06-24 Thread Greg Kroah-Hartman
From: Douglas Anderson commit 65dade6044079a5c206fd1803642ff420061417a upstream. When Broadcom SDIO cards are idled they go to sleep and a whole separate subsystem takes over their SDIO communication. This is the Always-On-Subsystem (AOS) and it can't handle tuning requests. Specifically, as t

[PATCH 4.19 36/90] fpga: dfl: Add lockdep classes for pdata->lock

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit dfe3de8d397bf878b31864d4e489d41118ec475f ] struct dfl_feature_platform_data (and it's mutex) is used by both fme and port devices, and when lockdep is enabled it complains about nesting between these locks. Tell lockdep about the difference so it can track each class separately.

[PATCH 4.19 27/90] apparmor: enforce nullbyte at end of tag string

2019-06-24 Thread Greg Kroah-Hartman
From: Jann Horn commit 8404d7a674c49278607d19726e0acc0cae299357 upstream. A packed AppArmor policy contains null-terminated tag strings that are read by unpack_nameX(). However, unpack_nameX() uses string functions on them without ensuring that they are actually null-terminated, potentially lead

[PATCH 4.19 24/90] Input: uinput - add compat ioctl number translation for UI_*_FF_UPLOAD

2019-06-24 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 v

[PATCH 4.19 19/90] usb: xhci: Dont try to recover an endpoint if port is in error state.

2019-06-24 Thread Greg Kroah-Hartman
From: Mathias Nyman commit b8c3b718087bf7c3c8e388eb1f72ac1108a4926e upstream. A USB3 device needs to be reset and re-enumarated if the port it connects to goes to a error state, with link state inactive. There is no use in trying to recover failed transactions by resetting endpoints at this sta

[PATCH 4.19 34/90] ARC: [plat-hsdk]: Add missing FIFO size entry in GMAC node

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 4c70850aeb2e40016722cd1abd43c679666d3ca0 ] Add the binding for RX/TX fifo size of GMAC node. Cc: Joao Pinto Cc: Rob Herring Cc: Mark Rutland Cc: Vineet Gupta Tested-by: Eugeniy Paltsev Acked-by: Alexey Brodkin Signed-off-by: Jose Abreu Signed-off-by: Vineet Gupta Signed-

[PATCH 4.19 33/90] ARC: [plat-hsdk]: Add missing multicast filter bins number to GMAC node

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit ecc906a11c2a0940e1a380debd8bd5bc09faf454 ] GMAC controller on HSDK boards supports 256 Hash Table size so we need to add the multicast filter bins property. This allows for the Hash filter to work properly using stmmac driver. Cc: Joao Pinto Cc: Rob Herring Cc: Mark Rutland C

[PATCH 4.19 32/90] dmaengine: sprd: Fix block length overflow

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 89d03b3c126d683f7b2cd5b07178493993d12448 ] The maximum value of block length is 0x, so if the configured transfer length is more than 0x, that will cause block length overflow to lead a configuration error. Thus we can set block length as the maximum burst length to av

[PATCH 4.19 35/90] fpga: dfl: afu: Pass the correct device to dma_mapping_error()

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 13069847a475b60069918dc9971f5adb42811ce3 ] dma_mapping_error() was being called on a different device struct than what was passed to map/unmap. Besides rendering the error checking ineffective, it caused a debug splat with CONFIG_DMA_API_DEBUG. Signed-off-by: Scott Wood Acked-

[PATCH 4.19 26/90] apparmor: fix PROFILE_MEDIATES for untrusted input

2019-06-24 Thread Greg Kroah-Hartman
From: John Johansen commit 23375b13f98c5464c2b4d15f983cc062940f1f4e upstream. While commit 11c236b89d7c2 ("apparmor: add a default null dfa") ensure every profile has a policy.dfa it does not resize the policy.start[] to have entries for every possible start value. Which means PROFILE_MEDIATES i

[PATCH 4.19 22/90] iio: temperature: mlx90632 Relax the compatibility check

2019-06-24 Thread Greg Kroah-Hartman
From: Crt Mori commit 389fc70b60f534d679aea9a3f05146040ce20d77 upstream. Register EE_VERSION contains mixture of calibration information and DSP version. So far, because calibrations were definite, the driver compatibility depended on whole contents, but in the newer production process the calib

[PATCH 4.19 08/90] ovl: dont fail with disconnected lower NFS

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 9179c21dc6ed1c993caa5fe4da876a6765c26af7 ] NFS mounts can be disconnected from fs root. Don't fail the overlapping layer check because of this. The check is not authoritative anyway, since topology can change during or after the check. Reported-by: Antti Antinoja Signed-off-b

[PATCH 4.19 09/90] ovl: fix bogus -Wmaybe-unitialized warning

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 1dac6f5b0ed2601be21bb4e27a44b0c3e667b7f4 ] gcc gets a bit confused by the logic in ovl_setup_trap() and can't figure out whether the local 'trap' variable in the caller was initialized or not: fs/overlayfs/super.c: In function 'ovl_fill_super': fs/overlayfs/super.c:1333:4: error

[PATCH 4.19 37/90] parport: Fix mem leak in parport_register_dev_model

2019-06-24 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 b

[PATCH 4.19 41/90] IB/{qib, hfi1, rdmavt}: Correct ibv_devinfo max_mr value

2019-06-24 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") Rev

[PATCH 4.19 55/90] drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 6a88e0c14813d00f8520d0e16cd4136c6cf8b4d4 ] This patch trying to fix monitor freeze issue caused by drm error 'flip_done timed out' on LS1028A platform. this set try is make a loop around the second setting CVAL and try like 5 times before giveing up. Signed-off-by: Wen He Signe

[PATCH 4.19 16/90] scsi: ufs: Avoid runtime suspend possibly being blocked forever

2019-06-24 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 platform_s

[PATCH 4.19 46/90] kselftest/cgroup: fix unexpected testing failure on test_core

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 00e38a5d753d7788852f81703db804a60a84c26e ] The cgroup testing relys on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, some test cases will be failed as following: $sudo ./test_core not ok 1 test_cgcore_internal_process_constraint ok 2 test_cgco

[PATCH 4.19 07/90] ovl: detect overlapping layers

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 146d62e5a5867fbf84490d82455718bfb10fe824 ] Overlapping overlay layers are not supported and can cause unexpected behavior, but overlayfs does not currently check or warn about these configurations. User is not supposed to specify the same directory for upper and lower dirs or fo

[PATCH 4.19 43/90] MIPS: uprobes: remove set but not used variable epc

2019-06-24 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 sinc

[PATCH 4.19 56/90] drm/arm/hdlcd: Actually validate CRTC modes

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit b96151edced4edb6a18aa89a5fa02c7066efff45 ] Rather than allowing any old mode through, then subsequently refusing unmatchable clock rates in atomic_check when it's too late to back out and pick a different mode, let's do that validation up-front where it will cause unsupported mod

[PATCH 4.19 44/90] xtensa: Fix section mismatch between memblock_reserve and mem_reserve

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit adefd051a6707a6ca0ebad278d3c1c05c960fc3b ] Since commit 9012d011660ea5cf2 ("compiler: allow all arches to enable CONFIG_OPTIMIZE_INLINING"), xtensa:tinyconfig fails to build with section mismatch errors. WARNING: vmlinux.o(.text.unlikely+0x68): Section mismatch in reference

[PATCH 4.19 13/90] mmc: core: API to temporarily disable retuning for SDIO CRC errors

2019-06-24 Thread Greg Kroah-Hartman
From: Douglas Anderson commit 0a55f4ab9678413a01e740c86e9367ba0c612b36 upstream. Normally when the MMC core sees an "-EILSEQ" error returned by a host controller then it will trigger a retuning of the card. This is generally a good idea. However, if a command is expected to sometimes cause tra

[PATCH 4.19 39/90] IB/rdmavt: Fix alloc_qpn() WARN_ON()

2019-06-24 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 a

[PATCH 4.19 38/90] parisc: Fix compiler warnings in float emulation code

2019-06-24 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)) arch/parisc/ma

[PATCH 4.19 58/90] nvmet: fix data_len to 0 for bdev-backed write_zeroes

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 3562f5d9f21e7779ae442a45197fed6cb247fd22 ] The WRITE ZEROES command has no data transfer so that we need to initialize the struct (nvmet_req *req)->data_len to 0x0. While (nvmet_req *req)->transfer_len is initialized in nvmet_req_init(), data_len will be initialized by nowhere w

[PATCH 4.19 15/90] mmc: core: Prevent processing SDIO IRQs when the card is suspended

2019-06-24 Thread Greg Kroah-Hartman
From: Ulf Hansson commit 83293386bc95cf5e9f0c0175794455835bd1cb4a upstream. Processing of SDIO IRQs must obviously be prevented while the card is system suspended, otherwise we may end up trying to communicate with an uninitialized SDIO card. Reports throughout the years shows that this is not

[PATCH 4.19 59/90] scripts/checkstack.pl: Fix arm64 wrong or unknown architecture

2019-06-24 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 Yam

[PATCH 4.19 80/90] staging: erofs: add requirements field in superblock

2019-06-24 Thread Greg Kroah-Hartman
From: Gao Xiang commit 5efe5137f05bbb4688890620934538c005e7d1d6 upstream. There are some backward incompatible features pending for months, mainly due to on-disk format expensions. However, we should ensure that it cannot be mounted with old kernels. Otherwise, it will causes unexpected behavio

[PATCH 4.19 72/90] riscv: mm: synchronize MMU after pte change

2019-06-24 Thread Greg Kroah-Hartman
From: ShihPo Hung commit bf587caae305ae3b4393077fb22c98478ee55755 upstream. Because RISC-V compliant implementations can cache invalid entries in TLB, an SFENCE.VMA is necessary after changes to the page table. This patch adds an SFENCE.vma for the vmalloc_fault path. Signed-off-by: ShihPo Hung

[PATCH 4.19 48/90] selftests: vm: install test_vmalloc.sh for run_vmtests

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit bc2cce3f2ebcae02aa4bb29e3436bf75ee674c32 ] Add test_vmalloc.sh to TEST_FILES to make sure it gets installed for run_vmtests. Fixed below error: ./run_vmtests: line 217: ./test_vmalloc.sh: No such file or directory Tested with: make TARGETS=vm install INSTALL_PATH=$PWD/x Signed

[PATCH 4.19 79/90] drm/vmwgfx: Use the backdoor port if the HB port is not available

2019-06-24 Thread Greg Kroah-Hartman
From: Thomas Hellstrom commit cc0ba0d8624f210995924bb57a8b181ce8976606 upstream. The HB port may not be available for various reasons. Either it has been disabled by a config option or by the hypervisor for other reasons. In that case, make sure we have a backup plan and use the backdoor port in

[PATCH 4.19 77/90] arm64/sve: should not depend on

2019-06-24 Thread Greg Kroah-Hartman
From: Anisse Astier commit 35341ca0614ab13e1ef34ad4f29a39e15ef31fa8 upstream. Pulling linux/prctl.h into asm/ptrace.h in the arm64 UAPI headers causes userspace build issues for any program (e.g. strace and qemu) that includes both and when using musl libc: | error: redefinition of 'struct

[PATCH 4.19 74/90] ARM: imx: cpuidle-imx6sx: Restrict the SW2ISO increase to i.MX6SX

2019-06-24 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 incr

[PATCH 4.19 81/90] Bluetooth: Align minimum encryption key size for LE and BR/EDR connections

2019-06-24 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 Signed-off-by

[PATCH 4.19 64/90] hwmon: (core) add thermal sensors only if dev->of_node is present

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit c41dd48e21fae3e55b3670ccf2eb562fc1f6a67d ] Drivers may register to hwmon and request for also registering with the thermal subsystem (HWMON_C_REGISTER_TZ). However, some of these driver, e.g. marvell phy, may be probed from Device Tree or being dynamically allocated, and in the l

[PATCH 4.19 66/90] arm64: Silence gcc warnings about arch ABI drift

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit ebcc5928c5d925b1c8d968d9c89cdb0d0186db17 ] Since GCC 9, the compiler warns about evolution of the platform-specific ABI, in particular relating for the marshaling of certain structures involving bitfields. The kernel is a standalone binary, and of course nobody would be so stupi

[PATCH 4.19 70/90] can: flexcan: fix timeout when set small bitrate

2019-06-24 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 ch

[PATCH 4.19 68/90] btrfs: start readahead also in seed devices

2019-06-24 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 hu

[PATCH 4.19 82/90] Bluetooth: Fix regression with minimum encryption key size alignment

2019-06-24 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 versi

[PATCH 4.19 84/90] cfg80211: fix memory leak of wiphy device name

2019-06-24 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: syzbot+7fddca2257

[PATCH 4.19 86/90] {nl,mac}80211: allow 4addr AP operation on crypto controlled devices

2019-06-24 Thread Greg Kroah-Hartman
From: Manikanta Pubbisetty commit 33d915d9e8ce811d8958915ccd18d71a66c7c495 upstream. As per the current design, in the case of sw crypto controlled devices, it is the device which advertises the support for AP/VLAN iftype based on it's ability to tranmsit packets encrypted in software (In VLAN f

[PATCH 4.19 45/90] kselftest/cgroup: fix unexpected testing failure on test_memcontrol

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit f6131f28057d4fd8922599339e701a2504e0f23d ] The cgroup testing relies on the root cgroup's subtree_control setting, If the 'memory' controller isn't set, all test cases will be failed as following: $ sudo ./test_memcontrol not ok 1 test_memcg_subtree_control not ok 2 test_memcg_c

[PATCH 4.19 49/90] net: dsa: mv88e6xxx: avoid error message on remove from VLAN 0

2019-06-24 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 in

[PATCH 4.19 51/90] mdesc: fix a missing-check bug in get_vdev_port_node_info()

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 80caf43549e7e41a695c6d1e11066286538b336f ] In get_vdev_port_node_info(), 'node_info->vdev_port.name' is allcoated by kstrdup_const(), and it returns NULL when fails. So 'node_info->vdev_port.name' should be checked. Signed-off-by: Gen Zhang Signed-off-by: David S. Miller Signe

[PATCH 4.19 52/90] sparc: perf: fix updated event period in response to PERF_EVENT_IOC_PERIOD

2019-06-24 Thread Greg Kroah-Hartman
[ Upstream commit 56cd0aefa475079e9613085b14a0f05037518fed ] The PERF_EVENT_IOC_PERIOD ioctl command can be used to change the sample period of a running perf_event. Consequently, when calculating the next event period, the new period will only be considered after the previous one has overflowed.

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