[PATCH 5.10 000/104] 5.10.175-rc1 review

From: Greg Kroah-Hartman
Date: Wed Mar 15 2023 - 08:21:16 EST


This is the start of the stable review cycle for the 5.10.175 release.
There are 104 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 Fri, 17 Mar 2023 11:57:10 +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.10.175-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.10.y
and the diffstat can be found below.

thanks,

greg k-h

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

Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Linux 5.10.175-rc1

Stefan Haberland <sth@xxxxxxxxxxxxx>
s390/dasd: add missing discipline function

Alexandru Matei <alexandru.matei@xxxxxxxxxx>
KVM: VMX: Fix crash due to uninitialized current_vmcs

Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
KVM: VMX: Introduce vmx_msr_bitmap_l01_changed() helper

Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>
KVM: nVMX: Don't use Enlightened MSR Bitmap for L3

Masahiro Yamada <masahiroy@xxxxxxxxxx>
UML: define RUNTIME_DISCARD_EXIT

Tom Saeger <tom.saeger@xxxxxxxxxx>
sh: define RUNTIME_DISCARD_EXIT

Masahiro Yamada <masahiroy@xxxxxxxxxx>
s390: define RUNTIME_DISCARD_EXIT to fix link error with GNU ld < 2.36

Michael Ellerman <mpe@xxxxxxxxxxxxxx>
powerpc/vmlinux.lds: Don't discard .rela* for relocatable builds

Michael Ellerman <mpe@xxxxxxxxxxxxxx>
powerpc/vmlinux.lds: Define RUNTIME_DISCARD_EXIT

Masahiro Yamada <masahiroy@xxxxxxxxxx>
arch: fix broken BuildID for arm64 and riscv

Lukas Czerner <lczerner@xxxxxxxxxx>
ext4: block range must be validated before use in ext4_mb_clear_bb()

Ritesh Harjani <riteshh@xxxxxxxxxxxxx>
ext4: add strict range checks while freeing blocks

Ritesh Harjani <riteshh@xxxxxxxxxxxxx>
ext4: add ext4_sb_block_valid() refactored out of ext4_inode_block_valid()

Ritesh Harjani <riteshh@xxxxxxxxxxxxx>
ext4: refactor ext4_free_blocks() to pull out ext4_mb_clear_bb()

Qais Yousef <qyousef@xxxxxxxxxxx>
sched/fair: Fixes for capacity inversion detection

Qais Yousef <qyousef@xxxxxxxxxxx>
sched/uclamp: Fix a uninitialized variable warnings

Qais Yousef <qais.yousef@xxxxxxx>
sched/fair: Consider capacity inversion in util_fits_cpu()

Qais Yousef <qais.yousef@xxxxxxx>
sched/fair: Detect capacity inversion

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Cater for uclamp in find_energy_efficient_cpu()'s early exit condition

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Make cpu_overutilized() use util_fits_cpu()

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Make asym_fits_capacity() use util_fits_cpu()

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Make select_idle_capacity() use util_fits_cpu()

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Fix fits_capacity() check in feec()

Qais Yousef <qais.yousef@xxxxxxx>
sched/uclamp: Make task_fits_capacity() use util_fits_cpu()

John Harrison <John.C.Harrison@xxxxxxxxx>
drm/i915: Don't use BAR mappings for ring buffers with LLC

Tao Liu <taoliu828@xxxxxxx>
skbuff: Fix nfct leak on napi stolen

Corey Minyard <cminyard@xxxxxxxxxx>
ipmi:watchdog: Set panic count to proper value on a panic

Yejune Deng <yejune.deng@xxxxxxxxx>
ipmi/watchdog: replace atomic_add() and atomic_sub()

Li Jun <jun.li@xxxxxxx>
media: rc: gpio-ir-recv: add remove function

Paul Elder <paul.elder@xxxxxxxxxxxxxxxx>
media: ov5640: Fix analogue gain control

Masahiro Yamada <masahiroy@xxxxxxxxxx>
scripts: handle BrokenPipeError for python scripts

