2024-04-01 16:57:57

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 6.1 000/272] 6.1.84-rc1 review

This is the start of the stable review cycle for the 6.1.84 release.
There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
and the diffstat can be found below.

thanks,

greg k-h

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

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

Natanael Copa <[email protected]>
tools/resolve_btfids: fix build with musl libc

Alan Stern <[email protected]>
USB: core: Fix deadlock in usb_deauthorize_interface()

Kevin Loughlin <[email protected]>
x86/sev: Skip ROM range scans and validation for SEV-SNP guests

Xingui Yang <[email protected]>
scsi: libsas: Fix disk not being scanned in after being removed

Xingui Yang <[email protected]>
scsi: libsas: Add a helper sas_get_sas_addr_and_dev_type()

Muhammad Usama Anjum <[email protected]>
scsi: lpfc: Correct size for wqe for memset()

Muhammad Usama Anjum <[email protected]>
scsi: lpfc: Correct size for cmdwqe/rspwqe for memset()

Sabrina Dubroca <[email protected]>
tls: fix use-after-free on failed backlog decryption

Kim Phillips <[email protected]>
x86/cpu: Enable STIBP on AMD if Automatic IBRS is enabled

Quinn Tran <[email protected]>
scsi: qla2xxx: Delay I/O Abort on PCI error

Saurav Kashyap <[email protected]>
scsi: qla2xxx: Change debug message during driver unload

Saurav Kashyap <[email protected]>
scsi: qla2xxx: Fix double free of fcport

Quinn Tran <[email protected]>
scsi: qla2xxx: Fix command flush on cable pull

Quinn Tran <[email protected]>
scsi: qla2xxx: NVME|FCP prefer flag not being honored

Bikash Hazarika <[email protected]>
scsi: qla2xxx: Update manufacturer detail

Quinn Tran <[email protected]>
scsi: qla2xxx: Split FCE|EFT trace control

Quinn Tran <[email protected]>
scsi: qla2xxx: Fix N2N stuck connection

Quinn Tran <[email protected]>
scsi: qla2xxx: Prevent command send on chip reset

Christian A. Ehrhardt <[email protected]>
usb: typec: ucsi: Clear UCSI_CCI_RESET_COMPLETE before reset

Christian A. Ehrhardt <[email protected]>
usb: typec: ucsi_acpi: Refactor and fix DELL quirk

Christian A. Ehrhardt <[email protected]>
usb: typec: ucsi: Ack unsupported commands

Christian A. Ehrhardt <[email protected]>
usb: typec: ucsi: Check for notifications after init

Christian A. Ehrhardt <[email protected]>
usb: typec: ucsi: Clear EVENT_PENDING under PPM lock

Kyle Tso <[email protected]>
usb: typec: Return size of buffer if pd_set operation succeeds

yuan linyu <[email protected]>
usb: udc: remove warning when queue disabled ep

Minas Harutyunyan <[email protected]>
usb: dwc2: gadget: LPM flow fix

Minas Harutyunyan <[email protected]>
usb: dwc2: gadget: Fix exiting from clock gating

Minas Harutyunyan <[email protected]>
usb: dwc2: host: Fix ISOC flow in DDMA mode

Minas Harutyunyan <[email protected]>
usb: dwc2: host: Fix hibernation flow

Minas Harutyunyan <[email protected]>
usb: dwc2: host: Fix remote wakeup from hibernation

Damien Le Moal <[email protected]>
scsi: sd: Fix TCG OPAL unlock on system resume

Alan Stern <[email protected]>
USB: core: Fix deadlock in port "disable" sysfs attribute

Alan Stern <[email protected]>
USB: core: Add hub_get() and hub_put() routines

Dan Carpenter <[email protected]>
staging: vc04_services: fix information leak in create_component()

Arnd Bergmann <[email protected]>
staging: vc04_services: changen strncpy() to strscpy_pad()

Guilherme G. Piccoli <[email protected]>
scsi: core: Fix unremoved procfs host directory regression

Duoming Zhou <[email protected]>
ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs

Roger Quadros <[email protected]>
usb: dwc3-am62: fix module unload/reload behavior

Ladislav Michl <[email protected]>
usb: dwc3-am62: Rename private data

Weitao Wang <[email protected]>
USB: UAS: return ENODEV when submit urbs fail with device not attached

Oliver Neukum <[email protected]>
usb: cdc-wdm: close race between read and workqueue

Alexander Stein <[email protected]>
Revert "usb: phy: generic: Get the vbus supply"

Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_sync: Fix not checking error on hci_cmd_sync_cancel_sync

Chris Wilson <[email protected]>
drm/i915/gt: Reset queue_priority_hint on parking

Ville Syrjälä <[email protected]>
drm/i915/bios: Tolerate devdata==NULL in intel_bios_encoder_supports_dp_dual_mode()

Eric Huang <[email protected]>
drm/amdkfd: fix TLB flush after unmap for GFX9.4.2

Jocelyn Falempe <[email protected]>
drm/vmwgfx: Create debugfs ttm_resource_manager entry only if needed

Claus Hansen Ries <[email protected]>
net: ll_temac: platform_get_resource replaced by wrong function

Duoming Zhou <[email protected]>
nouveau/dmem: handle kcalloc() allocation failure

Ye Zhang <[email protected]>
thermal: devfreq_cooling: Fix perf state when calculate dfc res_util

Damien Le Moal <[email protected]>
block: Do not force full zone append completion in req_bio_endio()

Mikko Rapeli <[email protected]>
mmc: core: Avoid negative index with array access

Mikko Rapeli <[email protected]>
mmc: core: Initialize mmc_blk_ioc_data

Romain Naour <[email protected]>
mmc: sdhci-omap: re-tuning is needed after a pm transition to support emmc HS200 mode

Nathan Chancellor <[email protected]>
hexagon: vmlinux.lds.S: handle attributes section

Max Filippov <[email protected]>
exec: Fix NOMMU linux_binprm::exec in transfer_args_to_stack()

Johannes Berg <[email protected]>
wifi: iwlwifi: fw: don't always use FW dump trig

Felix Fietkau <[email protected]>
wifi: mac80211: check/clear fast rx for non-4addr sta VLAN changes

Johannes Thumshirn <[email protected]>
btrfs: zoned: use zone aware sb location for scrub

Johannes Thumshirn <[email protected]>
btrfs: zoned: don't skip block groups with 100% zone unusable

Ard Biesheuvel <[email protected]>
efi/libstub: Cast away type warning in use of max()

Ard Biesheuvel <[email protected]>
x86/efistub: Add missing boot_params for mixed mode compat entry

John Sperbeck <[email protected]>
init: open /initrd.image with O_LARGEFILE

Zi Yan <[email protected]>
mm/migrate: set swap entry values of THP tail pages properly.

Ard Biesheuvel <[email protected]>
x86/sev: Fix position dependent variable references in startup code

Borislav Petkov (AMD) <[email protected]>
x86/Kconfig: Remove CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT

Borislav Petkov (AMD) <[email protected]>
x86/coco: Get rid of accessor functions

Borislav Petkov (AMD) <[email protected]>
x86/coco: Export cc_vendor

Alex Williamson <[email protected]>
vfio/fsl-mc: Block calling interrupt handler without trigger

Alex Williamson <[email protected]>
vfio/platform: Create persistent IRQ handlers

Alex Williamson <[email protected]>
vfio/pci: Create persistent INTx handler

