[PATCH v4 11/24] dma-buf: Remove custom seqcount lockdep class key

2020-07-20 Thread Ahmed S. Darwish
Commit 3c3b177a9369 ("reservation: add support for read-only access using rcu") introduced a sequence counter to manage updates to reservations. Back then, the reservation object initializer reservation_object_init() was always inlined. Having the sequence counter initialization inlined meant

[PATCH v4 07/24] lockdep: Add preemption enabled/disabled assertion APIs

2020-07-20 Thread Ahmed S. Darwish
Asserting that preemption is enabled or disabled is a critical sanity check. Developers are usually reluctant to add such a check in a fastpath as reading the preemption count can be costly. Extend the lockdep API with macros asserting that preemption is disabled or enabled. If lockdep is

[PATCH v4 13/24] sched: tasks: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to

[PATCH v4 12/24] dma-buf: Use sequence counter with associated wound/wait mutex

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the sequence counter write side critical section. The

[PATCH 5.4 022/215] tcp: md5: refine tcp_md5_do_add()/tcp_md5_hash_key() barriers

2020-07-20 Thread Greg Kroah-Hartman
From: Eric Dumazet [ Upstream commit e6ced831ef11a2a06e8d00aad9d4fc05b610bf38 ] My prior fix went a bit too far, according to Herbert and Mathieu. Since we accept that concurrent TCP MD5 lookups might see inconsistent keys, we can use READ_ONCE()/WRITE_ONCE() instead of smp_rmb()/smp_wmb()

[PATCH v4 03/24] seqlock: seqcount_t latch: End read sections with read_seqcount_retry()

2020-07-20 Thread Ahmed S. Darwish
The seqcount_t latch reader example at the raw_write_seqcount_latch() kernel-doc comment ends the latch read section with a manual smp memory barrier and sequence counter comparison. This is technically correct, but it is suboptimal: read_seqcount_retry() already contains the same logic of an smp

[PATCH 5.4 015/215] net: usb: qmi_wwan: add support for Quectel EG95 LTE modem

2020-07-20 Thread Greg Kroah-Hartman
From: AceLan Kao [ Upstream commit f815dd5cf48b905eeecf0a2b990e9b7ab048b4f1 ] Add support for Quectel Wireless Solutions Co., Ltd. EG95 LTE modem T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#= 5 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c

[PATCH 5.4 002/215] crypto: atmel - Fix build error of CRYPTO_AUTHENC

