[PATCH 4.19 24/77] net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc

2021-01-11 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit fb25038586d0064123e393cadf1fadd70a9df97a ] Accesses to dev->xps_cpus_map (when using dev->num_tc) should be protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't see an actual bug being triggered, but let's be safe here and take the rtnl

[PATCH 4.19 22/77] net: ethernet: Fix memleak in ethoc_probe

2021-01-11 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 5d41f9b7ee7a5a5138894f58846a4ffed601498a ] When mdiobus_register() fails, priv->mdio allocated by mdiobus_alloc() has not been freed, which leads to memleak. Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") Signed-off-by: Dinghao Liu Rev

[PATCH 4.19 09/77] proc: change ->nlink under proc_subdir_lock

2021-01-11 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit e06689bf57017ac022ccf0f2a5071f760821ce0f ] Currently gluing PDE into global /proc tree is done under lock, but changing ->nlink is not. Additionally struct proc_dir_entry::nlink is not atomic so updates can be lost. Link: http://lkml.kernel.org/r/2019092

[PATCH 4.19 08/77] depmod: handle the case of /sbin/depmod without /sbin in PATH

2021-01-11 Thread Greg Kroah-Hartman
From: Linus Torvalds [ Upstream commit cedd1862be7e666be87ec824dabc6a2b05618f36 ] Commit 436e980e2ed5 ("kbuild: don't hardcode depmod path") stopped hard-coding the path of depmod, but in the process caused trouble for distributions that had that /sbin location, but didn't have it in the PATH (g

[PATCH 4.19 49/77] usb: usbip: vhci_hcd: protect shift size

