[PATCH 5.2 15/45] HID: logitech-dj: Fix crash when initial logi_dj_recv_query_paired_devices fails

2019-09-29 Thread Greg Kroah-Hartman
From: Hans de Goede commit 8ccff2843fb4e6d9d26e5ae9ffe9840b38b92638 upstream. Before this commit dj_probe would exit with an error if the initial logi_dj_recv_query_paired_devices fails. The initial call may fail when the receiver is connected through a kvm and the focus is away. When the call

[PATCH 5.2 03/45] phy: qcom-qmp: Raise qcom_qmp_phy_enable() polling delay

2019-09-29 Thread Greg Kroah-Hartman
From: Marc Gonzalez [ Upstream commit 5206026404190125436f81088eb3667076e56083 ] readl_poll_timeout() calls usleep_range() to sleep between reads. usleep_range() doesn't work efficiently for tiny values. Raise the polling delay in qcom_qmp_phy_enable() to bring it in line with the delay in qcom

[PATCH 5.2 01/45] Revert "Bluetooth: validate BLE connection interval updates"

2019-09-29 Thread Greg Kroah-Hartman
From: Marcel Holtmann [ Upstream commit 68d19d7d995759b96169da5aac313363f92a9075 ] This reverts commit c49a8682fc5d298d44e8d911f4fa14690ea9485e. There are devices which require low connection intervals for usable operation including keyboards and mice. Forcing a static connection interval for t

[PATCH 5.2 14/45] HID: logitech: Fix general protection fault caused by Logitech driver

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 5f9242775bb61f390f0885f23fc16397262c7538 upstream. The syzbot fuzzer found a general protection fault in the HID subsystem: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN

[PATCH 5.2 12/45] HID: prodikeys: Fix general protection fault during probe

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 98375b86c79137416e9fd354177b85e768c16e56 upstream. The syzbot fuzzer provoked a general protection fault in the hid-prodikeys driver: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1]

[PATCH 5.2 04/45] phy: qcom-qmp: Correct ready status, again

2019-09-29 Thread Greg Kroah-Hartman
From: Bjorn Andersson [ Upstream commit 14ced7e3a1ae9bed7051df3718c8c7b583854a5c ] Despite extensive testing of commit 885bd765963b ("phy: qcom-qmp: Correct READY_STATUS poll break condition") I failed to conclude that the PHYSTATUS bit of the PCS_STATUS register used in PCIe and USB3 falls as t

[PATCH 5.2 06/45] drm/amd/display: Allow cursor async updates for framebuffer swaps

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit e16e37efb4c9eb7bcb9dab756c975040c5257e98 upstream. [Why] We previously allowed framebuffer swaps as async updates for cursor planes but had to disable them due to a bug in DRM with async update handling and incorrect ref counting. The check to block framebuffer s

[PATCH 5.2 11/45] Revert "net: hns: fix LED configuration for marvell phy"

2019-09-29 Thread Greg Kroah-Hartman
From: David S. Miller commit b3e487c0cf425369a48049251af75593a5652dc1 upstream. This reverts commit f4e5f775db5a4631300dccd0de5eafb50a77c131. Andrew Lunn says this should be handled another way. Signed-off-by: David S. Miller Cc: Yonglong Liu Signed-off-by: Greg Kroah-Hartman --- drivers/

[PATCH 5.2 19/45] crypto: talitos - fix missing break in switch statement

2019-09-29 Thread Greg Kroah-Hartman
From: Gustavo A. R. Silva commit 5fc194ea6d34dfad9833d3043ce41d6c52aff39a upstream. Add missing break statement in order to prevent the code from falling through to case CRYPTO_ALG_TYPE_AHASH. Fixes: aeb4c132f33d ("crypto: talitos - Convert to new AEAD interface") Cc: sta...@vger.kernel.org Rep

[PATCH 5.2 02/45] smb3: fix unmount hang in open_shroot

2019-09-29 Thread Greg Kroah-Hartman
From: Steve French [ Upstream commit 96d9f7ed00b86104bf03adeffc8980897e9694ab ] An earlier patch "CIFS: fix deadlock in cached root handling" did not completely address the deadlock in open_shroot. This patch addresses the deadlock. In testing the recent patch: smb3: improve handling of share

[PATCH 5.2 30/45] Revert "f2fs: avoid out-of-range memory access"

2019-09-29 Thread Greg Kroah-Hartman
From: Chao Yu [ Upstream commit a37d0862d17411edb67677a580a6f505ec2225f6 ] As Pavel Machek reported: "We normally use -EUCLEAN to signal filesystem corruption. Plus, it is good idea to report it to the syslog and mark filesystem as "needing fsck" if filesystem can do that." Still we need impro