Alvaro Karsz <alvaro.karsz@xxxxxxxxxxxxx>
PCI: Avoid FLR for SolidRun SNET DPU rev 1

Alvaro Karsz <alvaro.karsz@xxxxxxxxxxxxx>
PCI: Add SolidRun vendor ID

Nathan Chancellor <nathan@xxxxxxxxxx>
macintosh: windfarm: Use unsigned type for 1-bit bitfields

Edward Humes <aurxenon@xxxxxxxxx>
alpha: fix R_ALPHA_LITERAL reloc for large modules

Rohan McLure <rmclure@xxxxxxxxxxxxx>
powerpc/kcsan: Exclude udelay to prevent recursive instrumentation

Christophe Leroy <christophe.leroy@xxxxxxxxxx>
powerpc: Check !irq instead of irq == NO_IRQ and remove NO_IRQ

xurui <xurui@xxxxxxxxxx>
MIPS: Fix a compilation issue

Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
clk: qcom: mmcc-apq8084: remove spdm clocks

Yu Kuai <yukuai3@xxxxxxxxxx>
block, bfq: fix uaf for bfqq in bic_set_bfqq()

Yu Kuai <yukuai3@xxxxxxxxxx>
block, bfq: replace 0/1 with false/true in bic apis

NeilBrown <neilb@xxxxxxx>
block/bfq-iosched.c: use "false" rather than "BLK_RW_ASYNC"

Yu Kuai <yukuai3@xxxxxxxxxx>
block, bfq: fix uaf for bfqq in bfq_exit_icq_bfqq

Yu Kuai <yukuai3@xxxxxxxxxx>
block, bfq: fix possible uaf for 'bfqq->bic'

Morten Linderud <morten@xxxxxxxxxxx>
tpm/eventlog: Don't abort tpm_read_log on faulty ACPI address

David Disseldorp <ddiss@xxxxxxx>
watch_queue: fix IOC_WATCH_QUEUE_SET_SIZE alloc error paths

Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
PCI/PM: Define pci_restore_standard_config() only for CONFIG_PM_SLEEP

Gavrilov Ilia <Ilia.Gavrilov@xxxxxxxxxxx>
iommu/amd: Add a length limitation for the ivrs_acpihid command-line parameter

Jan Kara <jack@xxxxxxx>
ext4: Fix deadlock during directory rename

Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
RISC-V: Don't check text_mutex during stop_machine

Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
riscv: Use READ_ONCE_NOCHECK in imprecise unwinding stack mode

Benjamin Coddington <bcodding@xxxxxxxxxx>
SUNRPC: Fix a server shutdown leak

D. Wythe <alibuda@xxxxxxxxxxxxxxxxx>
net/smc: fix fallback failed while sendmsg with fastopen

Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
platform: x86: MLX_PLATFORM: select REGMAP instead of depending on it

Chandrakanth Patil <chandrakanth.patil@xxxxxxxxxxxx>
scsi: megaraid_sas: Update max supported LD IDs to 240

Daniel Golle <daniel@xxxxxxxxxxxxxx>
net: ethernet: mtk_eth_soc: fix RX data corruption issue

Lorenz Bauer <lorenz.bauer@xxxxxxxxxxxxx>
btf: fix resolving BTF_KIND_VAR after ARRAY, STRUCT, UNION, PTR

Florian Westphal <fw@xxxxxxxxx>
netfilter: tproxy: fix deadlock due to missing BH disable

Ivan Delalande <colona@xxxxxxxxxx>
netfilter: ctnetlink: revert to dumping mark regardless of event type

Michael Chan <michael.chan@xxxxxxxxxxxx>
bnxt_en: Avoid order-5 memory allocation for TPA data

Russell King (Oracle) <rmk+kernel@xxxxxxxxxxxxxxx>
net: phylib: get rid of unnecessary locking

Rongguang Wei <weirongguang@xxxxxxxxxx>
net: stmmac: add to set device wake up flag when stmmac init phy

Shigeru Yoshida <syoshida@xxxxxxxxxx>
net: caif: Fix use-after-free in cfusbl_device_notify()

