[PATCH 5.7 072/179] ionic: update filter id after replay

2020-07-27 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit cc4428c4de8c31f12e4690d0409e0432fe05702f ] When we replay the rx filters after a fw-upgrade we get new filter_id values from the FW, which we need to save and update in our local filter list. This allows us to delete the filters with the correct filter_id

[PATCH 5.7 060/179] drm: sun4i: hdmi: Fix inverted HPD result

2020-07-27 Thread Greg Kroah-Hartman
From: Chen-Yu Tsai [ Upstream commit baa1841eb797eadce6c907bdaed7cd6f01815404 ] When the extra HPD polling in sun4i_hdmi was removed, the result of HPD was accidentally inverted. Fix this by inverting the check. Fixes: bda8eaa6dee7 ("drm: sun4i: hdmi: Remove extra HPD polling") Signed-off-by:

[PATCH 5.7 016/179] scsi: dh: Add Fujitsu device to devinfo and dh lists

2020-07-27 Thread Greg Kroah-Hartman
From: Steve Schremmer [ Upstream commit e094fd346021b820f37188aaa6b502c7490ab5b5 ] Add FUJITSU ETERNUS_AHB Link: https://lore.kernel.org/r/dm6pr06mb5276cca765336bd312c4282e8c...@dm6pr06mb5276.namprd06.prod.outlook.com Signed-off-by: Steve Schremmer Signed-off-by: Martin K. Petersen Signed-of

[PATCH 5.7 061/179] net: smc91x: Fix possible memory leak in smc_drv_probe()

2020-07-27 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit bca9749b1aa23d964d3ab930938af66dbf887f15 ] If try_toggle_control_gpio() failed in smc_drv_probe(), free_netdev(ndev) should be called to free the ndev created earlier. Otherwise, a memleak will occur. Fixes: 7d2911c43815 ("net: smc91x: Fix gpios for device tree

[PATCH 5.7 065/179] bonding: check error value of register_netdevice() immediately

2020-07-27 Thread Greg Kroah-Hartman
From: Taehee Yoo [ Upstream commit 544f287b84959203367cd29e16e772717612fab4 ] If register_netdevice() is failed, net_device should not be used because variables are uninitialized or freed. So, the routine should be stopped immediately. But, bond_create() doesn't check return value of register_ne

[PATCH 5.7 059/179] ieee802154: fix one possible memleak in adf7242_probe

2020-07-27 Thread Greg Kroah-Hartman
From: Liu Jian [ Upstream commit 66673f96f0f968b991dc38be06102246919c663c ] When probe fail, we should destroy the workqueue. Fixes: 2795e8c25161 ("net: ieee802154: fix a potential NULL pointer dereference") Signed-off-by: Liu Jian Acked-by: Michael Hennerich Link: https://lore.kernel.org/r/

Re: [PATCH v1] driver core: Change delimiter in devlink device's name to "--"

2020-07-27 Thread Rafael J. Wysocki
On Fri, Jul 24, 2020 at 8:05 PM Saravana Kannan wrote: > > The devlink device name is of the form "supplier:consumer". But ":" is > fairly common in device names and makes it visually hard to distinguish > supplier and consumer. So, replace it with "--" to make it easier. > > Signed-off-by: Sarava

[PATCH 5.7 052/179] ax88172a: fix ax88172a_unbind() failures

2020-07-27 Thread Greg Kroah-Hartman
From: George Kennedy [ Upstream commit c28d9a285668c799eeae2f7f93e929a6028a4d6d ] If ax88172a_unbind() fails, make sure that the return code is less than zero so that cleanup is done properly and avoid UAF. Fixes: a9a51bd727d1 ("ax88172a: fix information leak on short answers") Signed-off-by: G

[PATCH 5.7 077/179] RDMA/mlx5: Prevent prefetch from racing with implicit destruction

2020-07-27 Thread Greg Kroah-Hartman
From: Jason Gunthorpe [ Upstream commit a862192e9227ad46e0447fd0a03869ba1b30d16f ] Prefetch work in mlx5_ib_prefetch_mr_work can be queued and able to run concurrently with destruction of the implicit MR. The num_deferred_work was intended to serialize this, but there is a race: CPU0

[PATCH 5.7 080/179] net: hns3: fix return value error when query MAC link status fail

2020-07-27 Thread Greg Kroah-Hartman
From: Jian Shen [ Upstream commit fac24df7b9a6d9363abdff0e351ade041dd16daa ] Currently, PF queries the MAC link status per second by calling function hclge_get_mac_link_status(). It return the error code when failed to send cmdq command to firmware. It's incorrect, because this return value is u

[PATCH 5.7 079/179] net: hns3: fix error handling for desc filling

2020-07-27 Thread Greg Kroah-Hartman
From: Yunsheng Lin [ Upstream commit 8ceca59fb3ed48a693171bd571c4fcbd555b7f1f ] The content of the TX desc is automatically cleared by the HW when the HW has sent out the packet to the wire. When desc filling fails in hns3_nic_net_xmit(), it will call hns3_clear_desc() to do the error handling,

[PATCH 5.7 074/179] ionic: use mutex to protect queue operations

2020-07-27 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit 0925e9db4dc86daf666d9a3d53c7db14ac6d5d00 ] The ionic_wait_on_bit_lock() was a open-coded mutex knock-off used only for protecting the queue reset operations, and there was no reason not to use the real thing. We can use the lock more correctly and to bette

[PATCH 5.7 076/179] net: ag71xx: add missed clk_disable_unprepare in error path of probe

2020-07-27 Thread Greg Kroah-Hartman
From: Huang Guobin [ Upstream commit befc113c56a76ae7be3986034a0e476d3385e265 ] The ag71xx_mdio_probe() forgets to call clk_disable_unprepare() when of_reset_control_get_exclusive() failed. Add the missed call to fix it. Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver") Reported-by: Hulk