[PATCH 5.2 32/45] net/ibmvnic: Fix missing { in __ibmvnic_reset

2019-09-29 Thread Greg Kroah-Hartman
From: Michal Suchanek [ Upstream commit c8dc55956b09b53ccffceb6e3146981210e27821 ] Commit 1c2977c09499 ("net/ibmvnic: free reset work of removed device from queue") adds a } without corresponding { causing build break. Fixes: 1c2977c09499 ("net/ibmvnic: free reset work of removed device from

[PATCH 5.2 29/45] objtool: Clobber user CFLAGS variable

2019-09-29 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit f73b3cc39c84220e6dccd463b5c8279b03514646 upstream. If the build user has the CFLAGS variable set in their environment, objtool blindly appends to it, which can cause unexpected behavior. Clobber CFLAGS to ensure consistent objtool compilation behavior. Reported-by:

[PATCH 5.2 31/45] dm zoned: fix invalid memory access

2019-09-29 Thread Greg Kroah-Hartman
From: Mikulas Patocka [ Upstream commit 0c8e9c2d668278652af028c3cc068c65f66342f4 ] Commit 75d66ffb48efb30f2dd42f041ba8b39c5b2bd115 ("dm zoned: properly handle backing device failure") triggers a coverity warning: *** CID 1452808: Memory - illegal accesses (USE_AFTER_FREE) /drivers/md/dm-zoned

[PATCH 5.2 33/45] f2fs: fix to do sanity check on segment bitmap of LFS curseg

2019-09-29 Thread Greg Kroah-Hartman
From: Chao Yu [ Upstream commit c854f4d681365498f53ba07843a16423625aa7e9 ] As Jungyeon Reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203233 - Reproduces gcc poc_13.c ./run.sh f2fs - Kernel messages F2FS-fs (sdb): Bitmap was wrongly set, blk:4608 kernel BUG at fs/f2fs/seg

[PATCH 5.2 25/45] ALSA: dice: fix wrong packet parameter for Alesis iO26

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit 3a9236e97207f2469254b4098995159b80174d95 upstream. At higher sampling rate (e.g. 192.0 kHz), Alesis iO26 transfers 4 data channels per data block in CIP. Both iO14 and iO26 have the same contents in their configuration ROM. For this reason, ALSA Dice driver attempt

[PATCH 5.2 20/45] clk: imx: imx8mm: fix audio pll setting

2019-09-29 Thread Greg Kroah-Hartman
From: Peng Fan commit 053a4ffe298836bb973d2cba59f82fff60c7db5b upstream. The AUDIO PLL max support 650M, so the original clk settings violate spec. This patch makes the output 786432000 -> 393216000, and 722534400 -> 361267200 to aligned with NXP vendor kernel without any impact on audio functio

[PATCH 5.2 09/45] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-29 Thread Greg Kroah-Hartman
From: Greg Kurz commit 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 upstream. There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call to return the 32-bit value 0x when OPAL has run out of IRQs. Unfortunatelty, OPAL return values are signed 64-bit entities and errors are suppose

[PATCH 5.2 23/45] ALSA: usb-audio: Add Hiby device family to quirks for native DSD support

2019-09-29 Thread Greg Kroah-Hartman
From: Ilya Pshonkin commit 029d2c0fd61eac74700fb436fc63bfff7e5e upstream. This patch adds quirk VID ID for Hiby portable players family with native DSD playback support. Signed-off-by: Ilya Pshonkin Cc: Link: https://lore.kernel.org/r/20190917074937.157802-1-ilya.pshon...@netforce.ua Sig

[PATCH 5.2 28/45] platform/x86: i2c-multi-instantiate: Derive the device name from parent

2019-09-29 Thread Greg Kroah-Hartman
From: Heikki Krogerus commit 24a8d78a9affb63e5ced313ccde6888fe96edc6e upstream. When naming the new devices, instead of using the ACPI ID in the name as base, using the parent device's name. That makes it possible to support multiple multi-instance i2c devices of the same type in the same system

[PATCH 5.2 24/45] ALSA: usb-audio: Add DSD support for EVGA NU Audio

2019-09-29 Thread Greg Kroah-Hartman
From: Jussi Laako commit f41f900568d9ffd896cc941db7021eb14bd55910 upstream. EVGA NU Audio is actually a USB audio device on a PCIexpress card, with it's own USB controller. It supports both PCM and DSD. Signed-off-by: Jussi Laako Cc: Link: https://lore.kernel.org/r/20190924071143.30911-1-ju..

[PATCH 5.2 07/45] drm/amd/display: Skip determining update type for async updates

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit 43d10d30df156f7834fa91aecb69614fefc8bb0a upstream. [Why] By passing through the dm_determine_update_type_for_commit for atomic commits that can be done asynchronously we are incurring a performance penalty by locking access to the global private object and holdin

[PATCH 5.2 21/45] Revert "HID: logitech-hidpp: add USB PID for a few more supported mice"

2019-09-29 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit addf3382c47c033e579c9c88f18e36c4e75d806a upstream. This partially reverts commit 27fc32fd9417968a459d43d9a7c50fd423d53eb9. It turns out that the G502 has some issues with hid-logitech-hidpp: when plugging it in, the driver tries to contact it but it fails. So the

[PATCH 5.2 22/45] Revert "mm/z3fold.c: fix race between migration and destruction"

2019-09-29 Thread Greg Kroah-Hartman
From: Vitaly Wool commit 6e73fd25e2c7510b7dfadbaf701f31d4bff9c75b upstream. With the original commit applied, z3fold_zpool_destroy() may get blocked on wait_event() for indefinite time. Revert this commit for the time being to get rid of this problem since the issue the original commit addresse

[PATCH 5.2 37/45] Bluetooth: btrtl: HCI reset on close for Realtek BT chip

2019-09-29 Thread Greg Kroah-Hartman
From: Jian-Hong Pan [ Upstream commit 7af3f558aca74f2ee47b173f1c27f6bb9a5b5561 ] Realtek RTL8822BE BT chip on ASUS X420FA cannot be turned on correctly after on-off several times. Bluetooth daemon sets BT mode failed when this issue happens. Scanning must be active while turning off for this bug

[PATCH 5.2 38/45] ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35

2019-09-29 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 4f7f96453b462b3de0fa18d18fe983960bb5ee7f ] Some machines change the brightness themselves when a brightness hotkey gets pressed, despite us telling them not to. This causes the brightness to go two steps up / down when the hotkey is pressed. This is esp. a p

[PATCH 5.2 44/45] net_sched: check cops->tcf_block in tc_bind_tclass()

2019-09-29 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 8b142a00edcf8422ca48b8de88d286efb500cb53 ] At least sch_red and sch_tbf don't implement ->tcf_block() while still have a non-zero tc "class". Instead of adding nop implementations to each of such qdisc's, we can just relax the check of cops->tcf_block() in tc_b