Alex Williamson <[email protected]>
vfio: Introduce interface to flush virqfd inject workqueue

Alex Williamson <[email protected]>
vfio/pci: Disable auto-enable of exclusive INTx IRQ

Geliang Tang <[email protected]>
selftests: mptcp: diag: return KSFT_FAIL not test_cnt

Chengming Zhou <[email protected]>
blk-mq: release scheduler resource when request completes

Tony Battersby <[email protected]>
block: Fix page refcounts for unaligned buffers in __bio_release_pages()

Rickard x Andersson <[email protected]>
tty: serial: imx: Fix broken RS485

Zoltan HERPAI <[email protected]>
pwm: img: fix pwm clock lookup

Oleksandr Tymoshenko <[email protected]>
efi: fix panic in kdump kernel

Adamos Ttofari <[email protected]>
x86/fpu: Keep xfd_state in sync with MSR_IA32_XFD

KONDO KAZUMA(近藤 和真) <[email protected]>
efi/libstub: fix efi_random_alloc() to allocate memory at alloc_min or higher address

Masami Hiramatsu (Google) <[email protected]>
kprobes/x86: Use copy_from_kernel_nofault() to read from unsafe address

Biju Das <[email protected]>
irqchip/renesas-rzg2l: Prevent spurious interrupts when setting trigger type

Biju Das <[email protected]>
irqchip/renesas-rzg2l: Rename rzg2l_irq_eoi()

Biju Das <[email protected]>
irqchip/renesas-rzg2l: Rename rzg2l_tint_eoi()

Claudiu Beznea <[email protected]>
irqchip/renesas-rzg2l: Add macro to retrieve TITSR register offset based on register's index

Biju Das <[email protected]>
irqchip/renesas-rzg2l: Flush posted write in irq_eoi()

Claudiu Beznea <[email protected]>
irqchip/renesas-rzg2l: Implement restriction when writing ISCR register

John Ogness <[email protected]>
printk: Update @console_may_schedule in console_trylock_spinning()

Nicolin Chen <[email protected]>
iommu/dma: Force swiotlb_max_mapping_size on an untrusted device

Will Deacon <[email protected]>
swiotlb: Fix alignment checks when both allocation and DMA masks are present

David Laight <[email protected]>
minmax: add umin(a, b) and umax(a, b)

André Rösti <[email protected]>
entry: Respect changes to system call number by trace_sys_enter()

Martin Blumenstingl <[email protected]>
clocksource/drivers/arm_global_timer: Fix maximum prescaler value

Charan Teja Kalla <[email protected]>
iommu: Avoid races around default domain allocations

Jiawei Wang <[email protected]>
ASoC: amd: yc: Revert "Fix non-functional mic on Lenovo 21J2"

Jakub Kicinski <[email protected]>
net: tls: handle backlogging of crypto requests

Ard Biesheuvel <[email protected]>
x86/efistub: Call mixed mode boot services on the firmware's stack

Alex Deucher <[email protected]>
drm/amd/display: handle range offsets in VRR ranges

Heiner Kallweit <[email protected]>
i2c: i801: Avoid potential double call to gpiod_remove_lookup_table

Cosmin Tanislav <[email protected]>
iio: accel: adxl367: fix I2C FIFO data register

Cosmin Tanislav <[email protected]>
iio: accel: adxl367: fix DEVID read after reset

Vlastimil Babka <[email protected]>
mm, vmscan: prevent infinite loop for costly GFP_NOIO | __GFP_RETRY_MAYFAIL allocations

Sumit Garg <[email protected]>
tee: optee: Fix kernel panic caused by incorrect error handling

Andy Chi <[email protected]>
ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook

Kailang Yang <[email protected]>
ALSA: hda/realtek - Add Headset Mic supported Acer NB platform

Bart Van Assche <[email protected]>
fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion

Nicolas Pitre <[email protected]>
vt: fix unicode buffer corruption when deleting characters

Alexander Usyskin <[email protected]>
mei: me: add arrow lake point H DID

Alexander Usyskin <[email protected]>
mei: me: add arrow lake point S DID

Hans de Goede <[email protected]>
misc: lis3lv02d_i2c: Fix regulators getting en-/dis-abled twice on suspend/resume

Peter Collingbourne <[email protected]>
serial: 8250_dw: Do not reclock if already at correct rate

Sherry Sun <[email protected]>
tty: serial: fsl_lpuart: avoid idle preamble pending if CTS is enabled

Mathias Nyman <[email protected]>
usb: port: Don't try to peer unused USB ports based on location

Krishna Kurapati <[email protected]>
usb: gadget: ncm: Fix handling of zero block length packets

Alan Stern <[email protected]>
USB: usb-storage: Prevent divide-by-0 error in isd200_ata_command

Kailang Yang <[email protected]>
ALSA: hda/realtek - Fix headset Mic no show at resume back for Lenovo ALC897 platform

Nirmoy Das <[email protected]>
drm/i915: Check before removing mm notifier

Ma Jun <[email protected]>
drm/amdgpu/pm: Fix the error of pwm1_enable setting

Steven Rostedt (Google) <[email protected]>
tracing: Use .flush() call to wake up readers

Sean Christopherson <[email protected]>
KVM: SVM: Flush pages under kvm->lock to fix UAF in svm_register_enc_region()

Sean Christopherson <[email protected]>
KVM: x86: Mark target gfn of emulated atomic instruction as dirty

Kees Cook <[email protected]>
init/Kconfig: lower GCC version check for -Warray-bounds

Nathan Chancellor <[email protected]>
xfrm: Avoid clang fortify warning in copy_to_user_tmpl()

Michael Kelley <[email protected]>
Drivers: hv: vmbus: Calculate ring buffer size for more efficient use of memory

Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: reject constant set with timeout

Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: disallow anonymous set with timeout flag

Pablo Neira Ayuso <[email protected]>
netfilter: nf_tables: mark set as dead when unbinding anonymous set with timeout

Jakub Kicinski <[email protected]>
tls: fix race between tx work scheduling and socket close

Hans de Goede <[email protected]>
platform/x86: p2sb: On Goldmont only cache P2SB and SPI devfn BAR

Greg Kroah-Hartman <[email protected]>
cpufreq: brcmstb-avs-cpufreq: fix up "add check for cpufreq_cpu_get's return value"

Anton Altaparmakov <[email protected]>
x86/pm: Work around false positive kmemleak report in msr_build_context()

Mikulas Patocka <[email protected]>
dm snapshot: fix lockup in dm_exception_table_exit

Leo Ma <[email protected]>
drm/amd/display: Fix noise issue on HDMI AV mute

Rodrigo Siqueira <[email protected]>
drm/amd/display: Return the correct HDCP error code

Philip Yang <[email protected]>
drm/amdgpu: amdgpu_ttm_gart_bind set gtt bound flag

Conrad Kostecki <[email protected]>
ahci: asm1064: asm1166: don't limit reported ports

Andrey Jr. Melnikov <[email protected]>
ahci: asm1064: correct count of reported ports

Jason A. Donenfeld <[email protected]>
wireguard: netlink: access device through ctx instead of peer

Jason A. Donenfeld <[email protected]>
wireguard: netlink: check for dangling peer via is_dead instead of empty list

Huacai Chen <[email protected]>
LoongArch: Define the __io_aw() hook as mmiowb()

Huacai Chen <[email protected]>
LoongArch: Change __my_cpu_offset definition to avoid mis-optimization

Steven Rostedt (Google) <[email protected]>
net: hns3: tracing: fix hclgevf trace event strings

