[PATCH 4.19 18/28] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-06-05 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

[PATCH] KVM: selftests: Fix "make ARCH=x86_64" build with

2020-06-05 Thread Vitaly Kuznetsov
Marcelo reports that kvm selftests fail to build with "make ARCH=x86_64": gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86_64/include -I../../../../usr/include/ -Iinclude -Ilib

Re: [PATCH v4 11/11] module: Make module_enable_ro() static again

2020-06-05 Thread Jessica Yu
+++ Guenter Roeck [05/06/20 06:24 -0700]: On Wed, Apr 29, 2020 at 10:24:53AM -0500, Josh Poimboeuf wrote: Now that module_enable_ro() has no more external users, make it static again. Suggested-by: Jessica Yu Signed-off-by: Josh Poimboeuf Acked-by: Miroslav Benes Apparently this patch

[PATCH 4.19 28/28] net: smsc911x: Fix runtime PM imbalance on error

2020-06-05 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH] net: ethtool: Fix comment mentioning typo in IS_ENABLED()

2020-06-05 Thread Kees Cook
This has no code changes, but it's a typo noticed in other clean-ups, so we might as well fix it. IS_ENABLED() takes full names, and should have the "CONFIG_" prefix. Reported-by: Joe Perches Link: https://lore.kernel.org/lkml/b08611018fdb6d88757c6008a5c02fa0e07b32fb.ca...@perches.com

[PATCH 4.19 03/28] mm: Fix mremap not considering huge pmd devmap

2020-06-05 Thread Greg Kroah-Hartman
From: Fan Yang commit 5bfea2d9b17f1034a68147a8b03b9789af5700f9 upstream. The original code in mm/mremap.c checks huge pmd by: if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { However, a DAX mapped nvdimm is mapped as huge page (by default) but it is not transparent

[PATCH 4.19 20/28] i2c: altera: Fix race between xfer_msg and isr thread

2020-06-05 Thread Greg Kroah-Hartman
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock

[PATCH 4.19 04/28] HID: sony: Fix for broken buttons on DS3 USB dongles

2020-06-05 Thread Greg Kroah-Hartman
From: Scott Shumate commit e72455b898ac678667c5674668186b4670d87d11 upstream. Fix for non-working buttons on knock-off USB dongles for Sony controllers. These USB dongles are used to connect older Sony DA/DS1/DS2 controllers via USB and are common on Amazon, AliExpress, etc. Without the patch,

[PATCH 4.19 27/28] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-06-05 Thread Greg Kroah-Hartman
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error

[PATCH 4.19 25/28] null_blk: return error for invalid zone size

2020-06-05 Thread Greg Kroah-Hartman
From: Chaitanya Kulkarni [ Upstream commit e274832590211c4b1b1e807ca66fad8b5bb8b328 ] In null_init_zone_dev() check if the zone size is larger than device capacity, return error if needed. This also fixes the following oops :- null_blk: changed the number of conventional zones to 4294967295

[PATCH 4.19 22/28] net: bmac: Fix read of MAC address from ROM

2020-06-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer.

[PATCH 4.19 07/28] kernel/relay.c: handle alloc_percpu returning NULL in relay_open

2020-06-05 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 54e200ab40fc14c863bcc80a51e20b7906608fce upstream. alloc_percpu() may return NULL, which means chan->buf may be set to NULL. In that case, when we do *per_cpu_ptr(chan->buf, ...), we dereference an invalid pointer: BUG: Unable to handle kernel data access at

[PATCH 4.19 26/28] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-06-05 Thread Greg Kroah-Hartman
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the

[PATCH 4.19 00/28] 4.19.127-rc1 review

2020-06-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.127 release. There are 28 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 Sun, 07 Jun 2020 13:54:56 +. Anything

[PATCH 4.19 05/28] HID: i2c-hid: add Schneider SCL142ALM to descriptor override

2020-06-05 Thread Greg Kroah-Hartman
From: Julian Sax commit 6507ef10660efdfee93f0f3b9fac24b5e4d83e56 upstream. This device uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Cc: sta...@vger.kernel.org Signed-off-by: Julian Sax Signed-off-by: Jiri Kosina

[PATCH] drm/i915: Fix comments mentioning typo in IS_ENABLED()

2020-06-05 Thread Kees Cook
This has no code changes, but the typo is clearly getting copy/pasted, so better to avoid this now and fix the typo. IS_ENABLED() takes full names, and must have the "CONFIG_" prefix. Reported-by: Joe Perches Link:

[PATCH 4.19 08/28] mmc: fix compilation of user API

2020-06-05 Thread Greg Kroah-Hartman
From: Jérôme Pouiller commit 83fc5dd57f86c3ec7d6d22565a6ff6c948853b64 upstream. The definitions of MMC_IOC_CMD and of MMC_IOC_MULTI_CMD rely on MMC_BLOCK_MAJOR: #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1,

[PATCH 4.19 06/28] p54usb: add AirVasT USB stick device-id

2020-06-05 Thread Greg Kroah-Hartman
From: Giuseppe Marco Randazzo commit 63e49a9fdac1b4e97ac26cb3fe953f210d83bc53 upstream. This patch adds the AirVasT USB wireless devices 124a:4026 to the list of supported devices. It's using the ISL3886 usb firmware. Without this modification, the wiki adapter is not recognized. Cc:

[PATCH 4.19 02/28] libnvdimm: Fix endian conversion issues 

2020-06-05 Thread Greg Kroah-Hartman
From: Aneesh Kumar K.V commit 86aa66687442ef45909ff9814b82b4d2bb892294 upstream. nd_label->dpa issue was observed when trying to enable the namespace created with little-endian kernel on a big-endian kernel. That made me run `sparse` on the rest of the code and other changes are the result of

[PATCH 4.19 09/28] scsi: ufs: Release clock if DMA map fails

2020-06-05 Thread Greg Kroah-Hartman
From: Can Guo commit 17c7d35f141ef6158076adf3338f115f64fcf760 upstream. In queuecommand path, if DMA map fails, it bails out with clock held. In this case, release the clock to keep its usage paired. [mkp: applied by hand] Link:

[PATCH 5.4 36/38] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x

2020-06-05 Thread Greg Kroah-Hartman
From: Jonathan McDowell [ Upstream commit a96ac8a0045e3cbe3e5af6d1b3c78c6c2065dec5 ] The ipq806x_gmac_probe() function enables the PTP clock but not the appropriate interface clocks. This means that if the bootloader hasn't done so attempting to bring up the interface will fail with an error

[PATCH 4.19 16/28] s390/ftrace: save traced function caller

2020-06-05 Thread Greg Kroah-Hartman
From: Vasily Gorbik [ Upstream commit b4adfe55915d8363e244e42386d69567db1719b9 ] A typical backtrace acquired from ftraced function currently looks like the following (e.g. for "path_openat"): arch_stack_walk+0x15c/0x2d8 stack_trace_save+0x50/0x68 stack_trace_call+0x15a/0x3b8

[PATCH 4.19 12/28] drm/i915: fix port checks for MST support on gen >= 11

2020-06-05 Thread Greg Kroah-Hartman
From: Lucas De Marchi [ Upstream commit 10d987fd1b7baceaafa78d805e71427ab735b4e4 ] Both Ice Lake and Elkhart Lake (gen 11) support MST on all external connections except DDI A. Tiger Lake (gen 12) supports on all external connections. Move the check to happen inside intel_dp_mst_encoder_init()

[PATCH 4.19 17/28] ARC: Fix ICCM & DCCM runtime size checks

2020-06-05 Thread Greg Kroah-Hartman
From: Eugeniy Paltsev [ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ] As of today the ICCM and DCCM size checks are incorrectly using mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in runtime and

[PATCH 5.4 38/38] net: smsc911x: Fix runtime PM imbalance on error

2020-06-05 Thread Greg Kroah-Hartman
From: Dinghao Liu [ Upstream commit 539d39ad0c61b35f69565a037d7586deaf6d6166 ] Remove runtime PM usage counter decrement when the increment function has not been called to keep the counter balanced. Signed-off-by: Dinghao Liu Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH 4.19 19/28] evm: Fix RCU list related warnings