[PATCH 5.2 26/45] ALSA: hda - Add laptop imic fixup for ASUS M9V laptop

2019-09-29 Thread Greg Kroah-Hartman
From: Shih-Yuan Lee (FourDollars) commit 7b485d175631be676424aedb8cd2f66d0c93da78 upstream. The same fixup to enable laptop imic is needed for ASUS M9V with AD1986A codec like another HP machine. Signed-off-by: Shih-Yuan Lee (FourDollars) Cc: Link: https://lore.kernel.org/r/20190920134052.GA8

[PATCH 5.2 27/45] ALSA: hda - Apply AMD controller workaround for Raven platform

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Iwai commit d2c63b7dfd06788a466d5ec8a850491f084c5fc2 upstream. It's reported that the garbled sound on HP Envy x360 13z-ag000 (Ryzen Laptop) is fixed by the same workaround applied to other AMD chips. Update the driver_data entry for Raven (1022:15e3) to use the newly introduced pr

[PATCH 5.2 36/45] net: dont warn in inet diag when IPV6 is disabled

2019-09-29 Thread Greg Kroah-Hartman
From: Stephen Hemminger [ Upstream commit 1e64d7cbfdce4887008314d5b367209582223f27 ] If IPV6 was disabled, then ss command would cause a kernel warning because the command was attempting to dump IPV6 socket information. The fix is to just remove the warning. Bugzilla: https://bugzilla.kernel.or

[PATCH 5.2 39/45] drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling

2019-09-29 Thread Greg Kroah-Hartman
From: Ilia Mirkin [ Upstream commit 533f4752407543f488a9118d817b8c504352b6fb ] Previously center scaling would get scaling applied to it (when it was only supposed to center the image), and aspect-corrected scaling did not always correctly pick whether to reduce width or height for a particular

[PATCH 5.2 40/45] xfs: dont crash on null attr fork xfs_bmapi_read

2019-09-29 Thread Greg Kroah-Hartman
From: Darrick J. Wong [ Upstream commit 8612de3f7ba6e900465e340516b8313806d27b2d ] Zorro Lang reported a crash in generic/475 if we try to inactivate a corrupt inode with a NULL attr fork (stack trace shortened somewhat): RIP: 0010:xfs_bmapi_read+0x311/0xb00 [xfs] RSP: 0018:888047f9ed68 EFL

[PATCH 5.2 34/45] drm: Flush output polling on shutdown

2019-09-29 Thread Greg Kroah-Hartman
From: Chris Wilson [ Upstream commit 3b295cb1a411d9c82bbfaa66bc17a8508716ed07 ] We need to mark the output polling as disabled to prevent concurrent irqs from queuing new work as shutdown the probe -- causing that work to execute after we have freed the structs: <4> [341.846490] DEBUG_LOCKS_WAR

[PATCH 5.3 00/25] 5.3.2-stable review

2019-09-29 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.3.2 release. There are 25 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 Tue 01 Oct 2019 01:47:47 PM UTC. Anything recei

[PATCH 5.2 42/45] netfilter: nft_socket: fix erroneous socket assignment

2019-09-29 Thread Greg Kroah-Hartman
From: Fernando Fernandez Mancera [ Upstream commit 039b1f4f24ecc8493b6bb9d70b4b78750d1b35c2 ] The socket assignment is wrong, see skb_orphan(): When skb->destructor callback is not set, but skb->sk is set, this hits BUG(). Link: https://bugzilla.redhat.com/show_bug.cgi?id=1651813 Fixes: 554ced0

[PATCH 5.3 02/25] clocksource/drivers/timer-of: Do not warn on deferred probe

2019-09-29 Thread Greg Kroah-Hartman
From: Jon Hunter commit 763719771e84b8c8c2f53af668cdc905faa608de upstream. Deferred probe is an expected return value for clk_get() on many platforms. The driver deals with it properly, so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Signed-

[PATCH 5.2 41/45] xfrm: policy: avoid warning splat when merging nodes

2019-09-29 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 769a807d0b41df4201dbeb01c22eaeb3e5905532 ] syzbot reported a splat: xfrm_policy_inexact_list_reinsert+0x625/0x6e0 net/xfrm/xfrm_policy.c:877 CPU: 1 PID: 6756 Comm: syz-executor.1 Not tainted 5.3.0-rc2+ #57 Call Trace: xfrm_policy_inexact_node_reinser

