2022-01-20 15:05:12

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.4 00/15] 5.4.173-rc1 review

This is the start of the stable review cycle for the 5.4.173 release.
There are 15 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 Thu, 20 Jan 2022 16:04:42 +0000.
Anything received after that time might be too late.

The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.173-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
and the diffstat can be found below.

thanks,

greg k-h

-------------
Pseudo-Shortlog of commits:

Greg Kroah-Hartman <[email protected]>
Linux 5.4.173-rc1

Nick Desaulniers <[email protected]>
ARM: 9025/1: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD

Arnd Bergmann <[email protected]>
mtd: fixup CFI on ixp4xx

Christian Lachner <[email protected]>
ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Master after reboot from Windows

Wei Wang <[email protected]>
KVM: x86: remove PMU FIXED_CTR3 from msrs_to_save_all

Johan Hovold <[email protected]>
firmware: qemu_fw_cfg: fix kobject leak in probe error path

Johan Hovold <[email protected]>
firmware: qemu_fw_cfg: fix NULL-pointer deref on duplicate entries

Johan Hovold <[email protected]>
firmware: qemu_fw_cfg: fix sysfs information leak

Larry Finger <[email protected]>
rtlwifi: rtl8192cu: Fix WARNING when calling local_irq_restore() with interrupts enabled

Johan Hovold <[email protected]>
media: uvcvideo: fix division by zero at stream start

Eric Farman <[email protected]>
KVM: s390: Clarify SIGP orders versus STOP/RESTART

Sean Christopherson <[email protected]>
perf: Protect perf_guest_cbs with RCU

Jamie Hill-Daniel <[email protected]>
vfs: fs_context: fix up param length parsing in legacy_parse_param

Christophe JAILLET <[email protected]>
orangefs: Fix the size of a memory allocation in orangefs_bufmap_alloc()

NeilBrown <[email protected]>
devtmpfs regression fix: reconfigure on each mount

Nathan Chancellor <[email protected]>
kbuild: Add $(KBUILD_HOSTLDFLAGS) to 'has_libelf' test


-------------

Diffstat:

Makefile | 6 ++---
arch/arm/kernel/perf_callchain.c | 17 +++++++-----
arch/arm/mm/Kconfig | 1 +
arch/arm64/kernel/perf_callchain.c | 18 ++++++++-----
arch/csky/kernel/perf_callchain.c | 6 +++--
arch/nds32/kernel/perf_event_cpu.c | 17 +++++++-----
arch/riscv/kernel/perf_callchain.c | 7 +++--
arch/s390/kvm/interrupt.c | 7 +++++
arch/s390/kvm/kvm-s390.c | 9 +++++--
arch/s390/kvm/kvm-s390.h | 1 +
arch/s390/kvm/sigp.c | 28 ++++++++++++++++++++
arch/x86/events/core.c | 17 +++++++-----
arch/x86/events/intel/core.c | 9 ++++---
arch/x86/kvm/x86.c | 2 +-
drivers/base/devtmpfs.c | 8 ++++++
drivers/firmware/qemu_fw_cfg.c | 20 ++++++---------
drivers/media/usb/uvc/uvc_video.c | 4 +++
drivers/mtd/chips/Kconfig | 2 ++
drivers/mtd/maps/Kconfig | 2 +-
.../net/wireless/realtek/rtlwifi/rtl8192cu/hw.c | 1 +
fs/fs_context.c | 2 +-
fs/orangefs/orangefs-bufmap.c | 7 +++--
fs/super.c | 4 +--
include/linux/fs_context.h | 2 ++
include/linux/perf_event.h | 13 +++++++++-
kernel/events/core.c | 13 +++++++---
sound/pci/hda/patch_realtek.c | 30 +++++++++++++++++++++-
27 files changed, 191 insertions(+), 62 deletions(-)



2022-01-20 15:05:29

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 5.4 09/15] firmware: qemu_fw_cfg: fix sysfs information leak

From: Johan Hovold <[email protected]>

commit 1b656e9aad7f4886ed466094d1dc5ee4dd900d20 upstream.

Make sure to always NUL-terminate file names retrieved from the firmware
to avoid accessing data beyond the entry slab buffer and exposing it
through sysfs in case the firmware data is corrupt.

Fixes: 75f3e8e47f38 ("firmware: introduce sysfs driver for QEMU's fw_cfg device")
Cc: [email protected] # 4.6
Cc: Gabriel Somlo <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/firmware/qemu_fw_cfg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/firmware/qemu_fw_cfg.c
+++ b/drivers/firmware/qemu_fw_cfg.c
@@ -598,7 +598,7 @@ static int fw_cfg_register_file(const st
/* set file entry information */
entry->size = be32_to_cpu(f->size);
entry->select = be16_to_cpu(f->select);
- memcpy(entry->name, f->name, FW_CFG_MAX_FILE_PATH);
+ strscpy(entry->name, f->name, FW_CFG_MAX_FILE_PATH);

/* register entry under "/sys/firmware/qemu_fw_cfg/by_key/" */
err = kobject_init_and_add(&entry->kobj, &fw_cfg_sysfs_entry_ktype,


2022-01-21 02:26:25

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH 5.4 00/15] 5.4.173-rc1 review

On 1/18/22 8:05 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.4.173 release.
> There are 15 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 Thu, 20 Jan 2022 16:04:42 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.173-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels:

Tested-by: Florian Fainelli <[email protected]>
--
Florian

2022-01-21 10:11:43

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH 5.4 00/15] 5.4.173-rc1 review

On 1/18/22 9:05 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.4.173 release.
> There are 15 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 Thu, 20 Jan 2022 16:04:42 +0000.
> Anything received after that time might be too late.
>
> The whole patch series can be found in one patch at:
> https://www.kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.173-rc1.gz
> or in the git tree and branch at:
> git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h
>

Compiled and booted on my test system. No dmesg regressions.

Tested-by: Shuah Khan <[email protected]>

thanks,
-- Shuah

2022-01-21 20:50:04

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH 5.4 00/15] 5.4.173-rc1 review

On Tue, Jan 18, 2022 at 05:05:39PM +0100, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 5.4.173 release.
> There are 15 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 Thu, 20 Jan 2022 16:04:42 +0000.
> Anything received after that time might be too late.
>

Build results:
total: 157 pass: 157 fail: 0
Qemu test results:
total: 446 pass: 446 fail: 0

Tested-by: Guenter Roeck <[email protected]>

Guenter