[PATCH 5.7 056/179] net: fec: fix hardware time stamping by external devices

2020-07-27 Thread Greg Kroah-Hartman
From: Sergey Organov [ Upstream commit 340746398b67e3ce5019698748ebaa7adf048114 ] Fix support for external PTP-aware devices such as DSA or PTP PHY: Make sure we never time stamp tx packets when hardware time stamping is disabled. Check for PTP PHY being in use and then pass ioctls related to

[PATCH 5.7 081/179] net: dsa: microchip: call phy_remove_link_mode during probe

2020-07-27 Thread Greg Kroah-Hartman
From: Helmut Grohne [ Upstream commit 3506b2f42dff66ea6814c3dfa1988bafb79e6f88 ] When doing "ip link set dev ... up" for a ksz9477 backed link, ksz9477_phy_setup is called and it calls phy_remove_link_mode to remove 1000baseT HDX. During phy_remove_link_mode, phy_advertise_supported is called. D

[PATCH 5.7 054/179] RDMA/core: Fix race in rdma_alloc_commit_uobject()

2020-07-27 Thread Greg Kroah-Hartman
From: Leon Romanovsky [ Upstream commit 0d1fd39bb27e479fb1de3dd4b4c247c7c9a1fabf ] The FD should not be installed until all of the setup is completed as the fd_install() transfers ownership of the kref to the FD table. A thread can race a close() and trigger concurrent rdma_alloc_commit_uobject(

[PATCH 5.7 058/179] net: dp83640: fix SIOCSHWTSTAMP to update the struct with actual configuration

2020-07-27 Thread Greg Kroah-Hartman
From: Sergey Organov [ Upstream commit 473309fb8372365ad211f425bca760af800e10a7 ] >From Documentation/networking/timestamping.txt: A driver which supports hardware time stamping shall update the struct with the actual, possibly more permissive configuration. Do update the struct passed whe

[PATCH 5.7 049/179] netfilter: nf_tables: fix nat hook table deletion

2020-07-27 Thread Greg Kroah-Hartman
From: Florian Westphal [ Upstream commit 1e9451cbda456a170518b2bfd643e2cb980880bf ] sybot came up with following transaction: add table ip syz0 add chain ip syz0 syz2 { type nat hook prerouting priority 0; policy accept; } add table ip syz0 { flags dormant; } delete chain ip syz0 syz2 delet

[PATCH 5.7 097/179] scripts/gdb: fix lx-symbols gdb.error while loading modules

2020-07-27 Thread Greg Kroah-Hartman
From: Stefano Garzarella [ Upstream commit 7359608a271ce81803de148befefd309baf88c76 ] Commit ed66f991bb19 ("module: Refactor section attr into bin attribute") removed the 'name' field from 'struct module_sect_attr' triggering the following error when invoking lx-symbols: (gdb) lx-symbols lo

[PATCH 5.7 096/179] scripts/decode_stacktrace: strip basepath from all paths

2020-07-27 Thread Greg Kroah-Hartman
From: Pi-Hsun Shih [ Upstream commit d178770d8d21489abf5bafefcbb6d5243b482e9a ] Currently the basepath is removed only from the beginning of the string. When the symbol is inlined and there's multiple line outputs of addr2line, only the first line would have basepath removed. Change to remove t

[PATCH 5.7 083/179] qed: suppress "dont support RoCE & iWARP" flooding on HW init

2020-07-27 Thread Greg Kroah-Hartman
From: Alexander Lobakin [ Upstream commit 1ea999039fe7c7953da2fbb7ca7c3ef00064d328 ] Change the verbosity of the "don't support RoCE & iWARP simultaneously" warning to debug level to stop flooding on driver/hardware initialization: [4.783230] qede 01:00.00: Storm FW 8.37.7.0, Management FW

[PATCH 5.7 094/179] geneve: fix an uninitialized value in geneve_changelink()

2020-07-27 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 32818c075c54bb0cae44dd6f7ab00b01c52b8372 ] geneve_nl2info() sets 'df' conditionally, so we have to initialize it by copying the value from existing geneve device in geneve_changelink(). Fixes: 56c09de347e4 ("geneve: allow changing DF behavior after creation") R

[PATCH 5.7 057/179] ASoC: Intel: bytcht_es8316: Add missed put_device()

2020-07-27 Thread Greg Kroah-Hartman
From: Jing Xiangfeng [ Upstream commit b3df80ab6d147d4738be242e1c91e5fdbb6b03ef ] snd_byt_cht_es8316_mc_probe() misses to call put_device() in an error path. Add the missed function call to fix it. Fixes: ba49cf6f8e4a ("ASoC: Intel: bytcht_es8316: Add quirk for inverted jack detect") Signed-of

[PATCH 5.7 055/179] RDMA/cm: Protect access to remote_sidr_table

2020-07-27 Thread Greg Kroah-Hartman
From: Maor Gottlieb [ Upstream commit 87c4c774cbef5c68b3df96827c2fb07f1aa80152 ] cm.lock must be held while accessing remote_sidr_table. This fixes the below NULL pointer dereference. BUG: kernel NULL pointer dereference, address: #PF: supervisor write access in kernel mode

[PATCH 5.7 095/179] serial: exar: Fix GPIO configuration for Sealevel cards based on XR17V35X

2020-07-27 Thread Greg Kroah-Hartman
From: Matthew Howell [ Upstream commit 5fdbe136ae19ab751daaa4d08d9a42f3e30d17f9 ] Sealevel XR17V35X based devices are inoperable on kernel versions 4.11 and above due to a change in the GPIO preconfiguration introduced in commit 7dea8165f1d. This patch fixes this by preconfiguring the GPIO on Se

[PATCH 5.7 101/179] HID: alps: support devices with report id 2