[PATCH 5.3 11/25] HID: logitech: Fix general protection fault caused by Logitech driver

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 5f9242775bb61f390f0885f23fc16397262c7538 upstream. The syzbot fuzzer found a general protection fault in the HID subsystem: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] SMP KASAN

[PATCH 5.2 43/45] Bluetooth: btrtl: Additional Realtek 8822CE Bluetooth devices

2019-09-29 Thread Greg Kroah-Hartman
From: Jian-Hong Pan [ Upstream commit 6d0762b19c5963ff9e178e8af3626532ee04d93d ] The ASUS X412FA laptop contains a Realtek RTL8822CE device with an associated BT chip using a USB ID of 04ca:4005. This ID is added to the driver. The /sys/kernel/debug/usb/devices portion for this device is: T:

[PATCH 5.3 13/25] HID: hidraw: Fix invalid read in hidraw_ioctl

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 416dacb819f59180e4d86a5550052033ebb6d72c upstream. The syzbot fuzzer has reported a pair of problems in the hidraw_ioctl() function: slab-out-of-bounds read and use-after-free read. An example of the first: BUG: KASAN: slab-out-of-bounds in strlen+0x79/0x90 lib/string.c

[PATCH 5.3 05/25] drm/amd/display: Skip determining update type for async updates

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit 43d10d30df156f7834fa91aecb69614fefc8bb0a upstream. [Why] By passing through the dm_determine_update_type_for_commit for atomic commits that can be done asynchronously we are incurring a performance penalty by locking access to the global private object and holdin

[PATCH 5.3 03/25] clocksource/drivers: Do not warn on probe defer

2019-09-29 Thread Greg Kroah-Hartman
From: Jon Hunter commit 14e019df1e64c8b19ce8e0b3da25b6f40c8716be upstream. Deferred probe is an expected return value on many platforms and so there's no need to output a warning that may potentially confuse users. Signed-off-by: Jon Hunter Signed-off-by: Daniel Lezcano Signed-off-by: Greg Kr

[PATCH 5.3 18/25] Revert "mm/z3fold.c: fix race between migration and destruction"

2019-09-29 Thread Greg Kroah-Hartman
From: Vitaly Wool commit 6e73fd25e2c7510b7dfadbaf701f31d4bff9c75b upstream. With the original commit applied, z3fold_zpool_destroy() may get blocked on wait_event() for indefinite time. Revert this commit for the time being to get rid of this problem since the issue the original commit addresse

[PATCH 5.3 04/25] drm/amd/display: Allow cursor async updates for framebuffer swaps

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit e16e37efb4c9eb7bcb9dab756c975040c5257e98 upstream. [Why] We previously allowed framebuffer swaps as async updates for cursor planes but had to disable them due to a bug in DRM with async update handling and incorrect ref counting. The check to block framebuffer s

[PATCH 5.3 12/25] HID: logitech-dj: Fix crash when initial logi_dj_recv_query_paired_devices fails

2019-09-29 Thread Greg Kroah-Hartman
From: Hans de Goede commit 8ccff2843fb4e6d9d26e5ae9ffe9840b38b92638 upstream. Before this commit dj_probe would exit with an error if the initial logi_dj_recv_query_paired_devices fails. The initial call may fail when the receiver is connected through a kvm and the focus is away. When the call

[PATCH 5.3 17/25] clk: imx: imx8mm: fix audio pll setting

2019-09-29 Thread Greg Kroah-Hartman
From: Peng Fan commit 053a4ffe298836bb973d2cba59f82fff60c7db5b upstream. The AUDIO PLL max support 650M, so the original clk settings violate spec. This patch makes the output 786432000 -> 393216000, and 722534400 -> 361267200 to aligned with NXP vendor kernel without any impact on audio functio

[PATCH 5.3 15/25] mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword()

2019-09-29 Thread Greg Kroah-Hartman
From: Tokunori Ikegami commit 37c673ade35c707d50583b5b25091ff8ebdeafd7 upstream. As reported by the OpenWRT team, write requests sometimes fail on some platforms. Currently to check the state chip_ready() is used correctly as described by the flash memory S29GL256P11TFI01 datasheet. Also chip_go

[PATCH 5.3 08/25] powerpc/xive: Fix bogus error code returned by OPAL

2019-09-29 Thread Greg Kroah-Hartman
From: Greg Kurz commit 6ccb4ac2bf8a35c694ead92f8ac5530a16e8f2c8 upstream. There's a bug in skiboot that causes the OPAL_XIVE_ALLOCATE_IRQ call to return the 32-bit value 0x when OPAL has run out of IRQs. Unfortunatelty, OPAL return values are signed 64-bit entities and errors are suppose

[PATCH 5.3 06/25] drm/amd/display: Dont replace the dc_state for fast updates

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit bd200d190f45b62c006d1ad0a63eeffd87db7a47 upstream. [Why] DRM private objects have no hw_done/flip_done fencing mechanism on their own and cannot be used to sequence commits accordingly. When issuing commits that don't touch the same set of hardware resources lik

[PATCH 5.3 01/25] netfilter: add missing IS_ENABLED(CONFIG_NF_TABLES) check to header-file.

2019-09-29 Thread Greg Kroah-Hartman
From: Jeremy Sowden commit 47e640af2e492cc28778dd6f894d50313f7fba75 upstream. nf_tables.h defines an API comprising several inline functions and macros that depend on the nft member of struct net. However, this is only defined is CONFIG_NF_TABLES is enabled. Added preprocessor checks to ensure