Steven Rostedt (Google) <[email protected]>
NFSD: Fix nfsd_clid_class use of __string_len() macro

Borislav Petkov (AMD) <[email protected]>
x86/CPU/AMD: Update the Zenbleed microcode revisions

Marek Szyprowski <[email protected]>
cpufreq: dt: always allocate zeroed cpumask

Eugene Korenevsky <[email protected]>
cifs: open_cached_dir(): add FILE_READ_EA to desired access

Ryusuke Konishi <[email protected]>
nilfs2: prevent kernel bug at submit_bh_wbc()

Ryusuke Konishi <[email protected]>
nilfs2: fix failure to detect DAT corruption in btree and direct mappings

Sunmin Jeong <[email protected]>
f2fs: truncate page cache before clearing flags when aborting atomic write

Sunmin Jeong <[email protected]>
f2fs: mark inode dirty for FI_ATOMIC_COMMITTED flag

Bart Van Assche <[email protected]>
Revert "block/mq-deadline: use correct way to throttling write requests"

Qiang Zhang <[email protected]>
memtest: use {READ,WRITE}_ONCE in memory scanning

Jani Nikula <[email protected]>
drm/vc4: hdmi: do not return negative values from .get_modes()

Jani Nikula <[email protected]>
drm/imx/ipuv3: do not return negative values from .get_modes()

Jani Nikula <[email protected]>
drm/exynos: do not return negative values from .get_modes()

Jani Nikula <[email protected]>
drm/panel: do not return negative error codes from drm_panel_get_modes()

Jani Nikula <[email protected]>
drm/probe-helper: warn about negative .get_modes()

Harald Freudenberger <[email protected]>
s390/zcrypt: fix reference counting on zcrypt card objects

Sean Anderson <[email protected]>
soc: fsl: qbman: Use raw spinlock for cgr_lock

Sean Anderson <[email protected]>
soc: fsl: qbman: Always disable interrupts when taking cgr_lock

Steven Rostedt (Google) <[email protected]>
ring-buffer: Use wait_event_interruptible() in ring_buffer_wait()

Steven Rostedt (Google) <[email protected]>
ring-buffer: Fix full_waiters_pending in poll

Steven Rostedt (Google) <[email protected]>
ring-buffer: Fix resetting of shortest_full

Steven Rostedt (Google) <[email protected]>
ring-buffer: Do not set shortest_full when full target is hit

Steven Rostedt (Google) <[email protected]>
ring-buffer: Fix waking up ring buffer readers

Marios Makassikis <[email protected]>
ksmbd: retrieve number of blocks using vfs_getattr in set_file_allocation_info

Alex Williamson <[email protected]>
vfio/platform: Disable virqfds on cleanup

Alex Williamson <[email protected]>
vfio/pci: Lock external INTx masking ops

Reinette Chatre <[email protected]>
vfio/pci: Remove negative check on unsigned vector

Reinette Chatre <[email protected]>
vfio/pci: Consolidate irq cleanup on MSI/MSI-X disable

Jason Gunthorpe <[email protected]>
vfio: Use GFP_KERNEL_ACCOUNT for userspace persistent allocations

Michael Kelley <[email protected]>
PCI: hv: Fix ring buffer size calculation

Niklas Cassel <[email protected]>
PCI: dwc: endpoint: Fix advertised resizable BAR size

Manivannan Sadhasivam <[email protected]>
PCI: qcom: Enable BDF to SID translation properly

Manivannan Sadhasivam <[email protected]>
PCI: qcom: Rename qcom_pcie_config_sid_sm8250() to reflect IP version

Nathan Chancellor <[email protected]>
kbuild: Move -Wenum-{compare-conditional,enum-conversion} into W=1

Josef Bacik <[email protected]>
nfs: fix UAF in direct writes

Sam Ravnborg <[email protected]>
sparc32: Fix parport build with sparc32

Rob Herring <[email protected]>
sparc: Explicitly include correct DT includes

Jens Axboe <[email protected]>
io_uring/net: correctly handle multishot recvmsg retry setup

Stanislaw Gruszka <[email protected]>
PCI/AER: Block runtime suspend when handling errors

Samuel Thibault <[email protected]>
speakup: Fix 8bit characters from direct synth

Wayne Chang <[email protected]>
usb: gadget: tegra-xudc: Fix USB3 PHY retrieval logic

Wayne Chang <[email protected]>
phy: tegra: xusb: Add API to retrieve the port number of phy

Christophe JAILLET <[email protected]>
slimbus: core: Remove usage of the deprecated ida_simple_xx() API

Jerome Brunet <[email protected]>
nvmem: meson-efuse: fix function pointer type mismatch

Maximilian Heyne <[email protected]>
ext4: fix corruption during on-line resize

Josua Mayer <[email protected]>
hwmon: (amc6821) add of_match table

Mickaël Salaün <[email protected]>
landlock: Warn once if a Landlock action is requested while disabled

Christian Gmeiner <[email protected]>
drm/etnaviv: Restore some id values

Dominique Martinet <[email protected]>
mmc: core: Fix switch on gp3 partition

Ryan Roberts <[email protected]>
mm: swap: fix race between free_swap_and_cache() and swapoff()

Huang Ying <[email protected]>
swap: comments get_swap_device() with usage rule

Fedor Pchelkin <[email protected]>
mac802154: fix llsec key resources release in mac802154_llsec_key_del

Nathan Chancellor <[email protected]>
powerpc: xor_vmx: Add '-mhard-float' to CFLAGS

Yu Kuai <[email protected]>
dm-raid: fix lockdep waring in "pers->hot_add_disk"

Jarred White <[email protected]>
ACPI: CPPC: Use access_width over bit_width for system memory accesses

Paul Menzel <[email protected]>
PCI/DPC: Quirk PIO log size for Intel Raptor Lake Root Ports

Rafael J. Wysocki <[email protected]>
PCI/PM: Drain runtime-idle callbacks before driver removal

Filipe Manana <[email protected]>
btrfs: fix off-by-one chunk length calculation at contains_pending_extent()

Qu Wenruo <[email protected]>
btrfs: qgroup: always free reserved space for extent records

Peter Collingbourne <[email protected]>
serial: Lock console when calling into driver before registration

Jameson Thies <[email protected]>
usb: typec: ucsi: Clean up UCSI_CABLE_PROP macros

Miklos Szeredi <[email protected]>
fuse: don't unhash root

Miklos Szeredi <[email protected]>
fuse: fix root lookup with nonzero generation

Wolfram Sang <[email protected]>
mmc: tmio: avoid concurrent runs of mmc_request_done()

Qingliang Li <[email protected]>
PM: sleep: wakeirq: fix wake irq warning in system suspend

Toru Katagiri <[email protected]>
USB: serial: cp210x: add pid/vid for TDK NC0110013M and MM0110113M

David Woodhouse <[email protected]>
KVM: x86/xen: inject vCPU upcall vector when local APIC is enabled

Aurélien Jacobs <[email protected]>
USB: serial: option: add MeiG Smart SLM320 product

Christian Häggström <[email protected]>
USB: serial: cp210x: add ID for MGP Instruments PDS100

Cameron Williams <[email protected]>
USB: serial: add device ID for VeriFone adapter

Daniel Vogelbacher <[email protected]>
USB: serial: ftdi_sio: add support for GMC Z216C Adapter IR-USB

Michael Ellerman <[email protected]>
powerpc/fsl: Fix mfpmr build errors with newer binutils