2020-07-27 Thread Greg Kroah-Hartman
From: Caiyuan Xie [ Upstream commit aa3c439c144f0a465ed1f28f11c772886fb02b35 ] Add support for devices which that have reports with id == 2 Signed-off-by: Caiyuan Xie Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-alps.c | 2 ++ 1 file changed, 2 insertions(+) di

[PATCH 5.7 100/179] HID: i2c-hid: add Mediacom FlexBook edge13 to descriptor override

2020-07-27 Thread Greg Kroah-Hartman
From: Federico Ricchiuto [ Upstream commit 43e666acb79f3d355dd89bf20f4d25d3b15da13e ] The Mediacom FlexBook edge13 uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Signed-off-by: Federico Ricchiuto Signed-off-by: Jiri Kosina Sign

[PATCH v1 1/2] proc: Relax check of mount visibility

2020-07-27 Thread Alexey Gladkov
Allow to mount of procfs with subset=pid option even if the entire procfs is not fully accessible to the user. Signed-off-by: Alexey Gladkov --- fs/namespace.c | 27 --- fs/proc/root.c | 16 +--- include/linux/fs.h | 1 + 3 files changed, 26 insertion

[PATCH 5.7 111/179] ARM: dts: n900: remove mmc1 card detect gpio

2020-07-27 Thread Greg Kroah-Hartman
From: Merlijn Wajer [ Upstream commit ed3e98e91947e9d9f8a40c3f6f4a22577842 ] Instead, expose the key via the input framework, as SW_MACHINE_COVER The chip-detect GPIO is actually detecting if the cover is closed. Technically it's possible to use the SD card with open cover. The only downsid

[PATCH v1 0/2] proc: Relax check of mount visibility

2020-07-27 Thread Alexey Gladkov
If only the dynamic part of procfs is mounted (subset=pid), then there is no need to check if procfs is fully visible to the user in the new user namespace. Alexey Gladkov (2): proc: Relax check of mount visibility Show /proc/self/net only for CAP_NET_ADMIN fs/namespace.c | 27 ++

[PATCH 5.7 106/179] dmaengine: idxd: fix hw descriptor fields for delta record

2020-07-27 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit 0b8975bdc0cc5310d48d9bdd871cefebe1f94c99 ] Fix the hw descriptor fields for delta record in user exported idxd.h header. Missing the "expected result mask" field. Reported-by: Mona Hossain Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/1591205268

[PATCH 5.7 107/179] HID: apple: Disable Fn-key key-re-mapping on clone keyboards

2020-07-27 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit a5d81646fa294eed57786a9310b06ca48902adf8 ] The Maxxter KB-BT-001 Bluetooth keyboard, which looks somewhat like the Apple Wireless Keyboard, is using the vendor and product IDs (05AC:0239) of the Apple Wireless Keyboard (2009 ANSI version) . But its F1 - F10

[PATCH 5.7 109/179] soc: amlogic: meson-gx-socinfo: Fix S905X3 and S905D3 IDs

2020-07-27 Thread Greg Kroah-Hartman
From: Christian Hewitt [ Upstream commit d16d0481e6bab5a916450e4ef0e1c958b550880c ] Correct the SoC revision and package bits/mask values for S905D3/X3 to detect a wider range of observed SoC IDs, and tweak sort order for A311D/S922X. S905X3 05 0101 (SEI610 initial devices) S905X3 10 0001

[PATCH 5.7 084/179] qed: suppress false-positives interrupt error messages on HW init

2020-07-27 Thread Greg Kroah-Hartman
From: Alexander Lobakin [ Upstream commit eb61c2d69903e977ffa2b80b1da9d1f758cf228d ] It was found that qed_pglueb_rbc_attn_handler() can produce a lot of false-positive error detections on driver load/reload (especially after crashes/recoveries) and spam the kernel log: [4.958275] [qed_pglu

[PATCH 5.7 114/179] hwmon: (aspeed-pwm-tacho) Avoid possible buffer overflow

2020-07-27 Thread Greg Kroah-Hartman
From: Evgeny Novikov [ Upstream commit bc4071aafcf4d0535ee423b69167696d6c03207d ] aspeed_create_fan() reads a pwm_port value using of_property_read_u32(). If pwm_port will be more than ARRAY_SIZE(pwm_port_params), there will be a buffer overflow in aspeed_create_pwm_port()->aspeed_set_pwm_port_e

[PATCH 5.7 103/179] dmaengine: ti: k3-udma: Fix the running channel handling in alloc_chan_resources

2020-07-27 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit b5b0180c2f767e90b4a6a885a0a2abaab6e3d48d ] In the unlikely case when the channel is running (RT enabled) during alloc_chan_resources then we should use udma_reset_chan() and not udma_stop() as the later is trying to initiate a teardown on the channel, which

[PATCH 5.7 086/179] net: ethernet: ave: Fix error returns in ave_init

2020-07-27 Thread Greg Kroah-Hartman
From: Wang Hai [ Upstream commit 1264d7fa3a64d8bea7aebb77253f917947ffda25 ] When regmap_update_bits failed in ave_init(), calls of the functions reset_control_assert() and clk_disable_unprepare() were missed. Add goto out_reset_assert to do this. Fixes: 57878f2f4697 ("net: ethernet: ave: add su

[PATCH 5.7 102/179] dmaengine: ti: k3-udma: Fix cleanup code for alloc_chan_resources

2020-07-27 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 5a9377cc7421b59b13c9b90b8dc0aca332a1c958 ] Some of the earlier errors should be sent to the error cleanup path to make sure that the uchan struct is reset, the dma_pool (if allocated) is released and memcpy channel pairs are released in a correct way. Sign

[PATCH 5.7 087/179] iommu/qcom: Use domain rather than dev as tlb cookie