[PATCH 5.3 07/25] drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-09-29 Thread Greg Kroah-Hartman
From: Nick Desaulniers commit 0f0727d971f6fdf8f1077180d495ddb9928f0c8b upstream. arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn on SSE2 to support emitting double precision floating point instructions rat

[PATCH 5.3 20/25] ALSA: usb-audio: Add DSD support for EVGA NU Audio

2019-09-29 Thread Greg Kroah-Hartman
From: Jussi Laako commit f41f900568d9ffd896cc941db7021eb14bd55910 upstream. EVGA NU Audio is actually a USB audio device on a PCIexpress card, with it's own USB controller. It supports both PCM and DSD. Signed-off-by: Jussi Laako Cc: Link: https://lore.kernel.org/r/20190924071143.30911-1-ju..

[PATCH 5.3 14/25] HID: Add quirk for HP X500 PIXART OEM mouse

2019-09-29 Thread Greg Kroah-Hartman
From: Sebastian Parschauer commit 2acf40f0454d41b8d51c95d317283c20c931164d upstream. The PixArt OEM mice are known for disconnecting every minute in runlevel 1 or 3 if they are not always polled. So add quirk ALWAYS_POLL for this one as well. Ville Viinikka (viinikv) reported and tested the qui

[PATCH 5.3 16/25] crypto: talitos - fix missing break in switch statement

2019-09-29 Thread Greg Kroah-Hartman
From: Gustavo A. R. Silva commit 5fc194ea6d34dfad9833d3043ce41d6c52aff39a upstream. Add missing break statement in order to prevent the code from falling through to case CRYPTO_ALG_TYPE_AHASH. Fixes: aeb4c132f33d ("crypto: talitos - Convert to new AEAD interface") Cc: sta...@vger.kernel.org Rep

[PATCH 5.3 24/25] platform/x86: i2c-multi-instantiate: Derive the device name from parent

2019-09-29 Thread Greg Kroah-Hartman
From: Heikki Krogerus commit 24a8d78a9affb63e5ced313ccde6888fe96edc6e upstream. When naming the new devices, instead of using the ACPI ID in the name as base, using the parent device's name. That makes it possible to support multiple multi-instance i2c devices of the same type in the same system

[PATCH 5.3 19/25] ALSA: usb-audio: Add Hiby device family to quirks for native DSD support

2019-09-29 Thread Greg Kroah-Hartman
From: Ilya Pshonkin commit 029d2c0fd61eac74700fb436fc63bfff7e5e upstream. This patch adds quirk VID ID for Hiby portable players family with native DSD playback support. Signed-off-by: Ilya Pshonkin Cc: Link: https://lore.kernel.org/r/20190917074937.157802-1-ilya.pshon...@netforce.ua Sig

[PATCH 5.3 22/25] ALSA: hda - Add laptop imic fixup for ASUS M9V laptop

2019-09-29 Thread Greg Kroah-Hartman
From: Shih-Yuan Lee (FourDollars) commit 7b485d175631be676424aedb8cd2f66d0c93da78 upstream. The same fixup to enable laptop imic is needed for ASUS M9V with AD1986A codec like another HP machine. Signed-off-by: Shih-Yuan Lee (FourDollars) Cc: Link: https://lore.kernel.org/r/20190920134052.GA8

[PATCH 5.3 21/25] ALSA: dice: fix wrong packet parameter for Alesis iO26

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Sakamoto commit 3a9236e97207f2469254b4098995159b80174d95 upstream. At higher sampling rate (e.g. 192.0 kHz), Alesis iO26 transfers 4 data channels per data block in CIP. Both iO14 and iO26 have the same contents in their configuration ROM. For this reason, ALSA Dice driver attempt

[PATCH 5.3 23/25] ALSA: hda - Apply AMD controller workaround for Raven platform

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Iwai commit d2c63b7dfd06788a466d5ec8a850491f084c5fc2 upstream. It's reported that the garbled sound on HP Envy x360 13z-ag000 (Ryzen Laptop) is fixed by the same workaround applied to other AMD chips. Update the driver_data entry for Raven (1022:15e3) to use the newly introduced pr

[PATCH 5.3 09/25] HID: prodikeys: Fix general protection fault during probe

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 98375b86c79137416e9fd354177b85e768c16e56 upstream. The syzbot fuzzer provoked a general protection fault in the hid-prodikeys driver: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1]

[PATCH 5.2 35/45] drm/dp: Add DP_DPCD_QUIRK_NO_SINK_COUNT

2019-09-29 Thread Greg Kroah-Hartman
From: Ville Syrjälä [ Upstream commit 7974033e527a5dd12d96126d09d4cff4f9b65c69 ] CH7511 eDP->LVDS bridge doesn't seem to set SINK_COUNT properly causing i915 to detect it as disconnected. Add a quirk to ignore SINK_COUNT on these devices. Cc: David S. Cc: Peteris Rudzusiks Tested-by: Peteris

[PATCH 5.2 45/45] net/rds: An rds_sock is added too early to the hash table

2019-09-29 Thread Greg Kroah-Hartman
From: Ka-Cheong Poon [ Upstream commit c5c1a030a7dbf8dd4e1fa4405ae9a89dc1d2a8db ] In rds_bind(), an rds_sock is added to the RDS bind hash table before rs_transport is set. This means that the socket can be found by the receive code path when rs_transport is NULL. And the receive code path de-