Yuiko Oshino <yuiko.oshino@xxxxxxxxxxxxx>
net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver

Lee Jones <lee.jones@xxxxxxxxxx>
net: usb: lan78xx: Remove lots of set but unused 'ret' variables

Hangbin Liu <liuhangbin@xxxxxxxxx>
selftests: nft_nat: ensuring the listening side is up before starting the client

Eric Dumazet <edumazet@xxxxxxxxxx>
ila: do not generate empty messages in ila_xlat_nl_cmd_get_mapping()

Vladimir Oltean <vladimir.oltean@xxxxxxx>
powerpc: dts: t1040rdb: fix compatible string for Rev A boards

Kang Chen <void0red@xxxxxxxxx>
nfc: fdp: add null check of devm_kmalloc_array in fdp_nci_i2c_read_device_properties

Rafał Miłecki <rafal@xxxxxxxxxx>
bgmac: fix *initial* chip reset to support BCM5358

Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
drm/msm/a5xx: fix context faults during ring switch

Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
drm/msm/a5xx: fix the emptyness check in the preempt code

Rob Clark <robdclark@xxxxxxxxxxxx>
drm/msm: Document and rename preempt_lock

Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
drm/msm/a5xx: fix setting of the CP_PREEMPT_ENABLE_LOCAL register

Rob Clark <robdclark@xxxxxxxxxxxx>
drm/msm: Fix potential invalid ptr free

Jiri Slaby (SUSE) <jirislaby@xxxxxxxxxx>
drm/nouveau/kms/nv50: fix nv50_wndw_new_ prototype

Ben Skeggs <bskeggs@xxxxxxxxxx>
drm/nouveau/kms/nv50-: remove unused functions

Jan Kara <jack@xxxxxxx>
ext4: Fix possible corruption when moving a directory

Bart Van Assche <bvanassche@xxxxxxx>
scsi: core: Remove the /proc/scsi/${proc_name} directory earlier

Liao Chang <liaochang1@xxxxxxxxxx>
riscv: Add header include guards to insn.h

Mattias Nissler <mnissler@xxxxxxxxxxxx>
riscv: Avoid enabling interrupts in die()

Palmer Dabbelt <palmer@xxxxxxxxxxxx>
RISC-V: Avoid dereferening NULL regs in die()

Pierre Gondois <pierre.gondois@xxxxxxx>
arm64: efi: Make efi_rt_lock a raw_spinlock

Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
iommu/vt-d: Fix PASID directory pointer coherency

Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
iommu/vt-d: Fix lockdep splat in intel_pasid_get_entry()

Marc Zyngier <maz@xxxxxxxxxx>
irqdomain: Fix domain registration race

Bixuan Cui <cuibixuan@xxxxxxxxxx>
irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent

Johan Hovold <johan+linaro@xxxxxxxxxx>
irqdomain: Fix mapping-creation race

Johan Hovold <johan+linaro@xxxxxxxxxx>
irqdomain: Refactor __irq_domain_alloc_irqs()

Johan Hovold <johan+linaro@xxxxxxxxxx>
irqdomain: Look for existing mapping only once

Ingo Molnar <mingo@xxxxxxxxxx>
irq: Fix typos in comments

Jan Kara <jack@xxxxxxx>
udf: Fix off-by-one error when discarding preallocation

Fedor Pchelkin <pchelkin@xxxxxxxxx>
nfc: change order inside nfc_se_io error path

Zhihao Cheng <chengzhihao1@xxxxxxxxxx>
ext4: zero i_disksize when initializing the bootloader inode

Ye Bin <yebin10@xxxxxxxxxx>
ext4: fix WARNING in ext4_update_inline_data

Ye Bin <yebin10@xxxxxxxxxx>
ext4: move where set the MAY_INLINE_DATA flag is set

Darrick J. Wong <djwong@xxxxxxxxxx>
ext4: fix another off-by-one fsmap error on 1k block filesystems

Eric Whitney <enwlinux@xxxxxxxxx>
ext4: fix RENAME_WHITEOUT handling for inline directories