2021-01-11 Thread Greg Kroah-Hartman
From: Randy Dunlap commit 718bf42b119de652ebcc93655a1f33a9c0d04b3c upstream. Fix shift out-of-bounds in vhci_hcd.c: UBSAN: shift-out-of-bounds in ../drivers/usb/usbip/vhci_hcd.c:399:41 shift exponent 768 is too large for 32-bit type 'int' Fixes: 03cd00d538a6 ("usbip: vhci-hcd: Set the vhci

[PATCH 4.19 50/77] usb: uas: Add PNY USB Portable SSD to unusual_uas

2021-01-11 Thread Greg Kroah-Hartman
From: Thinh Nguyen commit 96ebc9c871d8a28fb22aa758dd9188a4732df482 upstream. Here's another variant PNY Pro Elite USB 3.1 Gen 2 portable SSD that hangs and doesn't respond to ATA_1x pass-through commands. If it doesn't support these commands, it should respond properly to the host. Add it to the

[PATCH 4.19 44/77] USB: cdc-acm: blacklist another IR Droid device

2021-01-11 Thread Greg Kroah-Hartman
From: Sean Young commit 0ffc76539e6e8d28114f95ac25c167c37b5191b3 upstream. This device is supported by the IR Toy driver. Reported-by: Georgi Bakalski Signed-off-by: Sean Young Acked-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20201227134502.4548-2-s...@mess.org Signed-off-

[PATCH 4.19 43/77] usb: gadget: enable super speed plus

2021-01-11 Thread Greg Kroah-Hartman
From: taehyun.cho commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gad

[PATCH 4.19 29/77] erspan: fix version 1 check in gre_parse_header()

2021-01-11 Thread Greg Kroah-Hartman
From: Cong Wang [ Upstream commit 085c7c4e1c0e50d90b7d90f61a12e12b317a91e2 ] Both version 0 and version 1 use ETH_P_ERSPAN, but version 0 does not have an erspan header. So the check in gre_parse_header() is wrong, we have to distinguish version 1 from version 0. We can just check the gre heade

[PATCH 4.19 47/77] usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data()

2021-01-11 Thread Greg Kroah-Hartman
From: Yu Kuai commit 83a43ff80a566de8718dfc6565545a0080ec1fb5 upstream. if of_find_device_by_node() succeed, usbmisc_get_init_data() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: ef12da914ed6 ("usb: chipid

[PATCH 4.14 29/57] usb: gadget: enable super speed plus

2021-01-11 Thread Greg Kroah-Hartman
From: taehyun.cho commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gad

[PATCH 4.19 53/77] USB: serial: option: add Quectel EM160R-GL

2021-01-11 Thread Greg Kroah-Hartman
From: Bjørn Mork commit d6c1ddd938d84a1adef7e19e8efc10e1b4df5034 upstream. New modem using ff/ff/30 for QCDM, ff/00/00 for AT and NMEA, and ff/ff/ff for RMNET/QMI. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P: Ven

[PATCH v1 2/2] sfp: add support for 100 base-x SFPs

2021-01-11 Thread Bjarni Jonasson
Add support for 100Base-FX, 100Base-LX, 100Base-PX and 100Base-BX10 modules This is needed for Sparx-5 switch. Signed-off-by: Bjarni Jonasson --- drivers/net/phy/sfp-bus.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/net/phy/sfp-bus.c b/drivers/net/phy/sfp-bus.c index 580

[PATCH 4.19 72/77] xen/pvh: correctly setup the PV EFI interface for dom0

2021-01-11 Thread Greg Kroah-Hartman
From: Roger Pau Monne commit 72813bfbf0276a97c82af038efb5f02dcdd9e310 upstream. This involves initializing the boot params EFI related fields and the efi global variable. Without this fix a PVH dom0 doesn't detect when booted from EFI, and thus doesn't support accessing any of the EFI related d

[PATCH 4.19 34/77] vhost_net: fix ubuf refcount incorrectly when sendmsg fails

2021-01-11 Thread Greg Kroah-Hartman
From: Yunjian Wang [ Upstream commit 01e31bea7e622f1890c274f4f8bccd296aa5 ] Currently the vhost_zerocopy_callback() maybe be called to decrease the refcount when sendmsg fails in tun. The error handling in vhost handle_tx_zerocopy() will try to decrease the same refcount again. This is wrong

[PATCH 4.19 60/77] usb: gadget: u_ether: Fix MTU size mismatch with RX packet size

2021-01-11 Thread Greg Kroah-Hartman
From: Manish Narani commit 0a88fa221ce911c331bf700d2214c5b2f77414d3 upstream. Fix the MTU size issue with RX packet size as the host sends the packet with extra bytes containing ethernet header. This causes failure when user sets the MTU size to the maximum i.e. 15412. In this case the ethernet

[PATCH 4.19 65/77] USB: serial: keyspan_pda: remove unused variable

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold Remove an unused variable which was mistakingly left by commit 37faf5061541 ("USB: serial: keyspan_pda: fix write-wakeup use-after-free") and only removed by a later change. This is needed to suppress a W=1 warning about the unused variable in the stable trees that the build b

[PATCH 4.19 04/77] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-11 Thread Greg Kroah-Hartman
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH 4.19 62/77] usb: gadget: Fix spinlock lockup on usb_function_deactivate

2021-01-11 Thread Greg Kroah-Hartman
From: Sriharsha Allenki commit 5cc35c224a80aa5a5a539510ef049faf0d6ed181 upstream. There is a spinlock lockup as part of composite_disconnect when it tries to acquire cdev->lock as part of usb_gadget_deactivate. This is because the usb_gadget_deactivate is called from usb_function_deactivate with

[PATCH 4.19 03/77] scsi: ufs: Fix wrong print message in dev_err()

2021-01-11 Thread Greg Kroah-Hartman
From: Bean Huo [ Upstream commit 1fa0570002e3f66db9b58c32c60de4183b857a19 ] Change dev_err() print message from "dme-reset" to "dme_enable" in function ufshcd_dme_enable(). Link: https://lore.kernel.org/r/20201207190137.6858-3-huob...@gmail.com Acked-by: Alim Akhtar Acked-by: Avri Altman Sign

[PATCH 4.19 64/77] usb: gadget: configfs: Fix use-after-free issue with udc_name

2021-01-11 Thread Greg Kroah-Hartman
From: Eddie Hung commit 64e6bbfff52db4bf6785fab9cffab850b2de6870 upstream. There is a use-after-free issue, if access udc_name in function gadget_dev_desc_UDC_store after another context free udc_name in function unregister_gadget. Context 1: gadget_dev_desc_UDC_store()->unregister_gadget()-> f

[PATCH 5.4 14/92] net: systemport: set dev->max_mtu to UMAC_MAX_MTU_SIZE

2021-01-11 Thread Greg Kroah-Hartman
From: Florian Fainelli [ Upstream commit 54ddbdb024882e226055cc4c3c246592ddde2ee5 ] The driver is already allocating receive buffers of 2KiB and the Ethernet MAC is configured to accept frames up to UMAC_MAX_MTU_SIZE. Fixes: bfcb813203e6 ("net: dsa: configure the MTU for switch ports") Signed-o

[PATCH 5.4 03/92] scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()

2021-01-11 Thread Greg Kroah-Hartman
From: Adrian Hunter [ Upstream commit af423534d2de86cd0db729a5ac41f056ca8717de ] The expectation for suspend-to-disk is that devices will be powered-off, so the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then that will not happen. Change the pm callbacks to force spm_lvl 5

[PATCH 5.4 18/92] net: mvpp2: Fix GoP port 3 Networking Complex Control configurations

2021-01-11 Thread Greg Kroah-Hartman
From: Stefan Chulski [ Upstream commit 2575bc1aa9d52a62342b57a0b7d0a12146cf6aed ] During GoP port 2 Networking Complex Control mode of operation configurations, also GoP port 3 mode of operation was wrongly set. Patch removes these configurations. Fixes: f84bf386f395 ("net: mvpp2: initialize th

[PATCH 5.4 08/92] proc: change ->nlink under proc_subdir_lock

2021-01-11 Thread Greg Kroah-Hartman
From: Alexey Dobriyan [ Upstream commit e06689bf57017ac022ccf0f2a5071f760821ce0f ] Currently gluing PDE into global /proc tree is done under lock, but changing ->nlink is not. Additionally struct proc_dir_entry::nlink is not atomic so updates can be lost. Link: http://lkml.kernel.org/r/2019092

Re: [PATCH v1 7/7] perf cs-etm: Detect pid in VMID for kernel running at EL2

2021-01-11 Thread Leo Yan
On Mon, Jan 11, 2021 at 10:07:03AM +, Suzuki Kuruppassery Poulose wrote: > Hi Leo > > On 1/9/21 7:44 AM, Leo Yan wrote: > > From: Suzuki K Poulose > > > > The pid of the task could be traced as VMID when the kernel is > > running at EL2. Teach the decoder to look for vmid when the > > contex

[PATCH 5.4 24/92] net/ncsi: Use real net-device for response handler

2021-01-11 Thread Greg Kroah-Hartman
From: John Wang [ Upstream commit 427c940558560bff2583d07fc119a21094675982 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the

[PATCH 5.4 06/92] lib/genalloc: fix the overflow when size is too big

2021-01-11 Thread Greg Kroah-Hartman
From: Huang Shijie [ Upstream commit 36845663843fc59c5d794e3dc0641472e3e572da ] Some graphic card has very big memory on chip, such as 32G bytes. In the following case, it will cause overflow: pool = gen_pool_create(PAGE_SHIFT, NUMA_NO_NODE); ret = gen_pool_add(pool, 0x100, SZ_32G,

[PATCH 5.4 27/92] net-sysfs: take the rtnl lock when accessing xps_cpus_map and num_tc

2021-01-11 Thread Greg Kroah-Hartman
From: Antoine Tenart [ Upstream commit fb25038586d0064123e393cadf1fadd70a9df97a ] Accesses to dev->xps_cpus_map (when using dev->num_tc) should be protected by the rtnl lock, like we do for netif_set_xps_queue. I didn't see an actual bug being triggered, but let's be safe here and take the rtnl

[PATCH 5.4 48/92] video: hyperv_fb: Fix the mmap() regression for v5.4.y and older

2021-01-11 Thread Greg Kroah-Hartman
From: Dexuan Cui db49200b1dad is backported from the mainline commit 5f1251a48c17 ("video: hyperv_fb: Fix the cache type when mapping the VRAM"), to v5.4.y and older stable branches, but unluckily db49200b1dad causes mmap() to fail for /dev/fb0 due to EINVAL: [ 5797.049560] x86/PAT: a.out:1910 m

[PATCH 5.4 41/92] CDC-NCM: remove "connected" log message

2021-01-11 Thread Greg Kroah-Hartman
From: Roland Dreier [ Upstream commit 59b4a8fa27f5a895582ada1ae5034af7c94a57b5 ] The cdc_ncm driver passes network connection notifications up to usbnet_link_change(), which is the right place for any logging. Remove the netdev_info() duplicating this from the driver itself. This stops devices

[PATCH 5.4 51/92] powerpc: Handle .text.{hot,unlikely}.* in linker script

2021-01-11 Thread Greg Kroah-Hartman
From: Nathan Chancellor commit 3ce47d95b7346dcafd9bed3556a8d072cb2b8571 upstream. Commit eff8728fe698 ("vmlinux.lds.h: Add PGO and AutoFDO input sections") added ".text.unlikely.*" and ".text.hot.*" due to an LLVM change [1]. After another LLVM change [2], these sections are seen in some PowerP

[PATCH 5.4 44/92] ionic: account for vlan tag len in rx buffer len

2021-01-11 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit 83469893204281ecf65d572bddf02de29a19787c ] Let the FW know we have enough receive buffer space for the vlan tag if it isn't stripped. Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling") Signed-off-by: Shannon Nelson Link: https://lore.kernel.org/r/20201

[PATCH 5.4 52/92] staging: mt7621-dma: Fix a resource leak in an error handling path

2021-01-11 Thread Greg Kroah-Hartman
From: Christophe JAILLET commit d887d6104adeb94d1b926936ea21f07367f0ff9f upstream. If an error occurs after calling 'mtk_hsdma_init()', it must be undone by a corresponding call to 'mtk_hsdma_uninit()' as already done in the remove function. Fixes: 0853c7a53eb3 ("staging: mt7621-dma: ralink: ad

[PATCH 5.4 53/92] usb: gadget: enable super speed plus

2021-01-11 Thread Greg Kroah-Hartman
From: taehyun.cho commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream. Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gad

[PATCH 5.4 34/92] net: sched: prevent invalid Scell_log shift count

2021-01-11 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit bd1248f1ddbc48b0c30565fce897a3b6423313b8 ] Check Scell_log shift size in red_check_params() and modify all callers of red_check_params() to pass Scell_log. This prevents a shift out-of-bounds as detected by UBSAN: UBSAN: shift-out-of-bounds in ./include/ne

[PATCH 5.4 45/92] net/sched: sch_taprio: ensure to reset/destroy all child qdiscs

2021-01-11 Thread Greg Kroah-Hartman
From: Davide Caratti [ Upstream commit 698285da79f5b0b099db15a37ac661ac408c80eb ] taprio_graft() can insert a NULL element in the array of child qdiscs. As a consquence, taprio_reset() might not reset child qdiscs completely, and taprio_destroy() might leak resources. Fix it by ensuring that loo

[PATCH 5.4 69/92] usb: gadget: function: printer: Fix a memory leak for interface descriptor

2021-01-11 Thread Greg Kroah-Hartman
From: Zqiang commit 2cc332e4ee4febcbb685e2962ad323fe4b3b750a upstream. When printer driver is loaded, the printer_func_bind function is called, in this function, the interface descriptor be allocated memory, if after that, the error occurred, the interface descriptor memory need to be free. Rev

[PATCH 5.4 58/92] USB: xhci: fix U1/U2 handling for hardware with XHCI_INTEL_HOST quirk set

2021-01-11 Thread Greg Kroah-Hartman
From: Michael Grzeschik commit 5d5323a6f3625f101dbfa94ba3ef7706cce38760 upstream. The commit 0472bf06c6fd ("xhci: Prevent U1/U2 link pm states if exit latency is too long") was constraining the xhci code not to allow U1/U2 sleep states if the latency to wake up from the U-states reached the serv

[PATCH 5.4 61/92] USB: serial: iuu_phoenix: fix DMA from stack

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold commit 54d0a3ab80f49f19ee916def62fe067596833403 upstream. Stack-allocated buffers cannot be used for DMA (on all architectures) so allocate the flush command buffer using kmalloc(). Fixes: 60a8fc017103 ("USB: add iuu_phoenix driver") Cc: stable # 2.6.25 Reviewed-by: Greg

[PATCH 5.4 77/92] kvm: check tlbs_dirty directly

2021-01-11 Thread Greg Kroah-Hartman
From: Lai Jiangshan commit 88bf56d04bc3564542049ec4ec168a8b60d0b48c upstream. In kvm_mmu_notifier_invalidate_range_start(), tlbs_dirty is used as: need_tlb_flush |= kvm->tlbs_dirty; with need_tlb_flush's type being int and tlbs_dirty's type being long. It means that tlbs_dirty is always

[PATCH 5.4 68/92] usb: gadget: f_uac2: reset wMaxPacketSize

2021-01-11 Thread Greg Kroah-Hartman
From: Jerome Brunet commit 9389044f27081d6ec77730c36d5bf9a1288bcda2 upstream. With commit 913e4a90b6f9 ("usb: gadget: f_uac2: finalize wMaxPacketSize according to bandwidth") wMaxPacketSize is computed dynamically but the value is never reset. Because of this, the actual maximum packet size ca

[PATCH 5.4 90/92] netfilter: nft_dynset: report EOPNOTSUPP on missing set feature

2021-01-11 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit 95cd4bca7b1f4a25810f3ddfc5e767fb46931789 upstream. If userspace requests a feature which is not available the original set definition, then bail out with EOPNOTSUPP. If userspace sends unsupported dynset flags (new feature not supported by this kernel), then report

[PATCH 5.10 016/145] qede: fix offload for IPIP tunnel packets

2021-01-11 Thread Greg Kroah-Hartman
From: Manish Chopra [ Upstream commit 5d5647dad259bb416fd5d3d87012760386d97530 ] IPIP tunnels packets are unknown to device, hence these packets are incorrectly parsed and caused the packet corruption, so disable offlods for such packets at run time. Signed-off-by: Manish Chopra Signed-off-by:

[PATCH 5.10 017/145] virtio_net: Fix recursive call to cpus_read_lock()

2021-01-11 Thread Greg Kroah-Hartman
From: Jeff Dike [ Upstream commit de33212f768c5d9e2fe791b008cb26f92f0aa31c ] virtnet_set_channels can recursively call cpus_read_lock if CONFIG_XPS and CONFIG_HOTPLUG are enabled. The path is: virtnet_set_channels - calls get_online_cpus(), which is a trivial wrapper around cpus_read_lock()

[PATCH 5.4 59/92] usb: usbip: vhci_hcd: protect shift size

2021-01-11 Thread Greg Kroah-Hartman
From: Randy Dunlap commit 718bf42b119de652ebcc93655a1f33a9c0d04b3c upstream. Fix shift out-of-bounds in vhci_hcd.c: UBSAN: shift-out-of-bounds in ../drivers/usb/usbip/vhci_hcd.c:399:41 shift exponent 768 is too large for 32-bit type 'int' Fixes: 03cd00d538a6 ("usbip: vhci-hcd: Set the vhci

[PATCH 5.10 019/145] net/ncsi: Use real net-device for response handler

2021-01-11 Thread Greg Kroah-Hartman
From: John Wang [ Upstream commit 427c940558560bff2583d07fc119a21094675982 ] When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the

[PATCH 5.10 007/145] ethernet: ucc_geth: fix use-after-free in ucc_geth_remove()

2021-01-11 Thread Greg Kroah-Hartman
From: Rasmus Villemoes [ Upstream commit e925e0cd2a705aaacb0b907bb3691fcac3a973a4 ] ugeth is the netdiv_priv() part of the netdevice. Accessing the memory pointed to by ugeth (such as done by ucc_geth_memclean() and the two of_node_puts) after free_netdev() is thus use-after-free. Fixes: 80a9fa

[PATCH 5.10 025/145] net: ethernet: ti: cpts: fix ethtool output when no ptp_clock registered

2021-01-11 Thread Greg Kroah-Hartman
From: Grygorii Strashko [ Upstream commit 4614792eebcbf81c60ad3604c1aeeb2b0899cea4 ] The CPTS driver registers PTP PHC clock when first netif is going up and unregister it when all netif are down. Now ethtool will show: - PTP PHC clock index 0 after boot until first netif is up; - the last ass

[PATCH 5.10 002/145] iavf: fix double-release of rtnl_lock

2021-01-11 Thread Greg Kroah-Hartman
From: Jakub Kicinski [ Upstream commit f1340265726e0edf8a8cef28e665b28ad6302ce9 ] This code does not jump to exit on an error in iavf_lan_add_device(), so the rtnl_unlock() from the normal path will follow. Fixes: b66c7bc1cd4d ("iavf: Refactor init state machine") Signed-off-by: Jakub Kicinski

[PATCH 5.10 009/145] ionic: account for vlan tag len in rx buffer len

2021-01-11 Thread Greg Kroah-Hartman
From: Shannon Nelson [ Upstream commit 83469893204281ecf65d572bddf02de29a19787c ] Let the FW know we have enough receive buffer space for the vlan tag if it isn't stripped. Fixes: 0f3154e6bcb3 ("ionic: Add Tx and Rx handling") Signed-off-by: Shannon Nelson Link: https://lore.kernel.org/r/20201

[PATCH 5.10 040/145] bareudp: Fix use of incorrect min_headroom size

2021-01-11 Thread Greg Kroah-Hartman
From: Taehee Yoo [ Upstream commit 10ad3e998fa0c25315f27cf3002ff8b02dc31c38 ] In the bareudp6_xmit_skb(), it calculates min_headroom. At that point, it uses struct iphdr, but it's not correct. So panic could occur. The struct ipv6hdr should be used. Test commands: ip netns add A ip netn

[PATCH 5.10 049/145] stmmac: intel: Add PCI IDs for TGL-H platform

2021-01-11 Thread Greg Kroah-Hartman
From: Noor Azura Ahmad Tarmizi [ Upstream commit 8450e23f142f629e40bd67afc8375c86c7fbf8f1 ] Add TGL-H PCI info and PCI IDs for the new TSN Controller to the list of supported devices. Signed-off-by: Noor Azura Ahmad Tarmizi Signed-off-by: Voon Weifeng Signed-off-by: Muhammad Husaini Zulkifli

[PATCH 5.10 052/145] workqueue: Kick a worker based on the actual activation of delayed works

2021-01-11 Thread Greg Kroah-Hartman
From: Yunfeng Ye [ Upstream commit 01341fbd0d8d4e717fc1231cdffe00343088ce0b ] In realtime scenario, We do not want to have interference on the isolated cpu cores. but when invoking alloc_workqueue() for percpu wq on the housekeeping cpu, it kick a kworker on the isolated cpu. alloc_workqueue

[PATCH 5.10 058/145] scsi: ufs-pci: Enable UFSHCD_CAP_RPM_AUTOSUSPEND for Intel controllers

2021-01-11 Thread Greg Kroah-Hartman
From: Adrian Hunter [ Upstream commit dd78bdb6f810bdcb173b42379af558c676c8e0aa ] Enable runtime PM auto-suspend by default for Intel host controllers. Link: https://lore.kernel.org/r/20201207083120.26732-5-adrian.hun...@intel.com Signed-off-by: Adrian Hunter Signed-off-by: Martin K. Petersen

[PATCH 5.10 054/145] scsi: ufs: Clear UAC for RPMB after ufshcd resets

2021-01-11 Thread Greg Kroah-Hartman
From: Randall Huang [ Upstream commit 1918651f2d7e8d58c9b7c49755c61e41ed655009 ] If RPMB is not provisioned, we may see RPMB failure after UFS suspend/resume. Inject request_sense to clear uac in ufshcd reset flow. Link: https://lore.kernel.org/r/20201201041402.3860525-1-jaeg...@kernel.org Rep

[PATCH 5.10 030/145] e1000e: Export S0ix flags to ethtool

2021-01-11 Thread Greg Kroah-Hartman
From: Mario Limonciello [ Upstream commit 3c98cbf22a96c1b12f48c1b2a4680dfe5cb280f9 ] This flag can be used by an end user to disable S0ix flows on a buggy system or by an OEM for development purposes. If you need this flag to be persisted across reboots, it's suggested to use a udev rule to cal

[PATCH 5.10 031/145] bnxt_en: Check TQM rings for maximum supported value.

2021-01-11 Thread Greg Kroah-Hartman
From: Michael Chan [ Upstream commit a029a2fef5d11bb85587433c3783615442abac96 ] TQM rings are hardware resources that require host context memory managed by the driver. The driver supports up to 9 TQM rings and the number of rings to use is requested by firmware during run-time. Cap this number

[PATCH 5.10 074/145] powerpc/32s: Fix RTAS machine check with VMAP stack

2021-01-11 Thread Greg Kroah-Hartman
From: Christophe Leroy commit 98bf2d3f4970179c702ef64db658e0553bc6ef3a upstream. When we have VMAP stack, exception prolog 1 sets r1, not r11. When it is not an RTAS machine check, don't trash r1 because it is needed by prolog 1. Fixes: da7bb43ab9da ("powerpc/32: Fix vmap stack - Properly set

[PATCH 5.10 069/145] Bluetooth: revert: hci_h5: close serdev device and free hu in h5_close

2021-01-11 Thread Greg Kroah-Hartman
From: Hans de Goede commit 5c3b5796866f85354a5ce76a28f8ffba0dcefc7e upstream. There have been multiple revisions of the patch fix the h5->rx_skb leak. Accidentally the first revision (which is buggy) and v5 have both been merged: v1 commit 70f259a3f427 ("Bluetooth: hci_h5: close serdev device a

[PATCH 5.10 071/145] scsi: block: Do not accept any requests while suspended

2021-01-11 Thread Greg Kroah-Hartman
From: Alan Stern [ Upstream commit 52abca64fd9410ea6c9a3a74eab25663b403d7da ] blk_queue_enter() accepts BLK_MQ_REQ_PM requests independent of the runtime power management state. Now that SCSI domain validation no longer depends on this behavior, modify the behavior of blk_queue_enter() as follow

[PATCH 5.10 073/145] crypto: asym_tpm: correct zero out potential secrets

2021-01-11 Thread Greg Kroah-Hartman
From: Greg Kroah-Hartman commit f93274ef0fe972c120c96b3207f8fce376231a60 upstream. The function derive_pub_key() should be calling memzero_explicit() instead of memset() in case the complier decides to optimize away the call to memset() because it "knows" no one is going to touch the memory anym

[PATCH 5.10 081/145] usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request

2021-01-11 Thread Greg Kroah-Hartman
From: Madhusudanarao Amara commit 0f041b8592daaaea46e91a8ebb3b47e6e0171fd8 upstream. Warm reboot scenarios some times type C Mux driver gets Mux configuration request as HPD=1,IRQ=1. In that scenario typeC Mux driver need to configure Mux as follows as per IOM requirement: (1). Confgiure Mux HP

[PATCH 5.10 068/145] kbuild: dont hardcode depmod path

2021-01-11 Thread Greg Kroah-Hartman
From: Dominique Martinet commit 436e980e2ed526832de822cbf13c317a458b78e1 upstream. depmod is not guaranteed to be in /sbin, just let make look for it in the path like all the other invoked programs Signed-off-by: Dominique Martinet Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hart

[PATCH 5.10 088/145] usb: chipidea: ci_hdrc_imx: add missing put_device() call in usbmisc_get_init_data()

2021-01-11 Thread Greg Kroah-Hartman
From: Yu Kuai commit 83a43ff80a566de8718dfc6565545a0080ec1fb5 upstream. if of_find_device_by_node() succeed, usbmisc_get_init_data() doesn't have a corresponding put_device(). Thus add put_device() to fix the exception handling for this function implementation. Fixes: ef12da914ed6 ("usb: chipid

[PATCH 5.10 076/145] Staging: comedi: Return -EFAULT if copy_to_user() fails

2021-01-11 Thread Greg Kroah-Hartman
From: Dan Carpenter commit cab36da4bf1a35739b091b73714a39a1bbd02b05 upstream. Return -EFAULT on error instead of the number of bytes remaining to be copied. Fixes: bac42fb21259 ("comedi: get rid of compat_alloc_user_space() mess in COMEDI_CMD{,TEST} compat") Signed-off-by: Dan Carpenter Cc: s

[PATCH 5.10 105/145] usb: gadget: configfs: Preserve function ordering after bind failure

2021-01-11 Thread Greg Kroah-Hartman
From: Chandana Kishori Chiluveru commit 6cd0fe91387917be48e91385a572a69dfac2f3f7 upstream. When binding the ConfigFS gadget to a UDC, the functions in each configuration are added in list order. However, if usb_add_function() fails, the failed function is put back on its configuration's func_lis

[PATCH 5.10 064/145] local64.h: make mandatory

2021-01-11 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 87dbc209ea04645fd2351981f09eff5d23f8e2e9 ] Make mandatory in include/asm-generic/Kbuild and remove all arch/*/include/asm/local64.h arch-specific files since they only #include . This fixes build errors on arch/c6x/ and arch/nios2/ for block/blk-iocost.c.

[PATCH 5.10 110/145] x86/mm: Fix leak of pmd ptlock

2021-01-11 Thread Greg Kroah-Hartman
From: Dan Williams commit d1c5246e08eb64991001d97a3bd119c93edbc79a upstream. Commit 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces") introduced a new location where a pmd was released, but neglected to run the pmd page destructor. In fact, this happened previously for a differ

[PATCH 5.10 102/145] usb: gadget: u_ether: Fix MTU size mismatch with RX packet size

2021-01-11 Thread Greg Kroah-Hartman
From: Manish Narani commit 0a88fa221ce911c331bf700d2214c5b2f77414d3 upstream. Fix the MTU size issue with RX packet size as the host sends the packet with extra bytes containing ethernet header. This causes failure when user sets the MTU size to the maximum i.e. 15412. In this case the ethernet

[PATCH 5.10 104/145] usb: gadget: Fix spinlock lockup on usb_function_deactivate

2021-01-11 Thread Greg Kroah-Hartman
From: Sriharsha Allenki commit 5cc35c224a80aa5a5a539510ef049faf0d6ed181 upstream. There is a spinlock lockup as part of composite_disconnect when it tries to acquire cdev->lock as part of usb_gadget_deactivate. This is because the usb_gadget_deactivate is called from usb_function_deactivate with

[PATCH 5.10 109/145] mm: make wait_on_page_writeback() wait for multiple pending writebacks

2021-01-11 Thread Greg Kroah-Hartman
From: Linus Torvalds commit c2407cf7d22d0c0d94cf20342b3b8f06f1d904e7 upstream. Ever since commit 2a9127fcf229 ("mm: rewrite wait_on_page_bit_common() logic") we've had some very occasional reports of BUG_ON(PageWriteback) in write_cache_pages(), which we thought we already fixed in commit 073861

[PATCH 5.10 111/145] KVM: x86/mmu: Use -1 to flag an undefined spte in get_mmio_spte()

2021-01-11 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 2aa078932ff6c66bf10cc5b310dbfa7d813d upstream. Return -1 from the get_walk() helpers if the shadow walk doesn't fill at least one spte, which can theoretically happen if the walk hits a not-present PDPTR. Returning the root level in such a case will cause ge

[PATCH 5.10 115/145] x86/resctrl: Use an IPI instead of task_work_add() to update PQR_ASSOC MSR

2021-01-11 Thread Greg Kroah-Hartman
From: Fenghua Yu commit ae28d1aae48a1258bd09a6f707ebb4231d79a761 upstream. Currently, when moving a task to a resource group the PQR_ASSOC MSR is updated with the new closid and rmid in an added task callback. If the task is running, the work is run as soon as possible. If the task is not runnin

[PATCH 5.10 101/145] usb: gadget: function: printer: Fix a memory leak for interface descriptor

2021-01-11 Thread Greg Kroah-Hartman
From: Zqiang commit 2cc332e4ee4febcbb685e2962ad323fe4b3b750a upstream. When printer driver is loaded, the printer_func_bind function is called, in this function, the interface descriptor be allocated memory, if after that, the error occurred, the interface descriptor memory need to be free. Rev

[PATCH 5.10 120/145] ALSA: hda/realtek - Fix speaker volume control on Lenovo C940

2021-01-11 Thread Greg Kroah-Hartman
From: Kailang Yang commit f86de9b1c0663b0a3ca2dcddec9aa910ff0fbf2c upstream. Cannot adjust speaker's volume on Lenovo C940. Applying the alc298_fixup_speaker_volume function can fix the issue. [ Additional note: C940 has I2S amp for the speaker and this needs the same initialization as Dell m

[PATCH 5.10 126/145] btrfs: send: fix wrong file path when there is an inode with a pending rmdir

2021-01-11 Thread Greg Kroah-Hartman
From: Filipe Manana commit 0b3f407e6728d990ae1630a02c7b952c21c288d3 upstream. When doing an incremental send, if we have a new inode that happens to have the same number that an old directory inode had in the base snapshot and that old directory has a pending rmdir operation, we end up computing

[PATCH 5.10 095/145] USB: yurex: fix control-URB timeout handling

2021-01-11 Thread Greg Kroah-Hartman
From: Johan Hovold commit 372c93131998c0622304bed118322d2a04489e63 upstream. Make sure to always cancel the control URB in write() so that it can be reused after a timeout or spurious CMD_ACK. Currently any further write requests after a timeout would fail after triggering a WARN() in usb_submi

[PATCH 5.10 136/145] ARM: dts: OMAP3: disable AES on N950/N9

2021-01-11 Thread Greg Kroah-Hartman
From: Aaro Koskinen commit f1dc15cd7fc146107cad2a926d9c1d005f69002a upstream. AES needs to be disabled on Nokia N950/N9 as well (HS devices), otherwise kernel fails to boot. Fixes: c312f066314e ("ARM: dts: omap3: Migrate AES from hwmods to sysc-omap2") Signed-off-by: Aaro Koskinen Signed-off-b

[PATCH 5.10 137/145] netfilter: x_tables: Update remaining dereference to RCU

2021-01-11 Thread Greg Kroah-Hartman
From: Subash Abhinov Kasiviswanathan commit 443d6e86f821a165fae3fc3fc13086d27ac140b1 upstream. This fixes the dereference to fetch the RCU pointer when holding the appropriate xtables lock. Reported-by: kernel test robot Fixes: cc00bcaa5899 ("netfilter: x_tables: Switch synchronization to RCU"

[PATCH 5.10 124/145] iommu/vt-d: Move intel_iommu info from struct intel_svm to struct intel_svm_dev

2021-01-11 Thread Greg Kroah-Hartman
From: Liu Yi L commit 9ad9f45b3b91162b33abfe175ae75ab65718dbf5 upstream. 'struct intel_svm' is shared by all devices bound to a give process, but records only a single pointer to a 'struct intel_iommu'. Consequently, cache invalidations may only be applied to a single DMAR unit, and are erroneou

[PATCH 5.10 143/145] KVM: x86: fix shift out of bounds reported by UBSAN

2021-01-11 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 2f80d502d627f30257ba7e3655e71c373b7d1a5a upstream. Since we know that e >= s, we can reassociate the left shift, changing the shifted number from 1 to 2 in exchange for decreasing the right hand side by 1. Reported-by: syzbot+e87846c48bf72bc85...@syzkaller.appspotmail

[PATCH 5.10 098/145] usb: gadget: select CONFIG_CRC32

2021-01-11 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit d7889c2020e08caab0d7e36e947f642d91015bd0 upstream. Without crc32 support, this driver fails to link: arm-linux-gnueabi-ld: drivers/usb/gadget/function/f_eem.o: in function `eem_unwrap': f_eem.c:(.text+0x11cc): undefined reference to `crc32_le' arm-linux-gnueabi-ld:

[PATCH 5.10 138/145] netfilter: ipset: fix shift-out-of-bounds in htable_bits()

2021-01-11 Thread Greg Kroah-Hartman
From: Vasily Averin commit 5c8193f568ae16f3242abad6518dc2ca6c8eef86 upstream. htable_bits() can call jhash_size(32) and trigger shift-out-of-bounds UBSAN: shift-out-of-bounds in net/netfilter/ipset/ip_set_hash_gen.h:151:6 shift exponent 32 is too large for 32-bit type 'unsigned int' CPU: 0 PID:

[PATCH 5.10 121/145] ALSA: hda/realtek: Add mute LED quirk for more HP laptops

2021-01-11 Thread Greg Kroah-Hartman
From: Manuel Jiménez commit 484229585a5e91eeb00ee10e05d5204e1ca6c481 upstream. HP Pavilion 13-bb (SSID 103c:87c8) needs the same quirk as other models with ALC287. Signed-off-by: Manuel Jiménez Cc: Link: https://lore.kernel.org/r/X+s/gKNydVrI6nLj@HP-Pavilion-13 Signed-off-by: Takashi Iwai

[PATCH 5.10 119/145] ALSA: hda/conexant: add a new hda codec CX11970

2021-01-11 Thread Greg Kroah-Hartman
From: bo liu commit 744a11abc56405c5a106e63da30a941b6d27f737 upstream. The current kernel does not support the cx11970 codec chip. Add a codec configuration item to kernel. [ Minor coding style fix by tiwai ] Signed-off-by: bo liu Cc: Link: https://lore.kernel.org/r/20201229035226.62120-1-bo

[PATCH 5.10 132/145] bcache: fix typo from SUUP to SUPP in features.h

2021-01-11 Thread Greg Kroah-Hartman
From: Coly Li commit f7b4943dea48a572ad751ce1f18a245d43debe7e upstream. This patch fixes the following typos, from BCH_FEATURE_COMPAT_SUUP to BCH_FEATURE_COMPAT_SUPP from BCH_FEATURE_INCOMPAT_SUUP to BCH_FEATURE_INCOMPAT_SUPP from BCH_FEATURE_INCOMPAT_SUUP to BCH_FEATURE_RO_COMPAT_SUPP Fixes: d

[PATCH 5.10 125/145] btrfs: qgroup: dont try to wait flushing if were already holding a transaction

2021-01-11 Thread Greg Kroah-Hartman
From: Qu Wenruo commit ae5e070eaca9dbebde3459dd8f4c2756f8c097d0 upstream. There is a chance of racing for qgroup flushing which may lead to deadlock: Thread A| Thread B (not holding trans handle) | (holding a trans handle) +---

[PATCH 5.10 145/145] rtlwifi: rise completion at the last step of firmware callback

2021-01-11 Thread Greg Kroah-Hartman
From: Ping-Ke Shih commit 4dfde294b9792dcf8615b55c58f093d544f472f0 upstream. request_firmware_nowait() which schedules another work is used to load firmware when USB is probing. If USB is unplugged before running the firmware work, it goes disconnect ops, and then causes use-after-free. Though w

[PATCH 5.10 139/145] netfilter: xt_RATEEST: reject non-null terminated string from userspace

2021-01-11 Thread Greg Kroah-Hartman
From: Florian Westphal commit 6cb56218ad9e580e519dcd23bfb3db08d8692e5a upstream. syzbot reports: detected buffer overflow in strlen [..] Call Trace: strlen include/linux/string.h:325 [inline] strlcpy include/linux/string.h:348 [inline] xt_rateest_tg_checkentry+0x2a5/0x6b0 net/netfilter/xt_RAT

[PATCH 5.10 142/145] x86/mtrr: Correct the range check before performing MTRR type lookups

2021-01-11 Thread Greg Kroah-Hartman
From: Ying-Tsun Huang commit cb7f4a8b1fb426a175d1708f05581939c61329d4 upstream. In mtrr_type_lookup(), if the input memory address region is not in the MTRR, over 4GB, and not over the top of memory, a write-back attribute is returned. These condition checks are for ensuring the input memory add

[PATCH 5.10 131/145] drm/i915: clear the gpu reloc batch

2021-01-11 Thread Greg Kroah-Hartman
From: Matthew Auld commit 641382e9b44fba81a0778e1914ee35b8471121f9 upstream. The reloc batch is short lived but can exist in the user visible ppGTT, and since it's backed by an internal object, which lacks page clearing, we should take care to clear it upfront. Signed-off-by: Matthew Auld Revi

[PATCH 5.10 134/145] bcache: introduce BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE for large bucket

2021-01-11 Thread Greg Kroah-Hartman
From: Coly Li commit b16671e8f493e3df40b1fb0dff4078f391c5099a upstream. When large bucket feature was added, BCH_FEATURE_INCOMPAT_LARGE_BUCKET was introduced into the incompat feature set. It used bucket_size_hi (which was added at the tail of struct cache_sb_disk) to extend current 16bit bucket

[PATCH 5.10 118/145] ALSA: hda/via: Fix runtime PM for Clevo W35xSS

2021-01-11 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 4bfd6247fa9164c8e193a55ef9c0ea3ee22f82d8 upstream. Clevo W35xSS_370SS with VIA codec has had the runtime PM problem that looses the power state of some nodes after the runtime resume. This was worked around by disabling the default runtime PM via a denylist entry. Sin

[PATCH 5.10 112/145] KVM: x86/mmu: Get root level from walkers when retrieving MMIO SPTE

2021-01-11 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 39b4d43e6003cee51cd119596d3c33d0449eb44c upstream. Get the so called "root" level from the low level shadow page table walkers instead of manually attempting to calculate it higher up the stack, e.g. in get_mmio_spte(). When KVM is using PAE shadow paging, the s

[PATCH 5.10 122/145] ALSA: hda/realtek: Enable mute and micmute LED on HP EliteBook 850 G7

2021-01-11 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit a598098cc9737f612dbab52294433fc26c51cc9b upstream. HP EliteBook 850 G7 uses the same GPIO pins as ALC285_FIXUP_HP_GPIO_LED to enable mute and micmute LED. So apply the quirk to enable the LEDs. Signed-off-by: Kai-Heng Feng Cc: Link: https://lore.kernel.org/r/202012

[PATCH 5.10 140/145] netfilter: nft_dynset: report EOPNOTSUPP on missing set feature

2021-01-11 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit 95cd4bca7b1f4a25810f3ddfc5e767fb46931789 upstream. If userspace requests a feature which is not available the original set definition, then bail out with EOPNOTSUPP. If userspace sends unsupported dynset flags (new feature not supported by this kernel), then report

[PATCH 5.10 133/145] bcache: check unsupported feature sets for bcache register

2021-01-11 Thread Greg Kroah-Hartman
From: Coly Li commit 1dfc0686c29a9bbd3a446a29f9ccde3dec3bc75a upstream. This patch adds the check for features which is incompatible for current supported feature sets. Now if the bcache device created by bcache-tools has features that current kernel doesn't support, read_super() will fail with

[PATCH 5.10 123/145] ALSA: hda/realtek: Add two "Intel Reference board" SSID in the ALC256.

2021-01-11 Thread Greg Kroah-Hartman
From: PeiSen Hou commit ce2e79b223867b9e586021b55dee7035517a236b upstream. Add two "Intel Reference boad" SSID in the alc256. Enable "power saving mode" and Enable "headset jack mode". Signed-off-by: PeiSen Hou Cc: Link: https://lore.kernel.org/r/5978d2267f034c28973d117925ec9...@realtek.com S

[PATCH 5.10 130/145] drm/i915: clear the shadow batch

2021-01-11 Thread Greg Kroah-Hartman
From: Matthew Auld commit 75353bcd2184010f08a3ed2f0da019bd9d604e1e upstream. The shadow batch is an internal object, which doesn't have any page clearing, and since the batch_len can be smaller than the object, we should take care to clear it. Testcase: igt/gen9_exec_parse/shadow-peek Fixes: 4f

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