[PATCH 5.3 10/25] HID: sony: Fix memory corruption issue on cleanup.

2019-09-29 Thread Greg Kroah-Hartman
From: Roderick Colenbrander commit 2bcdacb70327013ca2066bfcf2af1009eff01f1d upstream. The sony driver is not properly cleaning up from potential failures in sony_input_configured. Currently it calls hid_hw_stop, while hid_connect is still running. This is not a good idea, instead hid_hw_stop sho

[PATCH 5.3 25/25] objtool: Clobber user CFLAGS variable

2019-09-29 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit f73b3cc39c84220e6dccd463b5c8279b03514646 upstream. If the build user has the CFLAGS variable set in their environment, objtool blindly appends to it, which can cause unexpected behavior. Clobber CFLAGS to ensure consistent objtool compilation behavior. Reported-by:

[PATCH 5.2 18/45] mtd: cfi_cmdset_0002: Use chip_good() to retry in do_write_oneword()

2019-09-29 Thread Greg Kroah-Hartman
From: Tokunori Ikegami commit 37c673ade35c707d50583b5b25091ff8ebdeafd7 upstream. As reported by the OpenWRT team, write requests sometimes fail on some platforms. Currently to check the state chip_ready() is used correctly as described by the flash memory S29GL256P11TFI01 datasheet. Also chip_go

[PATCH 5.2 16/45] HID: hidraw: Fix invalid read in hidraw_ioctl

2019-09-29 Thread Greg Kroah-Hartman
From: Alan Stern commit 416dacb819f59180e4d86a5550052033ebb6d72c upstream. The syzbot fuzzer has reported a pair of problems in the hidraw_ioctl() function: slab-out-of-bounds read and use-after-free read. An example of the first: BUG: KASAN: slab-out-of-bounds in strlen+0x79/0x90 lib/string.c

[PATCH 5.2 08/45] drm/amd/display: Dont replace the dc_state for fast updates

2019-09-29 Thread Greg Kroah-Hartman
From: Nicholas Kazlauskas commit bd200d190f45b62c006d1ad0a63eeffd87db7a47 upstream. [Why] DRM private objects have no hw_done/flip_done fencing mechanism on their own and cannot be used to sequence commits accordingly. When issuing commits that don't touch the same set of hardware resources lik

[PATCH 5.2 10/45] drm/amd/display: readd -msse2 to prevent Clang from emitting libcalls to undefined SW FP routines

2019-09-29 Thread Greg Kroah-Hartman
From: Nick Desaulniers [ Upstream commit 0f0727d971f6fdf8f1077180d495ddb9928f0c8b ] arch/x86/Makefile disables SSE and SSE2 for the whole kernel. The AMDGPU drivers modified in this patch re-enable SSE but not SSE2. Turn on SSE2 to support emitting double precision floating point instructions

[PATCH 5.2 05/45] net/ibmvnic: free reset work of removed device from queue

2019-09-29 Thread Greg Kroah-Hartman
From: Juliet Kim [ Upstream commit 1c2977c094998de032fee6e898c88b4a05483d08 ] Commit 36f1031c51a2 ("ibmvnic: Do not process reset during or after device removal") made the change to exit reset if the driver has been removed, but does not free reset work items of the adapter from queue. Ensure

[PATCH 5.2 13/45] HID: sony: Fix memory corruption issue on cleanup.

2019-09-29 Thread Greg Kroah-Hartman
From: Roderick Colenbrander commit 2bcdacb70327013ca2066bfcf2af1009eff01f1d upstream. The sony driver is not properly cleaning up from potential failures in sony_input_configured. Currently it calls hid_hw_stop, while hid_connect is still running. This is not a good idea, instead hid_hw_stop sho

[PATCH 4.19 26/63] ASoC: fsl: Fix of-node refcount unbalance in fsl_ssi_probe_from_dt()

2019-09-29 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 2757970f6d0d0a112247600b23d38c0c728ceeb3 upstream. The node obtained from of_find_node_by_path() has to be unreferenced after the use, but we forgot it for the root node. Fixes: f0fba2ad1b6b ("ASoC: multi-component - ASoC Multi-Component Support") Cc: Timur Tabi Cc: N

[PATCH 4.19 40/63] scsi: qla2xxx: Return switch command on a timeout

2019-09-29 Thread Greg Kroah-Hartman
From: Himanshu Madhani [ Upstream commit ef801f07e7b3cc1786d8ab1b4fdf069cc2a136d2 ] This patch fixes commit bcc71cc3cde1 ("scsi: qla2xxx: Fix for double free of SRB structure") which placed code in wrong routines. Also updated the use of WARN_ON() to WARN_ON_ONCE() to prevent flooding log messa

[PATCH 4.19 49/63] blk-mq: move cancel of requeue_work to the front of blk_exit_queue

2019-09-29 Thread Greg Kroah-Hartman
From: zhengbin [ Upstream commit e26cc08265dda37d2acc8394604f220ef412299d ] blk_exit_queue will free elevator_data, while blk_mq_requeue_work will access it. Move cancel of requeue_work to the front of blk_exit_queue to avoid use-after-free. blk_exit_queueblk_mq_requeue_work _

[PATCH 4.19 57/63] ACPI: video: Add new hw_changes_brightness quirk, set it on PB Easynote MZ35