2020-07-27 Thread Greg Kroah-Hartman
From: Rob Clark [ Upstream commit 1014a2f8d76b05e0f228dd097ac1a249c5934232 ] The device may be torn down, but the domain should still be valid. Lets use that as the tlb flush ops cookie. Fixes a problem reported in [1] [1] https://lkml.org/lkml/2020/7/20/104 Reported-by: Naresh Kamboju Sign

[PATCH 5.7 113/179] regmap: dev_get_regmap_match(): fix string comparison

2020-07-27 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde [ Upstream commit e84861fec32dee8a2e62bbaa52cded6b05a2a456 ] This function is used by dev_get_regmap() to retrieve a regmap for the specified device. If the device has more than one regmap, the name parameter can be used to specify one. The code here uses a pointer compa

[PATCH 5.7 105/179] dmaengine: ti: k3-udma: add missing put_device() call in of_xudma_dev_get()

2020-07-27 Thread Greg Kroah-Hartman
From: Yu Kuai [ Upstream commit 1438cde8fe9cb709b569f5829c4c892c0f3f15b3 ] if of_find_device_by_node() succeed and platform_get_drvdata() failed, of_xudma_dev_get() will return without put_device(), which will leak the memory. Signed-off-by: Yu Kuai Link: https://lore.kernel.org/r/202006181301

[PATCH 5.7 088/179] Revert "PCI/PM: Assume ports without DLL Link Active train links in 100 ms"

2020-07-27 Thread Greg Kroah-Hartman
From: Bjorn Helgaas [ Upstream commit d08c30d7a0d1826f771f16cde32bd86e48401791 ] This reverts commit ec411e02b7a2e785a4ed9ed283207cd14f48699d. Patrick reported that this commit broke hybrid graphics on a ThinkPad X1 Extreme 2nd with Intel UHD Graphics 630 and NVIDIA GeForce GTX 1650 Mobile:

[PATCH 5.7 133/179] arm64: Use test_tsk_thread_flag() for checking TIF_SINGLESTEP

2020-07-27 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit 5afc78551bf5d53279036e0bf63314e35631d79f ] Rather than open-code test_tsk_thread_flag() at each callsite, simply replace the couple of offenders with calls to test_tsk_thread_flag() directly. Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/a

[PATCH 5.7 131/179] ALSA: hda/realtek - fixup for yet another Intel reference board

2020-07-27 Thread Greg Kroah-Hartman
From: PeiSen Hou [ Upstream commit 5734e509d5d515c187f642937ef2de1e58d7715d ] Add headset_jack for the intel reference board support with 10ec:1230. Signed-off-by: PeiSen Hou Link: https://lore.kernel.org/r/20200716090134.9811-1-ti...@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Sasha L

[PATCH 5.7 091/179] i2c: rcar: always clear ICSAR to avoid side effects

2020-07-27 Thread Greg Kroah-Hartman
From: Wolfram Sang [ Upstream commit eb01597158ffb1853a7a7fc2c57d4c844640f75e ] On R-Car Gen2, we get a timeout when reading from the address set in ICSAR, even though the slave interface is disabled. Clearing it fixes this situation. Note that Gen3 is not affected. To reproduce: bind and undbi

[PATCH 5.7 126/179] drm/amdgpu: fix preemption unit test

2020-07-27 Thread Greg Kroah-Hartman
From: Jack Xiao [ Upstream commit d845a2051b6b673fab4229b920ea04c7c4352b51 ] Remove signaled jobs from job list and ensure the job was indeed preempted. Signed-off-by: Jack Xiao Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu

[PATCH 5.7 089/179] nfsd4: fix NULL dereference in nfsd/clients display code

2020-07-27 Thread Greg Kroah-Hartman
From: J. Bruce Fields [ Upstream commit 9affa435817711861d774f5626c393c80f16d044 ] We hold the cl_lock here, and that's enough to keep stateid's from going away, but it's not enough to prevent the files they point to from going away. Take fi_lock and a reference and check for NULL, as we do in

[PATCH 5.7 129/179] platform/x86: asus-wmi: allow BAT1 battery name

2020-07-27 Thread Greg Kroah-Hartman
From: Vasiliy Kupriakov [ Upstream commit 9a33e375d98ece5ea40c576eabd3257acb90c509 ] The battery on my laptop ASUS TUF Gaming FX706II is named BAT1. This patch allows battery extension to load. Signed-off-by: Vasiliy Kupriakov Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- dr

[PATCH 5.7 132/179] drivers/perf: Fix kernel panic when rmmod PMU modules during perf sampling