2020-06-05 Thread Greg Kroah-Hartman
From: Madhuparna Bhowmik [ Upstream commit 770f60586d2af0590be263f55fd079226313922c ] This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] = [ 32.848707] WARNING: suspicious RCU usage [

[PATCH 5.4 35/38] net/ethernet/freescale: rework quiesce/activate for ucc_geth

2020-06-05 Thread Greg Kroah-Hartman
From: Valentin Longchamp [ Upstream commit 79dde73cf9bcf1dd317a2667f78b758e9fe139ed ] ugeth_quiesce/activate are used to halt the controller when there is a link change that requires to reconfigure the mac. The previous implementation called netif_device_detach(). This however causes the

[PATCH 5.4 33/38] s390/mm: fix set_huge_pte_at() for empty ptes

2020-06-05 Thread Greg Kroah-Hartman
From: Gerald Schaefer [ Upstream commit ac8372f3b4e41015549b331a4f350224661e7fc6 ] On s390, the layout of normal and large ptes (i.e. pmds/puds) differs. Therefore, set_huge_pte_at() does a conversion from a normal pte to the corresponding large pmd/pud. So, when converting an empty pte, this

[PATCH 5.4 00/38] 5.4.45-rc1 review

2020-06-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.45 release. There are 38 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 Sun, 07 Jun 2020 13:54:56 +. Anything

[PATCH 4.19 01/28] Revert "cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"

2020-06-05 Thread Greg Kroah-Hartman
From: Tejun Heo [ Upstream commit d8ef4b38cb69d907f9b0e889c44d05fc0f890977 ] This reverts commit 9a9e97b2f1f2 ("cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"). The commit was added in anticipation of memcg rstat conversion which needed synchronous accounting for the

[PATCH 5.4 37/38] selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer

2020-06-05 Thread Greg Kroah-Hartman
From: Amit Cohen [ Upstream commit 46ca11177ed593f39d534f8d2c74ec5344e90c11 ] Starting from iputils s20190709 (used in Fedora 31), arping does not support timeout being specified as a decimal: $ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1 arping: invalid argument: '0.1' Previously, such

[PATCH 4.19 10/28] net: dsa: mt7530: set CPU port to fallback mode

2020-06-05 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 38152ea37d8bdaffa22603e0a5b5b86cfa8714c9 upstream. Currently, setting a bridge's self PVID to other value and deleting the default VID 1 renders untagged ports of that VLAN unable to talk to the CPU port: bridge vlan add dev br0 vid 2 pvid untagged self

[PATCH 4.19 15/28] spi: dw: use "smp_mb()" to avoid sending spi data error

2020-06-05 Thread Greg Kroah-Hartman
From: Xinwei Kong [ Upstream commit bfda044533b213985bc62bd7ca96f2b984d21b80 ] Because of out-of-order execution about some CPU architecture, In this debug stage we find Completing spi interrupt enable -> prodrucing TXEI interrupt -> running "interrupt_transfer" function will prior to set

[PATCH 5.4 04/38] HID: multitouch: enable multi-input as a quirk for some devices

2020-06-05 Thread Greg Kroah-Hartman
From: Benjamin Tissoires commit 40d5bb87377a599d0405af765290f28aaa6abb1e upstream. Two touchpad/trackstick combos are currently not behaving properly. They define a mouse emulation collection, as per Win8 requirements, but also define a separate mouse collection for the trackstick. The way the

[PATCH 5.4 07/38] mt76: mt76x02u: Add support for newer versions of the XBox One wifi adapter

2020-06-05 Thread Greg Kroah-Hartman
From: Matthew Garrett commit b2934279c3e9719145ff4090d4ab951e340df17e upstream. The current version has a new USB ID and reports as an 0x7632 device. Adding the IDs results in it working out of the box. Signed-off-by: Matthew Garrett Signed-off-by: Felix Fietkau Signed-off-by: Greg

[PATCH 5.4 18/38] powerpc/xmon: Restrict when kernel is locked down

2020-06-05 Thread Greg Kroah-Hartman
From: Christopher M. Riedl [ Upstream commit 69393cb03ccdf29f3b452d3482ef918469d1c098 ] Xmon should be either fully or partially disabled depending on the kernel lockdown state. Put xmon into read-only mode for lockdown=integrity and prevent user entry into xmon when lockdown=confidentiality.

[PATCH 5.4 02/38] mm: Fix mremap not considering huge pmd devmap

2020-06-05 Thread Greg Kroah-Hartman
From: Fan Yang commit 5bfea2d9b17f1034a68147a8b03b9789af5700f9 upstream. The original code in mm/mremap.c checks huge pmd by: if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { However, a DAX mapped nvdimm is mapped as huge page (by default) but it is not transparent

[PATCH 5.4 20/38] ASoC: intel - fix the card names

2020-06-05 Thread Greg Kroah-Hartman
From: Jaroslav Kysela [ Upstream commit d745cc1ab65945b2d17ec9c5652f38299c054649 ] Those strings are exposed to the user space as the card name thus used in the GUIs. The common standard is to avoid '_' here. The worst case is 'sof-skl_hda_card' string. Signed-off-by: Jaroslav Kysela Cc:

[PATCH 5.4 09/38] mmc: fix compilation of user API

2020-06-05 Thread Greg Kroah-Hartman
From: Jérôme Pouiller commit 83fc5dd57f86c3ec7d6d22565a6ff6c948853b64 upstream. The definitions of MMC_IOC_CMD and of MMC_IOC_MULTI_CMD rely on MMC_BLOCK_MAJOR: #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1,

[PATCH 5.4 11/38] media: staging: ipu3-imgu: Move alignment attribute to field

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 8c038effd893920facedf18c2c0976cec4a33408 upstream. Move the alignment attribute of struct ipu3_uapi_awb_fr_config_s to the field in struct ipu3_uapi_4a_config, the other location where the struct is used. Fixes: commit c9d52c114a9f ("media: staging: imgu: Address a

[PATCH 5.4 23/38] RDMA/qedr: Fix synchronization methods and memory leaks in qedr

2020-06-05 Thread Greg Kroah-Hartman
From: Michal Kalderon [ Upstream commit 82af6d19d8d9227c22a53ff00b40fb2a4f9fce69 ] Re-design of the iWARP CM related objects reference counting and synchronization methods, to ensure operations are synchronized correctly and that memory allocated for "ep" is properly released. Also makes sure

[PATCH 5.4 03/38] HID: sony: Fix for broken buttons on DS3 USB dongles

2020-06-05 Thread Greg Kroah-Hartman
From: Scott Shumate commit e72455b898ac678667c5674668186b4670d87d11 upstream. Fix for non-working buttons on knock-off USB dongles for Sony controllers. These USB dongles are used to connect older Sony DA/DS1/DS2 controllers via USB and are common on Amazon, AliExpress, etc. Without the patch,

[PATCH 5.4 29/38] io_uring: initialize ctx->sqo_wait earlier

2020-06-05 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 583863ed918136412ddf14de2e12534f17cfdc6f ] Ensure that ctx->sqo_wait is initialized as soon as the ctx is allocated, instead of deferring it to the offload setup. This fixes a syzbot reported lockdep complaint, which is really due to trying to wake_up on an

[PATCH 5.4 24/38] ARC: Fix ICCM & DCCM runtime size checks

2020-06-05 Thread Greg Kroah-Hartman
From: Eugeniy Paltsev [ Upstream commit 43900edf67d7ef3ac8909854d75b8a1fba2d570c ] As of today the ICCM and DCCM size checks are incorrectly using mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in runtime and

[PATCH 5.4 22/38] RDMA/qedr: Fix qpids xarray api used

2020-06-05 Thread Greg Kroah-Hartman
From: Michal Kalderon [ Upstream commit 5fdff18b4dc64e2d1e912ad2b90495cd487f791b ] The qpids xarray isn't accessed from irq context and therefore there is no need to use the xa_XXX_irq version of the apis. Remove the _irq. Fixes: b6014f9e5f39 ("qedr: Convert qpidr to XArray") Link:

[PATCH 5.4 15/38] drm/i915: fix port checks for MST support on gen >= 11

2020-06-05 Thread Greg Kroah-Hartman
From: Lucas De Marchi [ Upstream commit 10d987fd1b7baceaafa78d805e71427ab735b4e4 ] Both Ice Lake and Elkhart Lake (gen 11) support MST on all external connections except DDI A. Tiger Lake (gen 12) supports on all external connections. Move the check to happen inside intel_dp_mst_encoder_init()

[PATCH 5.4 26/38] evm: Fix RCU list related warnings

2020-06-05 Thread Greg Kroah-Hartman
From: Madhuparna Bhowmik [ Upstream commit 770f60586d2af0590be263f55fd079226313922c ] This patch fixes the following warning and few other instances of traversal of evm_config_xattrnames list: [ 32.848432] = [ 32.848707] WARNING: suspicious RCU usage [

[PATCH 5.4 10/38] media: Revert "staging: imgu: Address a compiler warning on alignment"

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 81d1adeb52c97fbe097e8c94e36c3eb702cdb110 upstream. This reverts commit c9d52c114a9fcc61c30512c7f810247a9f2812af. The patch being reverted changed the memory layout of struct ipu3_uapi_acc_param. Revert it, and address the compiler warning issues in further patches.

[PATCH 5.6 05/43] efi/libstub: Avoid returning uninitialized data from setup_graphics()

2020-06-05 Thread Greg Kroah-Hartman
From: Heinrich Schuchardt [ Upstream commit 081d5150845ba3fa49151a2f55d3cc03b0987509 ] Currently, setup_graphics() ignores the return value of efi_setup_gop(). As AllocatePool() does not zero out memory, the screen information table will contain uninitialized data in this case. We should free

[PATCH 5.6 32/43] HID: sony: Fix for broken buttons on DS3 USB dongles

2020-06-05 Thread Greg Kroah-Hartman
From: Scott Shumate commit e72455b898ac678667c5674668186b4670d87d11 upstream. Fix for non-working buttons on knock-off USB dongles for Sony controllers. These USB dongles are used to connect older Sony DA/DS1/DS2 controllers via USB and are common on Amazon, AliExpress, etc. Without the patch,

[PATCH 5.6 37/43] crypto: api - Fix use-after-free and race in crypto_spawn_alg

2020-06-05 Thread Greg Kroah-Hartman
From: Herbert Xu commit 6603523bf5e432c7c8490fb500793bb15d4e5f61 upstream. There are two problems in crypto_spawn_alg. First of all it may return spawn->alg even if spawn->dead is set. This results in a double-free as detected by syzbot. Secondly the setting of the DYING flag is racy because

[PATCH 5.6 08/43] efi/earlycon: Fix early printk for wider fonts

2020-06-05 Thread Greg Kroah-Hartman
From: Dave Young [ Upstream commit 8f592ada59b321d248391bae175cd78a12972223 ] When I play with terminus fonts I noticed the efi early printk does not work because the earlycon code assumes font width is 8. Here add the code to adapt with larger fonts. Tested with all kinds of kernel built-in

[PATCH 5.6 04/43] ARC: [plat-eznps]: Restrict to CONFIG_ISA_ARCOMPACT

2020-06-05 Thread Greg Kroah-Hartman
From: Vineet Gupta [ Upstream commit 799587d5731db9dcdafaac4002463aa7d9cd6cf7 ] Elide invalid configuration EZNPS + ARCv2, triggered by a make allyesconfig build. Granted the root cause is in source code (asm/barrier.h) where we check for ARCv2 before PLAT_EZNPS, but it is better to avoid such

[PATCH 5.6 31/43] mm: Fix mremap not considering huge pmd devmap

2020-06-05 Thread Greg Kroah-Hartman
From: Fan Yang commit 5bfea2d9b17f1034a68147a8b03b9789af5700f9 upstream. The original code in mm/mremap.c checks huge pmd by: if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { However, a DAX mapped nvdimm is mapped as huge page (by default) but it is not transparent

[PATCH 5.6 34/43] HID: i2c-hid: add Schneider SCL142ALM to descriptor override

2020-06-05 Thread Greg Kroah-Hartman
From: Julian Sax commit 6507ef10660efdfee93f0f3b9fac24b5e4d83e56 upstream. This device uses the SIPODEV SP1064 touchpad, which does not supply descriptors, so it has to be added to the override list. Cc: sta...@vger.kernel.org Signed-off-by: Julian Sax Signed-off-by: Jiri Kosina

[PATCH 5.6 43/43] airo: Fix read overflows sending packets

2020-06-05 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 11e7a91994c29da96d847f676be023da6a2c1359 upstream. The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from skb->data even when skb->len is less than ETH_ZLEN so it leads to a read overflow. The fix is to pad skb->data to at least ETH_ZLEN bytes. Cc:

[PATCH 5.6 07/43] scsi: pm: Balance pm_only counter of request queue during system resume

2020-06-05 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 05d18ae1cc8a0308b12f37b4ab94afce3535fac9 ] During system resume, scsi_resume_device() decreases a request queue's pm_only counter if the scsi device was quiesced before. But after that, if the scsi device's RPM status is RPM_SUSPENDED, the pm_only counter is

[PATCH 5.6 38/43] kernel/relay.c: handle alloc_percpu returning NULL in relay_open

2020-06-05 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 54e200ab40fc14c863bcc80a51e20b7906608fce upstream. alloc_percpu() may return NULL, which means chan->buf may be set to NULL. In that case, when we do *per_cpu_ptr(chan->buf, ...), we dereference an invalid pointer: BUG: Unable to handle kernel data access at

[PATCH 5.6 29/43] net: Fix return value about devm_platform_ioremap_resource()

2020-06-05 Thread Greg Kroah-Hartman
From: Tiezhu Yang [ Upstream commit ef24d6c3d6965158dfe23ae961d87e9a343e18a2 ] When call function devm_platform_ioremap_resource(), we should use IS_ERR() to check the return value and return PTR_ERR() if failed. Signed-off-by: Tiezhu Yang Signed-off-by: David S. Miller Signed-off-by: Sasha

[PATCH 5.6 39/43] mmc: fix compilation of user API

2020-06-05 Thread Greg Kroah-Hartman
From: Jérôme Pouiller commit 83fc5dd57f86c3ec7d6d22565a6ff6c948853b64 upstream. The definitions of MMC_IOC_CMD and of MMC_IOC_MULTI_CMD rely on MMC_BLOCK_MAJOR: #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) #define MMC_IOC_MULTI_CMD _IOWR(MMC_BLOCK_MAJOR, 1,

[PATCH 5.6 42/43] net: dsa: mt7530: set CPU port to fallback mode

2020-06-05 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 38152ea37d8bdaffa22603e0a5b5b86cfa8714c9 upstream. Currently, setting a bridge's self PVID to other value and deleting the default VID 1 renders untagged ports of that VLAN unable to talk to the CPU port: bridge vlan add dev br0 vid 2 pvid untagged self

[PATCH 5.6 28/43] selftests: mlxsw: qos_mc_aware: Specify arping timeout as an integer

2020-06-05 Thread Greg Kroah-Hartman
From: Amit Cohen [ Upstream commit 46ca11177ed593f39d534f8d2c74ec5344e90c11 ] Starting from iputils s20190709 (used in Fedora 31), arping does not support timeout being specified as a decimal: $ arping -c 1 -I swp1 -b 192.0.2.66 -q -w 0.1 arping: invalid argument: '0.1' Previously, such

[PATCH 5.6 20/43] io_uring: reset -EBUSY error when io sq thread is waken up

2020-06-05 Thread Greg Kroah-Hartman
From: Xiaoguang Wang [ Upstream commit d4ae271dfaae2a5f41c015f2f20d62a1deeec734 ] In io_sq_thread(), currently if we get an -EBUSY error and go to sleep, we will won't clear it again, which will result in io_sq_thread() will never have a chance to submit sqes again. Below test program test.c

[PATCH 5.6 13/43] io_uring: dont prepare DRAIN reqs twice

2020-06-05 Thread Greg Kroah-Hartman
From: Pavel Begunkov [ Upstream commit 650b548129b60b0d23508351800108196f4aa89f ] If req->io is not NULL, it's already prepared. Don't do it again, it's dangerous. Signed-off-by: Pavel Begunkov Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- fs/io_uring.c | 13 +++-- 1

[PATCH 5.6 11/43] i2c: altera: Fix race between xfer_msg and isr thread

2020-06-05 Thread Greg Kroah-Hartman
From: Atsushi Nemoto [ Upstream commit 5d4c7977499a736f3f80826bdc9744344ad55589 ] Use a mutex to protect access to idev->msg_len, idev->buf, etc. which are modified by both altr_i2c_xfer_msg() and altr_i2c_isr(). This is the minimal fix for easy backporting. A cleanup to remove the spinlock

[PATCH 5.6 22/43] riscv: Fix print_vm_layout build error if NOMMU

2020-06-05 Thread Greg Kroah-Hartman
From: Kefeng Wang [ Upstream commit 8fa3cdff05f009855a6a99a7d77a41004009bbab ] arch/riscv/mm/init.c: In function ‘print_vm_layout’: arch/riscv/mm/init.c:68:37: error: ‘FIXADDR_START’ undeclared (first use in this function); arch/riscv/mm/init.c:69:20: error: ‘FIXADDR_TOP’ undeclared

[PATCH 5.7 00/14] 5.7.1-rc1 review

2020-06-05 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.7.1 release. There are 14 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 Sun, 07 Jun 2020 13:54:56 +. Anything

[PATCH 5.6 21/43] drm/amd/display: DP training to set properly SCRAMBLING_DISABLE

2020-06-05 Thread Greg Kroah-Hartman
From: Vladimir Stempen [ Upstream commit b6ef55ccba7ed00fc10e3e6f619c8f886162427f ] [Why] DP training sequence to set SCRAMBLING_DISABLE bit properly based on training pattern - per DP Spec. [How] Update dpcd_pattern.v1_4.SCRAMBLING_DISABLE with 1 for TPS1, TPS2, TPS3, but not for TPS4.

[PATCH 5.7 07/14] mt76: mt76x02u: Add support for newer versions of the XBox One wifi adapter

2020-06-05 Thread Greg Kroah-Hartman
From: Matthew Garrett commit b2934279c3e9719145ff4090d4ab951e340df17e upstream. The current version has a new USB ID and reports as an 0x7632 device. Adding the IDs results in it working out of the box. Signed-off-by: Matthew Garrett Signed-off-by: Felix Fietkau Signed-off-by: Greg

[PATCH 5.6 02/43] Revert "cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"

2020-06-05 Thread Greg Kroah-Hartman
From: Tejun Heo [ Upstream commit d8ef4b38cb69d907f9b0e889c44d05fc0f890977 ] This reverts commit 9a9e97b2f1f2 ("cgroup: Add memory barriers to plug cgroup_rstat_updated() race window"). The commit was added in anticipation of memcg rstat conversion which needed synchronous accounting for the

[PATCH 5.7 09/14] kernel/relay.c: handle alloc_percpu returning NULL in relay_open

2020-06-05 Thread Greg Kroah-Hartman
From: Daniel Axtens commit 54e200ab40fc14c863bcc80a51e20b7906608fce upstream. alloc_percpu() may return NULL, which means chan->buf may be set to NULL. In that case, when we do *per_cpu_ptr(chan->buf, ...), we dereference an invalid pointer: BUG: Unable to handle kernel data access at

[PATCH 5.7 08/14] crypto: api - Fix use-after-free and race in crypto_spawn_alg

2020-06-05 Thread Greg Kroah-Hartman
From: Herbert Xu commit 6603523bf5e432c7c8490fb500793bb15d4e5f61 upstream. There are two problems in crypto_spawn_alg. First of all it may return spawn->alg even if spawn->dead is set. This results in a double-free as detected by syzbot. Secondly the setting of the DYING flag is racy because

[PATCH 5.6 12/43] io_uring: initialize ctx->sqo_wait earlier

2020-06-05 Thread Greg Kroah-Hartman
From: Jens Axboe [ Upstream commit 583863ed918136412ddf14de2e12534f17cfdc6f ] Ensure that ctx->sqo_wait is initialized as soon as the ctx is allocated, instead of deferring it to the offload setup. This fixes a syzbot reported lockdep complaint, which is really due to trying to wake_up on an

[PATCH 5.6 17/43] net: bmac: Fix read of MAC address from ROM

2020-06-05 Thread Greg Kroah-Hartman
From: Jeremy Kerr [ Upstream commit ef01cee2ee1b369c57a936166483d40942bcc3e3 ] In bmac_get_station_address, We're reading two bytes at a time from ROM, but we do that six times, resulting in 12 bytes of read & writes. This means we will write off the end of the six-byte destination buffer.

[PATCH 5.7 06/14] p54usb: add AirVasT USB stick device-id

2020-06-05 Thread Greg Kroah-Hartman
From: Giuseppe Marco Randazzo commit 63e49a9fdac1b4e97ac26cb3fe953f210d83bc53 upstream. This patch adds the AirVasT USB wireless devices 124a:4026 to the list of supported devices. It's using the ISL3886 usb firmware. Without this modification, the wiki adapter is not recognized. Cc:

[PATCH 5.7 03/14] HID: sony: Fix for broken buttons on DS3 USB dongles

2020-06-05 Thread Greg Kroah-Hartman
From: Scott Shumate commit e72455b898ac678667c5674668186b4670d87d11 upstream. Fix for non-working buttons on knock-off USB dongles for Sony controllers. These USB dongles are used to connect older Sony DA/DS1/DS2 controllers via USB and are common on Amazon, AliExpress, etc. Without the patch,

[PATCH 5.7 01/14] media: dvbdev: Fix tuner->demod media controller link

2020-06-05 Thread Greg Kroah-Hartman
From: Brad Love commit 9f984cacf4f4d53fd8a3f44d7f13528b81c1f6a8 upstream. Fixes bug exposed by: [a3fbc2e6bb0: media: mc-entity.c: use WARN_ON, validate link pads] The dvbdev incorrectly requests a tuner sink pad to connect to a demux sink pad. The media controller failure percolates back and

[PATCH 5.7 11/14] media: Revert "staging: imgu: Address a compiler warning on alignment"

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 81d1adeb52c97fbe097e8c94e36c3eb702cdb110 upstream. This reverts commit c9d52c114a9fcc61c30512c7f810247a9f2812af. The patch being reverted changed the memory layout of struct ipu3_uapi_acc_param. Revert it, and address the compiler warning issues in further patches.

[PATCH 5.7 12/14] media: staging: ipu3-imgu: Move alignment attribute to field

2020-06-05 Thread Greg Kroah-Hartman
From: Sakari Ailus commit 8c038effd893920facedf18c2c0976cec4a33408 upstream. Move the alignment attribute of struct ipu3_uapi_awb_fr_config_s to the field in struct ipu3_uapi_4a_config, the other location where the struct is used. Fixes: commit c9d52c114a9f ("media: staging: imgu: Address a

[PATCH 5.7 13/14] net: dsa: mt7530: set CPU port to fallback mode

2020-06-05 Thread Greg Kroah-Hartman
From: DENG Qingfang commit 38152ea37d8bdaffa22603e0a5b5b86cfa8714c9 upstream. Currently, setting a bridge's self PVID to other value and deleting the default VID 1 renders untagged ports of that VLAN unable to talk to the CPU port: bridge vlan add dev br0 vid 2 pvid untagged self

[PATCH 5.7 02/14] mm: Fix mremap not considering huge pmd devmap

2020-06-05 Thread Greg Kroah-Hartman
From: Fan Yang commit 5bfea2d9b17f1034a68147a8b03b9789af5700f9 upstream. The original code in mm/mremap.c checks huge pmd by: if (is_swap_pmd(*old_pmd) || pmd_trans_huge(*old_pmd)) { However, a DAX mapped nvdimm is mapped as huge page (by default) but it is not transparent

[PATCH 5.7 14/14] airo: Fix read overflows sending packets

2020-06-05 Thread Greg Kroah-Hartman
From: Dan Carpenter commit 11e7a91994c29da96d847f676be023da6a2c1359 upstream. The problem is that we always copy a minimum of ETH_ZLEN (60) bytes from skb->data even when skb->len is less than ETH_ZLEN so it leads to a read overflow. The fix is to pad skb->data to at least ETH_ZLEN bytes. Cc:

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Sai Prakash Ranjan
On 2020-05-25 15:07, Sai Prakash Ranjan wrote: Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: Add the apps_smmu node for sm8150. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapping that created by the bootloader.

Re: [v2] drm/msm: add shutdown support for display platform_driver

2020-06-05 Thread Emil Velikov
On Tue, 2 Jun 2020 at 17:10, Sai Prakash Ranjan wrote: > > Hi Emil, > > On 2020-06-02 21:09, Emil Velikov wrote: > > On Tue, 2 Jun 2020 at 15:49, Sai Prakash Ranjan > > wrote: > >> > >> Hi Emil, > >> > >> On 2020-06-02 19:43, Emil Velikov wrote: > >> > Hi Krishna, > >> > > >> > On Tue, 2 Jun

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Sai Prakash Ranjan
On 2020-06-05 19:40, Jonathan Marek wrote: On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: On 2020-05-29 08:45, Bjorn Andersson wrote: On Thu 28 May 20:02 PDT 2020, Jonathan Marek wrote: On 5/28/20 10:52 PM, Bjorn Andersson wrote: > On Sat 23 May 19:38 PDT 2020, Jonathan Marek wrote: > > >

WARNING in snd_usbmidi_input_start/usb_submit_urb

2020-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1ee08de1 Merge tag 'for-5.8/io_uring-2020-06-01' of git://.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1132dfe210 kernel config: https://syzkaller.appspot.com/x/.config?x=764b977f857603f1

Re: [PATCH v3 3/3] crypto: virtio: Fix dest length calculation in __virtio_crypto_skcipher_do_req()

2020-06-05 Thread Sasha Levin
Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: dbaf0624ffa5 ("crypto: add virtio-crypto driver"). The bot has tested the following trees: v5.6.15, v5.4.43, v4.19.125, v4.14.182. v5.6.15: Build OK! v5.4.43: Build failed! Errors:

Re: [PATCH v3 2/3] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-06-05 Thread Sasha Levin
<20200123101000.GB24255@Red> References: <20200602070501.2023-3-longpe...@huawei.com> <20200123101000.GB24255@Red> Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: dbaf0624ffa5 ("crypto: add virtio-crypto driver"). The bot has

Re: [RFC][PATCH 7/7] sched: Replace rq::wake_list

2020-06-05 Thread Peter Zijlstra
On Fri, Jun 05, 2020 at 06:33:38AM -0700, Guenter Roeck wrote: > I have not made the C standard. You point out yourself a possible explicit > culprit: struct randomization. The randomization crud is very much outside the C spec. > That by itself shows that you can not rely > on two elements of

Re: [PATCH v3 1/3] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-06-05 Thread Sasha Levin
<20200123101000.GB24255@Red> References: <20200602070501.2023-2-longpe...@huawei.com> <20200123101000.GB24255@Red> Hi [This is an automated email] This commit has been processed because it contains a "Fixes:" tag fixing commit: dbaf0624ffa5 ("crypto: add virtio-crypto driver"). The bot has

Re: [PATCH v4 04/11] watchdog: add support for sl28cpld watchdog

2020-06-05 Thread Andy Shevchenko
On Fri, Jun 05, 2020 at 06:52:00AM -0700, Guenter Roeck wrote: > On 6/5/20 3:50 AM, Andy Shevchenko wrote: > > On Fri, Jun 5, 2020 at 1:24 PM Michael Walle wrote: > >> Am 2020-06-05 10:14, schrieb Andy Shevchenko: > >>> On Fri, Jun 5, 2020 at 12:14 AM Michael Walle wrote: ... > +static

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Jonathan Marek
On 6/5/20 10:03 AM, Sai Prakash Ranjan wrote: On 2020-05-29 08:45, Bjorn Andersson wrote: On Thu 28 May 20:02 PDT 2020, Jonathan Marek wrote: On 5/28/20 10:52 PM, Bjorn Andersson wrote: > On Sat 23 May 19:38 PDT 2020, Jonathan Marek wrote: > > > Add the apps_smmu node for sm8150. Note that

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Vlastimil Babka
On 6/5/20 3:12 PM, Rafael J. Wysocki wrote: > On Fri, Jun 5, 2020 at 2:48 PM Vegard Nossum wrote: >> >> On 2020-06-05 11:36, Vegard Nossum wrote: >> > >> > On 2020-06-05 11:11, Vlastimil Babka wrote: >> >> On 6/4/20 8:46 PM, Vlastimil Babka wrote: >> >>> On 6/4/20 7:57 PM, Kees Cook wrote: >>

Re: [net] a6211caa63: dmesg.UBSAN:signed-integer-overflow_in_arch/x86/include/asm/atomic.h

2020-06-05 Thread Peter Zijlstra
On Fri, Jun 05, 2020 at 06:17:51AM -0700, Eric Dumazet wrote: > On Fri, Jun 5, 2020 at 1:10 AM kernel test robot > wrote: > There you go. > > We decided this was a bogus report, and that UBSAN requires sane compilers. > > Please read the fine comment that was added in this commit and update >

[RFT][PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management

2020-06-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: [PATCH] ACPI: OSL: Use rwlock instead of RCU for memory management The ACPI OS layer uses RCU to protect the list of ACPI memory mappings from being walked while it is updated. Among other situations, that list can be walked in non-NMI interrupt context, so

Re: [PATCH] media: staging: tegra-vde: add missing pm_runtime_put_autosuspend

2020-06-05 Thread Dmitry Osipenko
05.06.2020 09:00, Jon Hunter пишет: > > On 02/06/2020 06:48, Navid Emamdoost wrote: >> Call to pm_runtime_get_sync increments counter even in case of >> failure leading to incorrect ref count. >> Call pm_runtime_put_autosuspend if pm_runtime_get_sync fails. >> >> Signed-off-by: Navid Emamdoost

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-06-05 Thread Sai Prakash Ranjan
On 2020-05-29 08:45, Bjorn Andersson wrote: On Thu 28 May 20:02 PDT 2020, Jonathan Marek wrote: On 5/28/20 10:52 PM, Bjorn Andersson wrote: > On Sat 23 May 19:38 PDT 2020, Jonathan Marek wrote: > > > Add the apps_smmu node for sm8150. Note that adding the iommus field for > > UFS is required

Re: [GIT PULL] afs: Improvements for v5.8

2020-06-05 Thread Al Viro
On Fri, Jun 05, 2020 at 02:50:03PM +0100, Al Viro wrote: > On Thu, Jun 04, 2020 at 05:58:19PM +0100, David Howells wrote: > > Hi Linus, > > > > Is it too late to put in a pull request for AFS changes? Apologies - I was > > holding off and hoping that I could get Al to review the changes I made

[PATCH net] net: phy: mscc: fix Serdes configuration in vsc8584_config_init

2020-06-05 Thread Antoine Tenart
When converting the MSCC PHY driver to shared PHY packages, the Serdes configuration in vsc8584_config_init was modified to use 'base_addr' instead of 'base' as the port number. But 'base_addr' isn't equal to 'addr' for all PHYs inside the package, which leads to the Serdes still being enabled on

[PATCH net 3/4] net: marvell: Fix OF_MDIO config check

2020-06-05 Thread Dan Murphy
When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: cf41a51db8985 ("of/phylib: Use device tree properties to initialize Marvell PHYs.") Signed-off-by: Dan Murphy --- drivers/net/phy/marvell.c

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