2019-09-29 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 4f7f96453b462b3de0fa18d18fe983960bb5ee7f ] Some machines change the brightness themselves when a brightness hotkey gets pressed, despite us telling them not to. This causes the brightness to go two steps up / down when the hotkey is pressed. This is esp. a p

[PATCH 4.19 58/63] drm/nouveau/disp/nv50-: fix center/aspect-corrected scaling

2019-09-29 Thread Greg Kroah-Hartman
From: Ilia Mirkin [ Upstream commit 533f4752407543f488a9118d817b8c504352b6fb ] Previously center scaling would get scaling applied to it (when it was only supposed to center the image), and aspect-corrected scaling did not always correctly pick whether to reduce width or height for a particular

[PATCH RFC] nl80211: Fix init of cfg80211 channel definition

2019-09-29 Thread Stefan Wahren
The commit 2a38075cd0be ("nl80211: Add support for EDMG channels") introduced a member to the cfg80211 channel definition. Unfortunately the channel definitions are allocated on the stack and are not always initialized via memset. Now this results in a broken probe of brcmfmac driver, because cfg80

[PATCH RFC V2] nl80211: Fix init of cfg80211 channel definition

2019-09-29 Thread Stefan Wahren
The commit 2a38075cd0be ("nl80211: Add support for EDMG channels") introduced a member to the cfg80211 channel definition. Unfortunately the channel definitions are allocated on the stack and are not always initialized via memset. Now this results in a broken probe of brcmfmac driver, because cfg80

[PATCH v3 1/1] leds: remove PAGE_SIZE limit of /sys/class/leds//trigger

2019-09-29 Thread Akinobu Mita
Reading /sys/class/leds//trigger returns all available LED triggers. However, the size of this file is limited to PAGE_SIZE because of the limitation for sysfs attribute. Enabling LED CPU trigger on systems with thousands of CPUs easily hits PAGE_SIZE limit, and makes it impossible to see all avai

[PATCH v3 0/1] leds: fix /sys/class/leds//trigger

2019-09-29 Thread Akinobu Mita
Reading /sys/class/leds//trigger returns all available LED triggers. However, the size of this file is limited to PAGE_SIZE because of the limitation for sysfs attribute. Enabling LED CPU trigger on systems with thousands of CPUs easily hits PAGE_SIZE limit, and makes it impossible to see all avai

Re: [PATCH RFC V2] nl80211: Fix init of cfg80211 channel definition

2019-09-29 Thread Stefan Wahren
Hi Johannes, Am 29.09.19 um 16:12 schrieb Stefan Wahren: > The commit 2a38075cd0be ("nl80211: Add support for EDMG channels") > introduced a member to the cfg80211 channel definition. Unfortunately > the channel definitions are allocated on the stack and are not always > initialized via memset. No

Re: [PATCH] ARM: dts: rockchip: Add cpu id to rk3288 efuse node

2019-09-29 Thread Heiko Stuebner
Am Donnerstag, 19. September 2019, 23:26:41 CEST schrieb Douglas Anderson: > This just adds in another field of what's stored in the e-fuse on > rk3288. Though I can't personally promise that every rk3288 out there > has the CPU ID stored in the eFuse at this location, there is some > evidence tha

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Tetsuo Handa
On 2019/09/29 22:54, Greg Kroah-Hartman wrote: > From: Waiman Long > > [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] > > Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" > warning right after a previous lockdep warning. It is likely that the > previous warni

[PATCH 1/3] Staging: exfat: exfat_super.c: fixed camelcase coding style issue

2019-09-29 Thread Jesse Barton
Changed function names: ffsUmountVol to ffs_umount_vol ffsMountVol to ffs_mount_vol ffsSyncVol to ffs_sync_vol Signed-off-by: Jesse Barton --- drivers/staging/exfat/exfat_super.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/staging/exfat/exf

[PATCH 3/3] Staging: exfat: exfat_super.c Fixed coding style issues.

2019-09-29 Thread Jesse Barton
Removed function argument wrapping to new line. Signed-off-by: Jesse Barton --- drivers/staging/exfat/exfat_super.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c index

[PATCH 2/3] Staging: exfat: exfat_super.c: fixed multiple coding style issues with camelcase and parentheses

2019-09-29 Thread Jesse Barton
Changed Function Names: ffsGetVolInfo -> ffs_get_vol_info ffsLookupFile -> ffs_lookup_file ffsCreateFile -> ffs_create_file ffsReadFile -> ffs_read_file ffsWriteFile -> ffs_write_file ffsTruncateFile -> ffs_truncate_file ffsRemoveFile -> ffs_remove_file ffsMoveFile -> ffs_move_file ffsSetAttr -> ff

Re: [PATCH v1 0/2] perf stat: Support --all-kernel and --all-user

2019-09-29 Thread Jiri Olsa
On Wed, Sep 25, 2019 at 10:02:16AM +0800, Jin Yao wrote: > This patch series supports the new options "--all-kernel" and "--all-user" > in perf-stat. > > For example, > > root@kbl:~# perf stat -e cycles,instructions --all-kernel --all-user -a -- > sleep 1 > > Performance counter stats for 'sys

Re: [PATCH 3/4] perf inject --jit: Remove //anon mmap events