Eric Biggers <ebiggers@xxxxxxxxxx>
ext4: fix cgroup writeback accounting with fs-layer encryption

Harry Wentland <harry.wentland@xxxxxxx>
drm/connector: print max_requested_bpc in state debugfs

Alex Deucher <alexander.deucher@xxxxxxx>
drm/amdgpu: fix error checking in amdgpu_read_mm_registers for soc15

Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
x86/CPU/AMD: Disable XSAVES on AMD family 0x17

Tobias Klauser <tklauser@xxxxxxxxxx>
fork: allow CLONE_NEWTIME in clone3 flags

Theodore Ts'o <tytso@xxxxxxx>
fs: prevent out-of-bounds array speculation when closing a file descriptor


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

Diffstat:

Makefile | 4 +-
arch/alpha/kernel/module.c | 4 +-
arch/arm64/include/asm/efi.h | 6 +-
arch/arm64/kernel/efi.c | 2 +-
arch/mips/include/asm/mach-rc32434/pci.h | 2 +-
arch/powerpc/boot/dts/fsl/t1040rdb-rev-a.dts | 1 -
arch/powerpc/include/asm/irq.h | 3 -
arch/powerpc/kernel/time.c | 4 +-
arch/powerpc/kernel/vmlinux.lds.S | 6 +-
arch/powerpc/platforms/44x/fsp2.c | 2 +-
arch/riscv/include/asm/ftrace.h | 2 +-
arch/riscv/include/asm/parse_asm.h | 5 +
arch/riscv/include/asm/patch.h | 2 +
arch/riscv/kernel/ftrace.c | 14 +-
arch/riscv/kernel/patch.c | 28 ++-
arch/riscv/kernel/stacktrace.c | 2 +-
arch/riscv/kernel/traps.c | 14 +-
arch/s390/kernel/vmlinux.lds.S | 2 +
arch/sh/kernel/vmlinux.lds.S | 1 +
arch/um/kernel/vmlinux.lds.S | 2 +-
arch/x86/kernel/cpu/amd.c | 9 +
arch/x86/kvm/vmx/evmcs.h | 11 -
arch/x86/kvm/vmx/vmx.c | 44 ++--
block/bfq-cgroup.c | 8 +-
block/bfq-iosched.c | 19 +-
drivers/char/ipmi/ipmi_watchdog.c | 8 +-
drivers/char/tpm/eventlog/acpi.c | 6 +-
drivers/clk/qcom/mmcc-apq8084.c | 271 ----------------------
drivers/gpu/drm/amd/amdgpu/soc15.c | 5 +-
drivers/gpu/drm/drm_atomic.c | 1 +
drivers/gpu/drm/i915/gt/intel_ring.c | 4 +-
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 8 +-
drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 16 +-
drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 4 +-
drivers/gpu/drm/msm/msm_gem_submit.c | 5 +-
drivers/gpu/drm/msm/msm_ringbuffer.c | 2 +-
drivers/gpu/drm/msm/msm_ringbuffer.h | 7 +-
drivers/gpu/drm/nouveau/dispnv50/disp.c | 16 --
drivers/gpu/drm/nouveau/dispnv50/wndw.c | 12 -
drivers/gpu/drm/nouveau/dispnv50/wndw.h | 7 +-
drivers/iommu/amd/init.c | 16 +-
drivers/iommu/intel/pasid.c | 28 ++-
drivers/irqchip/irq-aspeed-vic.c | 4 +-
drivers/irqchip/irq-bcm7120-l2.c | 2 +-
drivers/irqchip/irq-csky-apb-intc.c | 2 +-
drivers/irqchip/irq-gic-v2m.c | 2 +-
drivers/irqchip/irq-gic-v3-its.c | 10 +-
drivers/irqchip/irq-gic-v3.c | 2 +-
drivers/irqchip/irq-loongson-pch-pic.c | 2 +-
drivers/irqchip/irq-meson-gpio.c | 2 +-
drivers/irqchip/irq-mtk-cirq.c | 2 +-
drivers/irqchip/irq-mxs.c | 4 +-
drivers/irqchip/irq-sun4i.c | 2 +-
drivers/irqchip/irq-ti-sci-inta.c | 2 +-
drivers/irqchip/irq-vic.c | 4 +-
drivers/irqchip/irq-xilinx-intc.c | 2 +-
drivers/macintosh/windfarm_lm75_sensor.c | 4 +-
drivers/macintosh/windfarm_smu_sensors.c | 4 +-
drivers/media/i2c/ov5640.c | 2 +-
drivers/media/rc/gpio-ir-recv.c | 18 ++
drivers/net/ethernet/broadcom/bgmac.c | 8 +-
drivers/net/ethernet/broadcom/bgmac.h | 2 +
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 23 +-
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 +-
drivers/net/ethernet/mediatek/mtk_eth_soc.h | 1 +
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 +
drivers/net/phy/microchip.c | 32 +++
drivers/net/phy/phy_device.c | 8 +-
drivers/net/usb/lan78xx.c | 189 ++++++---------
drivers/nfc/fdp/i2c.c | 4 +
drivers/pci/pci-driver.c | 17 +-
drivers/pci/quirks.c | 8 +
drivers/platform/x86/Kconfig | 3 +-
drivers/s390/block/dasd_diag.c | 7 +-
drivers/s390/block/dasd_fba.c | 7 +-
drivers/s390/block/dasd_int.h | 1 -
drivers/scsi/hosts.c | 2 +
drivers/scsi/megaraid/megaraid_sas.h | 2 +
drivers/scsi/megaraid/megaraid_sas_fp.c | 2 +-
fs/ext4/block_validity.c | 26 ++-
fs/ext4/ext4.h | 3 +
fs/ext4/fsmap.c | 2 +
fs/ext4/inline.c | 1 -
fs/ext4/inode.c | 7 +-
fs/ext4/ioctl.c | 1 +
fs/ext4/mballoc.c | 205 +++++++++-------
fs/ext4/namei.c | 36 ++-
fs/ext4/page-io.c | 11 +-
fs/ext4/xattr.c | 3 +
fs/file.c | 1 +
fs/udf/inode.c | 2 +-
include/asm-generic/vmlinux.lds.h | 5 +
include/linux/irq.h | 4 +-
include/linux/irqdesc.h | 2 +-
include/linux/irqdomain.h | 2 +-
include/linux/pci_ids.h | 2 +
include/net/netfilter/nf_tproxy.h | 7 +
kernel/bpf/btf.c | 1 +
kernel/fork.c | 2 +-
kernel/irq/chip.c | 2 +-
kernel/irq/dummychip.c | 2 +-
kernel/irq/irqdesc.c | 2 +-
kernel/irq/irqdomain.c | 262 +++++++++++++--------
kernel/irq/manage.c | 6 +-
kernel/irq/msi.c | 2 +-
kernel/irq/timings.c | 2 +-
kernel/sched/core.c | 10 +-
kernel/sched/fair.c | 183 ++++++++++++---
kernel/sched/sched.h | 70 +++++-
kernel/watch_queue.c | 1 +
net/caif/caif_usb.c | 3 +
net/core/dev.c | 1 +
net/core/skbuff.c | 1 -
net/ipv4/netfilter/nf_tproxy_ipv4.c | 2 +-
net/ipv6/ila/ila_xlat.c | 1 +
net/ipv6/netfilter/nf_tproxy_ipv6.c | 2 +-
net/netfilter/nf_conntrack_netlink.c | 14 +-
net/nfc/netlink.c | 2 +-
net/smc/af_smc.c | 13 +-
net/sunrpc/svc.c | 6 +-
scripts/checkkconfigsymbols.py | 13 +-
scripts/clang-tools/run-clang-tools.py | 21 +-
scripts/diffconfig | 16 +-
tools/testing/selftests/netfilter/nft_nat.sh | 2 +
124 files changed, 1093 insertions(+), 872 deletions(-)