2020-07-20 Thread Greg Kroah-Hartman
From: YueHaibing commit aee1f9f3c30e1e20e7f74729ced61eac7d74ca68 upstream. If CRYPTO_DEV_ATMEL_AUTHENC is m, CRYPTO_DEV_ATMEL_SHA is m, but CRYPTO_DEV_ATMEL_AES is y, building will fail: drivers/crypto/atmel-aes.o: In function `atmel_aes_authenc_init_tfm': atmel-aes.c:(.text+0x670): undefined

[PATCH 5.4 027/215] arm64: Introduce a way to disable the 32bit vdso

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 97884ca8c2925d14c32188e865069f21378b4b4f upstream. [this is a redesign rather than a backport] We have a class of errata (grouped under the ARM64_WORKAROUND_1418040 banner) that force the trapping of counter access from 32bit EL0. We would normally disable the whole

[PATCH 5.4 006/215] genetlink: remove genl_bind

2020-07-20 Thread Greg Kroah-Hartman
From: Sean Tranchetti [ Upstream commit 1e82a62fec613844da9e558f3493540a5b7a7b67 ] A potential deadlock can occur during registering or unregistering a new generic netlink family between the main nl_table_lock and the cb_lock where each thread wants the lock held by the other, as demonstrated

[PATCH v4 20/24] iocost: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to

[PATCH v4 15/24] netfilter: nft_set_rbtree: Use sequence counter with associated rwlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_rwlock_t data type, which allows to

[PATCH v4 14/24] netfilter: conntrack: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to

[PATCH 5.4 009/215] ipv6: Fix use of anycast address with loopback

2020-07-20 Thread Greg Kroah-Hartman
From: David Ahern [ Upstream commit aea23c323d89836bcdcee67e49def997ffca043b ] Thomas reported a regression with IPv6 and anycast using the following reproducer: echo 1 > /proc/sys/net/ipv6/conf/all/forwarding ip -6 a add fc12::1/16 dev lo sleep 2 echo "pinging lo" ping6

[PATCH 5.4 026/215] ip: Fix SO_MARK in RST, ACK and ICMP packets

2020-07-20 Thread Greg Kroah-Hartman
From: Willem de Bruijn [ Upstream commit 0da7536fb47f51df89ccfcb1fa09f249d9accec5 ] When no full socket is available, skbs are sent over a per-netns control socket. Its sk_mark is temporarily adjusted to match that of the real (request or timewait) socket or to reflect an incoming skb, so that

[PATCH v4 16/24] xfrm: policy: Use sequence counters with associated lock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the sequence counter write side critical section. A plain

[PATCH v4 10/24] seqlock: Align multi-line macros newline escapes at 72 columns

2020-07-20 Thread Ahmed S. Darwish
Parent commit, "seqlock: Extend seqcount API with associated locks", introduced a big number of multi-line macros that are newline-escaped at 72 columns. For overall cohesion, align the earlier-existing macros similarly. Signed-off-by: Ahmed S. Darwish --- include/linux/seqlock.h | 29

[PATCH 5.4 000/215] 5.4.53-rc1 review

2020-07-20 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.53 release. There are 215 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, 22 Jul 2020 15:27:31 +. Anything

[PATCH 5.4 046/215] iio:magnetometer:ak8974: Fix alignment and data leak issues

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 838e00b13bfd4cac8b24df25bfc58e2eb99bcc70 upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 5.4 040/215] cifs: prevent truncation from long to int in wait_for_free_credits

2020-07-20 Thread Greg Kroah-Hartman
From: Ronnie Sahlberg [ Upstream commit 19e888678bac8c82206eb915eaf72741b2a2615c ] The wait_event_... defines evaluate to long so we should not assign it an int as this may truncate the value. Reported-by: Marshall Midden Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French

[PATCH v4 17/24] timekeeping: Use sequence counter with associated raw spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_raw_spinlock_t data type, which allows to

[PATCH 5.4 007/215] ipv4: fill fl4_icmp_{type,code} in ping_v4_sendmsg

2020-07-20 Thread Greg Kroah-Hartman
From: Sabrina Dubroca [ Upstream commit 5eff06902394425c722f0a44d9545909a8800f79 ] IPv4 ping sockets don't set fl4.fl4_icmp_{type,code}, which leads to incomplete IPsec ACQUIRE messages being sent to userspace. Currently, both raw sockets and IPv6 ping sockets set those fields. Expected output

[PATCH v4 23/24] kvm/eventfd: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to

[PATCH 5.4 042/215] tpm_tis: extra chip->ops check on error path in tpm_tis_core_init

2020-07-20 Thread Greg Kroah-Hartman
From: Vasily Averin [ Upstream commit ccf6fb858e17a8f8a914a1c6444d277cfedfeae6 ] Found by smatch: drivers/char/tpm/tpm_tis_core.c:1088 tpm_tis_core_init() warn: variable dereferenced before check 'chip->ops' (see line 979) 'chip->ops' is assigned in the beginning of function in

[PATCH 5.4 041/215] arm64/alternatives: use subsections for replacement sequences

2020-07-20 Thread Greg Kroah-Hartman
From: Ard Biesheuvel [ Upstream commit f7b93d42945cc71e1346dd5ae07c59061d56745e ] When building very large kernels, the logic that emits replacement sequences for alternatives fails when relative branches are present in the code that is emitted into the .altinstr_replacement section and patched

Re: net: phy: continue searching for C45 MMDs even if first returned ffff:ffff

2020-07-20 Thread Vladimir Oltean
On Mon, Jul 20, 2020 at 05:21:13PM +0100, Colin Ian King wrote: > Hi, > > Static analysis by Coverity has found a potential issue with the > following commit in /drivers/net/phy/phy_device.c: > > commit bba238ed037c60242332dd1e4c5778af9eba4d9b > Author: Vladimir Oltean > Date: Sun Jul 12

[PATCH 5.4 032/215] drm/exynos: Properly propagate return value in drm_iommu_attach_device()

2020-07-20 Thread Greg Kroah-Hartman
From: Marek Szyprowski [ Upstream commit b9c633882de4601015625f9136f248e9abca8a7a ] Propagate the proper error codes from the called functions instead of unconditionally returning 0. Reported-by: kbuild test robot Signed-off-by: Marek Szyprowski Merge conflict so merged it manually.

[PATCH v4 22/24] userfaultfd: Use sequence counter with associated spinlock

2020-07-20 Thread Ahmed S. Darwish
A sequence counter write side critical section must be protected by some form of locking to serialize writers. A plain seqcount_t does not contain the information of which lock must be held when entering a write side critical section. Use the new seqcount_spinlock_t data type, which allows to

[PATCH][next] phy: samsung-ufs: fix check on failed devm_clk_get call for rx1_symbol_clk

2020-07-20 Thread Colin King
From: Colin Ian King The check to see if the call to devm_clk_get on rx1_symbol_clk is checking the wrong variable, this looks like a copy-paste error. Fix this to check phy->rx1_symbol instead of phy->rx0_symbol. Addresses-Coverity: ("Copy-paste error") Fixes: bca21e930451 ("phy: samsung-ufs:

[PATCH 02/24] fs: add a do_kern_mount helper

2020-07-20 Thread Christoph Hellwig
Like do_mount, but takes a kernel pointer for the destination path. Switch over the mounts in the init code and devtmpfs to it, which just happen to work due to the implicit set_fs(KERNEL_DS) during early init right now. Signed-off-by: Christoph Hellwig --- drivers/base/devtmpfs.c | 4 +-

[PATCH 5.4 078/215] arm64: dts: g12-common: add parkmode_disable_ss_quirk on DWC3 controller

2020-07-20 Thread Greg Kroah-Hartman
From: Neil Armstrong [ Upstream commit a81bcfb6ac20cdd2e8dec3da14c8bbe1d18f6321 ] When high load on the DWC3 SuperSpeed port, the controller crashes with: [ 221.141621] xhci-hcd xhci-hcd.0.auto: xHCI host not responding to stop endpoint command. [ 221.157631] xhci-hcd xhci-hcd.0.auto: Host

[PATCH 5.4 049/215] iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers

2020-07-20 Thread Greg Kroah-Hartman
From: Matt Ranostay commit 25f02d3242ab4d16d0cee2dec0d89cedb3747fa9 upstream. Add missing strings to iio_modifier_names[] for proper modification of channels. Fixes: b170f7d48443d (iio: Add modifiers for ethanol and H2 gases) Signed-off-by: Matt Ranostay Cc: Signed-off-by: Jonathan Cameron

[PATCH 5.4 082/215] ALSA: usb-audio: Create a registration quirk for Kingston HyperX Amp (0951:16d8)

2020-07-20 Thread Greg Kroah-Hartman
From: Chris Wulff [ Upstream commit 55f7326170d9e83e2d828591938e1101982a679c ] Create a quirk that allows special processing and/or skipping the call to snd_card_register. For HyperX AMP, which uses two interfaces, but only has a capture stream in the second, this allows the capture stream to

[PATCH 5.4 047/215] iio:humidity:hdc100x Fix alignment and data leak issues

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit ea5e7a7bb6205d24371373cd80325db1bc15eded upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 5.4 076/215] bus: ti-sysc: Handle module unlock quirk needed for some RTC

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit e8639e1c986a8a9d0f94549170f6db579376c3ae ] The RTC modules on am3 and am4 need quirk handling to unlock and lock them for reset so let's add the quirk handling based on what we already have for legacy platform data. In later patches we will simply drop the

[PATCH 5.4 053/215] iio:pressure:ms5611 Fix buffer element alignment

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 8db4afe163bbdd93dca6fcefbb831ef12ecc6b4d upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 03/24] fs: add a kern_umount helper

2020-07-20 Thread Christoph Hellwig
Like ksys_umount, but takes a kernel pointer for the destination path. Switch over the umount in the init code to it, which just happens to work due to the implicit set_fs(KERNEL_DS) during early init right now. Signed-off-by: Christoph Hellwig --- fs/namespace.c | 53

[PATCH 5.4 079/215] bus: ti-sysc: Detect EDMA and set quirk flags for tptc

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 25bfaaa73c7d26a6e897559c510d7daff5e9d22d ] In order to probe EDMA with ti-sysc interconnect target module and with device tree data, we need to properly detect EDMA and set the flags for SYSC_QUIRK_SWSUP_SIDLE | SYSC_QUIRK_SWSUP_MSTANDBY for tptc. We have

[PATCH 5.4 056/215] net: dsa: bcm_sf2: Fix node reference count

2020-07-20 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit 8dbe4c5d5e40fe140221024f7b16bec9f310bf70 ] of_find_node_by_name() will do an of_node_put() on the "from" argument. With CONFIG_OF_DYNAMIC enabled which checks for device_node reference counts, we would be getting a warning like this: [6.347230]

[PATCH 5.4 035/215] thermal/drivers: imx: Fix missing of_node_put() at probe time

2020-07-20 Thread Greg Kroah-Hartman
From: Anson Huang [ Upstream commit b45fd13be340e4ed0a2a9673ba299eb2a71ba829 ] After finishing using cpu node got from of_get_cpu_node(), of_node_put() needs to be called. Signed-off-by: Anson Huang Signed-off-by: Daniel Lezcano Link:

[PATCH 5.4 077/215] bus: ti-sysc: Detect display subsystem related devices

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 77dfece2e6d8bedb6ecd4d61379ae3dc52f389bd ] In order to prepare probing display subsystem (DSS) with ti-sysc interconnect target module driver and device tree data, let's detect DSS related modules. We need to also add reset quirk handling for DSS, but

[PATCH 5.4 055/215] spi: spi-fsl-dspi: Fix lockup if device is shutdown during SPI transfer

2020-07-20 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 3c525b69e8c1a9a6944e976603c7a1a713e728f9 ] During shutdown, the driver should unregister the SPI controller and stop the hardware. Otherwise the dspi_transfer_one_message() could wait on completion infinitely. Additionally, calling

[PATCH 5.4 038/215] m68k: mm: fix node memblock init

2020-07-20 Thread Greg Kroah-Hartman
From: Angelo Dureghello [ Upstream commit c43e55796dd4d13f4855971a4d7970ce2cd94db4 ] After pulling 5.7.0 (linux-next merge), mcf5441x mmu boot was hanging silently. memblock_add() seems not appropriate, since using MAX_NUMNODES as node id, while memblock_add_node() sets up memory for node id

[PATCH 5.4 052/215] iio:humidity:hts221 Fix alignment and data leak issues

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron commit 5c49056ad9f3c786f7716da2dd47e4488fc6bd25 upstream. One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 5.4 064/215] net: sfp: add support for module quirks

2020-07-20 Thread Greg Kroah-Hartman
From: Russell King [ Upstream commit b34bb2cb5b62c7397c28fcc335e8047a687eada4 ] Add support for applying module quirks to the list of supported ethtool link modes. Signed-off-by: Russell King Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller

[PATCH 5.4 087/215] ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Alpha S

2020-07-20 Thread Greg Kroah-Hartman
From: Emmanuel Pescosta [ Upstream commit fd60e0683e8e9107e09cd2e4798f3e27e85d2705 ] Similar to the Kingston HyperX AMP, the Kingston HyperX Cloud Alpha S (0951:16d8) uses two interfaces, but only the second interface contains the capture stream. This patch delays the registration until the

[PATCH 5.4 086/215] ACPI: video: Use native backlight on Acer Aspire 5783z

2020-07-20 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 1c8fbc1f9bfb804ef2f0d4ee9397ab800e33f23a ] The Acer Aspire 5783z shipped with Windows 7 and as such does not trigger our "win8 ready" heuristic for prefering the native backlight interface. Still ACPI backlight control doesn't work on this model, where as

[PATCH 09/24] fs: add a kern_chown helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper to chown with a kernel space name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Remove ksys_chown after switching all users to call do_fchownat directly. Signed-off-by: Christoph Hellwig --- fs/internal.h| 2 --

add file system helpers that take kernel pointers for the init code

2020-07-20 Thread Christoph Hellwig
Hi Al, currently a lot of the file system calls in the early in code (and the devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot. This is one of the few last remaining places we need to deal with to kill off set_fs entirely, so this series adds new helpers that take kernel

[PATCH 01/24] init: initialize ramdisk_execute_command at compile time

2020-07-20 Thread Christoph Hellwig
Set ramdisk_execute_command to "/init" at compile time. The command line can still override it, but this saves a few instructions and removes a NULL check. Signed-off-by: Christoph Hellwig --- init/main.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init/main.c

[PATCH 5.4 085/215] ALSA: usb-audio: Rewrite registration quirk handling

2020-07-20 Thread Greg Kroah-Hartman
From: Takashi Iwai [ Upstream commit d8695bc5b1fe88305396b1f788d3b5f218e28a30 ] A slight refactoring of the registration quirk code. Now it uses the table lookup for easy additions in future. Also the return type was changed to bool, and got a few more comments. Link:

[PATCH v1] spi: spi-topcliff-pch: use generic power management

2020-07-20 Thread Vaibhav Gupta
Drivers using legacy PM have to manage PCI states and device's PM states themselves. They also need to take care of configuration registers. With improved and powerful support of generic PM, PCI Core takes care of above mentioned, device-independent, jobs. This driver makes use of PCI helper

[PATCH 5.4 083/215] doc: dt: bindings: usb: dwc3: Update entries for disabling SS instances in park mode

2020-07-20 Thread Greg Kroah-Hartman
From: Neil Armstrong [ Upstream commit 3d157c28d2289edf0439e8308e8de3a06acaaf0e ] This patch updates the documentation with the information related to the quirks that needs to be added for disabling all SuperSpeed XHCI instances in park mode. Cc: Dongjin Kim Cc: Jianxin Pan Cc: Thinh Nguyen

[PATCH 06/24] fs: add a kern_chdir helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper for a chdir with a kernelspace name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Remove the now unused ksys_chdir. Signed-off-by: Christoph Hellwig --- drivers/base/devtmpfs.c | 2 +- fs/open.c| 15

RE: [PATCH v3] PCI: hv: Fix a timing issue which causes kdump to fail occasionally

2020-07-20 Thread Michael Kelley
From: Wei Hu Sent: Friday, July 17, 2020 8:48 PM > To: KY Srinivasan ; Haiyang Zhang > ; > Stephen Hemminger ; wei@kernel.org; > lorenzo.pieral...@arm.com; r...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org;

[PATCH 07/24] fs: add a kern_chroot helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper for a chroot with a kernelspace name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. Remove the now unused ksys_chroot. Signed-off-by: Christoph Hellwig --- drivers/base/devtmpfs.c | 2 +- fs/open.c| 15

[PATCH 5.4 090/215] ACPI: video: Use native backlight on Acer TravelMate 5735Z

2020-07-20 Thread Greg Kroah-Hartman
From: Paul Menzel [ Upstream commit c41c36e900a337b4132b12ccabc97f5578248b44 ] Currently, changing the brightness of the internal display of the Acer TravelMate 5735Z does not work. Pressing the function keys or changing the slider, GNOME Shell 3.36.2 displays the OSD (five steps), but the

[PATCH 14/24] fs: add a kern_mknod helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper perform a mknod with a kernel space file name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. To do so push the getname from do_mknodat into the callers. Remove the now unused ksys_mknod. Signed-off-by: Christoph Hellwig ---

[PATCH 10/24] fs: move the uid16 (f)chown syscalls to fs/open.c

2020-07-20 Thread Christoph Hellwig
This allows to keep the internal (f)chown helper private in open.c. Signed-off-by: Christoph Hellwig --- fs/open.c| 25 ++--- include/linux/syscalls.h | 4 kernel/uid16.c | 17 - 3 files changed, 22 insertions(+), 24

[PATCH 5.4 089/215] Input: mms114 - add extra compatible for mms345l

2020-07-20 Thread Greg Kroah-Hartman
From: Stephan Gerhold [ Upstream commit 7842087b0196d674ed877d768de8f2a34d7fdc53 ] MMS345L is another first generation touch screen from Melfas, which uses mostly the same registers as MMS152. However, there is some garbage printed during initialization. Apparently MMS345L does not have the

[PATCH 5.4 084/215] mmc: sdhci: do not enable card detect interrupt for gpio cd type

2020-07-20 Thread Greg Kroah-Hartman
From: Haibo Chen [ Upstream commit e65bb38824711559844ba932132f417bc5a355e2 ] Except SDHCI_QUIRK_BROKEN_CARD_DETECTION and MMC_CAP_NONREMOVABLE, we also do not need to handle controller native card detect interrupt for gpio cd type. If we wrong enabled the card detect interrupt for gpio case,

[PATCH 13/24] fs: add a kern_mkdir helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper perform a mkdir with a kernel space file name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. To do so push the getname from do_mkdirat into the callers. Remove the now unused ksys_mkdir. Signed-off-by: Christoph Hellwig ---

[PATCH 22/24] fs: remove vfs_stat_set_lookup_flags

2020-07-20 Thread Christoph Hellwig
The function really obsfucates checking for valid flags and setting the lookup flags. The fact that it returns -EINVAL through and unsigned return value, which is then used as boolean really doesn't help either. Signed-off-by: Christoph Hellwig --- fs/stat.c | 33

[PATCH 5.4 092/215] ALSA: usb-audio: Add registration quirk for Kingston HyperX Cloud Flight S

2020-07-20 Thread Greg Kroah-Hartman
From: Christoffer Nielsen [ Upstream commit 73094608b8e214952444fb104651704c98a37aeb ] Similar to the Kingston HyperX AMP, the Kingston HyperX Cloud Alpha S (0951:0x16ea) uses two interfaces, but only the second interface contains the capture stream. This patch delays the registration until the

[PATCH 5.4 093/215] iio:health:afe4404 Fix timestamp alignment and prevent data leak.

2020-07-20 Thread Greg Kroah-Hartman
From: Jonathan Cameron [ Upstream commit f88ecccac4be348bbcc6d056bdbc622a8955c04d ] One of a class of bugs pointed out by Lars in a recent review. iio_push_to_buffers_with_timestamp assumes the buffer used is aligned to the size of the timestamp (8 bytes). This is not guaranteed in this driver

[PATCH 5.4 094/215] soundwire: intel: fix memory leak with devm_kasprintf

2020-07-20 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart [ Upstream commit bf6d6e68d2028a2d82f4c106f50ec75cc1e6ef89 ] The dais are allocated with devm_kcalloc() but their name isn't resourced managed and never freed. Fix by also using devm_ for the dai names as well. Fixes: c46302ec554c5 ('soundwire: intel: Add audio DAI

[PATCH 19/24] fs: remove vfs_statx_fd

2020-07-20 Thread Christoph Hellwig
vfs_statx_fd is only used to implement vfs_fstat. Remove vfs_statx_fd and just implement vfs_fstat directly. Signed-off-by: Christoph Hellwig --- fs/stat.c | 22 +++--- include/linux/fs.h | 7 +-- 2 files changed, 8 insertions(+), 21 deletions(-) diff --git

[PATCH 5.4 091/215] bus: ti-sysc: Use optional clocks on for enable and wait for softreset bit

2020-07-20 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit d46f9fbec71997420e4fb83c04d9affdf423f879 ] Some modules reset automatically when idled, and when re-enabled, we must wait for the automatic OCP softreset to complete. And if optional clocks are configured, we need to keep the clocks on while waiting for the

[PATCH 15/24] fs: add a kern_link helper

2020-07-20 Thread Christoph Hellwig
Add a simple helper perform a link with a kernel space file name and use it in the early init code instead of relying on the implicit set_fs(KERNEL_DS) there. To do so push the getname from do_linkat into the callers. Remove the now unused ksys_link. Signed-off-by: Christoph Hellwig ---

[PATCH 5.4 088/215] ALSA: usb-audio: Add quirk for Focusrite Scarlett 2i2

2020-07-20 Thread Greg Kroah-Hartman
From: Gregor Pintar [ Upstream commit 6f4ea2074ddf689ac6f892afa58515032dabf2e4 ] Force it to use asynchronous playback. Same quirk has already been added for Focusrite Scarlett Solo (2nd gen) with a commit 46f5710f0b88 ("ALSA: usb-audio: Add quirk for Focusrite Scarlett Solo"). This also

[PATCH 21/24] fs: move vfs_fstatat out of line

2020-07-20 Thread Christoph Hellwig
This allows to keep vfs_statx static in fs/stat.c to prepare for the following changes. Signed-off-by: Christoph Hellwig --- fs/stat.c | 9 +++-- include/linux/fs.h | 9 ++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/stat.c b/fs/stat.c index

[PATCH 20/24] fs: implement vfs_stat and vfs_lstat in terms of vfs_fstatat

2020-07-20 Thread Christoph Hellwig
Go through vfs_fstatat instead of duplicating the *stat to statx mapping three times. Signed-off-by: Christoph Hellwig --- include/linux/fs.h | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index

[PATCH 23/24] fs: remove KSTAT_QUERY_FLAGS

2020-07-20 Thread Christoph Hellwig
KSTAT_QUERY_FLAGS expands to AT_STATX_SYNC_TYPE, which itself already is a mask. Remove the double name, especially given that the prefix is a little confusing vs the normal AT_* flags. Signed-off-by: Christoph Hellwig --- fs/stat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

[PATCH 5.4 066/215] ARM: OMAP4+: remove pdata quirks for omap4+ iommus

2020-07-20 Thread Greg Kroah-Hartman
From: Tero Kristo [ Upstream commit e4c4b540e1e6c21ff8b987e92b2bd170ee006a94 ] IOMMU driver will be using ti-sysc bus driver for power management control going forward, and the pdata quirks are not needed for anything anymore. Signed-off-by: Tero Kristo Signed-off-by: Tony Lindgren

Re: [PATCH][next] refperf: avoid null pointer dereference when buf fails to allocate

2020-07-20 Thread Paul E. McKenney
On Thu, Jul 16, 2020 at 03:38:56PM +0100, Colin King wrote: > From: Colin Ian King > > Currently in the unlikely event that buf fails to be allocated it > is dereferenced a few times. Use the errexit flag to determine if > buf should be written to to avoid the null pointer dereferences. > >

[PATCH 5.4 068/215] ARM: OMAP2+: use separate IOMMU pdata to fix DRA7 IPU1 boot

2020-07-20 Thread Greg Kroah-Hartman
From: Suman Anna [ Upstream commit 4601832f40501efc3c2fd264a5a69bd1ac17d520 ] The IPU1 MMU has been using common IOMMU pdata quirks defined and used by all IPU IOMMU devices on OMAP4 and beyond. Separate out the pdata for IPU1 MMU with the additional .set_pwrdm_constraint ops plugged in, so

[PATCH 5.4 118/215] regmap: debugfs: Dont sleep while atomic for fast_io regmaps

2020-07-20 Thread Greg Kroah-Hartman
From: Douglas Anderson [ Upstream commit 299632e54b2e692d2830af84be51172480dc1e26 ] If a regmap has "fast_io" set then its lock function uses a spinlock. That doesn't work so well with the functions: * regmap_cache_only_write_file() * regmap_cache_bypass_write_file() Both of the above

[PATCH 5.4 110/215] NFS: Fix interrupted slots by sending a solo SEQUENCE operation

2020-07-20 Thread Greg Kroah-Hartman
From: Anna Schumaker [ Upstream commit 913fadc5b105c3619d9e8d0fe8899ff1593cc737 ] We used to do this before 3453d5708b33, but this was changed to better handle the NFS4ERR_SEQ_MISORDERED error code. This commit fixed the slot re-use case when the server doesn't receive the interrupted

[PATCH 5.4 113/215] Revert "thermal: mediatek: fix register index error"

2020-07-20 Thread Greg Kroah-Hartman
From: Enric Balletbo i Serra [ Upstream commit a8f62f183021be389561570ab5f8c701a5e70298 ] This reverts commit eb9aecd90d1a39601e91cd08b90d5fee51d321a6 The above patch is supposed to fix a register index error on mt2701. It is not clear if the problem solved is a hang or just an invalid value

[PATCH 5.4 070/215] HID: quirks: Remove ITE 8595 entry from hid_have_special_driver

2020-07-20 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 3045696d0ce663d67c95dcb8206d3de57f6841ec ] The ITE 8595 chip used in various 2-in-1 keyboard docks works fine with the hid-generic driver (minus the RF_KILL key) and also keeps working fine when swapping drivers, so there is no need to have it in the

[PATCH 5.4 124/215] PCI/PM: Call .bridge_d3() hook only if non-NULL

2020-07-20 Thread Greg Kroah-Hartman
From: Bjorn Helgaas commit c3aaf086701d05a82c8156ee8620af41e5a7d6fe upstream. 26ad34d510a8 ("PCI / ACPI: Whitelist D3 for more PCIe hotplug ports") added the struct pci_platform_pm_ops.bridge_d3() function pointer and platform_pci_bridge_d3() to use it. The .bridge_d3() op is implemented by

[PATCH 5.4 119/215] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-20 Thread Greg Kroah-Hartman
From: Kevin Buettner commit 5714ee50bb4375bd586858ad800b1d9772847452 upstream. This fixes a regression encountered while running the gdb.base/corefile.exp test in GDB's test suite. In my testing, the typo prevented the sw_reserved field of struct fxregs_state from being output to the kernel

[PATCH 5.4 062/215] Revert "usb/ehci-platform: Set PM runtime as active on resume"

2020-07-20 Thread Greg Kroah-Hartman
This reverts commit 335d720bb4bd9d2808cae5af6f3c636c87f19596. Eugeniu Rosca writes: On Thu, Jul 09, 2020 at 09:00:23AM +0200, Eugeniu Rosca wrote: >After integrating v4.14.186 commit 5410d158ca2a50 ("usb/ehci-platform: >Set PM runtime as active on resume") into downstream v4.14.x, we started >to

[PATCH 5.4 069/215] mmc: mmci: Support any block sizes for ux500v2 and qcom variant

2020-07-20 Thread Greg Kroah-Hartman
From: Linus Walleij [ Upstream commit 2253ed4b36dc876d1598c4dab5587e537ec68c34 ] For the ux500v2 variant of the PL18x block, any block sizes are supported. This is necessary to support some SDIO transfers. This also affects the QCOM MMCI variant and the ST micro variant. For Ux500 an

[PATCH 5.4 116/215] arm64: dts: spcfpga: Align GIC, NAND and UART nodenames with dtschema

2020-07-20 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit 681a5c71fb829fc2193e3bb524af41525477f5c3 ] Fix dtschema validator warnings like: intc@fffc1000: $nodename:0: 'intc@fffc1000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' Fixes: 78cd6a9d8e15 ("arm64: dts: Add base stratix 10

[PATCH 5.4 105/215] spi: spi-sun6i: sun6i_spi_transfer_one(): fix setting of clock rate

2020-07-20 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde [ Upstream commit ed7815db70d17b1741883f2da8e1d80bc2efe517 ] A SPI transfer defines the _maximum_ speed of the SPI transfer. However the driver doesn't take into account that the clock divider is always rounded down (due to integer arithmetics). This results in a too

[PATCH 5.4 127/215] soc: qcom: rpmh: Invalidate SLEEP and WAKE TCSes before flushing new data

2020-07-20 Thread Greg Kroah-Hartman
From: Maulik Shah commit f5ac95f9ca2f439179a5baf48e1c0f22f83d936e upstream. TCSes have previously programmed data when rpmh_flush() is called. This can cause old data to trigger along with newly flushed. Fix this by cleaning SLEEP and WAKE TCSes before new data is flushed. With this there is

[PATCH 5.4 130/215] RDMA/mlx5: Verify that QP is created with RQ or SQ

2020-07-20 Thread Greg Kroah-Hartman
From: Aharon Landau commit 0eacc574aae7300bf46c10c7116c3ba5825505b7 upstream. RAW packet QP and underlay QP must be created with either RQ or SQ, check that. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Link:

Re: [PATCH v10 08/17] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-07-20 Thread Pratyush Yadav
Hi Tudor, On 08/07/20 04:03PM, tudor.amba...@microchip.com wrote: > On 6/23/20 9:30 PM, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > The xSPI Profile 1.0 table specifies how many dummy cycles and address > >

[PATCH 5.4 141/215] clk: qcom: gcc: Add missing UFS clocks for SM8150

2020-07-20 Thread Greg Kroah-Hartman
From: Vinod Koul commit 37c72e4cae37f0dace1abb3711ede7fbc6d0862a upstream. Add the missing ufs card and ufs phy clocks for SM8150. They were missed in earlier addition of clock driver. Fixes: 2a1d7eb854bb ("clk: qcom: gcc: Add global clock controller driver for SM8150") Signed-off-by: Vinod

[PATCH 5.4 142/215] slimbus: core: Fix mismatch in of_node_get/put

2020-07-20 Thread Greg Kroah-Hartman
From: Saravana Kannan commit 01360857486c0e4435dea3aa2f78b47213b7cf6a upstream. Adding missing corresponding of_node_put Fixes: 7588a511bdb4 ("slimbus: core: add support to device tree helper") Signed-off-by: Saravana Kannan [Srini: added fixes tag, removed NULL check and updated log]

[PATCH 5.4 131/215] mtd: rawnand: marvell: Fix the condition on a return code

2020-07-20 Thread Greg Kroah-Hartman
From: Miquel Raynal commit c27075772d1f1c8aaf276db9943b35adda8a8b65 upstream. In a previous fix, I changed the condition on which the timeout of an IRQ is reached from: if (!ret) into: if (ret && !pending) While having a non-zero return code is usual in the Linux kernel, here ret

[PATCH 5.4 139/215] mtd: rawnand: oxnas: Release all devices in the _remove() path

2020-07-20 Thread Greg Kroah-Hartman
From: Miquel Raynal commit 0a5f45e57e35d0840bedb816974ce2e63406cd8b upstream. oxnans_nand_remove() should release all MTD devices and clean all NAND devices, not only the first one registered. Fixes: 668592492409 ("mtd: nand: Add OX820 NAND Support") Signed-off-by: Miquel Raynal Link:

Re: KASAN: use-after-free Read in userfaultfd_release (2)

2020-07-20 Thread Al Viro
On Mon, Jul 13, 2020 at 04:45:12PM +0800, Hillf Danton wrote: > Bridge the gap between slab free and the fput in task work wrt > file's private data. No. This > @@ -2048,6 +2055,7 @@ SYSCALL_DEFINE1(userfaultfd, int, flags) > > fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); > if

[PATCH 5.4 126/215] soc: qcom: rpmh: Update dirty flag only when data changes

2020-07-20 Thread Greg Kroah-Hartman
From: Maulik Shah commit bb7000677a1b287206c8d4327c62442fa3050a8f upstream. Currently rpmh ctrlr dirty flag is set for all cases regardless of data is really changed or not. Add changes to update dirty flag when data is changed to newer values. Update dirty flag everytime when data in batch

[PATCH 5.4 146/215] HID: quirks: Ignore Simply Automated UPB PIM

2020-07-20 Thread Greg Kroah-Hartman
From: James Hilliard commit 1ee1369b46de1083238fced60ff718f59de4b8aa upstream. As this is a cypress HID->COM RS232 style device that is handled by the cypress_M8 driver we also need to add it to the ignore list in hid-quirks. Cc: stable Signed-off-by: James Hilliard Signed-off-by: Jiri

[PATCH 5.4 189/215] intel_th: pci: Add Jasper Lake CPU support

2020-07-20 Thread Greg Kroah-Hartman
From: Alexander Shishkin commit 203c1f615052921901b7a8fbe2005d8ea6add076 upstream. This adds support for the Trace Hub in Jasper Lake CPU. Signed-off-by: Alexander Shishkin Reviewed-by: Andy Shevchenko Cc: sta...@vger.kernel.org # v4.14+ Link:

[PATCH 5.4 187/215] powerpc/book3s64/pkeys: Fix pkey_access_permitted() for execute disable pkey

2020-07-20 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V commit 192b6a780598976feb7321ff007754f8511a4129 upstream. Even if the IAMR value denies execute access, the current code returns true from pkey_access_permitted() for an execute permission check, if the AMR read pkey bit is cleared. This results in repeated page fault

[PATCH 5.4 188/215] powerpc/pseries/svm: Fix incorrect check for shared_lppaca_size

2020-07-20 Thread Greg Kroah-Hartman
From: Satheesh Rajendran commit b710d27bf72068b15b2f0305d825988183e2ff28 upstream. Early secure guest boot hits the below crash while booting with vcpus numbers aligned with page boundary for PAGE size of 64k and LPPACA size of 1k i.e 64, 128 etc. Partition configured for 64 cpus. CPU maps

[PATCH 5.4 185/215] riscv: use 16KB kernel stack on 64-bit

2020-07-20 Thread Greg Kroah-Hartman
From: Andreas Schwab commit 0cac21b02ba5f3095fd2dcc77c26a25a0b2432ed upstream. With the current 8KB stack size there are frequent overflows in a 64-bit configuration. We may split IRQ stacks off in the future, but this fixes a number of issues right now. Signed-off-by: Andreas Schwab

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