Prashanth K <[email protected]>
usb: xhci: Add error handling in xhci_map_urb_for_dma

Gabor Juhos <[email protected]>
clk: qcom: mmcc-msm8974: fix terminating of frequency table arrays

Gabor Juhos <[email protected]>
clk: qcom: mmcc-apq8084: fix terminating of frequency table arrays

Gabor Juhos <[email protected]>
clk: qcom: gcc-ipq8074: fix terminating of frequency table arrays

Gabor Juhos <[email protected]>
clk: qcom: gcc-ipq6018: fix terminating of frequency table arrays

Maulik Shah <[email protected]>
PM: suspend: Set mem_sleep_current during kernel command line setup

Shivnandan Kumar <[email protected]>
cpufreq: Limit resolving a frequency to policy min/max

Gui-Dong Han <[email protected]>
md/raid5: fix atomicity violation in raid5_cache_count

Guenter Roeck <[email protected]>
parisc: Strip upper 32 bit of sum in csum_ipv6_magic for 64-bit builds

Guenter Roeck <[email protected]>
parisc: Fix csum_ipv6_magic on 64-bit systems

Guenter Roeck <[email protected]>
parisc: Fix csum_ipv6_magic on 32-bit systems

Guenter Roeck <[email protected]>
parisc: Fix ip_fast_csum

John David Anglin <[email protected]>
parisc: Avoid clobbering the C/B bits in the PSW with tophys and tovirt macros

Guenter Roeck <[email protected]>
parisc/unaligned: Rewrite 64-bit inline assembly of emulate_ldd()

Arseniy Krasnov <[email protected]>
mtd: rawnand: meson: fix scrambling mode value in command macro

Zhang Yi <[email protected]>
ubi: correct the calculation of fastmap size

Richard Weinberger <[email protected]>
ubi: Check for too small LEB size in VTBL code

Matthew Wilcox (Oracle) <[email protected]>
ubifs: Set page uptodate in the correct place

Jan Kara <[email protected]>
fat: fix uninitialized field in nostale filehandles

Matthew Wilcox (Oracle) <[email protected]>
bounds: support non-power-of-two CONFIG_NR_CPUS

Arnd Bergmann <[email protected]>
kasan/test: avoid gcc warning for intentional overflow

Damien Le Moal <[email protected]>
block: Clear zone limits for a non-zoned stacked queue

Baokun Li <[email protected]>
ext4: correct best extent lstart adjustment logic

SeongJae Park <[email protected]>
selftests/mqueue: Set timeout to 180 seconds

Damian Muszynski <[email protected]>
crypto: qat - resolve race condition during AER recovery

Svyatoslav Pankratov <[email protected]>
crypto: qat - fix double free during reset

Randy Dunlap <[email protected]>
sparc: vDSO: fix return value of __setup handler

Randy Dunlap <[email protected]>
sparc64: NMI watchdog: fix return value of __setup handler

Michael Ellerman <[email protected]>
powerpc/smp: Increase nr_cpu_ids to include the boot CPU

Michael Ellerman <[email protected]>
powerpc/smp: Adjust nr_cpu_ids to cover all threads of a core

Tor Vic <[email protected]>
cpufreq: amd-pstate: Fix min_perf assignment in amd_pstate_adjust_perf()

Sean Christopherson <[email protected]>
KVM: Always flush async #PF workqueue when vCPU is being destroyed

Laurent Pinchart <[email protected]>
media: mc: Expand MUST_CONNECT flag to always require an enabled link

Laurent Pinchart <[email protected]>
media: mc: Rename pad variable to clarify intent

Laurent Pinchart <[email protected]>
media: mc: Add num_links flag to media_pad

Laurent Pinchart <[email protected]>
media: mc: Fix flags handling when creating pad links

Laurent Pinchart <[email protected]>
media: mc: Add local pad to pipeline regardless of the link state

Gui-Dong Han <[email protected]>
media: xc4000: Fix atomicity violation in xc4000_get_frequency

Philipp Stanner <[email protected]>
pci_iounmap(): Fix MMIO mapping leak

Hugo Villeneuve <[email protected]>
serial: max310x: fix NULL pointer dereference in I2C instantiation

Zack Rusin <[email protected]>
drm/vmwgfx: Fix possible null pointer derefence with invalid contexts

Duje Mihanović <[email protected]>
arm: dts: marvell: Fix maxium->maxim typo in brownstone dts

Roberto Sassu <[email protected]>
smack: Handle SMACK64TRANSMUTE in smack_inode_setsecurity()

Roberto Sassu <[email protected]>
smack: Set SMACK64TRANSMUTE only for dirs in smack_inode_setxattr()

Amit Pundir <[email protected]>
clk: qcom: gcc-sdm845: Add soft dependency on rpmhpd

Joakim Zhang <[email protected]>
remoteproc: virtio: Fix wdg cannot recovery remote processor

Krishna chaitanya chundru <[email protected]>
arm64: dts: qcom: sc7280: Add additional MSI interrupts

Hidenori Kobayashi <[email protected]>
media: staging: ipu3-imgu: Set fields before media_entity_pads_init()

Zheng Wang <[email protected]>
wifi: brcmfmac: Fix use-after-free bug in brcmf_cfg80211_detach

Thomas Gleixner <[email protected]>
timers: Rename del_timer_sync() to timer_delete_sync()

Thomas Gleixner <[email protected]>
timers: Use del_timer_sync() even on UP

Thomas Gleixner <[email protected]>
timers: Update kernel-doc for various functions

Jim Mattson <[email protected]>
KVM: x86: Use a switch statement and macros in __feature_translate()

Jim Mattson <[email protected]>
KVM: x86: Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace

Sean Christopherson <[email protected]>
KVM: x86: Update KVM-only leaf handling to allow for 100% KVM-only leafs

Borislav Petkov <[email protected]>
x86/bugs: Use sysfs_emit()

Kim Phillips <[email protected]>
x86/cpu: Support AMD Automatic IBRS


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

Diffstat:

Documentation/admin-guide/hw-vuln/spectre.rst | 17 +-
Documentation/admin-guide/kernel-parameters.txt | 10 +-
.../userspace-api/media/mediactl/media-types.rst | 11 +-
Documentation/x86/amd-memory-encryption.rst | 16 +-
Makefile | 4 +-
arch/arm/boot/dts/mmp2-brownstone.dts | 2 +-
arch/arm64/boot/dts/qcom/sc7280.dtsi | 12 +-
arch/hexagon/kernel/vmlinux.lds.S | 1 +
arch/loongarch/include/asm/io.h | 2 +
arch/loongarch/include/asm/percpu.h | 7 +-
arch/parisc/include/asm/assembly.h | 18 +-
arch/parisc/include/asm/checksum.h | 10 +-
arch/parisc/kernel/unaligned.c | 27 +--
arch/powerpc/include/asm/reg_fsl_emb.h | 11 +-
arch/powerpc/kernel/prom.c | 12 +
arch/powerpc/lib/Makefile | 2 +-
arch/sparc/crypto/crop_devid.c | 2 +-
arch/sparc/include/asm/floppy_32.h | 2 +-
arch/sparc/include/asm/floppy_64.h | 2 +-
arch/sparc/include/asm/parport.h | 258 +--------------------
arch/sparc/include/asm/parport_64.h | 256 ++++++++++++++++++++
arch/sparc/kernel/apc.c | 2 +-
arch/sparc/kernel/auxio_32.c | 1 -
arch/sparc/kernel/auxio_64.c | 3 +-
arch/sparc/kernel/central.c | 2 +-
arch/sparc/kernel/chmc.c | 3 +-
arch/sparc/kernel/ioport.c | 2 +-
arch/sparc/kernel/leon_kernel.c | 2 -
arch/sparc/kernel/leon_pci.c | 3 +-
arch/sparc/kernel/leon_pci_grpci1.c | 3 +-
arch/sparc/kernel/leon_pci_grpci2.c | 4 +-
arch/sparc/kernel/nmi.c | 2 +-
arch/sparc/kernel/of_device_32.c | 2 +-
arch/sparc/kernel/of_device_64.c | 4 +-
arch/sparc/kernel/of_device_common.c | 4 +-
arch/sparc/kernel/pci.c | 3 +-
arch/sparc/kernel/pci_common.c | 3 +-
arch/sparc/kernel/pci_fire.c | 3 +-
arch/sparc/kernel/pci_impl.h | 1 -
arch/sparc/kernel/pci_msi.c | 2 +
arch/sparc/kernel/pci_psycho.c | 4 +-
arch/sparc/kernel/pci_sun4v.c | 3 +-
arch/sparc/kernel/pmc.c | 2 +-
arch/sparc/kernel/power.c | 3 +-
arch/sparc/kernel/prom_irqtrans.c | 1 +
arch/sparc/kernel/psycho_common.c | 1 +
arch/sparc/kernel/sbus.c | 3 +-
arch/sparc/kernel/time_32.c | 1 -
arch/sparc/mm/io-unit.c | 3 +-
arch/sparc/mm/iommu.c | 5 +-
arch/sparc/vdso/vma.c | 7 +-
arch/x86/Kconfig | 13 --
arch/x86/boot/compressed/efi_mixed.S | 29 ++-
arch/x86/coco/core.c | 20 +-
arch/x86/coco/tdx/tdx.c | 2 +-
arch/x86/include/asm/asm.h | 14 ++
arch/x86/include/asm/coco.h | 10 +-
arch/x86/include/asm/cpufeatures.h | 1 +
arch/x86/include/asm/mem_encrypt.h | 15 +-
arch/x86/include/asm/msr-index.h | 2 +
arch/x86/include/asm/sev.h | 4 +-
arch/x86/include/asm/suspend_32.h | 10 +-
arch/x86/include/asm/x86_init.h | 3 +-
arch/x86/kernel/cpu/amd.c | 10 +-
arch/x86/kernel/cpu/bugs.c | 138 +++++------
arch/x86/kernel/cpu/common.c | 19 +-
arch/x86/kernel/cpu/mshyperv.c | 2 +-
arch/x86/kernel/eisa.c | 3 +-
arch/x86/kernel/fpu/xstate.c | 5 +-
arch/x86/kernel/fpu/xstate.h | 14 +-
arch/x86/kernel/kprobes/core.c | 11 +-
arch/x86/kernel/probe_roms.c | 10 -
arch/x86/kernel/setup.c | 3 +-
arch/x86/kernel/sev-shared.c | 12 +-
arch/x86/kernel/sev.c | 31 ++-
arch/x86/kernel/x86_init.c | 2 +
arch/x86/kvm/cpuid.c | 29 ++-
arch/x86/kvm/lapic.c | 5 +-
arch/x86/kvm/reverse_cpuid.h | 42 +++-
arch/x86/kvm/svm/sev.c | 18 +-
arch/x86/kvm/x86.c | 10 +
arch/x86/kvm/xen.c | 2 +-
arch/x86/kvm/xen.h | 18 ++
arch/x86/mm/mem_encrypt_amd.c | 18 ++
arch/x86/mm/mem_encrypt_identity.c | 38 ++-
block/bio.c | 11 +-
block/blk-mq.c | 33 ++-
block/blk-settings.c | 4 +
block/mq-deadline.c | 3 +-
drivers/accessibility/speakup/synth.c | 4 +-
drivers/acpi/cppc_acpi.c | 31 ++-
drivers/ata/ahci.c | 5 -
drivers/ata/libata-eh.c | 5 +-
drivers/ata/libata-scsi.c | 9 +
drivers/base/power/wakeirq.c | 4 +-
drivers/clk/qcom/gcc-ipq6018.c | 2 +
drivers/clk/qcom/gcc-ipq8074.c | 2 +
drivers/clk/qcom/gcc-sdm845.c | 1 +
drivers/clk/qcom/mmcc-apq8084.c | 2 +
drivers/clk/qcom/mmcc-msm8974.c | 2 +
drivers/clocksource/arm_global_timer.c | 2 +-
drivers/cpufreq/amd-pstate.c | 2 +-
drivers/cpufreq/brcmstb-avs-cpufreq.c | 5 +-
drivers/cpufreq/cpufreq-dt.c | 2 +-
drivers/crypto/qat/qat_common/adf_aer.c | 23 +-
drivers/firmware/efi/efi.c | 2 +
drivers/firmware/efi/libstub/randomalloc.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 +
drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +-
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 19 +-
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 12 +-
.../gpu/drm/amd/display/modules/hdcp/hdcp_psp.c | 3 +
drivers/gpu/drm/amd/pm/amdgpu_pm.c | 12 +-
drivers/gpu/drm/drm_panel.c | 17 +-
drivers/gpu/drm/drm_probe_helper.c | 7 +
drivers/gpu/drm/etnaviv/etnaviv_drv.c | 2 +-
drivers/gpu/drm/etnaviv/etnaviv_hwdb.c | 9 +
drivers/gpu/drm/exynos/exynos_drm_vidi.c | 4 +-
drivers/gpu/drm/exynos/exynos_hdmi.c | 4 +-
drivers/gpu/drm/i915/display/intel_bios.c | 3 +
drivers/gpu/drm/i915/gem/i915_gem_userptr.c | 3 +
drivers/gpu/drm/i915/gt/intel_engine_pm.c | 3 -
.../gpu/drm/i915/gt/intel_execlists_submission.c | 3 +
drivers/gpu/drm/imx/parallel-display.c | 4 +-
drivers/gpu/drm/nouveau/nouveau_dmem.c | 12 +-
drivers/gpu/drm/vc4/vc4_hdmi.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 15 +-
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 14 +-
drivers/hwmon/amc6821.c | 11 +
drivers/i2c/busses/i2c-i801.c | 4 +-
drivers/iio/accel/adxl367.c | 8 +-
drivers/iio/accel/adxl367_i2c.c | 2 +-
drivers/iommu/dma-iommu.c | 9 +
drivers/iommu/iommu.c | 3 +
drivers/irqchip/irq-renesas-rzg2l.c | 93 +++++---
drivers/md/dm-raid.c | 2 +
drivers/md/dm-snap.c | 4 +-
drivers/md/raid5.c | 14 +-
drivers/media/mc/mc-entity.c | 93 ++++++--
drivers/media/tuners/xc4000.c | 4 +-
drivers/misc/lis3lv02d/lis3lv02d_i2c.c | 21 +-
drivers/misc/mei/hw-me-regs.h | 2 +
drivers/misc/mei/pci-me.c | 2 +
drivers/mmc/core/block.c | 14 +-
drivers/mmc/host/sdhci-omap.c | 3 +
drivers/mmc/host/tmio_mmc_core.c | 2 +
drivers/mtd/nand/raw/meson_nand.c | 2 +-
drivers/mtd/ubi/fastmap.c | 7 +-
drivers/mtd/ubi/vtbl.c | 6 +
.../ethernet/hisilicon/hns3/hns3pf/hclge_trace.h | 8 +-
.../ethernet/hisilicon/hns3/hns3vf/hclgevf_trace.h | 8 +-
drivers/net/ethernet/xilinx/ll_temac_main.c | 2 +-
drivers/net/wireguard/netlink.c | 10 +-
.../broadcom/brcm80211/brcmfmac/cfg80211.c | 4 +-
drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 15 +-
drivers/nvmem/meson-efuse.c | 25 +-
drivers/pci/controller/dwc/pcie-designware-ep.c | 7 +-
drivers/pci/controller/dwc/pcie-qcom.c | 153 ++++++------
drivers/pci/controller/pci-hyperv.c | 3 +-
drivers/pci/pci-driver.c | 7 +
drivers/pci/pcie/err.c | 20 ++
drivers/pci/quirks.c | 2 +
drivers/phy/tegra/xusb.c | 13 ++
drivers/platform/x86/p2sb.c | 23 +-
drivers/pwm/pwm-img.c | 4 +-
drivers/remoteproc/remoteproc_virtio.c | 6 +-
drivers/s390/crypto/zcrypt_api.c | 2 +
drivers/scsi/hosts.c | 7 +-
drivers/scsi/libsas/sas_expander.c | 51 ++--
drivers/scsi/lpfc/lpfc_bsg.c | 4 +-
drivers/scsi/lpfc/lpfc_nvmet.c | 2 +-
drivers/scsi/qla2xxx/qla_attr.c | 14 +-
drivers/scsi/qla2xxx/qla_def.h | 2 +-
drivers/scsi/qla2xxx/qla_gbl.h | 2 +-
drivers/scsi/qla2xxx/qla_init.c | 128 +++++-----
drivers/scsi/qla2xxx/qla_iocb.c | 68 ++++--
drivers/scsi/qla2xxx/qla_mbx.c | 2 +-
drivers/scsi/qla2xxx/qla_os.c | 2 +-
drivers/scsi/qla2xxx/qla_target.c | 10 +
drivers/scsi/scsi_scan.c | 34 +++
drivers/scsi/sd.c | 25 +-
drivers/slimbus/core.c | 4 +-
drivers/soc/fsl/qbman/qman.c | 25 +-
drivers/staging/media/ipu3/ipu3-v4l2.c | 16 +-
.../staging/vc04_services/vchiq-mmal/mmal-vchiq.c | 5 +-
drivers/tee/optee/device.c | 3 +-
drivers/thermal/devfreq_cooling.c | 2 +-
drivers/tty/serial/8250/8250_dw.c | 6 +-
drivers/tty/serial/8250/8250_port.c | 6 -
drivers/tty/serial/fsl_lpuart.c | 7 +-
drivers/tty/serial/imx.c | 22 +-
drivers/tty/serial/max310x.c | 7 +-
drivers/tty/serial/serial_core.c | 12 +
drivers/tty/vt/vt.c | 2 +-
drivers/usb/class/cdc-wdm.c | 6 +-
drivers/usb/core/hub.c | 23 +-
drivers/usb/core/hub.h | 2 +
drivers/usb/core/port.c | 43 +++-
drivers/usb/core/sysfs.c | 16 +-
drivers/usb/dwc2/core.h | 14 ++
drivers/usb/dwc2/core_intr.c | 72 ++++--
drivers/usb/dwc2/gadget.c | 10 +
drivers/usb/dwc2/hcd.c | 49 +++-
drivers/usb/dwc2/hcd_ddma.c | 17 +-
drivers/usb/dwc2/hw.h | 2 +-
drivers/usb/dwc2/platform.c | 2 +-
drivers/usb/dwc3/dwc3-am62.c | 90 ++++---
drivers/usb/gadget/function/f_ncm.c | 2 +-
drivers/usb/gadget/udc/core.c | 4 +-
drivers/usb/gadget/udc/tegra-xudc.c | 39 ++--
drivers/usb/host/xhci.c | 2 +
drivers/usb/phy/phy-generic.c | 7 -
drivers/usb/serial/cp210x.c | 4 +
drivers/usb/serial/ftdi_sio.c | 2 +
drivers/usb/serial/ftdi_sio_ids.h | 6 +
drivers/usb/serial/option.c | 6 +
drivers/usb/storage/isd200.c | 23 +-
drivers/usb/storage/uas.c | 28 ++-
drivers/usb/typec/class.c | 7 +-
drivers/usb/typec/ucsi/ucsi.c | 56 ++++-
drivers/usb/typec/ucsi/ucsi.h | 4 +-
drivers/usb/typec/ucsi/ucsi_acpi.c | 71 +++---
drivers/vfio/container.c | 2 +-
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 7 +-
drivers/vfio/pci/vfio_pci_config.c | 6 +-
drivers/vfio/pci/vfio_pci_core.c | 7 +-
drivers/vfio/pci/vfio_pci_igd.c | 2 +-
drivers/vfio/pci/vfio_pci_intrs.c | 218 ++++++++++-------
drivers/vfio/pci/vfio_pci_rdwr.c | 2 +-
drivers/vfio/platform/vfio_platform_irq.c | 106 ++++++---
drivers/vfio/virqfd.c | 23 +-
fs/aio.c | 8 +-
fs/btrfs/block-group.c | 3 +-
fs/btrfs/qgroup.c | 10 +-
fs/btrfs/scrub.c | 12 +-
fs/btrfs/volumes.c | 2 +-
fs/exec.c | 1 +
fs/ext4/mballoc.c | 17 +-
fs/ext4/resize.c | 3 +-
fs/f2fs/f2fs.h | 1 +
fs/f2fs/segment.c | 4 +-
fs/fat/nfs.c | 6 +
fs/fuse/dir.c | 4 +
fs/fuse/fuse_i.h | 1 -
fs/fuse/inode.c | 7 +-
fs/nfs/direct.c | 11 +-
fs/nfs/write.c | 2 +-
fs/nfsd/trace.h | 2 +-
fs/nilfs2/btree.c | 9 +-
fs/nilfs2/direct.c | 9 +-
fs/nilfs2/inode.c | 2 +-
fs/smb/client/cached_dir.c | 3 +-
fs/smb/server/smb2pdu.c | 10 +-
fs/ubifs/file.c | 13 +-
include/drm/drm_modeset_helper_vtables.h | 3 +-
include/linux/cpufreq.h | 15 +-
include/linux/gfp.h | 9 +
include/linux/hyperv.h | 22 +-
include/linux/libata.h | 1 +
include/linux/minmax.h | 17 ++
include/linux/nfs_fs.h | 1 +
include/linux/phy/tegra/xusb.h | 1 +
include/linux/ring_buffer.h | 1 +
include/linux/timer.h | 18 +-
include/linux/vfio.h | 2 +
include/media/media-entity.h | 2 +
include/net/cfg802154.h | 1 +
include/scsi/scsi_driver.h | 1 +
include/scsi/scsi_host.h | 1 +
init/Kconfig | 6 +-
init/initramfs.c | 2 +-
io_uring/net.c | 3 +-
kernel/bounds.c | 2 +-
kernel/dma/swiotlb.c | 11 +-
kernel/entry/common.c | 8 +-
kernel/power/suspend.c | 1 +
kernel/printk/printk.c | 27 ++-
kernel/time/timer.c | 160 +++++++------
kernel/trace/ring_buffer.c | 233 +++++++++++--------
kernel/trace/trace.c | 21 +-
lib/pci_iomap.c | 2 +-
mm/compaction.c | 7 +-
mm/kasan/kasan_test.c | 3 +-
mm/memtest.c | 4 +-
mm/migrate.c | 6 +-
mm/page_alloc.c | 10 +-
mm/swapfile.c | 25 +-
mm/vmscan.c | 5 +-
net/bluetooth/hci_core.c | 6 +-
net/bluetooth/hci_sync.c | 5 +-
net/mac80211/cfg.c | 5 +-
net/mac802154/llsec.c | 18 +-
net/netfilter/nf_tables_api.c | 7 +
net/tls/tls_sw.c | 60 +++--
net/xfrm/xfrm_user.c | 3 +
scripts/Makefile.extrawarn | 2 +
security/landlock/syscalls.c | 18 +-
security/smack/smack_lsm.c | 12 +-
sound/pci/hda/patch_realtek.c | 13 +-
sound/sh/aica.c | 17 +-
sound/soc/amd/yc/acp6x-mach.c | 7 -
tools/include/linux/btf_ids.h | 2 +
tools/testing/selftests/mqueue/setting | 1 +
tools/testing/selftests/net/mptcp/diag.sh | 6 +-
virt/kvm/async_pf.c | 31 ++-
305 files changed, 3011 insertions(+), 1673 deletions(-)