2019-09-29 Thread Jiri Olsa
On Sat, Sep 28, 2019 at 01:45:36AM +, Steve MacLean wrote: > While a JIT is jitting code it will eventually need to commit more pages and > change these pages to executable permissions. > > Typically the JIT will want these co-located to minimize branch displacements. > > The kernel will coal

Re: [PATCH 1/4] perf map: fix overlapped map handling

2019-09-29 Thread Jiri Olsa
On Sat, Sep 28, 2019 at 01:39:00AM +, Steve MacLean wrote: SNIP > Before: > > perf script --show-mmap-events 2>&1 | grep -e MMAP -e unknown |\ >grep libcoreclr.so | head -n 4 > dotnet 1907 373352.698780: PERF_RECORD_MMAP2 1907/1907: \ > [0x7fe615726000(0x768000) @ 0 08:0

Re: [PATCH 2/4] perf inject jit: Fix JIT_CODE_MOVE filename

2019-09-29 Thread Jiri Olsa
On Sat, Sep 28, 2019 at 01:41:18AM +, Steve MacLean wrote: > During perf inject --jit, JIT_CODE_MOVE records were injecting MMAP records > with an incorrect filename. Specifically it was missing the ".so" suffix. > > Further the JIT_CODE_LOAD record were silently truncating the > jr->load.code

RE: [RFC/RFT][PATCH v8] cpuidle: New timer events oriented governor for tickless systems

2019-09-29 Thread Doug Smythies
On 2019.09.26 09:32 Doug Smythies wrote: > If the deepest idle state is disabled, the system > can become somewhat unstable, with anywhere between no problem > at all, to the occasional temporary jump using a lot more > power for a few seconds, to a permanent jump using a lot more > power continuo

[PATCH v2 5/6] media: sun4i: Add H3 deinterlace driver

2019-09-29 Thread Jernej Skrabec
Allwinner H3 SoC contains deinterlace unit, which has several modes of operation - bypass, weave, bob and mixed (advanced) mode. I don't know how mixed mode works, but according to Allwinner it gives best results, so they use it exclusively. Currently this mode is also hardcoded here. For each int

[PATCH v2 6/6] dts: arm: sun8i: h3: Enable deinterlace unit

2019-09-29 Thread Jernej Skrabec
Allwinner H3 SoC contains deinterlace unit, which can be used in combination with VPU unit to decode and process interlaced videos. Add a node for it. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sun8i-h3.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/bo

[PATCH v2 4/6] dt-bindings: media: Add Allwinner H3 Deinterlace binding

2019-09-29 Thread Jernej Skrabec
Allwinner H3 Deinterlace core is used for deinterlacing interlaced video content. Core can also be found on some later SoCs, like H5 and R40. Signed-off-by: Jernej Skrabec --- .../media/allwinner,sun8i-h3-deinterlace.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 10

[PATCH v2 3/6] ARM: dts: sunxi: h3/h5: Add MBUS controller node

2019-09-29 Thread Jernej Skrabec
Both, H3 and H5, contain MBUS, which is the bus used by DMA devices to access system memory. MBUS controller is responsible for arbitration between channels based on set priority and can do some other things as well, like report bandwidth used. It also maps RAM region to different address than CPU

[PATCH v2 0/6] media: Introduce Allwinner H3 deinterlace driver

2019-09-29 Thread Jernej Skrabec
Starting with H3, Allwinner began to include standalone deinterlace core in multimedia oriented SoCs. This patch series introduces support for it. Note that new SoCs, like H6, have radically different (updated) deinterlace core, which will need a new driver. v4l2-compliance report: v4l2-compliance

[PATCH v2 1/6] dt-bindings: bus: sunxi: Add H3 MBUS compatible

2019-09-29 Thread Jernej Skrabec
Allwinner H3 SoC also contains MBUS controller. Add compatible for it. Signed-off-by: Jernej Skrabec --- Documentation/devicetree/bindings/arm/sunxi/sunxi-mbus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi/sunxi-mbus.txt b/Documentation/dev

[PATCH v2 2/6] clk: sunxi-ng: h3: Export MBUS clock

2019-09-29 Thread Jernej Skrabec
MBUS clock will be referenced in MBUS controller node. Export it. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-h3.h | 4 include/dt-bindings/clock/sun8i-h3-ccu.h | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3

[PATCH] KVM: x86: fix bugon.cocci warnings

2019-09-29 Thread Julia Lawall
From: kbuild test robot Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Fixes: 4b526de50e39 ("KVM: x86: Check kvm_rebooting in kvm_spurious_fault()") CC: Sean Christopherson Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall -

[PATCH] iio: adc: meson-saradc: Variables could be uninitalized if regmap_read() fails

2019-09-29 Thread Yizhuo
Several functions in this file are trying to use regmap_read() to initialize the specific variable, however, if regmap_read() fails, the variable could be uninitialized but used directly, which is potentially unsafe. The return value of regmap_read() should be checked and handled. Signed-off-by: Y

Re: [PATCH] iio: adc: meson-saradc: Variables could be uninitalized if regmap_read() fails

2019-09-29 Thread Yizhuo Zhai
Hi Nicholas: Thanks for your feedback, I made changes and submitted new patches already. Check patch script generated a warning if I strictly align the parameter with (. I checked other code inside this file and modified the continuation accordingly. On Fri, Sep 27, 2019 at 11:47 PM Nicholas Mc G

<    1   2   3   4   5   >