[PATCH 5.10 081/290] gpiolib: Read "gpio-line-names" from a firmware node

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andy Shevchenko commit b41ba2ec54a70908067034f139aa23d0dd2985ce upstream. On STM32MP1, the GPIO banks are subnodes of pin-controller@50002000, see arch/arm/boot/dts/stm32mp151.dtsi. The driver for pin-controller@50002000 is in

[PATCH 4.14 26/95] s390/cio: return -EFAULT if copy_to_user() fails again

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e01bcdd61320 ("vfio: ccw: realize

[PATCH 5.11 092/306] s390/cio: return -EFAULT if copy_to_user() fails again

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e01bcdd61320 ("vfio: ccw: realize

[PATCH 5.11 084/306] net: phy: make mdio_bus_phy_suspend/resume as __maybe_unused

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Arnd Bergmann commit 7f654157f0aefba04cd7f6297351c87b76b47b89 upstream. When CONFIG_PM_SLEEP is disabled, the compiler warns about unused functions: drivers/net/phy/phy_device.c:273:12: error: unused function 'mdio_bus_phy_suspend' [-Werror,-Wunused-function]

[PATCH 4.19 036/120] s390/cio: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric Farman commit d9c48a948d29bcb22f4fe61a81b718ef6de561a0 upstream. Fixes: 120e214e504f ("vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls") Signed-off-by: Eric Farman Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman ---

[PATCH 5.4 071/168] powerpc/perf: Record counter overflow always if SAMPLE_IP is unset

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Athira Rajeev [ Upstream commit d137845c973147a22622cc76c7b0bc16f6206323 ] While sampling for marked events, currently we record the sample only if the SIAR valid bit of Sampled Instruction Event Register (SIER) is set. SIAR_VALID bit is used for fetching the

[PATCH 5.10 074/290] perf report: Fix -F for branch & mem modes

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ravi Bangoria commit 6740a4e70e5d1b9d8e7fe41fd46dd5656d65dadf upstream. perf report fails to add valid additional fields with -F when used with branch or mem modes. Fix it. Before patch: $ perf record -b $ perf report -b -F +srcline_from --stdio Error:

[PATCH 5.11 083/306] ethtool: fix the check logic of at least one channel for RX/TX

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Yinjun Zhang commit a4fc088ad4ff4a99d01978aa41065132b574b4b2 upstream. The command "ethtool -L combined 0" may clean the RX/TX channel count and skip the error path, since the attrs tb[ETHTOOL_A_CHANNELS_RX_COUNT] and tb[ETHTOOL_A_CHANNELS_TX_COUNT] are NULL in

[PATCH 5.11 089/306] net: hns3: fix error mask definition of flow director

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df upstream. Currently, some bit filed definitions of flow director TCAM configuration command are incorrect. Since the wrong MSB is always 0, and these fields are assgined in order, so it still works. Fix

[PATCH 4.14 16/95] net/mlx4_en: update moderation when config reset

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Kevin(Yudong) Yang commit 00ff801bb8ce6711e919af4530b6ffa14a22390a upstream. This patch fixes a bug that the moderation config will not be applied when calling mlx4_en_reset_config. For example, when turning on rx timestamping, mlx4_en_reset_config() will be

[PATCH 5.10 075/290] net: hns3: fix query vlan mask value error for flow director

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen commit c75ec148a316e8cf52274d16b9b422703b96f5ce upstream. Currently, the driver returns VLAN_VID_MASK for vlan mask field, when get flow director rule information for rule doesn't use vlan. It may cause the vlan mask value display as 0xf000 in this

[PATCH 4.14 23/95] net: davicom: Fix regulator not turned off on driver removal

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b upstream. We must disable the regulator that was enabled in the probe function. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000") Signed-off-by: Paul Cercueil Signed-off-by:

[PATCH 4.19 032/120] perf traceevent: Ensure read cmdlines are null terminated.

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ian Rogers commit 137a5258939aca56558f3a23eb229b9c4b293917 upstream. Issue detected by address sanitizer. Fixes: cd4ceb63438e9e28 ("perf util: Save pid-cmdline mapping into tracing header") Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Cc: Alexander

[PATCH 5.10 077/290] s390/cio: return -EFAULT if copy_to_user() fails again

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e01bcdd61320 ("vfio: ccw: realize

[PATCH 5.11 082/306] net: stmmac: fix wrongly set buffer2 valid when sph unsupport

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit 396e13e11577b614db77db0bbb6fca935b94eb1b upstream. In current driver, buffer2 available only when hardware supports split header. Wrongly set buffer2 valid in stmmac_rx_refill when refill buffer address. You can see that desc3 is 0x8100

[PATCH 5.4 067/168] Platform: OLPC: Fix probe error handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Lubomir Rintel [ Upstream commit cec551ea0d41c679ed11d758e1a386e20285b29d ] Reset ec_priv if probe ends unsuccessfully. Signed-off-by: Lubomir Rintel Link: https://lore.kernel.org/r/20210126073740.10232-2-lkund...@v3.sk Reviewed-by: Hans de Goede

[PATCH 5.4 070/168] powerpc: improve handling of unrecoverable system reset

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Nicholas Piggin [ Upstream commit 11cb0a25f71818ca7ab4856548ecfd83c169aa4d ] If an unrecoverable system reset hits in process context, the system does not have to panic. Similar to machine check, call nmi_exit() before die(). Signed-off-by: Nicholas Piggin

[PATCH 4.19 028/120] net: qrtr: fix error return code of qrtr_sendmsg()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jia-Ju Bai commit 179d0ba0c454057a65929c46af0d6ad986754781 upstream. When sock_alloc_send_skb() returns NULL to skb, no error return code of qrtr_sendmsg() is assigned. To fix this bug, rc is assigned with -ENOMEM in this case. Fixes: 194ccc88297a ("net: qrtr:

[PATCH 4.14 24/95] net: stmmac: stop each tx channel independently

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit a3e860a83397bf761ec1128a3f0ba186445992c6 upstream. If clear GMAC_CONFIG_TE bit, it would stop all tx channels, but users may only want to stop specific tx channel. Fixes: 48863ce5940f ("stmmac: add DMA support for GMAC 4.xx") Signed-off-by:

[PATCH 4.14 18/95] net: sched: avoid duplicates in classes dump

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maximilian Heyne commit bfc2560563586372212b0a8aeca7428975fa91fe upstream. This is a follow up of commit ea3274695353 ("net: sched: avoid duplicates in qdisc dump") which has fixed the issue only for the qdisc dump. The duplicate printing also occurs when

[PATCH 5.10 076/290] net: hns3: fix bug when calculating the TCAM table info

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen commit b36fc875bcdee56865c444a2cdae17d354a6d5f5 upstream. The function hclge_fd_convert_tuple() is used to convert tuples and tuples mask to TCAM x and y. But it misuses the source mac as source mac mask when convert INNER_SRC_MAC, which may cause the

[PATCH 5.11 086/306] mlxsw: spectrum_ethtool: Add an external speed to PTYS register

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Danielle Ratson commit ae9b24ddb69b4e31cda1b5e267a5a08a1db11717 upstream. Currently, only external bits are added to the PTYS register, whereas there is one external bit that is wrongly marked as internal, and so was recently removed from the register. Add that

[PATCH 5.4 068/168] powerpc/pci: Add ppc_md.discover_phbs()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Oliver O'Halloran [ Upstream commit 5537fcb319d016ce387f818dd774179bc03217f5 ] On many powerpc platforms the discovery and initalisation of pci_controllers (PHBs) happens inside of setup_arch(). This is very early in boot (pre-initcalls) and means that we're

[PATCH 4.19 033/120] s390/cio: return -EFAULT if copy_to_user() fails again

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e01bcdd61320 ("vfio: ccw: realize

[PATCH 4.14 22/95] net: davicom: Fix regulator not turned off on failed probe

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit ac88c531a5b38877eba2365a3f28f0c8b513dc33 upstream. When the probe fails or requests to be defered, we must disable the regulator that was previously enabled. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")

[PATCH 4.19 037/120] sh_eth: fix TRSCER mask for R7S9210

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Sergey Shtylyov commit 165bc5a4f30eee4735845aa7dbd6b738643f2603 upstream. According to the RZ/A2M Group User's Manual: Hardware, Rev. 2.00, the TRSCER register has bit 9 reserved, hence we can't use the driver's default TRSCER mask. Add the explicit

[PATCH 5.10 072/290] mlxsw: spectrum_ethtool: Add an external speed to PTYS register

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Danielle Ratson commit ae9b24ddb69b4e31cda1b5e267a5a08a1db11717 upstream. Currently, only external bits are added to the PTYS register, whereas there is one external bit that is wrongly marked as internal, and so was recently removed from the register. Add that

[PATCH 4.14 20/95] cipso,calipso: resolve a number of problems with the DOI refcounts

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Moore commit ad5d07f4a9cd671233ae20983848874731102c08 upstream. The current CIPSO and CALIPSO refcounting scheme for the DOI definitions is a bit flawed in that we: 1. Don't correctly match gets/puts in netlbl_cipsov4_list(). 2. Decrement the refcount on

[PATCH 5.4 066/168] mmc: mediatek: fix race condition between msdc_request_timeout and irq

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Chaotian Jing [ Upstream commit 0354ca6edd464a2cf332f390581977b8699ed081 ] when get request SW timeout, if CMD/DAT xfer done irq coming right now, then there is race between the msdc_request_timeout work and irq handler, and the host->cmd and host->data may set

[PATCH 5.11 087/306] perf traceevent: Ensure read cmdlines are null terminated.

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ian Rogers commit 137a5258939aca56558f3a23eb229b9c4b293917 upstream. Issue detected by address sanitizer. Fixes: cd4ceb63438e9e28 ("perf util: Save pid-cmdline mapping into tracing header") Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Cc: Alexander

[PATCH 4.14 19/95] net: usb: qmi_wwan: allow qmimux add/del with master up

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Daniele Palmas commit 6c59cff38e66584ae3ac6c2f0cbd8d039c710ba7 upstream. There's no reason for preventing the creation and removal of qmimux network interfaces when the underlying interface is up. This makes qmi_wwan mux implementation more similar to the rmnet

[PATCH 4.14 28/95] drm: meson_drv add shutdown function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Artem Lapkin commit fa0c16caf3d73ab4d2e5d6fa2ef2394dbec91791 upstream. Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc

[PATCH 5.11 088/306] perf report: Fix -F for branch & mem modes

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ravi Bangoria commit 6740a4e70e5d1b9d8e7fe41fd46dd5656d65dadf upstream. perf report fails to add valid additional fields with -F when used with branch or mem modes. Fix it. Before patch: $ perf record -b $ perf report -b -F +srcline_from --stdio Error:

[PATCH 5.11 094/306] drm/fb-helper: only unmap if buffer not null

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Tong Zhang commit 874a52f9b693ed8bf7a92b3592a547ce8a684e6f upstream. drm_fbdev_cleanup() can be called when fb_helper->buffer is null, hence fb_helper->buffer should be checked before calling drm_client_buffer_vunmap(). This buffer is also checked in

[PATCH 5.4 069/168] spi: stm32: make spurious and overrun interrupts visible

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Alain Volmat [ Upstream commit c64e7efe46b7de21937ef4b3594d9b1fc74f07df ] We do not expect to receive spurious interrupts so rise a warning if it happens. RX overrun is an error condition that signals a corrupted RX stream both in dma and in irq modes. Report

[PATCH 5.11 093/306] bnxt_en: reliably allocate IRQ table on reset to avoid crash

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Edwin Peer commit 20d7d1c5c9b11e9f538ed4a2289be106de970d3e upstream. The following trace excerpt corresponds with a NULL pointer dereference of 'bp->irq_tbl' in bnxt_setup_inta() on an Aarch64 system after many device resets: Unable to handle kernel NULL

[PATCH 4.14 27/95] drm/compat: Clear bounce structures

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Daniel Vetter commit de066e116306baf3a6a62691ac63cfc0b1dabddb upstream. Some of them have gaps, or fields we don't clear. Native ioctl code does full copies plus zero-extends on size mismatch, so nothing can leak. But compat is more hand-rolled so need to be

[PATCH 4.19 035/120] drm: meson_drv add shutdown function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Artem Lapkin commit fa0c16caf3d73ab4d2e5d6fa2ef2394dbec91791 upstream. Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc

[PATCH 5.4 075/168] sparc32: Limit memblock allocation to low memory

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andreas Larsson [ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ] Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which does not work

[PATCH 5.4 074/168] iommu/amd: Fix performance counter initialization

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Suravee Suthikulpanit [ Upstream commit 6778ff5b21bd8e78c8bd547fd66437cf2657fd9b ] Certain AMD platforms enable power gating feature for IOMMU PMC, which prevents the IOMMU driver from updating the counter while trying to validate the PMC functionality in the

[PATCH 5.10 083/290] gpio: fix gpio-device list corruption

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Johan Hovold commit cf25ef6b631c6fc6c0435fc91eba8734cca20511 upstream. Make sure to hold the gpio_lock when removing the gpio device from the gpio_devices list (when dropping the last reference) to avoid corrupting the list when there are concurrent accesses.

[PATCH 5.10 080/290] gpiolib: acpi: Allow to find GpioInt() resource by name and index

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andy Shevchenko commit 809390219fb9c2421239afe5c9eb862d73978ba0 upstream. Currently only search by index is supported. However, in some cases we might need to pass the quirks to the acpi_dev_gpio_irq_get(). For this, split out acpi_dev_gpio_irq_get_by() and

[PATCH 5.10 082/290] gpio: pca953x: Set IRQ type when handle Intel Galileo Gen 2

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Andy Shevchenko commit eb441337c7147514ab45036cadf09c3a71e4ce31 upstream. The commit 0ea683931adb ("gpio: dwapb: Convert driver to using the GPIO-lib-based IRQ-chip") indeliberately made a regression on how IRQ line from GPIO I²C expander is handled. I.e. it

[PATCH 4.14 15/95] sh_eth: fix TRSCER mask for SH771x

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Sergey Shtylyov commit 8c91bc3d44dfef8284af384877fbe61117e8b7d1 upstream. According to the SH7710, SH7712, SH7713 Group User's Manual: Hardware, Rev. 3.00, the TRSCER register actually has only bit 7 valid (and named differently), with all the other bits

[PATCH 5.4 073/168] powerpc/64: Fix stack trace not displaying final frame

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Michael Ellerman [ Upstream commit e3de1e291fa58a1ab0f471a4b458eff2514e4b5f ] In commit bf13718bc57a ("powerpc: show registers when unwinding interrupt frames") we changed our stack dumping logic to show the full registers whenever we find an interrupt frame on

[PATCH 4.19 029/120] net: stmmac: stop each tx channel independently

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit a3e860a83397bf761ec1128a3f0ba186445992c6 upstream. If clear GMAC_CONFIG_TE bit, it would stop all tx channels, but users may only want to stop specific tx channel. Fixes: 48863ce5940f ("stmmac: add DMA support for GMAC 4.xx") Signed-off-by:

[PATCH 4.19 025/120] net: lapbether: Remove netif_start_queue / netif_stop_queue

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Xie He commit f7d9d4854519fdf4d45c70a4d953438cd88e7e58 upstream. For the devices in this driver, the default qdisc is "noqueue", because their "tx_queue_len" is 0. In function "__dev_queue_xmit" in "net/core/dev.c", devices with the "noqueue" qdisc are

[PATCH 5.11 091/306] net: hns3: fix bug when calculating the TCAM table info

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen commit b36fc875bcdee56865c444a2cdae17d354a6d5f5 upstream. The function hclge_fd_convert_tuple() is used to convert tuples and tuples mask to TCAM x and y. But it misuses the source mac as source mac mask when convert INNER_SRC_MAC, which may cause the

[PATCH 4.14 17/95] net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ong Boon Leong commit 879c348c35bb5fb758dd881d8a97409c1862dae8 upstream. We introduce dwmac410_dma_init_channel() here for both EQoS v4.10 and above which use different DMA_CH(n)_Interrupt_Enable bit definitions for NIE and AIE. Fixes: 48863ce5940f ("stmmac:

[PATCH 4.19 026/120] net: davicom: Fix regulator not turned off on failed probe

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit ac88c531a5b38877eba2365a3f28f0c8b513dc33 upstream. When the probe fails or requests to be defered, we must disable the regulator that was previously enabled. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")

[PATCH 4.19 027/120] net: davicom: Fix regulator not turned off on driver removal

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b upstream. We must disable the regulator that was enabled in the probe function. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000") Signed-off-by: Paul Cercueil Signed-off-by:

[PATCH 5.10 073/290] perf traceevent: Ensure read cmdlines are null terminated.

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ian Rogers commit 137a5258939aca56558f3a23eb229b9c4b293917 upstream. Issue detected by address sanitizer. Fixes: cd4ceb63438e9e28 ("perf util: Save pid-cmdline mapping into tracing header") Signed-off-by: Ian Rogers Acked-by: Namhyung Kim Cc: Alexander

[PATCH 4.19 024/120] cipso,calipso: resolve a number of problems with the DOI refcounts

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Moore commit ad5d07f4a9cd671233ae20983848874731102c08 upstream. The current CIPSO and CALIPSO refcounting scheme for the DOI definitions is a bit flawed in that we: 1. Don't correctly match gets/puts in netlbl_cipsov4_list(). 2. Decrement the refcount on

[PATCH 4.14 14/95] Revert "mm, slub: consider rest of partial list if acquire_slab() fails"

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Linus Torvalds commit 9b1ea29bc0d7b94d420f96a0f4121403efc3dd85 upstream. This reverts commit 8ff60eb052eeba95cfb3efe16b08c9199f8121cf. The kernel test robot reports a huge performance regression due to the commit, and the reason seems fairly straightforward:

[PATCH 5.11 085/306] selftests: forwarding: Fix race condition in mirror installation

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Danielle Ratson commit edcbf5137f093b5502f5f6b97cce3cbadbde27aa upstream. When mirroring to a gretap in hardware the device expects to be programmed with the egress port and all the encapsulating headers. This requires the driver to resolve the path the packet

[PATCH 5.10 069/290] ethtool: fix the check logic of at least one channel for RX/TX

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Yinjun Zhang commit a4fc088ad4ff4a99d01978aa41065132b574b4b2 upstream. The command "ethtool -L combined 0" may clean the RX/TX channel count and skip the error path, since the attrs tb[ETHTOOL_A_CHANNELS_RX_COUNT] and tb[ETHTOOL_A_CHANNELS_TX_COUNT] are NULL in

[PATCH 5.4 065/168] mmc: mxs-mmc: Fix a resource leak in an error handling path in mxs_mmc_probe()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Christophe JAILLET [ Upstream commit 0bb7e560f821c7770973a94e346654c4bdccd42c ] If 'mmc_of_parse()' fails, we must undo the previous 'dma_request_chan()' call. Signed-off-by: Christophe JAILLET Link:

[PATCH 4.19 021/120] net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ong Boon Leong commit 879c348c35bb5fb758dd881d8a97409c1862dae8 upstream. We introduce dwmac410_dma_init_channel() here for both EQoS v4.10 and above which use different DMA_CH(n)_Interrupt_Enable bit definitions for NIE and AIE. Fixes: 48863ce5940f ("stmmac:

[PATCH 4.19 018/120] net: check if protocol extracted by virtio_net_hdr_set_proto is correct

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Balazs Nemeth commit 924a9bc362a5223cd448ca08c3dde21235adc310 upstream. For gso packets, virtio_net_hdr_set_proto sets the protocol (if it isn't set) based on the type in the virtio net hdr, but the skb could contain anything since it could come from packet_snd

[PATCH 4.19 019/120] net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Balazs Nemeth commit d348ede32e99d3a04863e9f9b28d224456118c27 upstream. A packet with skb_inner_network_header(skb) == skb_network_header(skb) and ETH_P_MPLS_UC will prevent mpls_gso_segment from pulling any headers from the packet. Subsequently, the call to

[PATCH 5.4 061/168] net: phy: fix save wrong speed and duplex problem if autoneg is on

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Guangbin Huang [ Upstream commit d9032dba5a2b2bbf0fdce67c8795300ec9923b43 ] If phy uses generic driver and autoneg is on, enter command "ethtool -s eth0 speed 50" will not change phy speed actually, but command "ethtool eth0" shows speed is 50Mb/s because

[PATCH 4.14 00/95] 4.14.226-rc1 review

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman This is the start of the stable review cycle for the 4.14.226 release. There are 95 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 17 Mar 2021

[PATCH 4.19 014/120] cifs: return proper error code in statfs(2)

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paulo Alcantara commit 14302ee3301b3a77b331cc14efb95bf7184c73cc upstream. In cifs_statfs(), if server->ops->queryfs is not NULL, then we should use its return value rather than always returning 0. Instead, use rc variable as it is properly set to 0 in case

[PATCH 5.11 076/306] r8169: fix r8168fp_adjust_ocp_cmd function

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Hayes Wang commit abbf9a0ef8848dca58c5b97750c1c59bbee45637 upstream. The (0xBAF7 & 0x00FFF000) << 6 should be (0xf70 << 18). Fixes: 561535b0f239 ("r8169: fix OCP access on RTL8117") Signed-off-by: Hayes Wang Acked-by: Heiner Kallweit Signed-off-by: David

[PATCH 4.14 04/95] net: Fix gro aggregation for udp encaps with zero csum

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Daniel Borkmann commit 89e5c58fc1e2857ccdaae506fb8bc5fed57ee063 upstream. We noticed a GRO issue for UDP-based encaps such as vxlan/geneve when the csum for the UDP header itself is 0. In that case, GRO aggregation does not take place on the phys dev, but

[PATCH 5.4 057/168] media: v4l: vsp1: Fix bru null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit ac8d82f586c8692b501cb974604a71ef0e22a04c upstream. RZ/G2L SoC has only BRS. This patch fixes null pointer access,when only BRS is enabled. Fixes: cbb7fa49c7466("media: v4l: vsp1: Rename BRU to BRx") Signed-off-by: Biju Das Signed-off-by: Hans

[PATCH 5.11 073/306] s390/qeth: improve completion of pending TX buffers

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Julian Wiedmann commit c20383ad1656b0f6354dd50e4acd894f9d94090d upstream. The current design attaches a pending TX buffer to a custom single-linked list, which is anchored at the buffer's slot on the TX ring. The buffer is then checked for final completion

[PATCH 5.4 059/168] net: hns3: fix error mask definition of flow director

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jian Shen [ Upstream commit ae85ddda0f1b341b2d25f5a5e0eff1d42b6ef3df ] Currently, some bit filed definitions of flow director TCAM configuration command are incorrect. Since the wrong MSB is always 0, and these fields are assgined in order, so it still works.

[PATCH 4.14 09/95] can: flexcan: assert FRZ bit in flexcan_chip_freeze()

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit 449052cfebf624b670faa040245d3feed770d22f upstream. Assert HALT bit to enter freeze mode, there is a premise that FRZ bit is asserted. This patch asserts FRZ bit in flexcan_chip_freeze, although the reset value is 1b'1. This is a prepare

[PATCH 5.4 058/168] media: rc: compile rc-cec.c into rc-core

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Hans Verkuil commit f09f9f93afad770a04b35235a0aa465fcc8d6e3d upstream. The rc-cec keymap is unusual in that it can't be built as a module, instead it is registered directly in rc-main.c if CONFIG_MEDIA_CEC_RC is set. This is because it can be called from

[PATCH 4.14 10/95] can: flexcan: enable RX FIFO after FRZ/HALT valid

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit ec15e27cc8904605846a354bb1f808ea1432f853 upstream. RX FIFO enable failed could happen when do system reboot stress test: [0.303958] flexcan 5a8d.can: 5a8d.can supply xceiver not found, using dummy regulator [0.304281]

[PATCH 4.19 011/120] tcp: annotate tp->copied_seq lockless reads

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric Dumazet [ Upstream commit 7db48e983930285b765743ebd665aecf9850582b ] There are few places where we fetch tp->copied_seq while this field can change from IRQ or other cpu. We need to add READ_ONCE() annotations, and also make sure write sides use

[PATCH 5.10 067/290] net: stmmac: fix watchdog timeout during suspend/resume stress test

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Joakim Zhang commit c511819d138de38e1637eedb645c207e09680d0f upstream. stmmac_xmit() call stmmac_tx_timer_arm() at the end to modify tx timer to do the transmission cleanup work. Imagine such a situation, stmmac enters suspend immediately after tx timer

[PATCH 5.11 075/306] s390/qeth: fix notification for pending buffers during teardown

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Julian Wiedmann commit 7eefda7f353ef86ad82a2dc8329e8a3538c08ab6 upstream. The cited commit reworked the state machine for pending TX buffers. In qeth_iqd_tx_complete() it turned PENDING into a transient state, and uses NEED_QAOB for buffers that get parked while

[PATCH 5.4 045/168] s390/cio: return -EFAULT if copy_to_user() fails again

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 51c44babdc19aaf882e1213325a0ba291573308f upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e01bcdd61320 ("vfio: ccw: realize

[PATCH 4.19 017/120] sh_eth: fix TRSCER mask for SH771x

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Sergey Shtylyov commit 8c91bc3d44dfef8284af384877fbe61117e8b7d1 upstream. According to the SH7710, SH7712, SH7713 Group User's Manual: Hardware, Rev. 3.00, the TRSCER register actually has only bit 7 valid (and named differently), with all the other bits

[PATCH 4.14 02/95] ethernet: alx: fix order of calls on resume

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Jakub Kicinski commit a4dcfbc4ee2218abd567d81d795082d8d4afcdf6 upstream. netif_device_attach() will unpause the queues so we can't call it before __alx_open(). This went undetected until commit b0999223f224 ("alx: add ability to allocate and free alx_napi

[PATCH 4.14 08/95] can: skb: can_skb_set_owner(): fix ref counting if socket was closed before setting skb ownership

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Oleksij Rempel commit e940e0895a82c6fbaa259f2615eb52b57ee91a7e upstream. There are two ref count variables controlling the free()ing of a socket: - struct sock::sk_refcnt - which is changed by sock_hold()/sock_put() - struct sock::sk_wmem_alloc - which accounts

[PATCH 5.10 040/290] net: enetc: dont disable VLAN filtering in IFF_PROMISC mode

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit a74dbce9d4541888fe0d39afe69a3a95004669b4 upstream. Quoting from the blamed commit: In promiscuous mode, it is more intuitive that all traffic is received, including VLAN tagged traffic. It appears that it is necessary to set

[PATCH 5.4 052/168] s390/crypto: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Wang Qing commit 942df4be7ab40195e2a839e9de81951a5862bc5b upstream. The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Fixes: e06670c5fe3b ("s390: vfio-ap: implement

[PATCH 5.10 042/290] net: enetc: remove bogus write to SIRXIDR from enetc_setup_rxbdr

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit 96a5223b918c8b79270fc0fec235a7ebad459098 upstream. The Station Interface Receive Interrupt Detect Register (SIRXIDR) contains a 16-bit wide mask of 'interrupt detected' events for each ring associated with a port. Bit i is write-1-to-clean

[PATCH 4.19 016/120] Revert "mm, slub: consider rest of partial list if acquire_slab() fails"

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Linus Torvalds commit 9b1ea29bc0d7b94d420f96a0f4121403efc3dd85 upstream. This reverts commit 8ff60eb052eeba95cfb3efe16b08c9199f8121cf. The kernel test robot reports a huge performance regression due to the commit, and the reason seems fairly straightforward:

[PATCH 5.11 050/306] net: enetc: dont disable VLAN filtering in IFF_PROMISC mode

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit a74dbce9d4541888fe0d39afe69a3a95004669b4 upstream. Quoting from the blamed commit: In promiscuous mode, it is more intuitive that all traffic is received, including VLAN tagged traffic. It appears that it is necessary to set

[PATCH 5.10 059/290] net: enetc: allow hardware timestamping on TX queues with tc-etf enabled

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit 29d98f54a4fe1b6a9089bec8715a1b89ff9ad59c upstream. The txtime is passed to the driver in skb->skb_mstamp_ns, which is actually in a union with skb->tstamp (the place where software timestamps are kept). Since commit b50a5c70ffa4 ("net:

[PATCH 5.11 052/306] net: enetc: remove bogus write to SIRXIDR from enetc_setup_rxbdr

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit 96a5223b918c8b79270fc0fec235a7ebad459098 upstream. The Station Interface Receive Interrupt Detect Register (SIRXIDR) contains a 16-bit wide mask of 'interrupt detected' events for each ring associated with a port. Bit i is write-1-to-clean

[PATCH 5.10 065/290] perf build: Fix ccache usage in $(CC) when generating arch errno table

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Antonio Terceiro commit dacfc08dcafa7d443ab339592999e37bbb8a3ef0 upstream. This was introduced by commit e4ffd066ff440a57 ("perf: Normalize gcc parameter when generating arch errno table"). Assuming the first word of $(CC) is the actual compiler breaks usage

[PATCH 5.11 074/306] s390/qeth: schedule TX NAPI on QAOB completion

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Julian Wiedmann commit 3e83d467a08e25b27c44c885f511624a71c84f7c upstream. When a QAOB notifies us that a pending TX buffer has been delivered, the actual TX completion processing by qeth_tx_complete_pending_bufs() is done within the context of a TX NAPI

[PATCH 5.10 046/290] net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Ong Boon Leong commit 879c348c35bb5fb758dd881d8a97409c1862dae8 upstream. We introduce dwmac410_dma_init_channel() here for both EQoS v4.10 and above which use different DMA_CH(n)_Interrupt_Enable bit definitions for NIE and AIE. Fixes: 48863ce5940f ("stmmac:

[PATCH 5.4 030/168] net: sched: avoid duplicates in classes dump

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Maximilian Heyne commit bfc2560563586372212b0a8aeca7428975fa91fe upstream. This is a follow up of commit ea3274695353 ("net: sched: avoid duplicates in qdisc dump") which has fixed the issue only for the qdisc dump. The duplicate printing also occurs when

[PATCH 5.4 035/168] net: davicom: Fix regulator not turned off on failed probe

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit ac88c531a5b38877eba2365a3f28f0c8b513dc33 upstream. When the probe fails or requests to be defered, we must disable the regulator that was previously enabled. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000")

[PATCH 4.14 07/95] net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Balazs Nemeth commit d348ede32e99d3a04863e9f9b28d224456118c27 upstream. A packet with skb_inner_network_header(skb) == skb_network_header(skb) and ETH_P_MPLS_UC will prevent mpls_gso_segment from pulling any headers from the packet. Subsequently, the call to

[PATCH 5.4 056/168] media: v4l: vsp1: Fix uif null pointer access

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biju Das commit 6732f313938027a910e1f7351951ff52c0329e70 upstream. RZ/G2L SoC has no UIF. This patch fixes null pointer access, when UIF module is not used. Fixes: 5e824f989e6e8("media: v4l: vsp1: Integrate DISCOM in display pipeline") Signed-off-by: Biju Das

[PATCH 5.11 053/306] net: enetc: keep RX ring consumer index in sync with hardware

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit 3a5d12c9be6f30080600c8bacaf310194e37d029 upstream. The RX rings have a producer index owned by hardware, where newly received frame buffers are placed, and a consumer index owned by software, where newly allocated buffers are placed, in

[PATCH 5.11 055/306] net: ethernet: mtk-star-emac: fix wrong unmap in RX handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biao Huang commit 95b39f07a17faef3a9b225248ba449b976e529c8 upstream. mtk_star_dma_unmap_rx() should unmap the dma_addr of old skb rather than that of new skb. Assign new_dma_addr to desc_data.dma_addr after all handling of old skb ends to avoid unexpected

[PATCH 5.10 044/290] net: ethernet: mtk-star-emac: fix wrong unmap in RX handling

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Biao Huang commit 95b39f07a17faef3a9b225248ba449b976e529c8 upstream. mtk_star_dma_unmap_rx() should unmap the dma_addr of old skb rather than that of new skb. Assign new_dma_addr to desc_data.dma_addr after all handling of old skb ends to avoid unexpected

[PATCH 5.10 041/290] net: enetc: force the RGMII speed and duplex instead of operating in inband mode

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit c76a97218dcbb2cb7cec1404ace43ef96c87d874 upstream. The ENETC port 0 MAC supports in-band status signaling coming from a PHY when operating in RGMII mode, and this feature is enabled by default. It has been reported that RGMII is broken in

[PATCH 5.10 039/290] net: enetc: fix incorrect TPID when receiving 802.1ad tagged packets

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Vladimir Oltean commit 827b6fd046516af605e190c872949f22208b5d41 upstream. When the enetc ports have rx-vlan-offload enabled, they report a TPID of ETH_P_8021Q regardless of what was actually in the packet. When rx-vlan-offload is disabled, packets have the

[PATCH 5.11 054/306] net: dsa: tag_mtk: fix 802.1ad VLAN egress

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: DENG Qingfang commit 9200f515c41f4cbaeffd8fdd1d8b6373a18b1b67 upstream. A different TPID bit is used for 802.1ad VLAN frames. Reported-by: Ilario Gelmetti Fixes: f0af34317f4b ("net: dsa: mediatek: combine MediaTek tag with VLAN tag") Signed-off-by: DENG

[PATCH 5.11 069/306] net: davicom: Fix regulator not turned off on driver removal

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Paul Cercueil commit cf9e60aa69ae6c40d3e3e4c94dd6c8de31674e9b upstream. We must disable the regulator that was enabled in the probe function. Fixes: 7994fe55a4a2 ("dm9000: Add regulator and reset support to dm9000") Signed-off-by: Paul Cercueil Signed-off-by:

[PATCH 5.4 051/168] s390/cio: return -EFAULT if copy_to_user() fails

2021-03-15 Thread gregkh
From: Greg Kroah-Hartman From: Eric Farman commit d9c48a948d29bcb22f4fe61a81b718ef6de561a0 upstream. Fixes: 120e214e504f ("vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls") Signed-off-by: Eric Farman Signed-off-by: Heiko Carstens Signed-off-by: Greg Kroah-Hartman ---

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