2024-04-01 17:23:02

by Greg Kroah-Hartman

[permalink] [raw]
Subject: [PATCH 6.1 192/272] efi/libstub: fix efi_random_alloc() to allocate memory at alloc_min or higher address

6.1-stable review patch. If anyone has any objections, please let me know.

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

From: KONDO KAZUMA(近藤 和真) <[email protected]>

[ Upstream commit 3cb4a4827596abc82e55b80364f509d0fefc3051 ]

Following warning is sometimes observed while booting my servers:
[ 3.594838] DMA: preallocated 4096 KiB GFP_KERNEL pool for atomic allocations
[ 3.602918] swapper/0: page allocation failure: order:10, mode:0xcc1(GFP_KERNEL|GFP_DMA), nodemask=(null),cpuset=/,mems_allowed=0-1
...
[ 3.851862] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocation

If 'nokaslr' boot option is set, the warning always happens.

On x86, ZONE_DMA is small zone at the first 16MB of physical address
space. When this problem happens, most of that space seems to be used by
decompressed kernel. Thereby, there is not enough space at DMA_ZONE to
meet the request of DMA pool allocation.

The commit 2f77465b05b1 ("x86/efistub: Avoid placing the kernel below
LOAD_PHYSICAL_ADDR") tried to fix this problem by introducing lower
bound of allocation.

But the fix is not complete.

efi_random_alloc() allocates pages by following steps.
1. Count total available slots ('total_slots')
2. Select a slot ('target_slot') to allocate randomly
3. Calculate a starting address ('target') to be included target_slot
4. Allocate pages, which starting address is 'target'

In step 1, 'alloc_min' is used to offset the starting address of memory
chunk. But in step 3 'alloc_min' is not considered at all. As the
result, 'target' can be miscalculated and become lower than 'alloc_min'.

When KASLR is disabled, 'target_slot' is always 0 and the problem
happens everytime if the EFI memory map of the system meets the
condition.

Fix this problem by calculating 'target' considering 'alloc_min'.

Cc: [email protected]
Cc: Tom Englund <[email protected]>
Cc: [email protected]
Fixes: 2f77465b05b1 ("x86/efistub: Avoid placing the kernel below LOAD_PHYSICAL_ADDR")
Signed-off-by: Kazuma Kondo <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
---
drivers/firmware/efi/libstub/randomalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/efi/libstub/randomalloc.c b/drivers/firmware/efi/libstub/randomalloc.c
index 7ba05719a53ba..0d7b11b55ff31 100644
--- a/drivers/firmware/efi/libstub/randomalloc.c
+++ b/drivers/firmware/efi/libstub/randomalloc.c
@@ -119,7 +119,7 @@ efi_status_t efi_random_alloc(unsigned long size,
continue;
}

- target = round_up(md->phys_addr, align) + target_slot * align;
+ target = round_up(max(md->phys_addr, alloc_min), align) + target_slot * align;
pages = size / EFI_PAGE_SIZE;

status = efi_bs_call(allocate_pages, EFI_ALLOCATE_ADDRESS,
--
2.43.0




2024-04-01 18:27:17

by SeongJae Park

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

Hello,

On Mon, 1 Apr 2024 17:43:10 +0200 Greg Kroah-Hartman <[email protected]> wrote:

> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.

This rc kernel passes DAMON functionality test[1] on my test machine.
Attaching the test results summary below. Please note that I retrieved the
kernel from linux-stable-rc tree[2].

Tested-by: SeongJae Park <[email protected]>

[1] https://github.com/awslabs/damon-tests/tree/next/corr
[2] aa2042702765 ("Linux 6.1.84-rc1")

Thanks,
SJ

[...]

---

ok 1 selftests: damon: debugfs_attrs.sh
ok 2 selftests: damon: debugfs_schemes.sh
ok 3 selftests: damon: debugfs_target_ids.sh
ok 4 selftests: damon: debugfs_empty_targets.sh
ok 5 selftests: damon: debugfs_huge_count_read_write.sh
ok 6 selftests: damon: debugfs_duplicate_context_creation.sh
ok 7 selftests: damon: sysfs.sh
ok 1 selftests: damon-tests: kunit.sh
ok 2 selftests: damon-tests: huge_count_read_write.sh
ok 3 selftests: damon-tests: buffer_overflow.sh
ok 4 selftests: damon-tests: rm_contexts.sh
ok 5 selftests: damon-tests: record_null_deref.sh
ok 6 selftests: damon-tests: dbgfs_target_ids_read_before_terminate_race.sh
ok 7 selftests: damon-tests: dbgfs_target_ids_pid_leak.sh
ok 8 selftests: damon-tests: damo_tests.sh
ok 9 selftests: damon-tests: masim-record.sh
ok 10 selftests: damon-tests: build_i386.sh
ok 11 selftests: damon-tests: build_arm64.sh
ok 12 selftests: damon-tests: build_m68k.sh
ok 13 selftests: damon-tests: build_i386_idle_flag.sh
ok 14 selftests: damon-tests: build_i386_highpte.sh
ok 15 selftests: damon-tests: build_nomemcg.sh
[33m
[92mPASS [39m

2024-04-01 19:34:16

by Florian Fainelli

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On 4/1/24 08:43, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

On ARCH_BRCMSTB using 32-bit and 64-bit ARM kernels, build tested on
BMIPS_GENERIC:

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


2024-04-01 20:59:47

by Pavel Machek

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

Hi!

> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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.

CIP testing did not find any problems here:

https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/tree/linux-6.1.y

Tested-by: Pavel Machek (CIP) <[email protected]>

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


Attachments:
(No filename) (659.00 B)
signature.asc (201.00 B)
Download all attachments

2024-04-01 23:43:54

by Shuah Khan

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On 4/1/24 09:43, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.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

2024-04-02 00:21:19

by Kelsey Steele

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On Mon, Apr 01, 2024 at 05:43:10PM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +0000.

No regressions found on WSL (x86 and arm64).

Built, booted, and reviewed dmesg.

Thank you. :)

Tested-by: Kelsey Steele <[email protected]>

2024-04-02 05:23:18

by Ron Economos

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On 4/1/24 8:43 AM, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

Built and booted successfully on RISC-V RV64 (HiFive Unmatched).

Tested-by: Ron Economos <[email protected]>


2024-04-02 12:47:22

by Naresh Kamboju

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On Mon, 1 Apr 2024 at 22:27, Greg Kroah-Hartman
<[email protected]> wrote:
>
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h


Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.

Tested-by: Linux Kernel Functional Testing <[email protected]>

## Build
* kernel: 6.1.84-rc1
* git: https://gitlab.com/Linaro/lkft/mirrors/stable/linux-stable-rc
* git branch: linux-6.1.y
* git commit: aa2042702765a33750c326a9e153901b313636ac
* git describe: v6.1.83-273-gaa2042702765
* test details:
https://qa-reports.linaro.org/lkft/linux-stable-rc-linux-6.1.y/build/v6.1.83-273-gaa2042702765

## Test Regressions (compared to v6.1.83)

## Metric Regressions (compared to v6.1.83)

## Test Fixes (compared to v6.1.83)

## Metric Fixes (compared to v6.1.83)

## Test result summary
total: 146089, pass: 124663, fail: 2421, skip: 18867, xfail: 138

## Build Summary
* arc: 5 total, 5 passed, 0 failed
* arm: 138 total, 138 passed, 0 failed
* arm64: 41 total, 40 passed, 1 failed
* i386: 30 total, 30 passed, 0 failed
* mips: 25 total, 25 passed, 0 failed
* parisc: 4 total, 4 passed, 0 failed
* powerpc: 34 total, 34 passed, 0 failed
* riscv: 11 total, 11 passed, 0 failed
* s390: 16 total, 15 passed, 1 failed
* sh: 10 total, 10 passed, 0 failed
* sparc: 8 total, 8 passed, 0 failed
* x86_64: 35 total, 34 passed, 1 failed

## Test suites summary
* boot
* kselftest-android
* kselftest-arm64
* kselftest-breakpoints
* kselftest-capabilities
* kselftest-clone3
* kselftest-core
* kselftest-cpu-hotplug
* kselftest-drivers-dma-buf
* kselftest-exec
* kselftest-fpu
* kselftest-ftrace
* kselftest-futex
* kselftest-gpio
* kselftest-intel_pstate
* kselftest-ipc
* kselftest-kcmp
* kselftest-lib
* kselftest-membarrier
* kselftest-memfd
* kselftest-memory-hotplug
* kselftest-mincore
* kselftest-mm
* kselftest-mount
* kselftest-mqueue
* kselftest-net
* kselftest-net-forwarding
* kselftest-net-mptcp
* kselftest-openat2
* kselftest-ptrace
* kselftest-rseq
* kselftest-rtc
* kselftest-seccomp
* kselftest-sigaltstack
* kselftest-size
* kselftest-splice
* kselftest-static_keys
* kselftest-sync
* kselftest-sysctl
* kselftest-tc-testing
* kselftest-timens
* kselftest-timers
* kselftest-tmpfs
* kselftest-tpm2
* kselftest-user
* kselftest-user_events
* kselftest-vDSO
* kselftest-x86
* kselftest-zram
* kunit
* libgpiod
* log-parser-boot
* log-parser-test
* ltp-cap_bounds
* ltp-commands
* ltp-containers
* ltp-controllers
* ltp-cpuhotplug
* ltp-crypto
* ltp-cve
* ltp-dio
* ltp-fcntl-locktests
* ltp-filecaps
* ltp-fs
* ltp-fs_bind
* ltp-fs_perms_simple
* ltp-hugetlb
* ltp-io
* ltp-ipc
* ltp-math
* ltp-mm
* ltp-nptl
* ltp-pty
* ltp-sched
* ltp-securebits
* ltp-smoke
* ltp-smoketest
* ltp-syscalls
* ltp-tracing
* perf
* rcutorture

--
Linaro LKFT
https://lkft.linaro.org

2024-04-02 14:40:50

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On Mon, Apr 01, 2024 at 05:43:10PM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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.

Tested-by: Mark Brown <[email protected]>


Attachments:
(No filename) (352.00 B)
signature.asc (499.00 B)
Download all attachments

2024-04-02 18:08:10

by Mateusz Jończyk

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

W dniu 1.04.2024 o 17:43, Greg Kroah-Hartman pisze:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h
Hello,

Tested on a HP 17-by0001nw laptop with an Intel Kaby Lake CPU and Ubuntu 20.04.

Stack:
- amd64,
- ext4 on top of LVM on top of LUKS on top of mdraid on top of
  NVMe and SATA drives (the SATA drive in the write-mostly mode).

Tested (lightly):
- suspend to RAM,
- suspend to disk,
- GPU (Intel HD Graphics 620, with an old game on Wine and ~3 Unigine benchmarks)
- WiFi (Realtek RTL8822BE),
- Bluetooth (Realtek RTL8822BE),
- PCI soundcard (Intel HD Audio),
- USB soundcard (Logitech Pro X),
- webcam,

Filesystems tested very lightly (mounting, listing and opening files):
- NFS,
- exFAT
- vfat,
- NTFS via FUSE

Nitpicks:
- I got the following error in dmesg from Bluetooth after resume from suspend:
    [ 4058.056834] usb 1-3: 1:1: cannot get freq at ep 0x81

Tested-by: Mateusz Jończyk <[email protected]>

Greetings,

Mateusz


2024-04-02 19:14:41

by Jon Hunter

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On Mon, 01 Apr 2024 17:43:10 +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,
>
> greg k-h

All tests passing for Tegra ...

Test results for stable-v6.1:
10 builds: 10 pass, 0 fail
26 boots: 26 pass, 0 fail
116 tests: 116 pass, 0 fail

Linux version: 6.1.84-rc1-gaa2042702765
Boards tested: tegra124-jetson-tk1, tegra186-p2771-0000,
tegra194-p2972-0000, tegra194-p3509-0000+p3668-0000,
tegra20-ventana, tegra210-p2371-2180,
tegra210-p3450-0000, tegra30-cardhu-a04

Tested-by: Jon Hunter <[email protected]>

Jon

2024-04-03 08:05:14

by Yann Sionneau

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

Hi Greg,

On 01/04/2024 17:43, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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, 03 Apr 2024 15:24:46 +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/v6.x/stable-review/patch-6.1.84-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-6.1.y
> and the diffstat can be found below.
>
> thanks,

I tested 6.1.84-rc1 (aa2042702765) on Kalray kvx arch (not upstream yet) and everything looks good!

It ran on real hw (k200, k200lp and k300 boards), on qemu as well as on our internal instruction set simulator (ISS).

Tests were run on several interfaces/drivers (usb, qsfp ethernet, eMMC, PCIe endpoint+RC, SPI, remoteproc, uart, iommu). LTP and uClibc-ng testsuites are also run without any regression.

Everything looks fine to us.

Tested-by: Yann Sionneau <[email protected]>

--
Yann






2024-04-03 14:05:15

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 6.1 000/272] 6.1.84-rc1 review

On Mon, Apr 01, 2024 at 05:43:10PM +0200, Greg Kroah-Hartman wrote:
> This is the start of the stable review cycle for the 6.1.84 release.
> There are 272 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.

Tested-by: Conor Dooley <[email protected]>


Attachments:
(No filename) (362.00 B)
signature.asc (235.00 B)
Download all attachments