2020-07-27 Thread Greg Kroah-Hartman
From: Qi Liu [ Upstream commit bdc5c744c7b6457d18a95c26769dad0e7f480a08 ] When users try to remove PMU modules during perf sampling, kernel panic will happen because the pmu->read() is a NULL pointer here. INFO on HiSilicon hip08 platform as follow: pc : hisi_uncore_pmu_event_update+0x30/0xa4 [

[PATCH 5.7 117/179] Input: synaptics - enable InterTouch for ThinkPad X1E 1st gen

2020-07-27 Thread Greg Kroah-Hartman
From: Ilya Katsnelson [ Upstream commit dcb00fc799dc03fd320e123e4c81b3278c763ea5 ] Tested on my own laptop, touchpad feels slightly more responsive with this on, though it might just be placebo. Signed-off-by: Ilya Katsnelson Reviewed-by: Lyude Paul Link: https://lore.kernel.org/r/20200703143

[PATCH 5.7 127/179] hwmon: (nct6775) Accept PECI Calibration as temperature source for NCT6798D

2020-07-27 Thread Greg Kroah-Hartman
From: Guenter Roeck [ Upstream commit 8a03746c8baf82e1616f05a1a716d34378dcf780 ] Stefan Dietrich reports invalid temperature source messages on Asus Formula XII Z490. nct6775 nct6775.656: Invalid temperature source 28 at index 0, source register 0x100, temp register 0x73 Debugg

[PATCH 5.7 090/179] enetc: Remove the mdio bus on PF probe bailout

2020-07-27 Thread Greg Kroah-Hartman
From: Claudiu Manoil [ Upstream commit 26cb7085c8984e5b71d65c374a135134ed8cabb3 ] For ENETC ports that register an external MDIO bus, the bus doesn't get removed on the error bailout path of enetc_pf_probe(). This issue became much more visible after recent: commit 07095c025ac2 ("net: enetc: Us

[PATCH 5.7 135/179] asm-generic/mmiowb: Allow mmiowb_set_pending() when preemptible()

2020-07-27 Thread Greg Kroah-Hartman
From: Will Deacon [ Upstream commit bd024e82e4cd95c7f1a475a55f99871936c2b2db ] Although mmiowb() is concerned only with serialising MMIO writes occuring in contexts where a spinlock is held, the call to mmiowb_set_pending() from the MMIO write accessors can occur in preemptible contexts, such as

[PATCH 5.7 140/179] usb: xhci-mtk: fix the failure of bandwidth allocation

2020-07-27 Thread Greg Kroah-Hartman
From: Chunfeng Yun commit 5ce1a24dd98c00a57a8fa13660648abf7e08e3ef upstream. The wMaxPacketSize field of endpoint descriptor may be zero as default value in alternate interface, and they are not actually selected when start stream, so skip them when try to allocate bandwidth. Cc: stable Fixes:

[PATCH 5.7 141/179] usb: tegra: Fix allocation for the FPCI context

2020-07-27 Thread Greg Kroah-Hartman
From: Jon Hunter commit 0b987032f8b58ef51cc8a042f46cc0cf1f277172 upstream. Commit 5c4e8d3781bc ("usb: host: xhci-tegra: Add support for XUSB context save/restore") is using the IPFS 'num_offsets' value when allocating memory for FPCI context instead of the FPCI 'num_offsets'. After commit cad06

[PATCH 5.7 138/179] x86/boot: Dont add the EFI stub to targets

2020-07-27 Thread Greg Kroah-Hartman
From: Arvind Sankar [ Upstream commit da05b143a308bd6a7a01f9732678ae63fc70 ] vmlinux-objs-y is added to targets, which currently means that the EFI stub gets added to the targets as well. It shouldn't be added since it is built elsewhere. This confuses Makefile.build which interprets the EF

[PATCH 5.7 137/179] RISC-V: Upgrade smp_mb__after_spinlock() to iorw,iorw

2020-07-27 Thread Greg Kroah-Hartman
From: Palmer Dabbelt [ Upstream commit 38b7c2a3ffb1fce8358ddc6006cfe5c038ff9963 ] While digging through the recent mmiowb preemption issue it came up that we aren't actually preventing IO from crossing a scheduling boundary. While it's a bit ugly to overload smp_mb__after_spinlock() with this be

[PATCH 5.7 142/179] usb: xhci: Fix ASM2142/ASM3142 DMA addressing

2020-07-27 Thread Greg Kroah-Hartman
From: Forest Crossman commit dbb0897e805f2ab1b8bc358f6c3d878a376b8897 upstream. The ASM2142/ASM3142 (same PCI IDs) does not support full 64-bit DMA addresses, which can cause silent memory corruption or IOMMU errors on platforms that use the upper bits. Add the XHCI_NO_64BIT_SUPPORT quirk to fix

[PATCH 5.7 122/179] usb: cdns3: ep0: fix some endian issues

2020-07-27 Thread Greg Kroah-Hartman
From: Peter Chen [ Upstream commit 9f81d45c79271def8a9b90447b04b9c6323291f9 ] It is found by sparse. Reported-by: kbuild test robot Signed-off-by: Peter Chen Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/cdns3/ep0.c | 30 +++--- 1 file chang

[PATCH 5.7 161/179] mm/memcg: fix refcount error while moving and swapping

2020-07-27 Thread Greg Kroah-Hartman
From: Hugh Dickins commit 8d22a9351035ef2ff12ef163a1091b8b8cf1e49c upstream. It was hard to keep a test running, moving tasks between memcgs with move_charge_at_immigrate, while swapping: mem_cgroup_id_get_many()'s refcount is discovered to be 0 (supposedly impossible), so it is then forced to R

[PATCH 5.7 158/179] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-27 Thread Greg Kroah-Hartman
From: Fangrui Song commit ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 upstream. When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if $(CROSS_COMPILE)elfedit is found at /usr/bin/aarch64-linux-gnu-elfedit, GCC_TOOLCHAIN_DIR will be set to /usr/bin/. --prefix= will be set to /usr/bin/ and Clang a

[PATCH 5.7 149/179] staging: comedi: addi_apci_1500: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-27 Thread Greg Kroah-Hartman
From: Ian Abbott commit fc846e9db67c7e808d77bf9e2ef3d49e3820ce5d upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift a

[PATCH 5.7 144/179] iwlwifi: mvm: dont call iwl_mvm_free_inactive_queue() under RCU

2020-07-27 Thread Greg Kroah-Hartman
From: Johannes Berg commit fbb1461ad1d6eacca9beb69a2f3ce1b5398d399b upstream. iwl_mvm_free_inactive_queue() will sleep in synchronize_net() under some circumstances, so don't call it under RCU. There doesn't appear to be a need for RCU protection around this particular call. Cc: sta...@vger.ker

[PATCH 5.7 120/179] usb: dwc3: pci: add support for the Intel Jasper Lake

2020-07-27 Thread Greg Kroah-Hartman
From: Heikki Krogerus [ Upstream commit e25d1e8532c3d84f075deca1580a7d61e0f43ce6 ] This patch adds the necessary PCI ID for Intel Jasper Lake devices. Signed-off-by: Heikki Krogerus Signed-off-by: Felipe Balbi Signed-off-by: Sasha Levin --- drivers/usb/dwc3/dwc3-pci.c | 4 1 file chang

[PATCH 5.7 145/179] tty: xilinx_uartps: Really fix id assignment

2020-07-27 Thread Greg Kroah-Hartman
From: Helmut Grohne commit 22a82fa7d6c3e16d56a036b1fa697a39b954adf0 upstream. The problems started with the revert (18cc7ac8a28e28). The cdns_uart_console.index is statically assigned -1. When the port is registered, Linux assigns consecutive numbers to it. It turned out that when using ttyPS1 a

[tip: irq/urgent] genirq/affinity: Make affinity setting if activated opt-in

2020-07-27 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: f0c7baca180046824e07fc5f1326e83a8fd150c7 Gitweb: https://git.kernel.org/tip/f0c7baca180046824e07fc5f1326e83a8fd150c7 Author:Thomas Gleixner AuthorDate:Fri, 24 Jul 2020 22:44:41 +02:00 Commit

[PATCH 5.7 121/179] usb: gadget: udc: gr_udc: fix memleak on error handling path in gr_ep_init()

2020-07-27 Thread Greg Kroah-Hartman
From: Evgeny Novikov [ Upstream commit c8f8529e2c4141afa2ebb487ad48e8a6ec3e8c99 ] gr_ep_init() does not assign the allocated request anywhere if allocation of memory for the buffer fails. This is a memory leak fixed by the given patch. Found by Linux Driver Verification project (linuxtesting.or

[PATCH 5.7 159/179] mm/mmap.c: close race between munmap() and expand_upwards()/downwards()

2020-07-27 Thread Greg Kroah-Hartman
From: Kirill A. Shutemov commit 246c320a8cfe0b11d81a4af38fa9985ef0cc9a4c upstream. VMA with VM_GROWSDOWN or VM_GROWSUP flag set can change their size under mmap_read_lock(). It can lead to race with __do_munmap(): Thread AThread B __do_munmap() detach_vmas_to_

[PATCH 5.7 124/179] hwmon: (adm1275) Make sure we are reading enough data for different chips

2020-07-27 Thread Greg Kroah-Hartman
From: Chu Lin [ Upstream commit 6d1d41c075a1a54ba03370e268171fec20e06563 ] Issue: When PEC is enabled, binding adm1272 to the adm1275 would fail due to PEC error. See below: adm1275: probe of failed with error -74 Diagnosis: Per the datasheet of adm1272, adm1278, adm1293 and amd1294, PMON_

[PATCH 5.7 166/179] mmc: sdhci-of-aspeed: Fix clock divider calculation

2020-07-27 Thread Greg Kroah-Hartman
From: Eddie James commit ebd4050c6144b38098d8eed34df461e5e3fa82a9 upstream. When calculating the clock divider, start dividing at 2 instead of 1. The divider is divided by two at the end of the calculation, so starting at 1 may result in a divider of 0, which shouldn't happen. Signed-off-by: Ed

[tip: irq/urgent] genirq/debugfs: Add missing irqchip flags

2020-07-27 Thread tip-bot2 for Marc Zyngier
The following commit has been merged into the irq/urgent branch of tip: Commit-ID: aa251fc5b936d3ddb4b4c4b36427eb9aa3347c82 Gitweb: https://git.kernel.org/tip/aa251fc5b936d3ddb4b4c4b36427eb9aa3347c82 Author:Marc Zyngier AuthorDate:Sat, 25 Jul 2020 13:30:55 +01:00 Committer

[PATCH 5.7 165/179] io-mapping: indicate mapping failure

2020-07-27 Thread Greg Kroah-Hartman
From: Michael J. Ruhl commit e0b3e0b1a04367fc15c07f44e78361545b55357c upstream. The !ATOMIC_IOMAP version of io_maping_init_wc will always return success, even when the ioremap fails. Since the ATOMIC_IOMAP version returns NULL when the init fails, and callers check for a NULL return on error t

[PATCH 5.7 164/179] khugepaged: fix null-pointer dereference due to race

2020-07-27 Thread Greg Kroah-Hartman
From: Kirill A. Shutemov commit 594cced14ad3903166c8b091ff96adac7552f0b3 upstream. khugepaged has to drop mmap lock several times while collapsing a page. The situation can change while the lock is dropped and we need to re-validate that the VMA is still in place and the PMD is still subject for

[PATCH 5.7 163/179] mm/hugetlb: avoid hardcoding while checking if cma is enabled

2020-07-27 Thread Greg Kroah-Hartman
From: Barry Song commit dbda8feadfa46b3d8dd7a2304f84ccbc036effe9 upstream. hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has no memory. so NULL hugetlb_cma[0] doesn't necessarily mean cma is not enabled. gigantic pages might have been reserved on other nodes. This patch

[PATCH 5.7 143/179] Revert "cifs: Fix the target file was deleted when rename failed."

2020-07-27 Thread Greg Kroah-Hartman
From: Steve French commit 0e6705182d4e1b77248a93470d6d7b3013d59b30 upstream. This reverts commit 9ffad9263b467efd8f8dc7ae1941a0a655a2bab2. Upon additional testing with older servers, it was found that the original commit introduced a regression when using the old SMB1 dialect and rsyncing over

[PATCH 5.7 171/179] x86, vmlinux.lds: Page-align end of ..page_aligned sections

2020-07-27 Thread Greg Kroah-Hartman
From: Joerg Roedel commit de2b41be8fcccb2f5b6c480d35df590476344201 upstream. On x86-32 the idt_table with 256 entries needs only 2048 bytes. It is page-aligned, but the end of the .bss..page_aligned section is not guaranteed to be page-aligned. As a result, objects from other .bss sections may

[PATCH 5.7 151/179] serial: tegra: fix CREAD handling for PIO

2020-07-27 Thread Greg Kroah-Hartman
From: Johan Hovold commit b374c562ee7ab3f3a1daf959c01868bae761571c upstream. Commit 33ae787b74fc ("serial: tegra: add support to ignore read") added support for dropping input in case CREAD isn't set, but for PIO the ignore_status_mask wasn't checked until after the character had been put in the

[PATCH 5.7 150/179] staging: comedi: addi_apci_1564: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-27 Thread Greg Kroah-Hartman
From: Ian Abbott commit 926234f1b8434c4409aa4c53637aa3362ca07cea upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift a

[PATCH 5.7 172/179] ASoC: rt5670: Add new gpio1_is_ext_spk_en quirk and enable it on the Lenovo Miix 2 10

2020-07-27 Thread Greg Kroah-Hartman
From: Hans de Goede commit 85ca6b17e2bb96b19caac3b02c003d670b66de96 upstream. The Lenovo Miix 2 10 has a keyboard dock with extra speakers in the dock. Rather then the ACL5672's GPIO1 pin being used as IRQ to the CPU, it is actually used to enable the amplifier for these speakers (the IRQ to the

[PATCH 5.7 174/179] ASoC: topology: fix kernel oops on route addition error

2020-07-27 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart commit 6f0307df83f2aa6bdf656c2219c89ce96502d20e upstream. When errors happens while loading graph components, the kernel oopses while trying to remove all topology components. This can be root-caused to a list pointing to memory that was already freed on error. remove

[PATCH 5.7 173/179] ASoC: qcom: Drop HAS_DMA dependency to fix link failure

2020-07-27 Thread Greg Kroah-Hartman
From: Geert Uytterhoeven commit b6aa06de7757667bac88997a8807b143b8436035 upstream. When building on allyesconfig kernel for a NO_DMA=y platform (e.g. Sun-3), CONFIG_SND_SOC_QCOM_COMMON=y, but CONFIG_SND_SOC_QDSP6_AFE=n, leading to a link failure: sound/soc/qcom/common.o: In function `qcom_s

[PATCH 5.7 168/179] drm/amd/powerplay: fix a crash when overclocking Vega M

2020-07-27 Thread Greg Kroah-Hartman
From: Qiu Wenbo commit 88bb16ad998a0395fe4b346b7d3f621aaa0a2324 upstream. Avoid kernel crash when vddci_control is SMU7_VOLTAGE_CONTROL_NONE and vddci_voltage_table is empty. It has been tested on Intel Hades Canyon (i7-8809G). Bug: https://bugzilla.kernel.org/show_bug.cgi?id=208489 Fixes: ac78

[PATCH 5.7 169/179] arm64: vdso32: Fix --prefix= value for newer versions of clang

2020-07-27 Thread Greg Kroah-Hartman
From: Nathan Chancellor commit 7b7891c7bdfd61fc9ed6747a0a05efe2394dddc6 upstream. Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, resulting in the following build error: $ make -skj"$(nproc)" ARCH=arm64 C

[PATCH 5.7 179/179] ath9k: Fix regression with Atheros 9271

2020-07-27 Thread Greg Kroah-Hartman
From: Mark O'Donovan commit 92f53e2fda8bb9a559ad61d57bfb397ce67ed0ab upstream. This fix allows ath9k_htc modules to connect to WLAN once again. Fixes: 2bbcaaee1fcb ("ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb") Link: https://bugzilla.kernel.org/show_bug.cgi?id=208251 Signed-off

[PATCH 5.7 147/179] staging: comedi: addi_apci_1032: check INSN_CONFIG_DIGITAL_TRIG shift

2020-07-27 Thread Greg Kroah-Hartman
From: Ian Abbott commit 0bd0db42a030b75c20028c7ba6e327b9cb554116 upstream. The `INSN_CONFIG` comedi instruction with sub-instruction code `INSN_CONFIG_DIGITAL_TRIG` includes a base channel in `data[3]`. This is used as a right shift amount for other bitmask values without being checked. Shift a

Re: [PATCH 4.19 42/86] scripts/gdb: fix lx-symbols gdb.error while loading modules

2020-07-27 Thread Kieran Bingham
Hi Greg, Sasha, On 27/07/2020 15:04, Greg Kroah-Hartman wrote: > From: Stefano Garzarella > > [ Upstream commit 7359608a271ce81803de148befefd309baf88c76 ] > > Commit ed66f991bb19 ("module: Refactor section attr into bin attribute") > removed the 'name' field from 'struct module_sect_attr' trigg

[PATCH 5.7 156/179] fbdev: Detect integer underflow at "struct fbcon_ops"->clear_margins.

2020-07-27 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit 033724d6864245a11f8e04c066002e6ad22b3fd0 upstream. syzbot is reporting general protection fault in bitfill_aligned() [1] caused by integer underflow in bit_clear_margins(). The cause of this problem is when and how do_vc_resize() updates vc->vc_{cols,rows}. If vc_do_re

[PATCH 5.7 155/179] /dev/mem: Add missing memory barriers for devmem_inode

2020-07-27 Thread Greg Kroah-Hartman
From: Eric Biggers commit b34e7e298d7a5ed76b3aa327c240c29f1ef6dd22 upstream. WRITE_ONCE() isn't the correct way to publish a pointer to a data structure, since it doesn't include a write memory barrier. Therefore other tasks may see that the pointer has been set but not see that the pointed-to

[PATCH 5.7 178/179] ath9k: Fix general protection fault in ath9k_hif_usb_rx_cb

2020-07-27 Thread Greg Kroah-Hartman
From: Qiujun Huang commit 2bbcaaee1fcbd83272e29f31e2bb7e70d8c49e05 upstream. In ath9k_hif_usb_rx_cb interface number is assumed to be 0. usb_ifnum_to_if(urb->dev, 0) But it isn't always true. The case reported by syzbot: https://lore.kernel.org/linux-usb/666c9c05a1c05...@google.com

[PATCH 5.7 177/179] dm integrity: fix integrity recalculation that is improperly skipped

2020-07-27 Thread Greg Kroah-Hartman
From: Mikulas Patocka commit 5df96f2b9f58a5d2dc1f30fe7de75e197f2c25f2 upstream. Commit adc0daad366b62ca1bce3e2958a40b0b71a8b8b3 ("dm: report suspended device during destroy") broke integrity recalculation. The problem is dm_suspended() returns true not only during suspend, but also during resum

[PATCH 5.7 154/179] interconnect: msm8916: Fix buswidth of pcnoc_s nodes

2020-07-27 Thread Greg Kroah-Hartman
From: Georgi Djakov commit 92d232d176041db5b033dd7b7f7f2cf343f82237 upstream. The buswidth of the pcnoc_s_* nodes is actually not 8, but 4 bytes. Let's fix it. Reported-by: Jun Nie Reviewed-by: Mike Tipton Fixes: 30c8fa3ec61a ("interconnect: qcom: Add MSM8916 interconnect provider driver") L

[PATCH 5.7 160/179] vfs/xattr: mm/shmem: kernfs: release simple xattr entry in a right way

2020-07-27 Thread Greg Kroah-Hartman
From: Chengguang Xu commit 3bef735ad7b7d987069181e7b58588043cbd1509 upstream. After commit fdc85222d58e ("kernfs: kvmalloc xattr value instead of kmalloc"), simple xattr entry is allocated with kvmalloc() instead of kmalloc(), so we should release it with kvfree() instead of kfree(). Fixes: fdc

[PATCH 5.7 153/179] serial: 8250_mtk: Fix high-speed baud rates clamping

2020-07-27 Thread Greg Kroah-Hartman
From: Serge Semin commit 551e553f0d4ab623e2a6f424ab5834f9c7b5229c upstream. Commit 7b668c064ec3 ("serial: 8250: Fix max baud limit in generic 8250 port") fixed limits of a baud rate setting for a generic 8250 port. In other words since that commit the baud rate has been permitted to be within [u

[PATCH 5.7 157/179] vt: Reject zero-sized screen buffer size.

2020-07-27 Thread Greg Kroah-Hartman
From: Tetsuo Handa commit ce684552a266cb1c7cc2f7e623f38567adec6653 upstream. syzbot is reporting general protection fault in do_con_write() [1] caused by vc->vc_screenbuf == ZERO_SIZE_PTR caused by vc->vc_screenbuf_size == 0 caused by vc->vc_cols == vc->vc_rows == vc->vc_size_row == 0 caused by

[PATCH 5.7 167/179] drm/amdgpu: Fix NULL dereference in dpm sysfs handlers

2020-07-27 Thread Greg Kroah-Hartman
From: Paweł Gronowski commit 38e0c89a19fd13f28d2b4721035160a3e66e270b upstream. NULL dereference occurs when string that is not ended with space or newline is written to some dpm sysfs interface (for example pp_dpm_sclk). This happens because strsep replaces the tmp with NULL if the delimiter is

[PATCH 5.7 175/179] ASoC: topology: fix tlvs in error handling for widget_dmixer

2020-07-27 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart commit 8edac489e7c3fce44208373bb3e7b5835a672c66 upstream. we need to free all allocated tlvs, not just the one allocated in the loop before releasing kcontrols - other the tlvs references will leak. Fixes: 9f90af3a995298 ('ASoC: topology: Consolidate and fix asoc_tpl

[PATCH 5.7 148/179] staging: comedi: ni_6527: fix INSN_CONFIG_DIGITAL_TRIG support

2020-07-27 Thread Greg Kroah-Hartman
From: Ian Abbott commit f07804ec77d77f8a9dcf570a24154e17747bc82f upstream. `ni6527_intr_insn_config()` processes `INSN_CONFIG` comedi instructions for the "interrupt" subdevice. When `data[0]` is `INSN_CONFIG_DIGITAL_TRIG` it is configuring the digital trigger. When `data[2]` is `COMEDI_DIGITA

[PATCH 5.7 170/179] parisc: Add atomic64_set_release() define to avoid CPU soft lockups

2020-07-27 Thread Greg Kroah-Hartman
From: John David Anglin commit be6577af0cef934ccb036445314072e8cb9217b9 upstream. Stalls are quite frequent with recent kernels. I enabled CONFIG_SOFTLOCKUP_DETECTOR and I caught the following stall: watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [cc1:22803] CPU: 0 PID: 22803 Comm: cc1 Not t

[PATCH 5.7 152/179] serial: 8250: fix null-ptr-deref in serial8250_start_tx()

2020-07-27 Thread Greg Kroah-Hartman
From: Yang Yingliang commit f4c23a140d80ef5e6d3d1f8f57007649014b60fa upstream. I got null-ptr-deref in serial8250_start_tx(): [ 78.114630] Unable to handle kernel NULL pointer dereference at virtual address [ 78.123778] Mem abort info: [ 78.126560] ESR = 0x8607 [

[PATCH 5.7 176/179] ASoC: Intel: bdw-rt5677: fix non BE conversion

2020-07-27 Thread Greg Kroah-Hartman
From: Pierre-Louis Bossart commit fffebe8a8339c7e56db4126653a3bc0c0c5592cf upstream. When SOF is used, the normal links are converted into DPCM ones. This generates an error [ 58.276668] bdw-rt5677 bdw-rt5677: CPU DAI spi-RT5677AA:00 for rtd Wake on Voice does not support playback [ 58.276676]

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