6.12.97-rc1 review
Subsystems (12)
Greg Kroah-Hartman
maintainercover 6.12.97-rc1 review
This is the start of the stable review cycle for the 6.12.97 release. There are 1276 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, 23 Jul 2026 15:23:00 +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.12.97-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.12.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 6.12.97-rc1
Michael Petlan <[email protected]>
perf build-id: Fix off-by-one bug when printing kernel/module build-id
Ivan Vecera <[email protected]>
dpll: fix NULL pointer dereference in dpll_msg_add_pin_ref_sync()
Stig Hornang <[email protected]>
Bluetooth: L2CAP: fix tx ident leak for commands without a response
Luiz Augusto von Dentz <[email protected]>
Bluetooth: 6lowpan: Fix using chan->conn as indication to no remote netdev
Luiz Augusto von Dentz <[email protected]>
Bluetooth: L2CAP: Fix regressions caused by reusing ident
Chuck Lever <[email protected]>
perf synthetic-events: Fix stale build ID in module MMAP2 records
Guenter Roeck <[email protected]>
crypto: ccp - Fix leaking the same page twice
Mohammad Heib <[email protected]>
ice: drop udp_tunnel_get_rx_info() call from ndo_open()
Mohammad Heib <[email protected]>
i40e: drop udp_tunnel_get_rx_info() call from i40e_open()
Ian Rogers <[email protected]>
perf build-id: Ensure snprintf string is empty when size is 0
Borislav Petkov (AMD) <[email protected]>
crypto: ccp - Always pass in an error pointer to __sev_platform_shutdown_locked()
Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_sync: Fix attempting to send HCI_Disconnect to BIS handle
Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_core: Remove check of BDADDR_ANY in hci_conn_hash_lookup_big_state
Paolo Abeni <[email protected]>
udp_tunnel: fix deadlock in udp_tunnel_nic_set_port_priv()
Ashish Kalra <[email protected]>
crypto: ccp - Fix SNP panic notifier unregistration
Ashish Kalra <[email protected]>
crypto: ccp - Fix dereferencing uninitialized error pointer
Ashish Kalra <[email protected]>
crypto: ccp - Fix __sev_snp_shutdown_locked
Arnaldo Carvalho de Melo <[email protected]>
perf libunwind arm64: Fix missing close parens in an if statement
David Howells <[email protected]>
afs: Fix afs_dynroot_readdir() to not use the RCU read lock
David Howells <[email protected]>
afs: Fix afs_atcell_get_link() to check if ws_cell is unset first
Easwar Hariharan <[email protected]>
jiffies: Cast to unsigned long in secs_to_jiffies() conversion
Lorenzo Bianconi <[email protected]>
net: airoha: Fix channel configuration for ETS Qdisc
James Clark <[email protected]>
perf arm-spe: Use old behavior when opening old SPE files
Kuniyuki Iwashima <[email protected]>
rtnetlink: Make per-netns RTNL dereference helpers to macro.
Gil Portnoy <[email protected]>
ksmbd: fix durable reconnect double-bind race in ksmbd_reopen_durable_fd
Thomas Richter <[email protected]>
perf callchain: Handle multiple address spaces
Randy Dunlap <[email protected]>
seqlock: fix scoped_seqlock_read kernel-doc
Ian Rogers <[email protected]>
perf inject: With --convert-callchain ignore the dummy event for dwarf stacks
Dust Li <[email protected]>
dibs: loopback: validate offset and size in move_data()
Sandipan Das <[email protected]>
perf/x86/amd/brs: Fix kernel address leakage
Matt Bobrowski <[email protected]>
bpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized
Marc Zyngier <[email protected]>
KVM: arm64: Fix propagation of TLBI level in kvm_pgtable_stage2_relax_perms()
Oliver Upton <[email protected]>
KVM: arm64: Ensure level is always initialized when relaxing perms
Marc Zyngier <[email protected]>
KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers
SeongJae Park <[email protected]>
mm/damon/core: always put unsuccessfully committed target pids
Amir Goldstein <[email protected]>
selftests/fs/statmount: build with tools include dir
Eric Biggers <[email protected]>
fscrypt: Replace mk_users keyring with simple list
Eric Biggers <[email protected]>
fscrypt: Fix key setup in edge case with multiple data unit sizes
Randy Dunlap <[email protected]>
slab: recognize @GFP parameter as optional in kernel-doc
Linus Torvalds <[email protected]>
default_gfp(): avoid using the "newfangled" __VA_OPT__ trick
Linus Torvalds <[email protected]>
add default_gfp() helper macro and use it in the new *alloc_obj() helpers
Kees Cook <[email protected]>
slab: Introduce kmalloc_flex() and family
Kees Cook <[email protected]>
slab: Introduce kmalloc_obj() and family
Qu Wenruo <[email protected]>
btrfs: fix incorrect buffered IO fallback for append direct writes
Qu Wenruo <[email protected]>
btrfs: fix false IO failure after falling back to buffered write
Rochan Avlur <[email protected]>
exfat: preserve benign secondary entries during rename and move
Chi Zhiling <[email protected]>
exfat: fix incorrect directory checksum after rename to shorter name
Yuezhang Mo <[email protected]>
exfat: move exfat_chain_set() out of __exfat_resolve_path()
Yuezhang Mo <[email protected]>
exfat: add exfat_get_dentry_set_by_ei() helper
Yuezhang Mo <[email protected]>
exfat: rename argument name for exfat_move_file and exfat_rename_file
Yuezhang Mo <[email protected]>
exfat: remove unnecessary read entry in __exfat_rename()
Ahsan Atta <[email protected]>
crypto: qat - fix restarting state leak on allocation failure
Tycho Andersen (AMD) <[email protected]>
crypto: ccp - Do not initialize SNP for ioctl(SNP_CONFIG)
Tom Lendacky <[email protected]>
crypto: ccp - Fix a case where SNP_SHUTDOWN is missed
Ashish Kalra <[email protected]>
crypto: ccp - Move SEV/SNP Platform initialization to KVM
Ashish Kalra <[email protected]>
crypto: ccp - Register SNP panic notifier only if SNP is enabled
Ashish Kalra <[email protected]>
crypto: ccp - Reset TMR size at SNP Shutdown
Ashish Kalra <[email protected]>
crypto: ccp - Move dev_info/err messages for SEV/SNP init and shutdown
Qu Wenruo <[email protected]>
btrfs: check and set EXTENT_DELALLOC_NEW before clearing EXTENT_DELALLOC
Qu Wenruo <[email protected]>
btrfs: remove the COW fixup mechanism
Qu Wenruo <[email protected]>
btrfs: remove folio parameter from ordered io related functions
Qu Wenruo <[email protected]>
btrfs: replace for_each_set_bit() with for_each_set_bitmap()
Qu Wenruo <[email protected]>
btrfs: concentrate the error handling of submit_one_sector()
Neill Kapron <[email protected]>
usb: gadget: f_fs: Tie read_buffer lifetime to ffs_epfile
Thorsten Blum <[email protected]>
crypto: atmel-sha204a - fail on hwrng registration error in probe path
Tyler Baker <[email protected]>
usb: gadget: f_fs: initialize reset_work at allocation time
Thorsten Blum <[email protected]>
crypto: atmel-sha204a - drop hwrng quality reduction for ATSHA204A
Uwe Kleine-König <[email protected]>
crypto: atmel - Drop explicit initialization of struct i2c_device_id::driver_data to 0
Mauricio Faria de Oliveira <[email protected]>
usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
Johan Hovold <[email protected]>
USB: iowarrior: fix use-after-free on disconnect race
Oliver Neukum <[email protected]>
usb: iowarrior: remove inherent race with minor number
Vlad Poenaru <[email protected]>
bpf: Allow LPM map access from sleepable BPF programs
Andrii Nakryiko <[email protected]>
bpf: Consistently use bpf_rcu_lock_held() everywhere
Luis Gerhorst <[email protected]>
bpf, arm64, powerpc: Add bpf_jit_bypass_spec_v1/v4()
Kumar Kartikeya Dwivedi <[email protected]>
bpf: Convert lpm_trie.c to rqspinlock
Tristan Madani <[email protected]>
hfs/hfsplus: fix u32 overflow in check_and_correct_requested_length
Viacheslav Dubeyko <[email protected]>
hfs/hfsplus: prevent getting negative values of offset/length
Oleg Makarenko <[email protected]>
HID: pidff: Use correct effect type in effect update
Tomasz Pakuła <[email protected]>
HID: pidff: Rework pidff_upload_effect
Tomasz Pakuła <[email protected]>
HID: pidff: Add missing spaces
Tomasz Pakuła <[email protected]>
HID: pidff: Fix missing blank lines after declarations
Manish Khadka <[email protected]>
HID: appleir: fix UAF on pending key_up_timer in remove()
Thomas Gleixner <[email protected]>
treewide: Switch/rename to timer_delete[_sync]()
Jann Horn <[email protected]>
proc: protect ptrace_may_access() with exec_update_lock (part 1)
Oleg Nesterov <[email protected]>
seqlock: Change do_task_stat() to use scoped_seqlock_read()
Peter Zijlstra <[email protected]>
seqlock: Introduce scoped_seqlock_read()
Trung Nguyen <[email protected]>
HID: multitouch: fix out-of-bounds bit access on mt_io_flags
Angela Czubak <[email protected]>
HID: add haptics page defines
Zide Chen <[email protected]>
perf/x86/intel/uncore: Defer ADL global PMON enable to enable_box()
Jann Horn <[email protected]>
proc: protect ptrace_may_access() with exec_update_lock (FD links)
Christoph Hellwig <[email protected]>
proc: rename proc_setattr to proc_nochmod_setattr
Namjae Jeon <[email protected]>
ksmbd: track the connection owning a byte-range lock
DaeMyung Kang <[email protected]>
ksmbd: centralize ksmbd_conn final release to plug transport leak
Namjae Jeon <[email protected]>
ksmbd: use opener credentials for FSCTL mutations
Davide Ornaghi <[email protected]>
ksmbd: fix path resolution in ksmbd_vfs_kern_path_create
Jori Koolstra <[email protected]>
vfs: make LAST_XXX private to fs/namei.c
Al Viro <[email protected]>
ksmbd_vfs_rename(): vfs_path_parent_lookup() accepts ERR_PTR() as name
Michael Bommarito <[email protected]>
smb: client: resolve SWN tcon from live registrations
Markus Elfring <[email protected]>
smb: client: Improve unlocking of a mutex in cifs_get_swn_reg()
Jose Fernandez (Anthropic) <[email protected]>
mm: swap_cgroup: fix NULL deref in lookup_swap_cgroup_id on swapless host
Siwei Zhang <[email protected]>
Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_new_connection_cb()
Pauli Virtanen <[email protected]>
Bluetooth: 6lowpan: fix cyclic locking warning on netdev unregister
Siwei Zhang <[email protected]>
Bluetooth: hci_conn: Fix null ptr deref in hci_abort_conn()
Pauli Virtanen <[email protected]>
Bluetooth: separate CIS_LINK and BIS_LINK link types
Luiz Augusto von Dentz <[email protected]>
Bluetooth: hci_core: Enable buffer flow control for SCO/eSCO
Runyu Xiao <[email protected]>
Bluetooth: L2CAP: cancel pending_rx_work before taking conn->lock
Luiz Augusto von Dentz <[email protected]>
Bluetooth: L2CAP: Fix not tracking outstanding TX ident
Florian Westphal <[email protected]>
netfilter: ebtables: zero chainstack array
Qianfeng Rong <[email protected]>
netfilter: ebtables: Use vmalloc_array() to improve code
Xiaolei Wang <[email protected]>
media: nxp: imx8-isi: Fix use-after-free on remove
Frank Li <[email protected]>
media: nxp: imx8-isi: use devm_pm_runtime_enable() to simplify code
Michael Wigham <[email protected]>
io_uring/rw: preserve partial result for iopoll
Jens Axboe <[email protected]>
io_uring/rw: ensure reissue path is correctly handled for IOPOLL
Runyu Xiao <[email protected]>
gpio: sch: use raw_spinlock_t in the irq startup path
Marco Elver <[email protected]>
Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref
Giovanni Cabiddu <[email protected]>
crypto: qat - fix VF2PF work teardown race in adf_disable_sriov()
Alexandru Hossu <[email protected]>
staging: rtl8723bs: fix OOB reads in rtw_get_sec_ie(), rtw_get_wapi_ie(), and rtw_get_wps_attr()
Nikolay Kulikov <[email protected]>
staging: rtl8723bs: fix spaces around binary operators
William Hansen-Baird <[email protected]>
staging: rtl8723bs: core: move constants to right side in comparison
Marco Nenciarini <[email protected]>
PCI: Skip Resizable BAR restore on read error
Ilpo Järvinen <[email protected]>
PCI: Move Resizable BAR code to rebar.c
Ilpo Järvinen <[email protected]>
PCI: Fix restoring BARs on BAR resize rollback path
Ilpo Järvinen <[email protected]>
PCI: Free saved list without holding pci_bus_sem
Ilpo Järvinen <[email protected]>
PCI: Prevent resource tree corruption when BAR resize fails
Ilpo Järvinen <[email protected]>
PCI: Use pbus_select_window() during BAR resize
Manivannan Sadhasivam <[email protected]>
PCI: mediatek: Fix IRQ domain leak when port fails to enable
Christian Marangi <[email protected]>
PCI: mediatek: Use generic MACRO for TPVPERL delay
Christian Marangi <[email protected]>
PCI: mediatek: Convert bool to single quirks entry and bitmap
Nam Cao <[email protected]>
PCI: mediatek: Switch to msi_create_parent_irq_domain()
Jiri Slaby (SUSE) <[email protected]>
PCI: controller: Use dev_fwnode() instead of of_fwnode_handle()
Mahesh Vaidya <[email protected]>
PCI: altera: Fix resource leaks on probe failure
Alex Williamson <[email protected]>
vfio/mlx5: Fix racy bitfields and tighten struct layout
Geoffrey D. Bennett <[email protected]>
ALSA: scarlett2: Update offsets for 2i2 Gen 4 firmware 2417
Geoffrey D. Bennett <[email protected]>
ALSA: scarlett2: Allow selecting config_set by firmware version
Cássio Gabriel <[email protected]>
ALSA: hda/cs35l41: Fix firmware load work teardown
Zhao Dongdong <[email protected]>
ALSA: aoa: check snd_ctl_new1() return value
Biren Pandya <[email protected]>
iio: pressure: mpl115: fix runtime PM leak on read error
Sakari Ailus <[email protected]>
iio: pressure: Remove redundant pm_runtime_mark_last_busy() calls
Samuel Moelius <[email protected]>
iio: adc: ad7380: select REGMAP
Zhang Lixu <[email protected]>
iio: hid-sensor-rotation: Fix stale or zero output when reading raw values
Rafael J. Wysocki <[email protected]>
ACPI: NFIT: core: Fix possible deadlock and missing notifications
Rafael J. Wysocki <[email protected]>
ACPI: NFIT: core: Use devm_acpi_install_notify_handler()
Rafael J. Wysocki <[email protected]>
ACPI: bus: Introduce devm_acpi_install_notify_handler()
Rafael J. Wysocki <[email protected]>
ACPI: driver: Check ACPI_COMPANION() against NULL during probe
Rafael J. Wysocki <[email protected]>
ACPI: NFIT: core: Fix acpi_nfit_init() error cleanup
Haoze Xie <[email protected]>
rust: block: fix GenDisk cleanup paths
Sergey Shtylyov <[email protected]>
mmc: sdhci-of-dwcmshc: check bus clock enable result in the probe() method
Ao Sun <[email protected]>
mmc: block: fix RPMB device unregister ordering
Pengpeng Hou <[email protected]>
mtd: rawnand: lpc32xx_slc: fail DMA transfer on completion timeout
Pengpeng Hou <[email protected]>
mtd: rawnand: lpc32xx_mlc: fail DMA transfers on timeout
Pengpeng Hou <[email protected]>
mtd: rawnand: fsl_ifc: return errors for failed page reads
Runyu Xiao <[email protected]>
mmc: vub300: defer reset until cmd_mutex is unlocked
Pengpeng Hou <[email protected]>
mtd: mchp23k256: use SPI match data for chip caps
Pengpeng Hou <[email protected]>
mtd: onenand: samsung: report DMA completion timeouts
Rafael Beims <[email protected]>
wifi: mwifiex: fix permanently busy scans after multiple roam iterations
Zhiling Zou <[email protected]>
wifi: mac80211: free ack status frame on TX header build failure
Junrui Luo <[email protected]>
powerpc/spufs: fix out-of-bounds access in spufs_mem_mmap_access()
Zhao Dongdong <[email protected]>
reset: sunxi: fix memory region leak on ioremap failure
Robby Cai <[email protected]>
reset: imx7: Correct polarity of MIPI CSI resets on i.MX8MQ
Florian Westphal <[email protected]>
ipvs: reload ip header after head reallocation
Julian Anastasov <[email protected]>
ipvs: fix more places with wrong ipv6 transport offsets
Maoyi Xie <[email protected]>
memstick: ms_block: reject a card that reports too many blocks
James Raphael Tiovalen <[email protected]>
macsec: fix promiscuity refcount leak in macsec_dev_open()
Xuanqiang Luo <[email protected]>
llc: fix SAP refcount leak when creating incoming sockets
Laxman Acharya Padhya <[email protected]>
Bluetooth: btrtl: validate firmware patch bounds
Asim Viladi Oglu Manizada <[email protected]>
net: openvswitch: reject oversized nested action attrs
Abhishek Ojha <[email protected]>
regulator: ltc3676: Fix incorrect IRQSTAT bit offsets
Dawei Feng <[email protected]>
wifi: mac80211: fix memory leak in ieee80211_register_hw()
Rafael Beims <[email protected]>
wifi: mwifiex: fix roaming to different channel in host_mlme mode
Runyu Xiao <[email protected]>
wifi: rt2x00: avoid full teardown before work setup in probe
Thorsten Blum <[email protected]>
powerpc/pseries: fix memory leak on krealloc failure in papr_init
Thomas Huth <[email protected]>
selftests/landlock: Fix screwed up pointers in the scoped_signal_test
Thomas Huth <[email protected]>
selftests/landlock: Skip scoped_signal subtest with MSG_OOB if not available
Peng Fan <[email protected]>
pmdomain: imx: Fix i.MX8MP VC8000E power up sequence
Peng Fan <[email protected]>
pmdomain: imx: Fix i.MX8MP power notifier
Farhad Alemi <[email protected]>
cgroup/cpuset: rebind mm mempolicy to effective_mems, not mems_allowed
Gerald Schaefer <[email protected]>
s390/mm: Fix type mismatch in get_align_mask().
Crystal Wood <[email protected]>
tracing/osnoise: Call synchronize_rcu() when unregistering
Tao Liu <[email protected]>
riscv: Prevent NULL pointer dereference in machine_kexec_prepare()
Michael Bommarito <[email protected]>
drbd: reject data replies with an out-of-range payload size
TJ Adams <[email protected]>
ata: libata-core: Skip HPA resize for locked drives
Jinjie Ruan <[email protected]>
arm64: smp: Fix hot-unplug tearing by forcing unregistration
Daehyeon Ko <[email protected]>
macsec: don't read an unset MAC header in macsec_encrypt()
Yizhou Zhao <[email protected]>
ipvs: reset full ip_vs_seq structs in ip_vs_conn_new
Yizhou Zhao <[email protected]>
ipvs: use parsed transport offset in SCTP state lookup
Shuangpeng Bai <[email protected]>
llc: fix SAP refcount leak in llc_ui_autobind()
Nirmoy Das <[email protected]>
selftests: net: make busywait timeout clock portable
Yousef Alhouseen <[email protected]>
mac802154: remove interfaces with RCU list deletion
Gerald Schaefer <[email protected]>
s390/monwriter: Reject buffer reuse with different data length
Haoxiang Li <[email protected]>
irqchip/irq-riscv-imsic-early: Fix fwnode leak on state setup failure
Zi Yan <[email protected]>
mm/compaction: handle free_pages_prepare() properly in compaction_free()
Martin Kaiser <[email protected]>
riscv: probes: save original sp in rethook trampoline
HyeongJun An <[email protected]>
hwmon: (asus_atk0110) Check package count before accessing element
Maoyi Xie <[email protected]>
net: wwan: iosm: bound device offsets in the MUX downlink decoder
Wentao Liang <[email protected]>
ata: pata_pxa: Fix DMA channel leak on probe error
Bryam Vargas <[email protected]>
orangefs: keep the readdir entry size 64-bit in fill_from_part()
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Fix double addition of offset for @+FOFFSET
Joshua Crofts <[email protected]>
hwmon: (max1619) add missing 'select REGMAP' to Kconfig
David Lee <[email protected]>
fhandle: reject detached mounts in capable_wrt_mount()
Bryam Vargas <[email protected]>
net/sched: sch_taprio: Replace direct dequeue call with peek and qdisc_dequeue_peeked
Bryam Vargas <[email protected]>
net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked
Andrea Righi <[email protected]>
net: lan743x: Initialize eth_syslock spinlock before use
Haoxiang Li <[email protected]>
fsl/fman: Free init resources on KeyGen failure in fman_init()
Runyu Xiao <[email protected]>
hwmon: (occ) unregister sysfs devices outside occ lock
Haoxiang Li <[email protected]>
net: liquidio: fix BAR resource leak on PF number failure
Pengpeng Hou <[email protected]>
hwmon: (w83793) remove vrm sysfs file on probe failure
Pengpeng Hou <[email protected]>
hwmon: (w83627hf) remove VID sysfs files on error and remove
Conor Dooley <[email protected]>
rtc: mpfs: fix counter upload completion condition
Abdun Nihaal <[email protected]>
bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
Sabrina Dubroca <[email protected]>
espintcp: use sk_msg_free_partial to fix partial send
Hongchen Zhang <[email protected]>
LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()
Sven Eckelmann <[email protected]>
batman-adv: clean untagged VLAN on netdev registration failure
Miguel Ojeda <[email protected]>
rust: block: allow(deprecated) for fetch_update for Rust >= 1.99.0
Sven Eckelmann <[email protected]>
batman-adv: ensure minimal ethernet header on TX
Sven Eckelmann <[email protected]>
batman-adv: retrieve ethhdr after potential skb realloc on RX
Heiko Carstens <[email protected]>
s390: Revert support for DCACHE_WORD_ACCESS
Jamal Hadi Salim <[email protected]>
net/sched: sch_teql: move rcu_read_lock()/spin_lock() from _bh variants
Daniel Gibson <[email protected]>
platform/x86/amd/pmc: Avoid logging "(null)" for DMI values
Shitalkumar Gandhi <[email protected]>
ieee802154: ca8210: fix pointer truncation in kfifo on 64-bit
Shitalkumar Gandhi <[email protected]>
ieee802154: ca8210: fix cas_ctl leak on spi_async failure
Michael Bommarito <[email protected]>
ieee802154: allow legacy LLSEC ADD/DEL ops to pass strict validation
Michael Bommarito <[email protected]>
ieee802154: admin-gate legacy LLSEC dump operations
Haoxiang Li <[email protected]>
octeontx2-af: Free BPID bitmap on setup failure
Maoyi Xie <[email protected]>
net: ip6_gre: require CAP_NET_ADMIN in the device netns for changelink
Maoyi Xie <[email protected]>
net: ipip: require CAP_NET_ADMIN in the device netns for changelink
Maoyi Xie <[email protected]>
net: ip_vti: require CAP_NET_ADMIN in the device netns for changelink
Maoyi Xie <[email protected]>
net: ip6_vti: require CAP_NET_ADMIN in the device netns for changelink
Dawei Feng <[email protected]>
net: ena: clean up XDP TX queues when regular TX setup fails
Zihan Xi <[email protected]>
net/sched: act_ct: preserve tc_skb_cb across defragmentation
Haoxiang Li <[email protected]>
net: ixp4xx_hss: fix duplicate HDLC netdev allocation
Haoxiang Li <[email protected]>
net: wwan: t7xx: destroy DMA pool on CLDMA late init failure
Maoyi Xie <[email protected]>
net: sit: require CAP_NET_ADMIN in the device netns for changelink
Andreas Kemnade <[email protected]>
gpios: palmas: add .get_direction() op
Paul Louvel <[email protected]>
gpio-f7188x: Add support for NCT6126D version B
Runyu Xiao <[email protected]>
gpio: tegra: do not call pinctrl for GPIO direction
Bradley Morgan <[email protected]>
cpu: hotplug: Bound hotplug states sysfs output
Bradley Morgan <[email protected]>
cpu: hotplug: Preserve per instance callback errors
Cao Ruichuang <[email protected]>
selftests/ftrace: Drop invalid top-level local in test_ownership
Zhan Xusheng <[email protected]>
posix-cpu-timers: Use u64 multiplication in update_rlimit_cpu()
Michael Bommarito <[email protected]>
tracing/user_events: Fix use-after-free in user_event_mm_dup()
Doruk Tan Ozturk <[email protected]>
net/mlx5e: macsec: fix use-after-free of metadata_dst on RX SC delete
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix type confusion in CDC union descriptor parsing
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix race condition in reset_device sysfs callback
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix potential infinite loop in CDC union descriptor parsing
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix out-of-bounds read in ims_pcu_irq() debug logging
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix firmware leak in async update
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix DMA mapping violation in line setup
Dmitry Torokhov <[email protected]>
Input: ims-pcu - add response length checks
Dmitry Torokhov <[email protected]>
Input: ims-pcu - validate control endpoint type
Dmitry Torokhov <[email protected]>
Input: ims-pcu - release data interface on disconnect
Dmitry Torokhov <[email protected]>
Input: ims-pcu - only expose sysfs attributes on control interface
Dmitry Torokhov <[email protected]>
Input: ims-pcu - fix use-after-free and double-free in disconnect
Haoxiang Li <[email protected]>
scsi: elx: efct: Fix I/O leak on unsupported additional CDB
WenTao Liang <[email protected]>
scsi: elx: efct: Fix refcount leak in efct_hw_io_abort()
Bryam Vargas <[email protected]>
scsi: target: core: Fix iSCSI ISID use-after-free in REGISTER AND MOVE
Bryam Vargas <[email protected]>
scsi: target: Bound PR-OUT TransportID parsing to the received buffer
Michael Bommarito <[email protected]>
scsi: xen: scsiback: Free unsubmitted command instead of double-putting it
Michael Bommarito <[email protected]>
scsi: xen: scsiback: Free the command tag on the TMR submit-failure path
Xu Rao <[email protected]>
scsi: sg: Report request-table problems when any status is set
Abdun Nihaal <[email protected]>
scsi: lpfc: Fix memory leak in lpfc_sli4_driver_resource_setup()
Haoxiang Li <[email protected]>
scsi: hpsa: Fix DMA mapping leak on IOACCEL2 reset path
Jhonraushan <[email protected]>
accel/ivpu: Reject firmware log with size smaller than header
Mikulas Patocka <[email protected]>
dm-verity: make error counter atomic
Mikulas Patocka <[email protected]>
dm-verity: increase sprintf buffer size
Mikulas Patocka <[email protected]>
dm-verity: fix a possible NULL pointer dereference
Mikulas Patocka <[email protected]>
dm-verity: avoid double increment of &use_bh_wq_enabled
Mikulas Patocka <[email protected]>
dm-integrity: don't increment hash_offset twice
Mikulas Patocka <[email protected]>
dm-integrity: fix a bug if the bio is out of limits
Mikulas Patocka <[email protected]>
dm_early_create: fix freeing used table on dm_resume failure
Mikulas Patocka <[email protected]>
dm-stats: fix merge accounting
Mikulas Patocka <[email protected]>
dm-stats: fix dm_jiffies_to_msec64
Benjamin Marzinski <[email protected]>
dm-log: fix a bitset_size overflow on 32bit machines
Mikulas Patocka <[email protected]>
dm-ioctl: fix a possible overflow in list_version_get_info
Mikulas Patocka <[email protected]>
dm-bufio: fix wrong count calculation in dm_bufio_issue_discard
Samuel Moelius <[email protected]>
dm era: fix out-of-bounds memory access for non-zero start sector
Ming-Hung Tsai <[email protected]>
dm thin metadata: fix metadata snapshot consistency on commit failure
Genjian Zhang <[email protected]>
dm thin metadata: fix superblock refcount leak on snapshot shadow failure
Haoxiang Li <[email protected]>
net: sparx5: unregister blocking notifier on init failure
Mike Waychison <[email protected]>
block: fix race in blk_time_get_ns() returning 0
Jiri Olsa <[email protected]>
bpf: Add missing access_ok call to copy_user_syms
Jann Horn <[email protected]>
bpf,fork: wipe ->bpf_storage before bailouts that access it
Oliver Hartkopp <[email protected]>
can: bcm: add missing rcu list annotations and operations
Oliver Hartkopp <[email protected]>
can: bcm: fix lockless bound/ifindex race and silent RX_SETUP failure
Lee Jones <[email protected]>
can: bcm: defer rx_op deallocation to workqueue to fix thrtimer UAF
Oliver Hartkopp <[email protected]>
can: isotp: use unconditional synchronize_rcu() in isotp_release()
Fan Wu <[email protected]>
can: esd_usb: kill anchored URBs before freeing netdevs
Maoyi Xie <[email protected]>
netdev-genl: report NAPI thread PID in the caller's pid namespace
Bryam Vargas <[email protected]>
nvmet-rdma: handle inline data with a nonzero offset
Benjamin Coddington <[email protected]>
NFS: Charge unstable writes by request size, not folio size
Weiming Shi <[email protected]>
sctp: validate STALE_COOKIE cause length before reading staleness
Kunihiko Hayashi <[email protected]>
spi: uniphier: Fix completion initialization order before devm_request_irq()
Wang Yan <[email protected]>
time: Fix off-by-one in compat settimeofday() usec validation
Jaewon Yang <[email protected]>
tpm: Make the TPM character devices non-seekable
Thorsten Blum <[email protected]>
tpm: fix event_size output in tpm1_binary_bios_measurements_show
Maoyi Xie <[email protected]>
xfrm: xfrm_interface: require CAP_NET_ADMIN in the device netns for changelink
Sanman Pradhan <[email protected]>
xfrm: use compat translator only for u64 alignment mismatch
Wentao Liang <[email protected]>
xen/gntdev: fix error handling in ioctl
Paul Greenwalt <[email protected]>
ice: fix ice_init_link() error return preventing probe
Xuanqiang Luo <[email protected]>
i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource()
Roman Vivchar <[email protected]>
i2c: mediatek: fix WRRD for SoCs without auto_restart option
Joshua Crofts <[email protected]>
hwmon: (max6697) add missing 'select REGMAP_I2C' to Kconfig
Joshua Crofts <[email protected]>
hwmon: (ltc2992) add missing 'select REGMAP_I2C' to Kconfig
Ibrahim Hashimov <[email protected]>
ksmbd: fix integer overflow in set_file_allocation_info()
Fredric Cover <[email protected]>
smb: client: use kvzalloc() for megabyte buffer in simple fallocate
Holger Dengler <[email protected]>
pkey: Move keytype check from pkey api to handler
Daniel Gibson <[email protected]>
platform/x86/amd/pmc: Don't log during intermediate wakeups
Daniel Gibson <[email protected]>
platform/x86/amd/pmc: Add delay_suspend module parameter
Daniel Gibson <[email protected]>
platform/x86/amd/pmc: Delay suspend for some Lenovo Laptops
Daniel Gibson <[email protected]>
platform/x86/amd/pmc: Check for intermediate wakeup in function
Haoxiang Li <[email protected]>
platform/x86: dell-laptop: fix missing cleanups in init error path
Frank Li <[email protected]>
dmaengine: dw-edma: Add spinlock to protect DONE_INT_MASK and ABORT_INT_MASK
Kartik Rajput <[email protected]>
dmaengine: tegra: Fix burst size calculation
Michael Bommarito <[email protected]>
tpm: tpm2-sessions: wait for async KPP completion in tpm_buf_append_salt
Jarkko Sakkinen <[email protected]>
tpm: tpm_tis_spi: Use wait_woken() in wait_for_tmp_stat()
Bhargav Joshi <[email protected]>
irqchip/crossbar: Use correct index in crossbar_domain_free()
Yiyang Chen <[email protected]>
taskstats: retain dead thread stats in TGID queries
Florian Fuchs <[email protected]>
mtd: maps: vmu-flash: fix NULL pointer dereference in initialization
Miquel Raynal <[email protected]>
mtd: rawnand: Pause continuous reads at block boundaries
Takahiro Kuwano <[email protected]>
mtd: spi-nor: spansion: use die erase for multi-die devices only
Miquel Raynal <[email protected]>
mtd: spi-nor: swp: Improve locking user experience
Holger Dengler <[email protected]>
s390/pkey: Check length in pkey_pckmo handler implementation
Holger Dengler <[email protected]>
s390/pkey: Check length in PKEY_VERIFYPROTK ioctl
Sebastian Alba Vives <[email protected]>
fpga: microchip-spi: fix zero header_size OOB read in mpf_ops_parse_header()
Maoyi Xie <[email protected]>
net: thunderbolt: Fix frags[] overflow by bounding frame_count
Manivannan Sadhasivam <[email protected]>
bus: mhi: ep: Protect mhi_ep_handle_syserr() in the error path
Sebastian Alba Vives <[email protected]>
fpga: dfl: add bounds check in dfh_get_param_size()
Michael Bommarito <[email protected]>
ocfs2: reject non-inline dinodes with i_size and zero i_clusters
Michael Bommarito <[email protected]>
ocfs2: reject dinodes whose i_rdev disagrees with the file type
Michael Bommarito <[email protected]>
ocfs2: reject dinodes with non-canonical i_mode type
Joseph Qi <[email protected]>
ocfs2: add journal NULL check in ocfs2_checkpoint_inode()
Ian Bridges <[email protected]>
ocfs2: fix NULL h_transaction deref in ocfs2_assure_trans_credits
Kyle Zeng <[email protected]>
ocfs2: avoid moving extents to occupied clusters
Arseniy Krasnov <[email protected]>
mtd: rawnand: fix condition in 'nand_select_target()'
Vasiliy Kovalev <[email protected]>
net/9p: fix infinite loop in p9_client_rpc on fatal signal
Bastien Curutchet <[email protected]>
mtd: rawnand: pl353: fix probe resource allocation
Tristan Madani <[email protected]>
ocfs2: use kzalloc for quota recovery bitmap allocation
Ionut Nechita <[email protected]>
scsi: sas: Skip opt_sectors when DMA reports no real optimization hint
Martin Wilck <[email protected]>
scsi: smartpqi: Use shost_to_hba() in pqi_scan_finished()
Breno Leitao <[email protected]>
9p: skip nlink update in cacheless mode to fix WARN_ON
Ruoyu Wang <[email protected]>
mtd: slram: remove failed entries from the device list
Karl Mehltretter <[email protected]>
kcov: use WRITE_ONCE() for selftest mode stores
Muchun Song <[email protected]>
mm/mm_init: fix uninitialized struct pages for ZONE_DEVICE
Krzysztof Wilczyński <[email protected]>
proc: only bump parent nlink when registering directories
Kiryl Shutsemau (Meta) <[email protected]>
fs/proc/task_mmu: use huge_page_size() in pagemap_scan_hugetlb_entry()
Kiryl Shutsemau (Meta) <[email protected]>
fs/proc/task_mmu: fix hugetlb self-deadlock in pagemap_scan_pte_hole()
SeongJae Park <[email protected]>
mm/damon/sysfs-schemes: put stats for scheme_add_dirs() internal error
SeongJae Park <[email protected]>
mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs()
Zishun Yi <[email protected]>
riscv: cacheinfo: Fix node reference leak in populate_cache_leaves
Aaron Tomlin <[email protected]>
mips: sched: Fix CPUMASK_OFFSTACK memory corruption
Bryam Vargas <[email protected]>
selftests/landlock: Test SCOPE_SIGNAL on the SIGIO/fowner pgid path
WenTao Liang <[email protected]>
power: supply: charger-manager: fix refcount leak in is_full_charged()
Tristan Madani <[email protected]>
ntfs3: fix out-of-bounds read in decompress_lznt
Michael Bommarito <[email protected]>
ntfs3: validate split-point offset in indx_insert_into_buffer
Michael Bommarito <[email protected]>
ntfs3: bound to_move in indx_insert_into_root before hdr_insert_head
Michael Bommarito <[email protected]>
ntfs3: cap RESTART_TABLE free-chain walker at rt->used
Michael Bommarito <[email protected]>
fs/ntfs3: bound NTFS_DE view.data_off in UpdateRecordData{Root,Allocation}Michael Bommarito <[email protected]>
fs/ntfs3: add depth limit to indx_find_buffer to prevent stack overflow
Konstantin Komarov <[email protected]>
fs/ntfs3: validate lcns_follow in log_replay conversion
Konstantin Komarov <[email protected]>
fs/ntfs3: bound attr_off in UpdateResidentValue against data_off
Michael Bommarito <[email protected]>
fs/ntfs3: bound copy_lcns dp->page_lcns[] index in analysis pass
Konstantin Komarov <[email protected]>
fs/ntfs3: bound DeleteIndexEntryAllocation memmove length
Zhan Xusheng <[email protected]>
fs/ntfs3: fix syncing wrong inode on DIRSYNC cross-directory rename
SeongJae Park <[email protected]>
mm/damon/core: make charge_addr_from aware of end-address exclusivity
Muchun Song <[email protected]>
mm/memory_hotplug: fix incorrect altmap passing in error path
Ma Ke <[email protected]>
power: supply: cpcap-battery: Fix missing nvmem_device_put() causing reference leak
Maciej W. Rozycki <[email protected]>
MIPS: DEC: Ensure 32-bit stack location for o32 prom_printf()
Johan Hovold <[email protected]>
MIPS: ip22-gio: fix device reference leak in probe
Johan Hovold <[email protected]>
MIPS: ip22-gio: fix kfree() of static object
Johan Hovold <[email protected]>
MIPS: ip22-gio: fix gio device memory leak
Wasim Nazir <[email protected]>
remoteproc: qcom: Fix leak when custom dump_segments addition fails
Chuck Lever <[email protected]>
SUNRPC: Bound-check xdr_buf_to_bvec() stores before writing
Chuck Lever <[email protected]>
lockd: Plug nlm_file refcount leak on cached nlm_do_fopen() failure
Chuck Lever <[email protected]>
lockd: Plug nlm_file leak when nlm_do_fopen() fails
Chuck Lever <[email protected]>
sunrpc: wait for in-flight TLS handshake callback when cancel loses race
Chris Mason <[email protected]>
sunrpc: pin svc_xprt across the asynchronous TLS handshake callback
Abdun Nihaal <[email protected]>
nvdimm/btt: Free arena sub-allocations on discover_arenas() error path
Abdun Nihaal <[email protected]>
nvdimm/btt: Free arenas on btt_init() error paths
Junrui Luo <[email protected]>
jbd2: fix integer underflow in jbd2_journal_initialize_fast_commit()
Pauli Virtanen <[email protected]>
Bluetooth: SCO: hold sk properly in sco_conn_ready
Pauli Virtanen <[email protected]>
Bluetooth: SCO: fix sleeping under spinlock in sco_conn_ready
Benoît Sevens <[email protected]>
HID: playstation: validate num_touch_reports in DualShock 4 reports
Bartosz Golaszewski <[email protected]>
mfd: tps6586x: Fix OF node refcount
Shyam Prasad N <[email protected]>
cifs: invalidate cfid on unlink/rename/rmdir
Sven Eckelmann <[email protected]>
batman-adv: tt: prevent TVLV OOB check overflow
Sven Eckelmann <[email protected]>
batman-adv: mcast: avoid OOB read of num_dests header
Sven Eckelmann <[email protected]>
batman-adv: frag: fix primary_if leak on failed linearization
Sven Eckelmann <[email protected]>
batman-adv: frag: free unfragmentable packet
Sven Eckelmann <[email protected]>
batman-adv: fix VLAN priority offset
Sven Eckelmann <[email protected]>
batman-adv: tt: avoid request storms during pending request
Sven Eckelmann <[email protected]>
batman-adv: dat: fix tie-break for candidate selection
Sven Eckelmann <[email protected]>
batman-adv: dat: ensure accessible eth_hdr proto field
Sven Eckelmann <[email protected]>
batman-adv: bla: reacquire gw address after skb realloc
Sven Eckelmann <[email protected]>
batman-adv: dat: acquire ARP hw source only after skb realloc
Sven Eckelmann <[email protected]>
batman-adv: access unicast_ttvn skb->data only after skb realloc
Sven Eckelmann <[email protected]>
batman-adv: gw: acquire ethernet header only after skb realloc
Sumanth Korikkar <[email protected]>
s390/perf_cpum_cf: Add missing array_index_nospec() to __hw_perf_event_init()
Rafael J. Wysocki <[email protected]>
cpufreq: intel_pstate: Set non-turbo capacity to HWP_GUARANTEED_PERF()
Sandipan Das <[email protected]>
perf/x86/amd/lbr: Fix kernel address leakage
Thorsten Blum <[email protected]>
x86/boot: Reject too long acpi_rsdp= values
Thorsten Blum <[email protected]>
x86/boot: Validate console=uart8250 baud rate to fix early boot hang
Ali Ahmet MEMIS <[email protected]>
tools/power/x86/intel-speed-select: Harden daemon pidfile open
Guangshuo Li <[email protected]>
mfd: sm501: Fix reference leak on failed device registration
Armin Wolf <[email protected]>
leds: uleds: Fix potential buffer overread
Ondrej Mosnacek <[email protected]>
selinux: fix incorrect execmem checks on overlayfs
Tristan Madani <[email protected]>
selinux: avoid sk_socket dereference in selinux_sctp_bind_connect()
Stephen Smalley <[email protected]>
selinux: check connect-related permissions on TCP Fast Open
Wang Jun <[email protected]>
soc: fsl: qe: panic on ioremap() failure in qe_reset()
Siddharth Vadapalli <[email protected]>
soc: ti: k3-ringacc: Fix access mode for k3_ringacc_ring_pop_tail_io/proxy
Guangshuo Li <[email protected]>
gpu: host1x: Fix device reference leak in host1x_device_parse_dt() error path
Xiang Mei (Microsoft) <[email protected]>
netfilter: bridge: fix stale prevhdr pointer in br_ip6_fragment()
Wyatt Feng <[email protected]>
netfilter: xt_nat: reject unsupported target families
Yizhou Zhao <[email protected]>
netfilter: ecache: fix inverted time_after() check
Yizhou Zhao <[email protected]>
netfilter: nf_conncount: fix zone comparison in tuple dedup
Xiang Mei <[email protected]>
netfilter: nf_conntrack_reasm: guard mac_header adjustment after IPv6 defrag
Florian Westphal <[email protected]>
netfilter: nf_nat_sip: reload possible stale data pointer
Florian Westphal <[email protected]>
netfilter: nft_set_pipapo: don't leak bad clone into future transaction
Haoze Xie <[email protected]>
netfilter: nf_queue: pin bridge device while NFQUEUE holds fake dst
Wyatt Feng <[email protected]>
netfilter: xt_cluster: reject template conntracks in hash match
David Carlier <[email protected]>
netfilter: nfnl_cthelper: apply per-class values when updating policies
Muhammad Bilal <[email protected]>
netfilter: nf_conntrack_irc: fix parse_dcc() off-by-one OOB read
Srinivas Kandagatla <[email protected]>
ASoC: qcom: q6apm: fix NULL pointer dereference in graph_callback
Cássio Gabriel <[email protected]>
ASoC: mediatek: mt8183: Release reserved memory on cleanup
Cássio Gabriel <[email protected]>
ASoC: mediatek: mt8192: Release reserved memory on cleanup
Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc3-control: Validate size in snd_sof_update_control
Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc3-control: Fix heap overflow in bytes_ext put/get
Abdun Nihaal <[email protected]>
fbdev: tridentfb: fix potential memory leak in trident_pci_probe()
Abdun Nihaal <[email protected]>
fbdev: nvidia: fix potential memory leak in nvidiafb_probe()
Abdun Nihaal <[email protected]>
fbdev: vesafb: fix memory leak in vesafb_probe()
Abdun Nihaal <[email protected]>
fbdev: carminefb: fix potential memory leak in alloc_carmine_fb()
Abdun Nihaal <[email protected]>
fbdev: tdfxfb: fix potential memory leak in tdfxfb_probe()
Abdun Nihaal <[email protected]>
fbdev: uvesafb: fix potential memory leak in uvesafb_probe()
Abdun Nihaal <[email protected]>
fbdev: s3fb: fix potential memory leak in s3_pci_probe()
Abdun Nihaal <[email protected]>
fbdev: i740fb: fix potential memory leak in i740fb_probe()
Abdun Nihaal <[email protected]>
fbdev: radeon: fix potential memory leak in radeonfb_pci_register()
Abdun Nihaal <[email protected]>
fbdev: efifb: fix memory leak in efifb_probe()
Li RongQing <[email protected]>
fbdev: sm712: Fix operator precedence in big_swap macro
Abdun Nihaal <[email protected]>
fbdev: hecubafb: fix potential memory leak in hecubafb_probe()
Abdun Nihaal <[email protected]>
fbdev: broadsheetfb: fix potential memory leak in broadsheetfb_probe()
Abdun Nihaal <[email protected]>
fbdev: metronomefb: fix potential memory leak in metronomefb_probe()
Weiming Shi <[email protected]>
KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops()
Oliver Upton <[email protected]>
KVM: arm64: nv: Drop bogus WARN for write to ZCR_EL2
Sean Christopherson <[email protected]>
KVM: x86: Ignore pending PV EOI if the vCPU has since disabled PV EOIs
Atish Patra <[email protected]>
KVM: SEV: Do not allow intra-host migration/mirroring of SNP VMs
Matthew Rosato <[email protected]>
KVM: s390: pci: Fix handling of AIF enable without AISB
Hyunwoo Kim <[email protected]>
KVM: arm64: vgic: Check the interrupt is still ours before migrating it
Haoxiang Li <[email protected]>
KVM: s390: pci: Fix GISC refcount leak on AIF enable failure
Qiang Ma <[email protected]>
LoongArch: KVM: Return full old CSR value from kvm_emu_xchg_csr()
Bibo Mao <[email protected]>
LoongArch: KVM: Fix FPU register width with user access API
Qiang Ma <[email protected]>
LoongArch: KVM: Check the return values for put_user()
Bibo Mao <[email protected]>
LoongArch: KVM: Check irq validity in kvm_vcpu_ioctl_interrupt()
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Move expander gpio-line-names to board files
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Fix expander gpio line typo
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Move gpio-line-names to board files
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Fix GPIO names typo
Krzysztof Kozlowski <[email protected]>
arm64: dts: imx8ulp-evk: Correct Type-C int GPIO flags
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Enable internal ADC reference
Judith Mendez <[email protected]>
arm64: dts: ti: k3-am62a7-sk: Add bootph-all tag to vqmmc
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Move divergent mecio1 ADC channels to board files
David Jander <[email protected]>
ARM: dts: stm32: stm32mp15x-mecio1-io: Fix ADC sampling times
Nickolay Goppen <[email protected]>
arm64: dts: qcom: sdm630: describe adsp_mem region properly
Mark Rutland <[email protected]>
arm64: fpsimd: Fix type mismatch in sve_{save,load}_state()
Yong Wang <[email protected]>
net: ife: require ETH_HLEN to be pullable in ife_decode()
Zhengchuan Liang <[email protected]>
net: atm: reject out-of-range traffic classes in QoS validation
Michael Bommarito <[email protected]>
net: qrtr: fix 32-bit integer overflow in qrtr_endpoint_post()
Cássio Gabriel <[email protected]>
ASoC: SOF: topology: validate vendor array size before parsing
Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc3-control: Fix TOCTOU in bytes_put and bytes_get
Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc3-control: Use overflow checks in control_update size calc
Peter Ujfalusi <[email protected]>
ASoC: SOF: ipc4-control: Fix TOCTOU in sof_ipc4_bytes_put
Zhang Tianci <[email protected]>
vduse: Fix race in vduse_dev_msg_sync and vduse_dev_read_iter
Wentao Liang <[email protected]>
mlxsw: fix refcount leak in mlxsw_sp_vrs_lpm_tree_replace()
Wentao Liang <[email protected]>
mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()
Guangshuo Li <[email protected]>
smb: client: fix overflow in passthrough ioctl bounds check
Anas Khan <[email protected]>
drm/xe: remove duplicate <kunit/test-bug.h> include
Harman Kalra <[email protected]>
octeontx2-af: fix VF bringup affecting PF promiscuous state
Li RongQing <[email protected]>
net/mlx5: Fix L3 tunnel entropy refcount leak
Wang Yan <[email protected]>
selftests/net: fix EVP_MD_CTX leak in tcp_mmap
Timur Tabi <[email protected]>
regulator: core: regulator_lock_two() should test for EDEADLK not EDEADLOCK
Cao Guanghui <[email protected]>
dm era: fix NULL pointer dereference in metadata_open()
Chuck Lever <[email protected]>
SUNRPC: pin upper rpc_clnt across the TLS connect_worker
Chuck Lever <[email protected]>
SUNRPC: release lower rpc_clnt if killed waiting for XPRT_LOCKED
Guangshuo Li <[email protected]>
cifs: validate DFS referral string offsets
Rongguang Wei <[email protected]>
s390/zcrypt: Remove the empty file
Julian Anastasov <[email protected]>
ipvs: ensure inner headers in ICMP errors are in headroom
Yizhou Zhao <[email protected]>
ipvs: fix PMTU for GUE/GRE tunnel ICMP errors
Yizhou Zhao <[email protected]>
ipvs: use parsed transport offset in TCP state lookup
Yizhou Zhao <[email protected]>
ipvs: pass parsed transport offset to state handlers
Tamaki Yanagawa <[email protected]>
netfilter: nft_lookup: fix catchall element handling with inverted lookups
Eric Dumazet <[email protected]>
ipv6: mcast: Fix potential UAF in MLD delayed work
Kuniyuki Iwashima <[email protected]>
ipv6: mcast: Replace locking comments with lockdep annotations.
Eric Dumazet <[email protected]>
ipv4: igmp: Fix potential UAF in igmp_gq_start_timer()
Rosen Penev <[email protected]>
gpio: mvebu: free generic chips on unbind
Sandipan Das <[email protected]>
perf/x86/amd/core: Avoid enabling BRS from the SVM reload path
Suman Ghosh <[email protected]>
octeontx2-pf: check DMAC extraction support before filtering
Samuel Moelius <[email protected]>
net/sched: cake: reject overhead values that underflow length
Maíra Canal <[email protected]>
drm/v3d: Reject invalid indirect BO handle in indirect CSD setup
Enrico Pozzobon <[email protected]>
net: usb: lan78xx: disable VLAN filter in promiscuous mode
Oleksij Rempel <[email protected]>
net: usb: lan78xx: move functions to avoid forward definitions
Chuck Lever <[email protected]>
net/tls: Consume empty data records in tls_sw_read_sock()
Hui Wang <[email protected]>
ring-buffer: Fix event length with forced 8-byte alignment
Weiming Shi <[email protected]>
Bluetooth: bpa10x: avoid OOB read of revision string in bpa10x_setup()
Pauli Virtanen <[email protected]>
Bluetooth: ISO: exclude RFU bits from ISO_SDU_Length
Cen Zhang <[email protected]>
Bluetooth: MGMT: Fix adv monitor add failure cleanup
Cen Zhang <[email protected]>
Bluetooth: 6lowpan: hold L2CAP conn across debugfs control
Eric Dumazet <[email protected]>
amt: fix size calculation in amt_get_size()
Xiang Mei <[email protected]>
net/smc: fix UAF in smc_cdc_rx_handler() by pinning the socket
Jamal Hadi Salim <[email protected]>
net/sched: act_pedit: fix TOCTOU heap OOB write in tc offload
Xiang Mei <[email protected]>
net: qualcomm: rmnet: validate MAP frame length before ingress parsing
Shigeru Yoshida <[email protected]>
qede: fix off-by-one in BD ring consumption on build_skb failure
Jens Emil Schulz Østergaard <[email protected]>
net: microchip: vcap: fix races on the shared Super VCAP block
Feng Liu <[email protected]>
net/mlx5e: Fix HV VHCA stats agent registration race
Feng Liu <[email protected]>
net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation
Shay Drory <[email protected]>
net/mlx5: LAG, MPESW, Fix missing complete() on devcom error
Wyatt Feng <[email protected]>
netfilter: xt_connmark: reject invalid shift parameters
Zhixing Chen <[email protected]>
netfilter: ip6tables: mark malformed IPv6 extension headers for hotdrop
Feng Wu <[email protected]>
netfilter: xt_rateest: fix u64 truncation in xt_rateest_mt()
Wyatt Feng <[email protected]>
netfilter: xt_u32: reject invalid shift counts
Qihang <[email protected]>
gue: validate REMCSUM private option length
Xiang Mei <[email protected]>
net: usb: net1080: validate packet_len before pad-byte access in rx_fixup
Yiyang Chen <[email protected]>
selftests/hid: Cover hid_bpf_get_data() size overflow
Yiyang Chen <[email protected]>
selftests/hid: Load only requested struct_ops maps
Yiyang Chen <[email protected]>
HID: bpf: Fix hid_bpf_get_data() range check
Anshuman Khandual <[email protected]>
arm64/mm: Optimize TLB flush in unmap_hotplug_[pmd|pud]_range()
Lee Jones <[email protected]>
HID: core: Fix OOB read in hid_get_report for numbered reports
Georgiy Osokin <[email protected]>
HID: picolcd: prevent NULL pointer dereference in picolcd_send_and_wait()
Karuna Ramkumar <[email protected]>
ata: libata-scsi: limit simulated SCSI command copy to response length
Myeonghun Pak <[email protected]>
ata: sata_gemini: unwind clocks on IDE pinctrl errors
David Howells <[email protected]>
cifs: Fix missing credit release on failure in cifs_issue_read()
David Howells <[email protected]>
netfs: Drop the error arg from netfs_read_subreq_terminated()
Michal Wajdeczko <[email protected]>
drm/xe/pf: Don't attempt to process FAST_REQ or EVENT relays
Shuicheng Lin <[email protected]>
drm/xe/hw_engine: Fix double-free of managed BO in error path
Francois Dugast <[email protected]>
drm/xe/pt: Fix NULL pointer dereference in xe_pt_zap_ptes_entry()
David Howells <[email protected]>
netfs: Fix writeback error handling
Amir Goldstein <[email protected]>
ovl: fix comment about locking order
Michael Bommarito <[email protected]>
minix: avoid overflow in bitmap block count calculation
David Howells <[email protected]>
afs: Fix unchecked-length string display in debug statement
David Howells <[email protected]>
afs: Fix the volume AFS_VOLUME_RM_TREE is set on
David Howells <[email protected]>
afs: Fix vllist leak
David Howells <[email protected]>
afs: Fix missing NULL pointer check in afs_break_some_callbacks()
David Howells <[email protected]>
afs: Fix callback service message parsers to pass through -EAGAIN
David Howells <[email protected]>
afs: Fix misplaced inc of net->cells_outstanding
David Howells <[email protected]>
afs: Change dynroot to create contents on demand
David Howells <[email protected]>
afs: Remove the "autocell" mount option
David Howells <[email protected]>
afs: Fix afs_atcell_get_link() to handle RCU pathwalk
David Howells <[email protected]>
afs: Make /afs/@cell and /afs/.@cell symlinks
David Howells <[email protected]>
afs: Add rootcell checks
David Howells <[email protected]>
afs: Make /afs/.<cell> as well as /afs/<cell> mountpoints
Li RongQing <[email protected]>
afs: Remove erroneous seq |= 1 in volume lookup loop
Zilin Guan <[email protected]>
afs: use kvfree() to free memory allocated by kvcalloc()
David Howells <[email protected]>
afs: Fix double netfs initialisation in afs_root_iget()
Dan Carpenter <[email protected]>
afs: Fix error code in afs_extract_vl_addrs()
Christian Brauner <[email protected]>
fs: refuse O_TMPFILE creation with an unmapped fsuid or fsgid
Samuel Moelius <[email protected]>
net/sched: hhf: clear heavy-hitter state on reset
Viacheslav Bocharov <[email protected]>
pinctrl: meson: restore non-sleeping GPIO access
Vladimir Zapolskiy <[email protected]>
gpio: timberdale: Return -ENOMEM on dynamic memory allocation in probe
Gil Portnoy <[email protected]>
ksmbd: fix use-after-free of fp->owner.name in durable handle owner check
Haofeng Li <[email protected]>
ksmbd: reject undersized DACLs before parsing ACEs
Sechang Lim <[email protected]>
net/sched: act_bpf: use rcu_dereference_bh() to read the filter
Gleb Markov <[email protected]>
cxgb4: Fix decode strings dump for T6 adapters
Longjun Tang <[email protected]>
virtio_net: disable cb when NAPI is busy-polled
Qingshuang Fu <[email protected]>
irqchip/ts4800: Fix missing chained handler cleanup on remove
Yuho Choi <[email protected]>
irqchip/gic-v3-its: Fix OF node reference leak
Martin Kaiser <[email protected]>
tracing: eprobe: read the complete FILTER_PTR_STRING pointer
Masami Hiramatsu (Google) <[email protected]>
tracing/events: Fix to check the simple_tsk_fn creation
Boris Brezillon <[email protected]>
drm/panthor: Interrupt group start/resumption if group_bind_locked() fails
Boris Brezillon <[email protected]>
drm/panthor: Fix a leak when a group is evicted before the tiler OOM is serviced
Boris Brezillon <[email protected]>
drm/panthor: Don't overrule pending immediate ticks in sched_resume_tick()
Boris Brezillon <[email protected]>
drm/panthor: Fix potential invalid pointer deref in group_process_tiler_oom()
Ido Schimmel <[email protected]>
bridge: stp: Fix a potential use-after-free when deleting a bridge
Jamal Hadi Salim <[email protected]>
net/sched: sch_teql: Introduce slaves_lock to avoid race condition and UAF
Rosen Penev <[email protected]>
net: gianfar: dispose irq mappings on probe failure and device removal
Petr Wozniak <[email protected]>
net: phy: sfp: free mii_bus in sfp_i2c_mdiobus_destroy
Xiang Mei <[email protected]>
usbnet: gl620a: fix out-of-bounds read in genelink_rx_fixup()
Pengfei Zhang <[email protected]>
ipv6: fib6: fix NULL deref in fib6_walk_continue() on multi-batch dump
Guenter Roeck <[email protected]>
hwmon: (aspeed-g6-pwm-tach) Guard fan RPM calculation against divide-by-zero
Guenter Roeck <[email protected]>
hwmon: (pmbus) Fix passing events to regulator core
Matti Vaittinen <[email protected]>
hwmon: adm1275: Prevent reading uninitialized stack
Luca Weiss <[email protected]>
ASoC: codecs: lpass-va-macro: Fix LPASS Codec Version for SC7280
Srinivas Kandagatla <[email protected]>
ASoC: codecs: lpass-va-macro: add SM6115 compatible
Maciej W. Rozycki <[email protected]>
MIPS: DEC: Ensure RTC platform device deregistration upon failure
Yousef Alhouseen <[email protected]>
sctp: fix SCTP_RESET_STREAMS stream list length limit
Wei Fang <[email protected]>
net: enetc: check the number of BDs needed for xdp_frame
Matvey Kovalev <[email protected]>
qede: fix out-of-bounds check for cqe->len_list[]
Nuoqi Gui <[email protected]>
seg6: validate SRH length before reading fixed fields
Pengpeng Hou <[email protected]>
gpio: htc-egpio: use managed gpiochip registration
Pengpeng Hou <[email protected]>
gpio: mvebu: fail probe if gpiochip registration fails
Pengpeng Hou <[email protected]>
spi: sh-msiof: abort transfers when reset times out
Martin Kaiser <[email protected]>
tracing: probes: fix typo in a log message
Shuaisong Yang <[email protected]>
net: hns3: differentiate autoneg default values between copper and fiber
Shuaisong Yang <[email protected]>
net: hns3: fix permanent link down deadlock after reset
Shuaisong Yang <[email protected]>
net: hns3: refactor MAC autoneg and speed configuration
Shuaisong Yang <[email protected]>
net: hns3: unify copper port ksettings configuration path
Peiyang Wang <[email protected]>
net: hns3: clear hns alarm: comparison of integer expressions of different signedness
Jijie Shao <[email protected]>
net: hns3: use hns3_get_ops() helper to reduce the unnecessary middle layer conversion
Jijie Shao <[email protected]>
net: hns3: use hns3_get_ae_dev() helper to reduce the unnecessary middle layer conversion
Jian Shen <[email protected]>
net: hns3: use string choices helper
Rosen Penev <[email protected]>
net: hisilicon: hns3: use ethtool string helpers
Rob Herring (Arm) <[email protected]>
dt-bindings: net: renesas,ether: Drop example "ethernet-phy-ieee802.3-c22" fallback
Eric Dumazet <[email protected]>
net: udp_tunnel: prevent double queueing in udp_tunnel_nic_device_sync
Stanislav Fomichev <[email protected]>
udp_tunnel: remove rtnl_lock dependency
Shengjiu Wang <[email protected]>
ASoC: fsl_asrc_dma: fix eDMA maxburst misalignment with channel count
Shitalkumar Gandhi <[email protected]>
net: ethernet: sunplus: spl2sw: fix phy_node refcount leak in remove
Ruoyu Wang <[email protected]>
net: sungem: fix probe error cleanup
Yun Zhou <[email protected]>
net: mvneta: re-enable percpu interrupt on resume
Subbaraya Sundeep <[email protected]>
octeontx2-af: Validate NIX maximum LFs correctly
David Yang <[email protected]>
net: dsa: realtek: fix memory leak in rtl8366rb_setup_led()
Haoxiang Li <[email protected]>
rtc: cmos: unregister HPET IRQ handler on probe failure
Fredrik M Olsson <[email protected]>
rtc: ds1307: Fix off-by-one issue with wday for rx8130
Huiwen He <[email protected]>
smb/client: preserve errors from smb2_set_sparse()
Li RongQing <[email protected]>
ACPI: processor_idle: Mark LPI enter functions as __cpuidle
Rafael J. Wysocki <[email protected]>
thermal: testing: zone: Flush work items during cleanup
Fernando Fernandez Mancera <[email protected]>
ipv6: fix missing notification for ignore_routes_with_linkdown
Kuniyuki Iwashima <[email protected]>
ipv6: Convert net.ipv6.conf.${DEV}.XXX sysctl to per-netns RTNL.Kuniyuki Iwashima <[email protected]>
ipv6: Add __in6_dev_get_rtnl_net().
Kuniyuki Iwashima <[email protected]>
rtnetlink: Define rtnl_net_trylock().
Kuniyuki Iwashima <[email protected]>
rtnetlink: Add assertion helpers for per-netns RTNL.
Kuniyuki Iwashima <[email protected]>
rtnetlink: Add per-netns RTNL.
Fernando Fernandez Mancera <[email protected]>
ipv6: fix error handling in disable_policy sysctl
Fernando Fernandez Mancera <[email protected]>
ipv6: fix error handling in forwarding sysctl
Fernando Fernandez Mancera <[email protected]>
ipv6: fix error handling in ignore_routes_with_linkdown sysctl
Fernando Fernandez Mancera <[email protected]>
ipv6: fix error handling in disable_ipv6 sysctl
Jamal Hadi Salim <[email protected]>
net/sched: cls_api: Handle TC_ACT_CONSUMED in tcf_qevent_handle
Eric Dumazet <[email protected]>
veth: fix NAPI leak in XDP enable error path
Aleksandrova Alyona <[email protected]>
net: dsa: sja1105: round up PTP perout pin duration
Xiang Mei <[email protected]>
net, bpf: check master for NULL in xdp_master_redirect()
Krzysztof Wilczyński <[email protected]>
alpha/PCI: Fix __pci_mmap_fits() overflow for zero-length BARs
Krzysztof Wilczyński <[email protected]>
alpha/PCI: Add security_locked_down() check to pci_mmap_resource()
Koichiro Den <[email protected]>
NTB: epf: Fix doorbell bitmask and IRQ vector handling
Koichiro Den <[email protected]>
NTB: epf: Report 0-based doorbell vector via ntb_db_event()
Koichiro Den <[email protected]>
NTB: epf: Make db_valid_mask cover only real doorbell bits
Qingshuang Fu <[email protected]>
gpio: davinci: fix IRQ domain leak on devm_kzalloc failure
Florian Westphal <[email protected]>
netfilter: nft_compat: ebtables emulation must reject non-bridge targets
Runyu Xiao <[email protected]>
netfilter: nft_synproxy: stop bypassing the priv->info snapshot
Fernando Fernandez Mancera <[email protected]>
netfilter: nf_conncount: prevent connlimit drops for early confirmed ct
Mathias Krause <[email protected]>
netfilter: nf_nat: avoid invalid nat_net pointer use on failed nf_nat_init()
Bradley Morgan <[email protected]>
bpf: Disable xfrm_decode_session hook attachment
Chen Cheng <[email protected]>
md/raid5: avoid R5_Overlap races while breaking stripe batches
Chen Cheng <[email protected]>
md/raid5: use stripe state snapshot in break_stripe_batch_list()
Kuniyuki Iwashima <[email protected]>
ipv4: fib: Don't ignore error route in local/main tables.
Jakub Kicinski <[email protected]>
eth: bnxt: improve the timing of stats
Jakub Kicinski <[email protected]>
eth: bnxt: rename ring_err_stats -> ring_drv_stats
Jakub Kicinski <[email protected]>
eth: bnxt: gather and report HW-GRO stats
Rosen Penev <[email protected]>
net: bnxt: use ethtool string helpers
Xiang Mei <[email protected]>
ipv6: Fix null-ptr-deref in fib6_nh_mtu_change().
Gil Portnoy <[email protected]>
ksmbd: fix use-after-free of conn->preauth_info in concurrent SMB2 NEGOTIATE
Stepan Ionichev <[email protected]>
rtc: msc313: fix NULL deref in shared IRQ handler at probe
Mohamed Khalfella <[email protected]>
i40e: Fix i40e_debug() to use struct i40e_hw argument
ZhaoJinming <[email protected]>
ice: dpll: fix memory leak in ice_dpll_init_info error paths
ZhaoJinming <[email protected]>
ice: dpll: set pointers to NULL after kfree in ice_dpll_deinit_info
Marcin Szycik <[email protected]>
ice: call netif_keep_dst() once when entering switchdev mode
Lukasz Czapnik <[email protected]>
ice: fix AQ error code comparison in ice_set_pauseparam()
Dawid Osuchowski <[email protected]>
ice: fix FDIR CTRL VSI resource leak in ice_reset_all_vfs()
Manivannan Sadhasivam <[email protected]>
PCI: endpoint: pci-epf-ntb: Add check to detect 'db_count' value of 0
Manivannan Sadhasivam <[email protected]>
PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0
Xiang Mei <[email protected]>
drm/edid: fix OOB read in drm_parse_tiled_block()
Bartosz Golaszewski <[email protected]>
power: sequencing: fix ABBA deadlock in pwrseq_device_unregister()
Amery Hung <[email protected]>
bpf: Fix effective prog array index with BPF_F_PREORDER
Avinash Duduskar <[email protected]>
bpf: zero-initialize the fib lookup flow struct
Yichong Chen <[email protected]>
bpftool: Fix vmlinux BTF leak in cgroup commands
Nuoqi Gui <[email protected]>
bpf: Fix stack slot index in nospec checks
Ronan Dalton <[email protected]>
rtc: ds1307: handle oscillator stop flag for ds1337/ds1339/ds3231
Antoni Pokusinski <[email protected]>
rtc: abx80x: fix the RTC_VL_CLR clearing all status flags
Ioana Ciornei <[email protected]>
dpaa2-switch: do not accept VLAN uppers while bridged
Weiming Shi <[email protected]>
ipv6: ndisc: fix NULL deref in accept_untracked_na()
Michael Bommarito <[email protected]>
net/sched: act_ct: fix nf_connlabels leak on two error paths
Geetha sowjanya <[email protected]>
octeontx2-pf: mcs: Fix mcs resources free on PF shutdown
Subbaraya Sundeep <[email protected]>
octeontx2-pf: Clear stats of all resources when freeing resources
Geetha sowjanya <[email protected]>
octeontx2-af: mcs: Fix unsupported secy stats read
Wayen Yan <[email protected]>
net: ethernet: mtk_ppe: Fix rhashtable leak in mtk_ppe_init error paths
Weiming Shi <[email protected]>
tipc: fix use-after-free of the discoverer in tipc_disc_rcv()
Ruoyu Wang <[email protected]>
net: marvell: prestera: initialize err in prestera_port_sfp_bind
Aboorva Devarajan <[email protected]>
selftests/mm: fix exclusive_cow test fork() handling
Sayali Patil <[email protected]>
selftests/mm: allow PUD-level entries in compound testcase of hmm tests
Sayali Patil <[email protected]>
selftests/mm: clarify alternate unmapping in compaction_test
Sayali Patil <[email protected]>
selftests/mm: ensure destination is hugetlb-backed in hugetlb-mremap
Sayali Patil <[email protected]>
selftest/mm: register existing mapping with userfaultfd in hugetlb-mremap
Sayali Patil <[email protected]>
selftests/mm: restore default nr_hugepages value via exit trap in charge_reserved_hugetlb.sh
Bhargav Joshi <[email protected]>
irqchip/crossbar: Fix parent domain resource leak
Sebastian Andrzej Siewior <[email protected]>
mailbox: imx: Forward the timeout/ error in imx_mu_generic_tx()
Florian Westphal <[email protected]>
netfilter: nft_meta_bridge: fix NFT_META_BRI_IIFPVID stack leak
Florian Westphal <[email protected]>
netfilter: nf_reject: skip iphdr options when looking for icmp header
Jozsef Kadlecsik <[email protected]>
netfilter: ipset: make sure gc is properly stopped
Jozsef Kadlecsik <[email protected]>
netfilter: ipset: fix order of kfree_rcu() and rcu_assign_pointer()
Jozsef Kadlecsik <[email protected]>
netfilter: ipset: Don't use test_bit() in lockless RCU readers in hash types
Jozsef Kadlecsik <[email protected]>
netfilter: ipset: annotate "pos" for concurrent readers/writers
Jozsef Kadlecsik <[email protected]>
netfilter: ipset: Fix data race between add and dump in all hash types
Abd-Alrhman Masalkhi <[email protected]>
md/raid1: free r1_bio when REQ_NOWAIT is set and read would block on retry
Robertus Diawan Chris <[email protected]>
mac802154: Prevent overwrite return code in mac802154_perform_association()
Aleksandr Nogikh <[email protected]>
ieee802154: fix kernel-infoleak in dgram_recvmsg()
Ivan Abramov <[email protected]>
ieee802154: Remove WARN_ON() in cfg802154_pernet_exit()
Xu Rao <[email protected]>
ACPI: IPMI: Fix inverted interface check in ipmi_bmc_gone()
Andy Shevchenko <[email protected]>
ACPI: resource: Amend kernel-doc style
Ricardo Neri <[email protected]>
thermal: intel: Fix dangling resources on thermal_throttle_online() failure
Breno Leitao <[email protected]>
arm64/hw_breakpoint: reject unaligned watchpoints that would truncate BAS
Cen Zhang <[email protected]>
ALSA: usb-audio: Kill MIDI 2.0 URBs before freeing endpoints
Yun Zhou <[email protected]>
flow_dissector: check device type before reading ETH_ADDRS
Cosmin Ratiu <[email protected]>
devlink: Fix parent ref leak in devl_rate_node_create()
Ioana Ciornei <[email protected]>
dpaa2-switch: fix VLAN upper check not rejecting bridge join
Xiang Mei <[email protected]>
virtio-net: fix len check in receive_big()
Quang Nguyen <[email protected]>
spi: rpc-if: Use correct device for hardware reinitialization on resume
Mark Tomlinson <[email protected]>
PCI: iproc: Restore .map_irq() for the platform bus driver
Xin Long <[email protected]>
sctp: hold socket lock when dumping endpoints in sctp_diag
Jakub Kicinski <[email protected]>
net: psample: fix info leak in PSAMPLE_ATTR_DATA
Ratheesh Kannoth <[email protected]>
octeontx2-pf: Fix leak of SQ timestamp buffer on teardown
Thadeu Lima de Souza Cascardo <[email protected]>
drm/amdgpu: initialize irq.lock spinlock earlier
Mario Limonciello <[email protected]>
drm/amdkfd: fix list_del corruption in kfd_criu_resume_svm
Yunxiang Li <[email protected]>
drm/amdkfd: Avoid double-unpin of DOORBELL/MMIO BOs on free
Sen Wang <[email protected]>
ASoC: tlv320aic3x: restrict CLKDIV bypass Q values in dual-rate mode
Arnaldo Carvalho de Melo <[email protected]>
perf cs-etm: Bounds-check CPU in cs_etm__get_queue()
Arnaldo Carvalho de Melo <[email protected]>
perf cs-etm: Require full global header in auxtrace_info size check
Arnaldo Carvalho de Melo <[email protected]>
perf cs-etm: Validate num_cpu before metadata allocation
Arnaldo Carvalho de Melo <[email protected]>
perf machine: Use snprintf() for guestmount path construction
Eric Dumazet <[email protected]>
xfrm: validate selector family and prefixlen during match
Eric Dumazet <[email protected]>
xfrm: annotate data-races around xfrm_policy_count[] and xfrm_policy_default[]
Herbert Xu <[email protected]>
xfrm: Fix xfrm state cache insertion race
Jisheng Zhang <[email protected]>
spi: dw: fix wrong BAUDR setting after resume
Guangshuo Li <[email protected]>
drm/i915: clear CRTC color blob pointers after dropping refs
Pengpeng Hou <[email protected]>
gpio: mlxbf3: fail probe if gpiochip registration fails
Arnaldo Carvalho de Melo <[email protected]>
perf cs-etm: Reject CPU IDs that would overflow signed comparison
Leo Yan <[email protected]>
perf: Remove redundant kernel.h include
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Bounds-check array offsets in bpil_offs_to_addr()
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Validate func_info_rec_size and sub_id in synthesize_bpf_prog_name()
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Use snprintf() for root_dir path construction
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Break infinite loop on zero-filled notes in sysfs__read_build_id()
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Validate p_filesz before use in filename__read_build_id()
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Fix bswap copy-paste error for 32-bit ELF p_filesz
Ian Rogers <[email protected]>
perf maps: Add maps__mutate_mapping
Pengpeng Hou <[email protected]>
sparc: led: avoid trimming a newline from empty writes
John Johansen <[email protected]>
apparmor: fix label can not be immediately before a declaration
Adrian Hunter <[email protected]>
i3c: master: Prevent reuse of dynamic address on device add failure
Adrian Hunter <[email protected]>
i3c: master: Make hot-join workqueue freezable to block hot-join during suspend
Marco Crivellari <[email protected]>
i3c: master: add WQ_PERCPU to alloc_workqueue users
Marco Crivellari <[email protected]>
workqueue: Add new WQ_PERCPU flag
Zygmunt Krynicki <[email protected]>
apparmor: put secmark label after secid lookup
Zygmunt Krynicki <[email protected]>
apparmor: aa_getprocattr free procattr leak on format failure
Georgia Garcia <[email protected]>
apparmor: remove or add symlinks to rawdata according to export_binary
Maxime Bélair <[email protected]>
apparmor: fix potential UAF in aa_replace_profiles
Ryan Lee <[email protected]>
apparmor: grab ns lock and refresh when looking up changehat child profiles
John Johansen <[email protected]>
apparmor: fix rawdata_f_data implicit flex array
Zygmunt Krynicki <[email protected]>
apparmor: aa_label_alloc use aa_label_free on alloc failure
Ruoyu Wang <[email protected]>
apparmor: check label build before no_new_privs test
Andrew Morton <[email protected]>
security/apparmor/apparmorfs.c: conditionally compile get_loaddata_common_ref()
Yuanhe Shu <[email protected]>
Revert "PCI/MSI: Unmap MSI-X region on error"
Manivannan Sadhasivam <[email protected]>
PCI: mediatek: Use actual physical address instead of virt_to_phys()
Ryder Lee <[email protected]>
PCI: mediatek: Fix possible truncation in mtk_pcie_parse_port()
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Add bounds checks to read_build_id() note iteration in minimal build
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Add bounds checks to elf_read_build_id() note iteration
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Add NULL check for btf__type_by_id() in synthesize_bpf_prog_name()
Arnaldo Carvalho de Melo <[email protected]>
tools lib api: Fix mount_overload() snprintf truncation and toupper range
Arnaldo Carvalho de Melo <[email protected]>
tools lib api: Fix filename__write_int() writing uninitialized stack data
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Use snprintf() in dso__read_running_kernel_build_id()
Ian Rogers <[email protected]>
perf dso: Move build_id to dso_id
Ian Rogers <[email protected]>
perf build-id: Change sprintf functions to snprintf
Ian Rogers <[email protected]>
perf dso: Add support for reading the e_machine type for a dso
Ian Rogers <[email protected]>
perf dso: Use lock annotations to fix asan deadlock
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Bounds-check descsz in sysfs__read_build_id() GNU fallback
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Fix thread__set_comm_from_proc() on empty comm file
Arnaldo Carvalho de Melo <[email protected]>
perf intel-pt: Fix snprintf size tracking bug in insn decoder
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Bounds-check .gnu_debuglink section data
Arnaldo Carvalho de Melo <[email protected]>
perf symbols: Fix signed overflow in sysfs__read_build_id() size check
Arnaldo Carvalho de Melo <[email protected]>
tools lib api: Fix missing null termination in filename__read_int/ull()
Arnaldo Carvalho de Melo <[email protected]>
perf pmu: Fix perf_pmu__parse_scale/unit() OOB access on empty sysfs file
Arnaldo Carvalho de Melo <[email protected]>
perf pmu: Fix pmu_id() heap underwrite on empty identifier file
James Clark <[email protected]>
perf cs-etm: Queue context packets for frontend
Chuck Lever <[email protected]>
xprtrdma: Return sendctx slot after Send preparation failure
Chuck Lever <[email protected]>
xprtrdma: Repost Receive buffers for malformed replies
Chuck Lever <[email protected]>
xprtrdma: Sanitize the reply credit grant after parsing
Chris Mason <[email protected]>
xprtrdma: Fix bcall rep leak and unbounded peek
Chuck Lever <[email protected]>
xprtrdma: Resize reply buffers before reposting receives
Chuck Lever <[email protected]>
xprtrdma: Document and assert reply-handler invariants
Chuck Lever <[email protected]>
xprtrdma: Check frwr_wp_create() during connect
Chris Mason <[email protected]>
xprtrdma: Initialize re_id before removal registration
Chris Mason <[email protected]>
xprtrdma: Fix ep kref imbalance on ADDR_CHANGE
Arnaldo Carvalho de Melo <[email protected]>
perf hists: Fix snprintf() in hists__scnprintf_title() UID filter path
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Use scnprintf() in snprintf_hex() and synthesize_bpf_prog_name()
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Fix idle-hist callchain display using wrong rb_first variant
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Bounds-check prio before test_bit() in timehist
Lad Prabhakar <[email protected]>
PCI: rcar-host: Remove unused LIST_HEAD(res)
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Use perf_env__get_cpu_topology() in machine__resolve()
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Use scnprintf() in cpu_map__snprint() to prevent overflow
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Fix get_max_num() size_t underflow on empty sysfs file
Jamie Nguyen <[email protected]>
fs/ntfs3: resize log->one_page_buf when adopting on-disk page size
Shuvam Pandey <[email protected]>
PCI: meson: Add missing remove callback
Shuvam Pandey <[email protected]>
PCI: meson: Propagate devm_add_action_or_reset() failure
Li RongQing <[email protected]>
PCI: mediatek: Fix operator precedence in PCIE_FTS_NUM_L0 macro
Yang Erkun <[email protected]>
nfs: use nfsi->rwsem to protect traversal of the file lock list
Mike Snitzer <[email protected]>
NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS in pg_get_mirror_count_write
Mike Snitzer <[email protected]>
NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS on fatal DS connect errors
Clark Wang <[email protected]>
nfs: keep PG_UPTODATE clear after read errors in page groups
Dai Ngo <[email protected]>
NFSv4/pnfs: defer return_range callbacks until after inode unlock
Chuck Lever <[email protected]>
xprtrdma: Decouple req recycling from RPC completion
Chuck Lever <[email protected]>
xprtrdma: Use sendctx DMA state for Send signaling
Chuck Lever <[email protected]>
xprtrdma: Post receive buffers after RPC completion
Chuck Lever <[email protected]>
xprtrdma: Close lost-wakeup race in xprt_rdma_alloc_slot
Chuck Lever <[email protected]>
xprtrdma: Avoid 250 ms delay on backlog wakeup
Sagi Grimberg <[email protected]>
pNFS/filelayout: fix cheking if a layout is striped
Phillip Varney <[email protected]>
clk: qcom: a53: Corrected frequency multiplier for 1152MHz
Nuno Sá <[email protected]>
dmaengine: dma-axi-dmac: use DMA pool to manange DMA descriptor
Nuno Sá <[email protected]>
dmaengine: dma-axi-dmac: Properly free struct axi_dmac_desc
Nuno Sá <[email protected]>
dmaengine: Fix possible use after free
Icenowy Zheng <[email protected]>
dmaengine: qcom: gpi: set DMA_PRIVATE capability
Arnaldo Carvalho de Melo <[email protected]>
perf timechart: Fix cpu2y() OOB read on untrusted CPU index
Arnaldo Carvalho de Melo <[email protected]>
perf c2c: Fix use-after-free in he__get_c2c_hists() error path
Arnaldo Carvalho de Melo <[email protected]>
perf stat: Introduce perf_env__get_cpu_topology() to guard NULL env->cpu
Arnaldo Carvalho de Melo <[email protected]>
perf mmap: Fix NULL deref in aio cleanup on alloc failure
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Replace BUG_ON and add NULL checks in replay event helpers
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Use thread__put() in free_idle_threads()
Namhyung Kim <[email protected]>
perf sched: Fix thread leaks in 'perf sched timehist'
Madadi Vineeth Reddy <[email protected]>
perf sched timehist: Add pre-migration wait time option
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Clean up idle_threads entry on init failure
Arnaldo Carvalho de Melo <[email protected]>
perf c2c: Bounds-check CPU IDs in setup_nodes() topology loop
Arnaldo Carvalho de Melo <[email protected]>
perf c2c: Bounds-check CPU and node IDs before bitmap and array access
Arnaldo Carvalho de Melo <[email protected]>
perf stat: Bounds-check CPU index in topology aggregation callbacks
Arnaldo Carvalho de Melo <[email protected]>
perf mmap: Guard cpu__get_node() return in aio_bind()
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Fix register_pid() overflow, strcpy, and BUG_ON
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Add bounds check to cpu__get_node()
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Fix NULL dereference in latency_runtime_event
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Replace BUG_ON on invalid CPU with graceful skip
Arnaldo Carvalho de Melo <[email protected]>
perf sched: Fix thread reference leak in latency_switch_event
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Guard test_bit from out-of-bounds sample CPU
Rui Qi <[email protected]>
perf: Fix off-by-one stack buffer overflow in kallsyms__parse()
Shengjiu Wang <[email protected]>
dmaengine: imx-sdma: Refine spba bus searching in probe
Xu Rao <[email protected]>
thunderbolt: debugfs: Fix margining error counter buffer leak
Srinivasan Shanmugam <[email protected]>
drm/amd/display: Add missing kdoc for ALLM parameters
Jamie Nguyen <[email protected]>
fs/ntfs3: fix mount failure on 64K page-size kernels
Konstantin Komarov <[email protected]>
fs/ntfs3: add bounds check to run_get_highest_vcn()
Rosen Penev <[email protected]>
HID: logitech-hidpp: remove excess kernel-doc member in hidpp_scroll_counter
Yuho Choi <[email protected]>
clk: at91: keep securam node alive while mapping it
Aldo Conte <[email protected]>
iio: tcs3472: power down chip on probe failure
Sanjay Chitroda <[email protected]>
iio: accel: mma8452: handle I2C read error(s) in mma8452_read()
Guilherme Ivo Bozi <[email protected]>
iio: adc: xilinx-ams: fix out-of-bounds channel lookup in event handling
Joshua Crofts <[email protected]>
iio: magnetometer: ak8975: fix potential kernel stack memory leak
Joshua Crofts <[email protected]>
iio: light: si1133: prevent race condition on timeout
Joshua Crofts <[email protected]>
iio: light: si1133: reset counter to prevent race condition
Arnaldo Carvalho de Melo <[email protected]>
perf header: Sanity check HEADER_EVENT_DESC attr.size before swap
Shawn Guo <[email protected]>
PCI: qcom: Disable ASPM L0s for SA8775P
James Kim <[email protected]>
char: tlclk: fix use-after-free in tlclk_cleanup()
Seungjin Bae <[email protected]>
usb: host: max3421: Reject hub port requests for non-existent ports
Seungjin Bae <[email protected]>
usb: host: max3421: Fix shift-out-of-bounds in max3421_hub_control()
Guangshuo Li <[email protected]>
staging: most: video: avoid double free on video register failure
Ian Rogers <[email protected]>
perf event: Fix size of synthesized sample with branch stacks
Namhyung Kim <[email protected]>
perf inject: Add --convert-callchain option
Leo Yan <[email protected]>
perf arm-spe: Add branch stack
Graham Woodward <[email protected]>
perf arm-spe: Correctly set sample flags
Graham Woodward <[email protected]>
perf arm-spe: Use ARM_SPE_OP_BRANCH_ERET when synthesizing branches
Leo Yan <[email protected]>
perf arm-spe: Use metadata to decide the data source feature
Sergey Senozhatsky <[email protected]>
mailbox: mtk-adsp: fix UAF during device teardown
Jie Gan <[email protected]>
coresight: Fix source not disabled on idr_alloc_u32 failure
Mihai Sain <[email protected]>
clk: at91: sam9x7: Fix gmac_gclk clock definition
Leo Yan <[email protected]>
perf pmu: Skip test on Arm64 when #slots is zero
Andy Shevchenko <[email protected]>
phy: phy-can-transceiver: Check driver match and driver data against NULL
Qiang Yu <[email protected]>
PCI: qcom: Set max OPP before DBI access during resume
Sumit Kumar <[email protected]>
bus: mhi: ep: Fix potential deadlock in mhi_ep_reset_worker()
Hsiu Che Yu <[email protected]>
rust: alloc: fix assert in Vec::reserve doc test
Rong Zhang <[email protected]>
PCI: loongson: Do not ignore downstream devices on external bridges
Ian Rogers <[email protected]>
perf sched: Add missing mmap2 handler in timehist
Rafael J. Wysocki <[email protected]>
platform/x86: xo15-ebook: Fix wakeup source and GPE handling
Rafael J. Wysocki <[email protected]>
x86/platform/olpc: xo15: Drop wakeup source on driver removal
Guixin Liu <[email protected]>
PCI: Check ROM header and data structure addr before accessing
Guixin Liu <[email protected]>
PCI: Introduce named defines for PCI ROM
Carlos Bilbao <[email protected]>
PCI/ASPM: Don't reconfigure ASPM entering low-power state
Leo Yan <[email protected]>
coresight: etm4x: Correct TRCVMIDCCTLR1 save and restore
Yingchao Deng <[email protected]>
coresight: cti: Fix DT filter signals silently ignored
Ian Rogers <[email protected]>
perf debuginfo: Fix libdw API contract violations
Alexandru Hossu <[email protected]>
staging: nvec: fix use-after-free in nvec_rx_completed()
Mario Limonciello <[email protected]>
gpiolib: acpi: Only trigger ActiveBoth interrupts on boot
Nam Cao <[email protected]>
eventpoll: Fix epoll_wait() report false negative
Christian Brauner <[email protected]>
eventpoll: rename epi->next and txlist for clarity
Christian Brauner <[email protected]>
eventpoll: wrap EP_UNACTIVE_PTR in typed sentinel helpers
Christian Brauner <[email protected]>
eventpoll: extract ep_deliver_event() from ep_send_events()
Christian Brauner <[email protected]>
eventpoll: split ep_insert() into alloc + register stages
Christian Brauner <[email protected]>
eventpoll: rename attach_epitem() to ep_attach_file()
Christian Brauner <[email protected]>
eventpoll: expand top-of-file overview / locking doc
Yizhou Zhao <[email protected]>
net/9p: fix race condition on rdma->state in trans_rdma.c
Aleksandr Nogikh <[email protected]>
ocfs2: fix circular locking dependency in ocfs2_dio_end_io_write
Charles Keepax <[email protected]>
mfd: cs42l43: Sanity check firmware size
Matthew Bystrin <[email protected]>
mfd: rsmu: Fix page register setup
Guangshuo Li <[email protected]>
ksmbd: fix use-after-free in same_client_has_lease()
Brett Creeley <[email protected]>
ionic: Fix check in ionic_get_link_ext_stats
Selvamani Rajagopal <[email protected]>
dt-bindings: net: updated interrupt type to be active low, level triggered
Selvamani Rajagopal <[email protected]>
net: ethernet: oa_tc6: Remove FCS size in RX frame
Selvamani Rajagopal <[email protected]>
net: ethernet: oa_tc6: mdiobus->parent initialized with NULL
Wayen.Yan <[email protected]>
net: airoha: Fix always-true condition in PPE1 queue reservation loop
Lorenzo Bianconi <[email protected]>
net: airoha: Add sched ETS offload support
Lorenzo Bianconi <[email protected]>
net: airoha: Introduce ndo_select_queue callback
Eric Dumazet <[email protected]>
tcp: ipv6: clamp default adverting MSS to avoid GSO_BY_FRAGS (0xFFFF)
Eric Dumazet <[email protected]>
tipc: fix UAF in tipc_l2_send_msg()
Gui-Dong Han <[email protected]>
KEYS: Use acquire when reading state in keyring search
Aboorva Devarajan <[email protected]>
powerpc/kexec: fix double get_cpu() imbalance in kexec_prepare_cpus
Aboorva Devarajan <[email protected]>
powerpc/powernv: fix preempt count leak in pnv_kexec_wait_secondaries_down
Aboorva Devarajan <[email protected]>
powerpc/perf: fix preempt count underflow in fsl_emb_pmu_del
Yadan Fan <[email protected]>
MIPS: mm: Fix out-of-bounds write in maar_res_walk()
Sechang Lim <[email protected]>
bpf, sockmap: fix integer overflow in bpf_msg_pop_data() bounds check
Weiming Shi <[email protected]>
bpf, sockmap: reject overflowing copy + len in bpf_msg_push_data()
Al Viro <[email protected]>
udf: fix nls leak on udf_fill_super() failure
Leon Hwang <[email protected]>
bpf: Fix bpf_get/setsockopt to tos for ipv4-mapped ipv6 socket
Leo Yan <[email protected]>
selftests/bpf: Initialize operation name before use
Jiri Olsa <[email protected]>
selftests/bpf: Fix typo in verify_umulti_link_info
Huiwen He <[email protected]>
smb/client: always return a value for FS_IOC_GETFLAGS
Jian Zhang <[email protected]>
cifs: remove all cifs files before kill super
Takashi Iwai <[email protected]>
ALSA: core: Fix unintuitive behavior of snd_power_ref_and_wait()
Florian Westphal <[email protected]>
netfilter: nf_conncount: callers must hold rcu read lock
Runyu Xiao <[email protected]>
kcm: use WRITE_ONCE() when changing lower socket callbacks
Ovidiu Panait <[email protected]>
net: bcmgenet: Use weighted round-robin TX DMA arbitration
Matthieu Buffet <[email protected]>
landlock: Fix unmarked concurrent access to socket family
Grzegorz Nitka <[email protected]>
dpll: balance create/delete notifications in __dpll_pin_(un)register
Grzegorz Nitka <[email protected]>
dpll: guard sync-pair removal on full pin unregister
Grzegorz Nitka <[email protected]>
dpll: emit per-dpll delete notifications in dpll_pin_on_pin_unregister()
Grzegorz Nitka <[email protected]>
dpll: send delete notification before unregister in on-pin rollback
Grzegorz Nitka <[email protected]>
dpll: fix stale iteration in dpll_pin_on_pin_unregister()
Ivan Vecera <[email protected]>
dpll: Enhance and consolidate reference counting logic
Ivan Vecera <[email protected]>
dpll: Support dynamic pin index allocation
Petr Oros <[email protected]>
dpll: Add notifier chain for dpll events
Ivan Vecera <[email protected]>
dpll: Allow associating dpll pin with a firmware node
Arkadiusz Kubalewski <[email protected]>
dpll: add reference sync get/set
Arkadiusz Kubalewski <[email protected]>
dpll: add reference-sync netlink attribute
Ruoyu Wang <[email protected]>
net: wwan: t7xx: check skb_clone in control TX
Wentao Guan <[email protected]>
net: ethernet: mtk_wed: debugfs: correct index in wed_amsdu_show()
Ratheesh Kannoth <[email protected]>
octeontx2-af: npc: Fix size of entry2cntr_map
Dragos Tatulea <[email protected]>
net/mlx5: Check max_macs devlink param value against max capability
Sun Jian <[email protected]>
bpf: Run generic devmap egress prog on private skb
Zhi-Jun You <[email protected]>
net: ethernet: mtk_wed: fix loading WO firmware for MT7986
Aditya Garg <[email protected]>
net: mana: guard TX wq object destroy with INVALID_MANA_HANDLE check
Aditya Garg <[email protected]>
net: mana: initialize gdma queue id to INVALID_QUEUE_ID
Victor Nogueira <[email protected]>
net/sched: sch_codel: Do not call qdisc_tree_reduce_backlog during peek before restoring qlen
Victor Nogueira <[email protected]>
net/sched: sch_fq_codel: Do not call qdisc_tree_reduce_backlog during peek before restoring qlen
Chuck Lever <[email protected]>
handshake: Require admin permission for DONE command
Lucas Tsai <[email protected]>
power: supply: core: fix supplied_from allocations
Guangshuo Li <[email protected]>
ASoC: adau1372: Clear PLL_EN on failed PLL lock without reset GPIO
Lars Pöschel <[email protected]>
spi: xilinx: use FIFO occupancy register to determine buffer size
HanQuan <[email protected]>
ALSA: seq: Fix kernel heap address leak in bounce_error_event()
Herbert Xu <[email protected]>
crypto: rng - Free default RNG on module exit
Felix Gu <[email protected]>
crypto: cavium/cpt - fix DMA cleanup using wrong loop index
Felix Gu <[email protected]>
crypto: marvell/octeontx - fix DMA cleanup using wrong loop index
Dave Jiang <[email protected]>
cxl/test: Add check after kzalloc() memory in alloc_mock_res()
Dave Jiang <[email protected]>
cxl/test: Unregister cxl_acpi in cxl_test_init() error path
Michael Bommarito <[email protected]>
tipc: reject inverted service ranges from peer bindings
Michael Bommarito <[email protected]>
tipc: prevent snt_unacked underflow on CONN_ACK
Michael Bommarito <[email protected]>
tipc: require net admin for TIPCv2 netlink mutators
Victor Nogueira <[email protected]>
net/sched: sch_hfsc: Don't make class passive twice
Samuel Moelius <[email protected]>
net: pfcp: allocate per-cpu tstats for PFCP netdevs
Xin Long <[email protected]>
sctp: validate embedded address parameter length
Xiang Mei <[email protected]>
bridge: cfm: reject invalid CCM interval at configuration time
Kuniyuki Iwashima <[email protected]>
net: fib_rules: Don't dump dying fib_rule in fib_rules_dump().
Jamal Hadi Salim <[email protected]>
net/sched: cls_flow: Dont expose folded kernel pointers
George Moussalem <[email protected]>
net: dsa: qca8k: fix led devicename when using external mdio bus
HyeongJun An <[email protected]>
ASoC: tegra: tegra210_ahub: Validate written enum value
HyeongJun An <[email protected]>
ASoC: fsl: fsl_audmix: Validate written enum values
HyeongJun An <[email protected]>
ASoC: codecs: hdac_hdmi: Validate written enum value
Leon Romanovsky <[email protected]>
RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one
Maher Sanalla <[email protected]>
RDMA/mlx5: Fix undefined shift of user RQ WQE size
Patrisious Haddad <[email protected]>
RDMA/mlx5: Remove raw RSS QP restrack tracking
Patrisious Haddad <[email protected]>
RDMA/mlx5: Remove DCT restrack tracking
Maxwell Doose <[email protected]>
fs: efs: remove unneeded debug prints
Samuel Moelius <[email protected]>
Bluetooth: vhci: validate devcoredump state before side effects
Samuel Moelius <[email protected]>
Bluetooth: hci: validate codec capability element length
Zhao Dongdong <[email protected]>
Bluetooth: btmtk: fix URB leak in alloc_mtk_intr_urb error path
Jordan Walters <[email protected]>
Bluetooth: hci_core: Fix UAF in hci_unregister_dev()
Weiming Shi <[email protected]>
Bluetooth: eir: Fix stack OOB write when prepending the Flags AD
Zijun Hu <[email protected]>
Bluetooth: hci_qca: fix NULL pointer dereference in qca_dmp_hdr() for non-serdev device
Heiko Carstens <[email protected]>
s390/process: Fix kernel thread function pointer type
Richard Fitzgerald <[email protected]>
ASoC: cs35l56: Fix possible uninitialized value in cs35l56_spi_system_reset()
Daniel Borkmann <[email protected]>
bpf: Tighten cgroup storage cookie checks for prog arrays
Giovanni Cabiddu <[email protected]>
vfio/qat: fix f_pos race in qat_vf_resume_write()
Sergey Shtylyov <[email protected]>
of: cpu: add check in __of_find_n_match_cpu_property()
Dave Jiang <[email protected]>
cxl/test: Zero out LSA backing memory to avoid leaking to user
Dave Jiang <[email protected]>
cxl/test: Fix integer overflow in mock LSA bounds checks
Yonghong Song <[email protected]>
selftests/bpf: Fix bpf_iter/task_vma test
Yun Zhou <[email protected]>
ext4: validate donor file superblock early in EXT4_IOC_MOVE_EXT
Aditya Prakash Srivastava <[email protected]>
ext4: fix kernel BUG in ext4_write_inline_data_end
Louis Scalbert <[email protected]>
bonding: 3ad: fix mux port state on oper down
Richard Fitzgerald <[email protected]>
ASoC: cs35l56: Don't leave parent IRQ disabled if system_suspend fails
Richard Fitzgerald <[email protected]>
ASoC: cs35l56: Fix missing calls to wm_adsp2_remove()
Srujana Challa <[email protected]>
vdpa/octeon_ep: Fix PF->VF mailbox data address calculation
longlong yan <[email protected]>
tools/virtio: check mmap return value in vringh_test
Qing Ming <[email protected]>
vhost/net: complete zerocopy ubufs only once
Zhang Tianci <[email protected]>
vduse: Requeue failed read to send_list head
Filip Hejsek <[email protected]>
virtio_console: read size from config space during device init
Qihang Tang <[email protected]>
vhost/vdpa: validate virtqueue index in mmap and fault paths
Qihang Tang <[email protected]>
vduse: hold vduse_lock across IDR lookup in open path
Val Packett <[email protected]>
ASoC: codecs: aw88261: fix incorrect masks for boost regs
Ruoyu Wang <[email protected]>
spi: meson-spifc: fix runtime PM leak on remove
Chuck Lever <[email protected]>
NFSD: Handle layout stid in nfsd4_drop_revoked_stid()
Jason Gunthorpe <[email protected]>
IB/mlx4: Fill in the access_flags if IB_MR_REREG_ACCESS is not specified
Filipe Manana <[email protected]>
btrfs: fix deadlock cloning inline extent when using flushoncommit
Johannes Thumshirn <[email protected]>
btrfs: zoned: don't account data relocation space-info in statfs free space
Nikita Zhandarovich <[email protected]>
hwmon: (it87) Clamp negative values to zero in set_fan()
David Laight <[email protected]>
fbdev: sm501fb: Fix buffer errors in OF binding code
Filipe Manana <[email protected]>
btrfs: fix invalid pointer dereference in __btrfs_run_delayed_refs()
Ryder Lee <[email protected]>
wifi: mt76: mt7996: fix potential tx_retries underflow
Ryder Lee <[email protected]>
wifi: mt76: mt7925: fix potential tx_retries underflow
Ryder Lee <[email protected]>
wifi: mt76: mt7921: fix potential tx_retries underflow
Ryder Lee <[email protected]>
wifi: mt76: mt7915: fix potential tx_retries underflow
Bjoern A. Zeeb <[email protected]>
wifi: mt76: fix argument to ieee80211_is_first_frag()
Sean Wang <[email protected]>
wifi: mt76: mt792x: skip MLD header rewrite for 802.3 encap TX
Sean Wang <[email protected]>
wifi: mt76: mt7925: keep TX BA state in the primary WCID
Javier Tia <[email protected]>
wifi: mt76: mt7925: fix stale pointer comparisons in change_vif_links
Myeonghun Pak <[email protected]>
wifi: mt76: mt7925: clean up DMA on probe failure
Hongyan Xia <[email protected]>
sched/fair: Fix cpu_util runnable_avg arithmetic
Wolfram Sang <[email protected]>
hwspinlock: qcom: avoid uninitialized struct members
Hui Zhu <[email protected]>
vmalloc: fix NULL pointer dereference in is_vm_area_hugepages()
Luca Leonardo Scorcia <[email protected]>
pinctrl: mediatek: mt8167: Fix Schmitt trigger register offset of pins 34-39
Luca Leonardo Scorcia <[email protected]>
pinctrl: mediatek: mt8516: Fix Schmitt trigger register offset of pins 34-39
Mike Christie <[email protected]>
scsi: target: Remove tcm_loop target reset handling
David Disseldorp <[email protected]>
scsi: target: Fix hexadecimal CHAP_I handling
Yuho Choi <[email protected]>
watchdog: unregister PM notifier on watchdog unregister
Al Viro <[email protected]>
configfs: fix lockless traversals of ->s_children
Dmitry Vyukov <[email protected]>
firmware_loader: Fix recursive lock in device_cache_fw_images()
Aaron Ma <[email protected]>
ASoC: amd: acp-sdw-sof: Bound DAI link iteration
Felix Gu <[email protected]>
spi: ep93xx: fix double-free of zeropage on DMA setup failure
Jason Gunthorpe <[email protected]>
IB/mlx5: Properly support implicit ODP rereg_mr
Jason Gunthorpe <[email protected]>
IB/mlx5: Don't take the rereg_mr fallback without a new translation
Samuel Moelius <[email protected]>
thermal: testing: reject missing command arguments
Pengjie Zhang <[email protected]>
cpufreq: Documentation: fix conservative governor freq_step description
Yuho Choi <[email protected]>
ACPI: IPMI: Fix message kref handling on dead device
Kyle Zeng <[email protected]>
ALSA: seq: Clear variable event pointer on read
Rui Qi <[email protected]>
riscv: stacktrace: Remove bogus -0x4 offset in non-FP walk_stackframe
Hui Wang <[email protected]>
riscv: cpu_ops: Change return value type of cpu_is_stopped() to bool
HyeongJun An <[email protected]>
ALSA: seq: Fix partial userptr event expansion
Tristan Madani <[email protected]>
wifi: wcn36xx: fix OOB read from short trigger BA firmware response
Tristan Madani <[email protected]>
wifi: wcn36xx: fix OOB read from firmware count in PRINT_REG_INFO indication
Tristan Madani <[email protected]>
wifi: wcn36xx: fix heap overflow from oversized firmware HAL response
Leon Hwang <[email protected]>
bpf: Update transport_header when encapsulating UDP tunnel in lwt
Leon Hwang <[email protected]>
bpf: Check tail zero of bpf_prog_info
Bernard Metzler <[email protected]>
RDMA/siw: Fix endpoint/socket association handling
Alexander Stein <[email protected]>
arm64: dts: tqma8mpql-mba8mpxl: configure sai clock in audio codec as well
Richard Zhu <[email protected]>
arm64: dts: imx95: Correct PCIe outbound address space configuration
Jacob Moroni <[email protected]>
RDMA/irdma: Initialize iwmr->access during MR registration
Jacob Moroni <[email protected]>
RDMA/irdma: Fix OOB read during CQ MR registration
Jason Gunthorpe <[email protected]>
IB/cm: Fix av cm device leak on an error path in cm_init_av_by_path()
Pablo Neira Ayuso <[email protected]>
netfilter: conntrack: call nf_ct_gre_keymap_destroy() if master helper is pptp
Pablo Neira Ayuso <[email protected]>
netfilter: conntrack: revert ct extension genid infrastructure
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: protect nf_ct_seqadj_init() with conntrack lock
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: fix unaligned memory access in timestamp adjustment
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: adjust duplicate timestamp options
Fernando Fernandez Mancera <[email protected]>
netfilter: synproxy: drop packets if timestamp adjustment fails
Pablo Neira Ayuso <[email protected]>
netfilter: nfnetlink_cthelper: use {READ,WRITE}_ONCE for accessing helper flags
Fernando Fernandez Mancera <[email protected]>
netfilter: nfnetlink_osf: fix mss parsing on big-endian architectures
Joseph Qi <[email protected]>
ocfs2: fix race between ocfs2_control_install_private() and ocfs2_control_release()
Zhang Cen <[email protected]>
ocfs2/dlm: require a ref for locking_state debugfs open
Zhang Cen <[email protected]>
ocfs2: reject FITRIM ranges shorter than a cluster
Dmitry Antipov <[email protected]>
ocfs2: fix buffer head management in ocfs2_read_blocks()
Zhang Cen <[email protected]>
ocfs2: rebase copied fsdlm LVB pointers in locking_state
Alex Deucher <[email protected]>
drm/amdkfd: always resume_all after suspend_all
Antony Antony <[email protected]>
xfrm: fix NAT-related field inheritance in SA migration
Sandipan Das <[email protected]>
perf/x86/amd/uncore: Use Node ID to identify DF and UMC domains
Zide Chen <[email protected]>
perf/x86/intel/uncore: Fix discovery unit lookup for multi-die systems
Sandipan Das <[email protected]>
perf/x86/amd/core: Always use the NMI latency mitigation
Michael S. Tsirkin <[email protected]>
vhost: fix vhost_get_avail_idx for a non empty ring
Woojin Ji <[email protected]>
bpftool: Use libbpf error code for flow dissector query
Yunxiang Li <[email protected]>
drm/amdgpu: set sub_block_index for mca ras sub-blocks
Al Viro <[email protected]>
configfs_lookup(): don't leave ->s_dentry dangling on failure
Alexander Potapenko <[email protected]>
lib/test_meminit: use && for bools
Frederic Weisbecker <[email protected]>
tick/sched: Fix TOCTOU in nohz idle time fetch
Nathan Chancellor <[email protected]>
driver core: Use system_percpu_wq instead of system_wq
Guanyou.Chen <[email protected]>
sched: restore timer_slack_ns when resetting RT policy on fork
Danila Chernetsov <[email protected]>
ext2: fix ignored return value of generic_write_sync()
Sang-Heon Jeon <[email protected]>
mm/fake-numa: fix under-allocation detection in uniform split
Deepanshu Kartikey <[email protected]>
bpf: fix UAF by restoring RCU-delayed inode freeing in bpffs
Chanwoo Lee <[email protected]>
scsi: ufs: Fix wrong value printed in unexpected UPIU response case
Dan Carpenter <[email protected]>
scsi: pm8001: Fix error code in non_fatal_log_show()
Martin Wilck <[email protected]>
scsi: Revert "scsi: Fix sas_user_scan() to handle wildcard and multi-channel scans"
Alison Schofield <[email protected]>
nvdimm/btt: Handle preemption in BTT lane acquisition
Yuho Choi <[email protected]>
ARM: imx31: Fix IIM mapping leak in revision check
Bart Van Assche <[email protected]>
ata: libata: Fix ata_exec_internal()
J. Neuschäfer <[email protected]>
HID: wiimote: Fix table layout and whitespace errors
Yuho Choi <[email protected]>
ARM: imx3: Fix CCM node reference leak
Chuck Lever <[email protected]>
NFSD: Fix delegation reference leak in nfsd4_revoke_states
John Madieu <[email protected]>
ASoC: rsnd: Fix RSND_SOC_MASK width to single nibble
Zhang Yi <[email protected]>
ext4: fix LOGFLUSH shutdown ordering to allow ordered-mode data writeback
Chen Cheng <[email protected]>
md/raid10: reset read_slot when reusing r10bio for discard
Danilo Krummrich <[email protected]>
rpmsg: use generic driver_override infrastructure
Danilo Krummrich <[email protected]>
Drivers: hv: vmbus: use generic driver_override infrastructure
Danilo Krummrich <[email protected]>
cdx: use generic driver_override infrastructure
Danilo Krummrich <[email protected]>
amba: use generic driver_override infrastructure
Renjiang Han <[email protected]>
media: qcom: venus: relax encoder frame/blur step size on v6
Renjiang Han <[email protected]>
media: qcom: venus: relax encoder frame/blur dimension steps on v4
Renjiang Han <[email protected]>
media: qcom: venus: drop extra padding in NV12 raw size calculation
Tristan Madani <[email protected]>
RDMA/rxe: Copy WQE to local buffer in non-SRQ receive path
Tristan Madani <[email protected]>
RDMA/rxe: Fix TOCTOU heap overflow in get_srq_wqe
zhoumin <[email protected]>
EDAC/{skx_common,skx}: Fix UBSAN shift-out-of-bounds in skx_get_dimm_info
Jessica Zhang <[email protected]>
drm/msm/dp: Fix the ISR_* enum values
Jessica Zhang <[email protected]>
drm/msm/dp: fix HPD state status bit shift value
Andrea Righi <[email protected]>
sched/deadline: Reject debugfs dl_server writes for offline CPUs
Juri Lelli <[email protected]>
sched/deadline: Always stop dl-server before changing parameters
Herbert Xu <[email protected]>
crypto: tegra - Return ENOMEM when input buffer allocation fails for ccm
Herbert Xu <[email protected]>
crypto: tegra - Fix dma_free_coherent size error
Weili Qian <[email protected]>
crypto: hisilicon/qm - disable error report before flr
Tetsuo Handa <[email protected]>
ocfs2: kill osb->system_file_mutex lock
ZhengYuan Huang <[email protected]>
ocfs2: don't BUG_ON an invalid journal dinode
Dan Carpenter <[email protected]>
rapidio/tsi721: prevent a bad dereference in tsi721_db_dpc()
Davidlohr Bueso <[email protected]>
dax/kmem: account for partial discontiguous resource upon removal
Carlos Llamas <[email protected]>
libbpf: Fix UAF in strset__add_str()
Siddharth Nayyar <[email protected]>
bpftool: Fix typo in struct_ops map FD generation for light skeleton
Michael Bommarito <[email protected]>
libbpf: Harden parse_vma_segs() path parsing
Timur Tabi <[email protected]>
drm/nouveau/bios: specify correct display fuse register for Ampere and Ada
Mikko Perttunen <[email protected]>
drm/tegra: Fix iommu_map_sgtable() return value check
Mikko Perttunen <[email protected]>
gpu: host1x: Fix iommu_map_sgtable() return value check
Felix Gu <[email protected]>
drm/tegra: dc: Fix device node reference leak in tegra_dc_has_output()
Mikko Perttunen <[email protected]>
gpu: host1x: Allow entries in BO caches to be freed
Ion Agorria <[email protected]>
drm/tegra: gr2d/gr3d: Contain PM in the gr*d_probe/gr*d_remove
Svyatoslav Ryhel <[email protected]>
drm/tegra: gr2d/gr3d: Initialize address register map before HOST1X client is registered
Jiayuan Chen <[email protected]>
net/sched: cls_bpf: prevent unbounded recursion in offload rollback
Eric Dumazet <[email protected]>
ipv6: guard against possible NULL deref in __in6_dev_stats_get()
Breno Leitao <[email protected]>
workqueue: drop spurious '*' from print_worker_info() fn declaration
Nilay Shroff <[email protected]>
nvme-multipath: fix flex array size in struct nvme_ns_head
Geliang Tang <[email protected]>
nvmet-tcp: fix page fragment cache leak in error path
Charles Keepax <[email protected]>
pinctrl: cs42l43: Fix polarity on debounce
Joey Lu <[email protected]>
pinctrl: nuvoton: ma35d1: fix MFP register offset and pin table
Zhang Cen <[email protected]>
ALSA: seq: midi: Serialize output teardown with event_input
Miquel Raynal <[email protected]>
mtd: spi-nor: Drop duplicate Kconfig dependency
Danilo Krummrich <[email protected]>
driver core: Guard deferred probe timeout extension with delayed_work_pending()
Danilo Krummrich <[email protected]>
driver core: Fix missing jiffies conversion in deferred_probe_extend_timeout()
Easwar Hariharan <[email protected]>
jiffies: Define secs_to_jiffies()
Rosen Penev <[email protected]>
mips: n64: add __iomem for writel call
Rosen Penev <[email protected]>
mips: ralink: mt7621: add missing __iomem
Maciej W. Rozycki <[email protected]>
MIPS: DEC: Remove do_IRQ() call indirection
Maciej W. Rozycki <[email protected]>
MIPS: Fix big-endian stack argument fetching in o32 wrapper
Jiakai Xu <[email protected]>
PM: sleep: Use complete() in device_pm_sleep_init()
Tao Cui <[email protected]>
RDMA/counter: Fix incorrect port index in rdma_counter_init() error cleanup
Lianfa Weng <[email protected]>
RDMA/hns: Fix log flood after cmd_mbox failure
Lianfa Weng <[email protected]>
RDMA/hns: Fix warning in poll cq direct mode
Guangshuo Li <[email protected]>
IB/mlx4: Fix refcount leak in add_port() error path
Zhu Yanjun <[email protected]>
RDMA/rxe: Fix a use-after-free problem in rxe_mmap
Jacob Moroni <[email protected]>
RDMA/irdma: Fix out-of-bounds write in irdma_copy_user_pgaddrs
Samuel Holland <[email protected]>
bus: sunxi-rsb: Always check register address validity
Shiraz Saleem <[email protected]>
RDMA/mana_ib: Use ib_get_eth_speed for reporting port speed
Ronaldo Nunez <[email protected]>
pwm: imx27: Fix variable truncation in .apply()
Lifeng Zheng <[email protected]>
cpufreq: conservative: Simplify frequency limit handling
Pengjie Zhang <[email protected]>
cpufreq: Documentation: fix sampling_down_factor range
Saravana Kannan <[email protected]>
Revert "treewide: Fix probing of devices in DT overlays"
Zhang Yuwei <[email protected]>
driver core: Use mod_delayed_work to prevent lost deferred probe work
Stepan Ionichev <[email protected]>
device property: fix fwnode reference leak in fwnode_graph_get_endpoint_by_id()
Baokun Li <[email protected]>
writeback: drop now-unnecessary rcu_barrier() in cgroup_writeback_umount()
Pengpeng Hou <[email protected]>
tracing: Bound synthetic-field strings with seq_buf
Harshal Dev <[email protected]>
arm64: dts: qcom: sm8650: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: sm8450: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: kodiak: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: sc7180: Add power-domain and iface clk for ice node
Geert Uytterhoeven <[email protected]>
firmware: arm_scmi: Fix OOB in scmi_power_name_get()
Sven Püschel <[email protected]>
media: rockchip: rga: fix too small buffer size
Eric Dumazet <[email protected]>
net/sched: sch_drr: annotate data-races around cl->deficit
Chen-Yu Tsai <[email protected]>
regulator: dt-bindings: mt6359: Drop regulator-name pattern restrictions
Randy Dunlap <[email protected]>
bitops: use common function parameter names
Greg Kroah-Hartman <[email protected]>
sysfs: clamp show() return value in sysfs_kf_read()
Sudeep Holla <[email protected]>
firmware: arm_scmi: Read sensor config as 32-bit value
Jose A. Perez de Azpillaga <[email protected]>
staging: media: atomisp: fix loop shadowing in ia_css_stream_destroy()
Yuho Choi <[email protected]>
media: atomisp: gc2235: fix UAF and memory leak
Zilin Guan <[email protected]>
media: atomisp: Fix memory leak in atomisp_fixed_pattern_table()
Kevin Brodsky <[email protected]>
selftests/mm: Fix resv_sz when parsing arm64 signal frame
Roman Kvasnytskyi <[email protected]>
selftests/bpf: Reject unsupported -k option in vmtest.sh
Liviu Dudau <[email protected]>
drm/syncobj: Fix memory leak in drm_syncobj_find_fence()
Junxian Huang <[email protected]>
RDMA/hns: Initialize seqfile before creating file
Sara Venkatesh <[email protected]>
RDMA/srpt: fix integer overflow in immediate data length check
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Fix devx subscribe-event unwind NULL dereference
Alexander Chesnokov <[email protected]>
RDMA/hns: Fix arithmetic overflow in calc_hem_config()
Prathamesh Deshpande <[email protected]>
IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier
Linmao Li <[email protected]>
ipv6: addrconf: bail out of dad_failure when state is no longer POSTDAD
Eric Dumazet <[email protected]>
net/sched: sch_htb: annotate data-races (I)
Eric Dumazet <[email protected]>
net/sched: sch_htb: do not change sch->flags in htb_dump()
Qiang Ma <[email protected]>
spi: hisi-kunpeng: Use dev_err_probe() for host registration failure
Sean Christopherson <[email protected]>
crypto: ccp - Treat zero-length cert chain as query for blob lengths
Eric Dumazet <[email protected]>
net/sched: sch_hfsc: annotate data-races in hfsc_dump_class_stats()
Stepan Ionichev <[email protected]>
clk: scpi: Unregister child clock providers on remove
Rafael J. Wysocki <[email protected]>
thermal: hwmon: Fix critical temperature attribute removal
Pengpeng Hou <[email protected]>
evm: terminate and bound the evm_xattrs read buffer
Lin He <[email protected]>
drm/hisilicon/hibmc: use clock to look up the PLL value
Lin He <[email protected]>
drm/hisilicon/hibmc: move display contrl config to hibmc_probe()
Kuldeep Singh <[email protected]>
arm64: dts: qcom: sm8450: Fix ICE reg size
Kuldeep Singh <[email protected]>
arm64: dts: qcom: kodiak: Fix ICE reg size
Cristian Marussi <[email protected]>
clk: scmi: Fix clock rate rounding
Hsiu Che Yu <[email protected]>
rust: alloc: fix Vec::extend_with SAFETY comment
Chen-Yu Tsai <[email protected]>
arm64: dts: mediatek: mt8192-asurada: Move PCIe DMA bounce buffer to host
Sean Christopherson <[email protected]>
iommu/amd: Fix a stale comment about which legacy mode is user visible
Wenmeng Liu <[email protected]>
media: qcom: camss: vfe: fix PIX subdev naming on VFE lite
Shuangpeng Bai <[email protected]>
nilfs2: fix backing_dev_info reference leak
Alexander Aring <[email protected]>
dlm: fix add msg handle in send_queue ordered
Krzysztof Kozlowski <[email protected]>
ARM: multi_v7_defconfig: Correct QCOM_RPMH and QCOM_RPMHPD
Weiming Shi <[email protected]>
crypto: asymmetric_keys - fix OOB read in pefile_digest_pe_contents
Thorsten Blum <[email protected]>
crypto: ecrdsa - fix unknown OID check in ecrdsa_param_curve
Lothar Rubusch <[email protected]>
crypto: atmel-sha204a - fix blocking and non-blocking rng logic
Tycho Andersen (AMD) <[email protected]>
crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one
Kuniyuki Iwashima <[email protected]>
vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().
Peng Fan <[email protected]>
arm64: dts: imx8x-colibri: Correct SODIMM PAD settings
Weixin Guo <[email protected]>
arm64: dts: rockchip: fix rk809 interrupt pin on rk3566-roc-pc
Alice Ryhl <[email protected]>
drm/gpuvm: take refcount on DRM device
Felix Gu <[email protected]>
pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path
Damian Muszynski <[email protected]>
crypto: qat - fix heartbeat error injection
Ashish Mhetre <[email protected]>
memory: tegra: Wire up system sleep PM ops
Nas Chung <[email protected]>
media: v4l2-common: Add YUV24 format info
Samuel Holland <[email protected]>
media: cedrus: Fix failure to clean up hardware on probe failure
Felix Gu <[email protected]>
watchdog: sprd_wdt: Remove redundant sprd_wdt_disable() on register failure
Balakrishnan Sambath <[email protected]>
watchdog: sama5d4_wdt: Fix WDDIS detection on SAM9X60 and SAMA7G5
Yingjie Gao <[email protected]>
watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH
Jihed Chaibi <[email protected]>
ARM: dts: am335x-sl50: Fix audio bitclock and frame master endpoint
Tristan Madani <[email protected]>
wifi: ath9k: fix OOB access from firmware tx status queue ID
Prasanna Kumar T S M <[email protected]>
soc: xilinx: Shutdown and free rx mailbox channel
Xingjing Deng <[email protected]>
kconfig: fix potential NULL pointer dereference in conf_askvalue
Tristan Madani <[email protected]>
wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
Shin-Yi Lin <[email protected]>
wifi: rtw89: Correct data type for scan index to avoid infinite loop
Danilo Krummrich <[email protected]>
driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()
Srinivasan Shanmugam <[email protected]>
drm/amdkfd: Validate CRIU-restored IDs before idr_alloc
Krzysztof Kozlowski <[email protected]>
dt-bindings: pinctrl: nvidia,tegra234: Add missing required block
Jon Hunter <[email protected]>
arm64: tegra: Fix Tegra234 MGBE PTP clock
Louis Kotze <[email protected]>
wifi: cfg80211: fix grammar in MLO group key error message
Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sdm845-mezzanine: Fix camss ports unit_address_vs_reg warning
Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: sc8180x: Fix phy simple_bus_reg warning
Diederik de Haas <[email protected]>
arm64: dts: rockchip: Fix gmac0 reset pin for NanoPi R5S
Baolin Liu <[email protected]>
Documentation: proc: fix section numbering in table of contents
Gregory Bell <[email protected]>
selftests/bpf: Use local type for bpf_fou_encap in test_tunnel_kern
Gregory Bell <[email protected]>
selftests/bpf: Use local type for flow_offload_tuple_rhash in xdp_flowtable
Yang Wang <[email protected]>
drm/amd/pm: remove trailing semicolon from AMDGPU_PM_POLICY_ATTR macro
Aaron Tomlin <[email protected]>
libbpf: Report error when a negative kprobe offset is specified
Yuho Choi <[email protected]>
drm/radeon: fix memory leak in radeon_ring_restore() on lock failure
Werner Kasselman <[email protected]>
drm/radeon: fix integer overflow in radeon_align_pitch()
Werner Kasselman <[email protected]>
drm/amdgpu: fix integer overflow in amdgpu_gem_align_pitch()
Jonathan Cavitt <[email protected]>
drm/gpuvm: Do not prepare NULL objects
Tomi Valkeinen <[email protected]>
drm/tidss: Drop extra drm_mode_config_reset() call
Thomas Zimmermann <[email protected]>
drm/rockchip: Test for imported buffers with drm_gem_is_imported()
Chen Ni <[email protected]>
clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()
Ian Bridges <[email protected]>
fbcon: fix NULL pointer dereference for a console without vc_data
David Howells <[email protected]>
afs: Fix further netns teardown to cancel the preallocation charger
Matvey Kovalev <[email protected]>
afs: fix NULL pointer dereference in afs_get_tree()
David Howells <[email protected]>
afs: Fix netns teardown to cancel the preallocation charger
David Howells <[email protected]>
rxrpc: Fix leak of released call in recvmsg(MSG_PEEK)
Jeffrey Altman <[email protected]>
rxrpc: rxrpc_verify_data ensure rx_dec_buffer alloc
Matthias Feser <[email protected]>
serial: 8250_omap: clear rx_running on zero-length DMA completes
Tapio Reijonen <[email protected]>
serial: max310x: implement gpio_chip::get_direction()
Stephan Gerhold <[email protected]>
serial: msm: Disable DMA for kernel console UART
Guoniu Zhou <[email protected]>
dt-bindings: power: imx93: Add MIPI PHY power domain
Chen-Yu Tsai <[email protected]>
dt-bindings: media: sun4i-a10-video-engine: Add interconnect properties
Ricardo Ribalda <[email protected]>
media: uvcvideo: Fix sequence number when no EOF
Ricardo Ribalda <[email protected]>
media: uvcvideo: Relax the constrains for interpolating the hw clock
Ricardo Ribalda <[email protected]>
media: uvcvideo: Do not add clock samples with small sof delta
Ricardo Ribalda <[email protected]>
media: uvcvideo: Fix dev_sof filtering in hw timestamp
Ricardo Ribalda <[email protected]>
media: uvcvideo: Fix buffer sequence in frame gaps
Ricardo Ribalda <[email protected]>
media: uvcvideo: Avoid partial metadata buffers
Ricardo Ribalda <[email protected]>
media: uvcvideo: Use hw timestaming if the clock buffer is full
Su Hui <[email protected]>
time/jiffies: Change register_refined_jiffies() to void __init
Thomas Gleixner <[email protected]>
time/jiffies: Register jiffies clocksource before usage
Eric Biggers <[email protected]>
crypto: hisi-trng - Remove crypto_rng interface
Eric Biggers <[email protected]>
crypto: crypto4xx - Remove insecure and unused rng_alg
Herbert Xu <[email protected]>
crypto: crypto4xx - Remove ahash-related code
Kuniyuki Iwashima <[email protected]>
af_unix: Drop all SCM attributes for SOCKMAP.
Kuniyuki Iwashima <[email protected]>
af_unix: Don't use skb_recv_datagram() in unix_stream_read_skb().
Kuniyuki Iwashima <[email protected]>
af_unix: Don't check SOCK_DEAD in unix_stream_read_skb().
Kuniyuki Iwashima <[email protected]>
af_unix: Don't hold unix_state_lock() in __unix_dgram_recvmsg().
Alexander Mikhalitsyn <[email protected]>
af_unix/scm: fix whitespace errors
Kuniyuki Iwashima <[email protected]>
af_unix: Set drop reason in unix_stream_read_skb().
Kuniyuki Iwashima <[email protected]>
af_unix: Set drop reason in manage_oob().
Kuniyuki Iwashima <[email protected]>
af_unix: Set drop reason in unix_release_sock().
Kuniyuki Iwashima <[email protected]>
net: dropreason: Gather SOCKET_ drop reasons.
Stephen Dolan <[email protected]>
x86/mm: Fix check/use ordering in switch_mm_irqs_off()
Vasant Hegde <[email protected]>
iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19
Vasant Hegde <[email protected]>
iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19
Eric Biggers <[email protected]>
crypto: sun4i-ss - Remove insecure and unused rng_alg
Jingguo Tan <[email protected]>
vsock/virtio: bind uarg before filling zerocopy skb
Stefano Garzarella <[email protected]>
vsock/virtio: fix zerocopy completion for multi-skb sends
Sagi Grimberg <[email protected]>
nvmet-tcp: Fix potential UAF when ddgst mismatch
Shivam Kumar <[email protected]>
nvmet-tcp: check INIT_FAILED before nvmet_req_uninit in digest error path
Mikhail Gavrilov <[email protected]>
timekeeping: Register default clocksource before taking tk_core.lock
Michael Bommarito <[email protected]>
iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry
Lu Baolu <[email protected]>
iommu/vt-d: Cleanup intel_context_flush_present()
Yi Liu <[email protected]>
iommu: Pass old domain to set_dev_pasid op
Hyunwoo Kim <[email protected]>
KVM: arm64: Clear __hyp_running_vcpu when flushing the pKVM hyp vCPU
Hyunwoo Kim <[email protected]>
KVM: arm64: Bound used_lrs when flushing the pKVM hyp vCPU
Muhammet Kaan KILINÇ <[email protected]>
crypto: algif_skcipher - force synchronous processing
Adam Li <[email protected]>
sched/fair: Only update stats for allowed CPUs when looking for dst group
Pawan Gupta <[email protected]>
bpf: Prefer dirty packs for eBPF allocations
Pawan Gupta <[email protected]>
bpf: Prefer packs that won't trigger an IBPB flush on allocation
Pawan Gupta <[email protected]>
bpf: Skip redundant IBPB in pack allocator
Pawan Gupta <[email protected]>
bpf: Restrict JIT predictor flush to cBPF
Pawan Gupta <[email protected]>
x86/bugs: Enable IBPB flush on BPF JIT allocation
Pawan Gupta <[email protected]>
bpf: Support for hardening against JIT spraying
Kuniyuki Iwashima <[email protected]>
tcp: Add preempt_{disable,enable}_nested() in reqsk_queue_hash_req().
Lu Baolu <[email protected]>
iommu/vt-d: Clear Present bit before tearing down context entry
ChenXiaoSong <[email protected]>
smb/server: do not require delete access for non-replacing links
-------------
Diffstat:
Documentation/admin-guide/pm/cpufreq.rst | 6 +- Documentation/core-api/workqueue.rst | 6 + .../media/allwinner,sun4i-a10-video-engine.yaml | 10 + .../devicetree/bindings/net/microchip,lan8650.yaml | 2 +- .../devicetree/bindings/net/renesas,ether.yaml | 3 +- .../pinctrl/nvidia,tegra234-pinmux-aon.yaml | 4 + .../bindings/pinctrl/nvidia,tegra234-pinmux.yaml | 4 + .../bindings/regulator/mt6359-regulator.yaml | 43 -- Documentation/driver-api/dpll.rst | 25 + Documentation/driver-api/nvdimm/btt.rst | 5 +- Documentation/driver-api/pci/pci.rst | 3 + Documentation/filesystems/proc.rst | 14 +- Documentation/netlink/specs/dpll.yaml | 19 + Documentation/netlink/specs/handshake.yaml | 1 + Documentation/process/deprecated.rst | 31 ++ Makefile | 4 +- arch/alpha/kernel/pci-sysfs.c | 13 +- arch/arm/boot/dts/st/stm32mp151c-mecio1r0.dts | 128 +++++ arch/arm/boot/dts/st/stm32mp153c-mecio1r1.dts | 144 +++++ arch/arm/boot/dts/st/stm32mp15x-mecio1-io.dtsi | 146 +---- arch/arm/boot/dts/ti/omap/am335x-sl50.dts | 4 +- arch/arm/configs/multi_v7_defconfig | 4 +- arch/arm/configs/sunxi_defconfig | 1 - arch/arm/mach-imx/cpu-imx31.c | 9 +- arch/arm/mach-imx/mm-imx3.c | 2 + .../dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 3 + arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 4 +- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 4 +- arch/arm64/boot/dts/freescale/imx95.dtsi | 10 +- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 2 +- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 8 +- arch/arm64/boot/dts/qcom/sc7180.dtsi | 6 +- arch/arm64/boot/dts/qcom/sc7280.dtsi | 8 +- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm630.dtsi | 9 +- .../qcom/sdm845-db845c-navigation-mezzanine.dtso | 5 + arch/arm64/boot/dts/qcom/sm8450.dtsi | 8 +- arch/arm64/boot/dts/qcom/sm8650.dtsi | 6 +- arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 2 +- arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts | 6 +- arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 2 + arch/arm64/include/asm/kvm_hyp.h | 1 + arch/arm64/kernel/entry-fpsimd.S | 8 +- arch/arm64/kernel/hw_breakpoint.c | 9 + arch/arm64/kernel/smp.c | 16 +- arch/arm64/kvm/arm.c | 2 + arch/arm64/kvm/hyp/include/hyp/switch.h | 11 +- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 12 + arch/arm64/kvm/hyp/pgtable.c | 3 +- arch/arm64/kvm/vgic/vgic-its.c | 2 + arch/arm64/kvm/vgic/vgic.c | 11 +- arch/arm64/mm/mmu.c | 11 +- arch/arm64/net/bpf_jit_comp.c | 25 +- arch/loongarch/include/asm/pgtable.h | 4 + arch/loongarch/kvm/exit.c | 1 - arch/loongarch/kvm/vcpu.c | 11 +- arch/mips/dec/int-handler.S | 2 +- arch/mips/dec/platform.c | 6 +- arch/mips/dec/prom/init.c | 6 +- arch/mips/dec/setup.c | 6 - arch/mips/fw/lib/call_o32.S | 2 +- arch/mips/include/asm/dec/prom.h | 15 +- arch/mips/kernel/mips-mt-fpaff.c | 28 +- arch/mips/mm/init.c | 12 +- arch/mips/n64/init.c | 2 +- arch/mips/ralink/mt7621.c | 2 +- arch/mips/sgi-ip22/ip22-gio.c | 7 +- arch/powerpc/kexec/core_64.c | 4 +- arch/powerpc/net/bpf_jit_comp.c | 2 +- arch/powerpc/net/bpf_jit_comp64.c | 21 +- arch/powerpc/perf/core-fsl-emb.c | 3 +- arch/powerpc/platforms/cell/spufs/file.c | 6 +- arch/powerpc/platforms/powernv/setup.c | 3 +- .../platforms/pseries/papr_platform_attributes.c | 8 +- arch/riscv/include/asm/cpu_ops.h | 2 +- arch/riscv/kernel/cacheinfo.c | 2 +- arch/riscv/kernel/cpu-hotplug.c | 4 +- arch/riscv/kernel/cpu_ops_sbi.c | 11 +- arch/riscv/kernel/machine_kexec.c | 3 + arch/riscv/kernel/probes/rethook_trampoline.S | 3 + arch/riscv/kernel/stacktrace.c | 2 +- arch/riscv/net/bpf_jit_comp64.c | 2 +- arch/riscv/net/bpf_jit_core.c | 3 +- arch/s390/Kconfig | 1 - arch/s390/include/asm/asm-extable.h | 4 - arch/s390/include/asm/word-at-a-time.h | 22 - arch/s390/kernel/perf_cpum_cf.c | 3 + arch/s390/kernel/process.c | 2 +- arch/s390/kvm/pci.c | 12 +- arch/s390/mm/extable.c | 18 - arch/s390/mm/mmap.c | 2 +- arch/sparc/kernel/led.c | 2 +- arch/x86/boot/compressed/acpi.c | 7 +- arch/x86/boot/early_serial_console.c | 11 +- arch/x86/events/amd/brs.c | 10 +- arch/x86/events/amd/core.c | 18 +- arch/x86/events/amd/lbr.c | 3 +- arch/x86/events/amd/uncore.c | 6 +- arch/x86/events/intel/uncore_discovery.c | 4 +- arch/x86/events/intel/uncore_snb.c | 7 - arch/x86/include/asm/nospec-branch.h | 4 + arch/x86/kernel/cpu/bugs.c | 50 +- arch/x86/kvm/lapic.c | 8 +- arch/x86/kvm/svm/sev.c | 6 +- arch/x86/mm/tlb.c | 16 +- arch/x86/net/bpf_jit_comp.c | 5 +- arch/x86/platform/olpc/olpc-xo15-sci.c | 1 + block/blk.h | 13 +- crypto/algif_skcipher.c | 75 +-- crypto/asymmetric_keys/verify_pefile.c | 2 + crypto/ecrdsa.c | 2 +- crypto/rng.c | 11 + drivers/accel/ivpu/ivpu_fw_log.c | 4 + drivers/acpi/ac.c | 6 +- drivers/acpi/acpi_ipmi.c | 4 +- drivers/acpi/acpi_pad.c | 6 +- drivers/acpi/acpi_tad.c | 6 +- drivers/acpi/bus.c | 70 +++ drivers/acpi/nfit/core.c | 89 ++- drivers/acpi/pfr_telemetry.c | 6 +- drivers/acpi/pfr_update.c | 6 +- drivers/acpi/processor_idle.c | 4 +- drivers/acpi/resource.c | 6 +- drivers/acpi/riscv/cpuidle.c | 2 +- drivers/acpi/thermal.c | 2 +- drivers/amba/bus.c | 37 +- drivers/ata/libata-core.c | 21 +- drivers/ata/libata-scsi.c | 7 +- drivers/ata/pata_pxa.c | 1 + drivers/ata/sata_gemini.c | 2 +- drivers/base/dd.c | 7 +- drivers/base/firmware_loader/main.c | 3 +- drivers/base/power/main.c | 6 +- drivers/base/property.c | 4 +- drivers/block/drbd/drbd_receiver.c | 5 + drivers/bluetooth/bpa10x.c | 8 +- drivers/bluetooth/btmtk.c | 4 +- drivers/bluetooth/btrtl.c | 5 +- drivers/bluetooth/hci_qca.c | 2 +- drivers/bluetooth/hci_vhci.c | 10 + drivers/bus/imx-weim.c | 6 - drivers/bus/mhi/ep/main.c | 9 +- drivers/bus/sunxi-rsb.c | 3 + drivers/cdx/cdx.c | 40 +- drivers/char/tlclk.c | 4 + drivers/char/tpm/eventlog/tpm1.c | 4 +- drivers/char/tpm/tpm-dev.c | 2 +- drivers/char/tpm/tpm2-sessions.c | 45 +- drivers/char/tpm/tpm_tis_core.c | 35 +- drivers/char/tpm/tpmrm-dev.c | 2 +- drivers/char/virtio_console.c | 52 +- drivers/clk/at91/pmc.c | 2 +- drivers/clk/at91/sam9x7.c | 18 +- drivers/clk/clk-scmi.c | 4 +- drivers/clk/clk-scpi.c | 2 +- drivers/clk/qcom/a53-pll.c | 2 +- drivers/clocksource/timer-sun5i.c | 3 + drivers/cpufreq/cpufreq_conservative.c | 12 +- drivers/cpufreq/intel_pstate.c | 6 +- drivers/crypto/allwinner/Kconfig | 8 - drivers/crypto/allwinner/sun4i-ss/Makefile | 1 - drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 36 -- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c | 69 --- drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | 20 - drivers/crypto/amcc/crypto4xx_alg.c | 106 ---- drivers/crypto/amcc/crypto4xx_core.c | 130 +---- drivers/crypto/amcc/crypto4xx_core.h | 11 - drivers/crypto/amcc/crypto4xx_reg_def.h | 11 - drivers/crypto/atmel-ecc.c | 2 +- drivers/crypto/atmel-sha204a.c | 37 +- drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 4 +- drivers/crypto/ccp/sev-dev.c | 183 +++---- drivers/crypto/hisilicon/Kconfig | 1 - drivers/crypto/hisilicon/qm.c | 4 +- drivers/crypto/hisilicon/trng/trng.c | 296 +--------- .../intel/qat/qat_common/adf_accel_devices.h | 2 + drivers/crypto/intel/qat/qat_common/adf_aer.c | 7 +- .../crypto/intel/qat/qat_common/adf_common_drv.h | 3 +- .../intel/qat/qat_common/adf_heartbeat_inject.c | 6 +- .../crypto/intel/qat/qat_common/adf_hw_arbiter.c | 25 - drivers/crypto/intel/qat/qat_common/adf_isr.c | 39 ++ drivers/crypto/intel/qat/qat_common/adf_sriov.c | 20 +- drivers/crypto/marvell/octeontx/otx_cptvf_reqmgr.c | 4 +- drivers/crypto/tegra/tegra-se-aes.c | 33 +- drivers/dax/kmem.c | 6 + drivers/dma/dma-axi-dmac.c | 68 ++- drivers/dma/dmaengine.c | 3 +- drivers/dma/dw-edma/dw-edma-core.h | 2 +- drivers/dma/dw-edma/dw-edma-v0-core.c | 6 + drivers/dma/imx-sdma.c | 4 +- drivers/dma/qcom/gpi.c | 1 + drivers/dma/tegra186-gpc-dma.c | 7 + drivers/dpll/dpll_core.c | 283 +++++++++- drivers/dpll/dpll_core.h | 8 + drivers/dpll/dpll_netlink.c | 199 ++++++- drivers/dpll/dpll_netlink.h | 2 + drivers/dpll/dpll_nl.c | 10 +- drivers/dpll/dpll_nl.h | 1 + drivers/edac/skx_common.c | 3 + drivers/firmware/arm_scmi/power.c | 6 +- drivers/firmware/arm_scmi/sensors.c | 2 +- drivers/fpga/dfl.c | 2 + drivers/fpga/microchip-spi.c | 3 + drivers/gpio/gpio-davinci.c | 4 +- drivers/gpio/gpio-f7188x.c | 6 +- drivers/gpio/gpio-htc-egpio.c | 6 +- drivers/gpio/gpio-mlxbf3.c | 3 +- drivers/gpio/gpio-mvebu.c | 6 +- drivers/gpio/gpio-palmas.c | 19 + drivers/gpio/gpio-sch.c | 32 +- drivers/gpio/gpio-tegra.c | 18 +- drivers/gpio/gpio-timberdale.c | 2 +- drivers/gpio/gpiolib-acpi-core.c | 19 +- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 16 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 25 +- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 - drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | 3 + drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 + .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 20 +- drivers/gpu/drm/amd/amdkfd/kfd_events.c | 5 + drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 1 + .../amd/display/modules/info_packet/info_packet.c | 2 + drivers/gpu/drm/amd/pm/amdgpu_pm.c | 6 +- drivers/gpu/drm/drm_edid.c | 8 + drivers/gpu/drm/drm_gpuvm.c | 9 +- drivers/gpu/drm/drm_syncobj.c | 10 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 78 +-- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 11 + drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 22 - drivers/gpu/drm/i915/display/intel_atomic.c | 6 + drivers/gpu/drm/i915/gt/intel_region_lmem.c | 2 +- drivers/gpu/drm/msm/dp/dp_display.c | 4 +- drivers/gpu/drm/msm/dp/dp_reg.h | 4 +- .../gpu/drm/nouveau/nvkm/subdev/bios/shadowramin.c | 3 +- drivers/gpu/drm/panthor/panthor_sched.c | 25 +- drivers/gpu/drm/radeon/radeon_gem.c | 13 +- drivers/gpu/drm/radeon/radeon_ring.c | 4 +- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- drivers/gpu/drm/tegra/dc.c | 4 +- drivers/gpu/drm/tegra/gem.c | 22 +- drivers/gpu/drm/tegra/gr2d.c | 19 +- drivers/gpu/drm/tegra/gr3d.c | 19 +- drivers/gpu/drm/tegra/submit.c | 3 +- drivers/gpu/drm/tidss/tidss_kms.c | 2 - drivers/gpu/drm/v3d/v3d_submit.c | 2 + drivers/gpu/drm/xe/tests/xe_pci.c | 1 - drivers/gpu/drm/xe/xe_guc_relay.c | 13 +- drivers/gpu/drm/xe/xe_hw_engine.c | 4 +- drivers/gpu/drm/xe/xe_pt.c | 12 +- drivers/gpu/drm/xe/xe_vram.c | 2 +- drivers/gpu/host1x/bus.c | 62 ++- drivers/gpu/host1x/job.c | 10 +- drivers/hid/bpf/hid_bpf_dispatch.c | 5 +- drivers/hid/hid-appleir.c | 45 +- drivers/hid/hid-core.c | 7 + drivers/hid/hid-logitech-hidpp.c | 1 - drivers/hid/hid-multitouch.c | 32 +- drivers/hid/hid-picolcd_core.c | 3 +- drivers/hid/hid-playstation.c | 12 + drivers/hid/hid-wiimote-modules.c | 58 +- drivers/hid/usbhid/hid-pidff.c | 258 +++++---- drivers/hv/vmbus_drv.c | 43 +- drivers/hwmon/Kconfig | 3 + drivers/hwmon/aspeed-g6-pwm-tach.c | 5 +- drivers/hwmon/asus_atk0110.c | 3 + drivers/hwmon/it87.c | 3 + drivers/hwmon/occ/common.c | 34 +- drivers/hwmon/occ/common.h | 1 + drivers/hwmon/pmbus/adm1275.c | 2 +- drivers/hwmon/pmbus/pmbus_core.c | 13 +- drivers/hwmon/w83627hf.c | 4 + drivers/hwmon/w83793.c | 1 + drivers/hwspinlock/qcom_hwspinlock.c | 5 +- .../hwtracing/coresight/coresight-cti-platform.c | 1 + drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 +- drivers/hwtracing/coresight/coresight-sysfs.c | 4 +- drivers/i2c/busses/i2c-mlxbf.c | 4 +- drivers/i2c/busses/i2c-mt65xx.c | 2 +- drivers/i2c/i2c-core-of.c | 5 - drivers/i3c/master.c | 21 +- drivers/iio/accel/mma8452.c | 2 + drivers/iio/adc/Kconfig | 1 + drivers/iio/adc/xilinx-ams.c | 5 + drivers/iio/light/si1133.c | 14 +- drivers/iio/light/tcs3472.c | 38 +- drivers/iio/magnetometer/ak8975.c | 14 + drivers/iio/orientation/hid-sensor-rotation.c | 40 +- drivers/iio/pressure/bmp280-core.c | 5 - drivers/iio/pressure/icp10100.c | 1 - drivers/iio/pressure/mpl115.c | 6 +- drivers/iio/pressure/zpa2326.c | 2 - drivers/infiniband/core/cm.c | 13 +- drivers/infiniband/core/counters.c | 2 +- drivers/infiniband/hw/hns/hns_roce_cq.c | 6 +- drivers/infiniband/hw/hns/hns_roce_debugfs.c | 19 +- drivers/infiniband/hw/hns/hns_roce_hem.c | 8 +- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 18 +- drivers/infiniband/hw/hns/hns_roce_main.c | 2 +- drivers/infiniband/hw/hns/hns_roce_mr.c | 6 +- drivers/infiniband/hw/hns/hns_roce_srq.c | 2 +- drivers/infiniband/hw/irdma/verbs.c | 19 +- drivers/infiniband/hw/irdma/verbs.h | 1 - drivers/infiniband/hw/mana/main.c | 3 +- drivers/infiniband/hw/mlx4/mlx4_ib.h | 1 + drivers/infiniband/hw/mlx4/mr.c | 9 +- drivers/infiniband/hw/mlx4/sysfs.c | 45 +- drivers/infiniband/hw/mlx5/devx.c | 30 +- drivers/infiniband/hw/mlx5/main.c | 17 +- drivers/infiniband/hw/mlx5/mr.c | 17 +- drivers/infiniband/hw/mlx5/qp.c | 13 +- drivers/infiniband/hw/mlx5/restrack.c | 3 - drivers/infiniband/sw/rxe/rxe_mmap.c | 19 +- drivers/infiniband/sw/rxe/rxe_resp.c | 33 +- drivers/infiniband/sw/siw/siw_cm.c | 30 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 5 +- drivers/input/misc/ims-pcu.c | 129 ++++- drivers/iommu/amd/amd_iommu.h | 6 +- drivers/iommu/amd/amd_iommu_types.h | 32 +- drivers/iommu/amd/init.c | 90 ++- drivers/iommu/amd/iommu.c | 2 +- drivers/iommu/amd/pasid.c | 3 +- drivers/iommu/amd/ppr.c | 10 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 3 +- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 +- drivers/iommu/intel/iommu.c | 14 +- drivers/iommu/intel/iommu.h | 26 +- drivers/iommu/intel/pasid.c | 50 +- drivers/iommu/intel/svm.c | 3 +- drivers/iommu/iommu.c | 3 +- drivers/irqchip/irq-crossbar.c | 10 +- drivers/irqchip/irq-gic-v3-its.c | 6 +- drivers/irqchip/irq-riscv-imsic-early.c | 15 +- drivers/irqchip/irq-ts4800.c | 10 + drivers/leds/uleds.c | 3 +- drivers/mailbox/imx-mailbox.c | 3 +- drivers/mailbox/mtk-adsp-mailbox.c | 9 +- drivers/md/dm-bufio.c | 4 +- drivers/md/dm-era-target.c | 10 +- drivers/md/dm-integrity.c | 10 +- drivers/md/dm-ioctl.c | 4 +- drivers/md/dm-log.c | 3 + drivers/md/dm-stats.c | 10 +- drivers/md/dm-thin-metadata.c | 67 +-- drivers/md/dm-verity-loadpin.c | 2 +- drivers/md/dm-verity-target.c | 16 +- drivers/md/dm-verity.h | 2 +- drivers/md/raid1.c | 6 + drivers/md/raid10.c | 1 + drivers/md/raid5.c | 55 +- .../media/platform/nxp/imx8-isi/imx8-isi-core.c | 18 +- drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- drivers/media/platform/qcom/venus/helpers.c | 4 +- .../media/platform/qcom/venus/hfi_platform_v4.c | 20 +- .../media/platform/qcom/venus/hfi_platform_v6.c | 16 +- drivers/media/platform/rockchip/rga/rga-hw.c | 2 +- drivers/media/platform/rockchip/rga/rga-hw.h | 2 +- drivers/media/usb/uvc/uvc_video.c | 179 +++--- drivers/media/v4l2-core/v4l2-common.c | 1 + drivers/memory/tegra/mc.c | 14 + drivers/memstick/core/ms_block.c | 4 + drivers/mfd/cs42l43.c | 2 +- drivers/mfd/rsmu_i2c.c | 6 +- drivers/mfd/rsmu_spi.c | 5 +- drivers/mfd/sm501.c | 4 +- drivers/mfd/tps6586x.c | 2 +- drivers/mmc/core/block.c | 3 +- drivers/mmc/host/sdhci-of-dwcmshc.c | 14 +- drivers/mmc/host/vub300.c | 26 +- drivers/mtd/devices/mchp23k256.c | 2 +- drivers/mtd/devices/slram.c | 22 +- drivers/mtd/maps/vmu-flash.c | 1 + drivers/mtd/nand/onenand/onenand_samsung.c | 7 +- drivers/mtd/nand/raw/fsl_ifc_nand.c | 9 +- drivers/mtd/nand/raw/lpc32xx_mlc.c | 12 +- drivers/mtd/nand/raw/lpc32xx_slc.c | 12 +- drivers/mtd/nand/raw/nand_base.c | 24 +- drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 +- drivers/mtd/spi-nor/Kconfig | 1 - drivers/mtd/spi-nor/spansion.c | 4 +- drivers/mtd/spi-nor/swp.c | 11 +- drivers/net/amt.c | 6 +- drivers/net/bonding/bond_3ad.c | 1 + drivers/net/can/usb/esd_usb.c | 5 +- drivers/net/dsa/qca/qca8k-leds.c | 3 +- drivers/net/dsa/realtek/rtl8366rb-leds.c | 8 +- drivers/net/dsa/sja1105/sja1105_ptp.c | 2 +- drivers/net/ethernet/amazon/ena/ena_netdev.c | 23 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 +- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 3 +- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 83 ++- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 19 +- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 134 +++-- drivers/net/ethernet/broadcom/genet/bcmgenet.c | 23 +- .../ethernet/cavium/liquidio/cn23xx_pf_device.c | 18 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 8 - drivers/net/ethernet/emulex/benet/be_main.c | 3 +- .../net/ethernet/freescale/dpaa2/dpaa2-switch.c | 10 +- drivers/net/ethernet/freescale/enetc/enetc.c | 7 + drivers/net/ethernet/freescale/fman/fman.c | 4 +- drivers/net/ethernet/freescale/gianfar.c | 16 +- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 +- .../hisilicon/hns3/hns3_common/hclge_comm_cmd.c | 2 +- .../hns3/hns3_common/hclge_comm_tqp_stats.c | 11 +- .../hns3/hns3_common/hclge_comm_tqp_stats.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 34 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 36 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 152 +++-- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 76 ++- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 196 ++++--- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 7 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c | 3 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.h | 2 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_debug.h | 2 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 2 - drivers/net/ethernet/intel/ice/ice_common.c | 1 - drivers/net/ethernet/intel/ice/ice_dpll.c | 20 +- drivers/net/ethernet/intel/ice/ice_eswitch.c | 4 +- drivers/net/ethernet/intel/ice/ice_ethtool.c | 12 +- drivers/net/ethernet/intel/ice/ice_main.c | 20 +- drivers/net/ethernet/intel/ice/ice_vf_lib.c | 2 +- drivers/net/ethernet/marvell/mvneta.c | 3 + drivers/net/ethernet/marvell/octeontx2/af/mcs.c | 6 +- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 3 +- .../ethernet/marvell/octeontx2/af/rvu_devlink.c | 27 +- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 15 +- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 40 +- .../ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 10 +- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 44 +- .../net/ethernet/marvell/prestera/prestera_main.c | 2 +- drivers/net/ethernet/mediatek/airoha_eth.c | 231 +++++++- drivers/net/ethernet/mediatek/mtk_ppe.c | 4 +- drivers/net/ethernet/mediatek/mtk_wed_debugfs.c | 6 +- drivers/net/ethernet/mediatek/mtk_wed_mcu.c | 8 +- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 3 +- .../ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c | 29 +- .../ethernet/mellanox/mlx5/core/en_accel/macsec.c | 47 +- drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 3 +- .../net/ethernet/mellanox/mlx5/core/lag/mpesw.c | 7 +- .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c | 8 +- .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h | 6 +- .../net/ethernet/mellanox/mlx5/core/lib/port_tun.c | 3 +- drivers/net/ethernet/mellanox/mlx5/core/main.c | 12 +- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +- .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 1 + drivers/net/ethernet/microchip/lan743x_main.c | 2 +- .../ethernet/microchip/lan966x/lan966x_vcap_impl.c | 5 +- .../ethernet/microchip/sparx5/sparx5_switchdev.c | 4 +- .../ethernet/microchip/sparx5/sparx5_vcap_impl.c | 5 +- drivers/net/ethernet/microchip/vcap/vcap_api.c | 72 +-- drivers/net/ethernet/microchip/vcap/vcap_api.h | 3 +- .../net/ethernet/microchip/vcap/vcap_api_debugfs.c | 8 +- .../microchip/vcap/vcap_api_debugfs_kunit.c | 3 +- .../net/ethernet/microchip/vcap/vcap_api_kunit.c | 3 +- .../net/ethernet/microchip/vcap/vcap_api_private.h | 3 + drivers/net/ethernet/microsoft/mana/gdma_main.c | 2 + drivers/net/ethernet/microsoft/mana/mana_en.c | 3 +- .../net/ethernet/netronome/nfp/nfp_net_common.c | 3 +- drivers/net/ethernet/oa_tc6.c | 14 +- .../net/ethernet/pensando/ionic/ionic_ethtool.c | 11 +- drivers/net/ethernet/qlogic/qede/qede_filter.c | 3 - drivers/net/ethernet/qlogic/qede/qede_fp.c | 9 +- drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 1 - .../net/ethernet/qualcomm/rmnet/rmnet_handlers.c | 5 +- drivers/net/ethernet/qualcomm/rmnet/rmnet_map.h | 1 + .../net/ethernet/qualcomm/rmnet/rmnet_map_data.c | 78 +-- drivers/net/ethernet/sfc/ef10.c | 1 - drivers/net/ethernet/sun/sungem.c | 13 +- drivers/net/ethernet/sunplus/spl2sw_phy.c | 6 +- drivers/net/ieee802154/ca8210.c | 9 +- drivers/net/macsec.c | 9 +- drivers/net/netdevsim/udp_tunnels.c | 4 - drivers/net/pfcp.c | 1 + drivers/net/phy/sfp.c | 1 + drivers/net/thunderbolt/main.c | 8 +- drivers/net/usb/gl620a.c | 6 +- drivers/net/usb/lan78xx.c | 318 +++++------ drivers/net/usb/net1080.c | 2 +- drivers/net/veth.c | 2 + drivers/net/virtio_net.c | 12 +- drivers/net/vxlan/vxlan_core.c | 8 +- drivers/net/wan/ixp4xx_hss.c | 4 +- drivers/net/wireless/ath/ath9k/xmit.c | 5 + drivers/net/wireless/ath/wcn36xx/smd.c | 13 + drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +- drivers/net/wireless/marvell/mwifiex/join.c | 1 - drivers/net/wireless/mediatek/mt76/mac80211.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 10 +- drivers/net/wireless/mediatek/mt76/mt7921/mac.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7925/mac.c | 20 +- drivers/net/wireless/mediatek/mt76/mt7925/main.c | 4 +- drivers/net/wireless/mediatek/mt76/mt7925/pci.c | 4 +- drivers/net/wireless/mediatek/mt76/mt792x_core.c | 3 +- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 6 +- drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 12 +- drivers/net/wireless/realtek/rtw88/pci.c | 5 + drivers/net/wireless/realtek/rtw89/fw.c | 2 +- drivers/net/wwan/iosm/iosm_ipc_mux_codec.c | 40 +- drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 3 + drivers/net/wwan/t7xx/t7xx_port_wwan.c | 2 + drivers/ntb/hw/epf/ntb_hw_epf.c | 81 ++- drivers/nvdimm/btt.c | 14 +- drivers/nvdimm/nd.h | 11 +- drivers/nvdimm/region_devs.c | 66 +-- drivers/nvme/host/core.c | 2 +- drivers/nvme/target/rdma.c | 18 +- drivers/nvme/target/tcp.c | 11 +- drivers/of/cpu.c | 2 +- drivers/of/dynamic.c | 1 - drivers/of/platform.c | 5 - drivers/pci/Makefile | 2 +- drivers/pci/controller/Kconfig | 1 + drivers/pci/controller/dwc/pci-meson.c | 13 +- drivers/pci/controller/dwc/pcie-designware-host.c | 2 +- drivers/pci/controller/dwc/pcie-qcom.c | 43 +- .../pci/controller/mobiveil/pcie-mobiveil-host.c | 8 +- drivers/pci/controller/pci-loongson.c | 31 +- drivers/pci/controller/pcie-altera-msi.c | 2 +- drivers/pci/controller/pcie-altera.c | 31 +- drivers/pci/controller/pcie-iproc-bcma.c | 2 +- drivers/pci/controller/pcie-iproc-platform.c | 2 +- drivers/pci/controller/pcie-iproc.c | 1 - drivers/pci/controller/pcie-iproc.h | 2 - drivers/pci/controller/pcie-mediatek-gen3.c | 4 +- drivers/pci/controller/pcie-mediatek.c | 180 +++--- drivers/pci/controller/pcie-rcar-host.c | 1 - drivers/pci/controller/pcie-xilinx-dma-pl.c | 2 +- drivers/pci/controller/pcie-xilinx-nwl.c | 2 +- drivers/pci/controller/plda/pcie-plda-host.c | 2 +- drivers/pci/endpoint/functions/pci-epf-ntb.c | 21 +- drivers/pci/endpoint/functions/pci-epf-vntb.c | 9 +- drivers/pci/msi/msi.c | 4 +- drivers/pci/pci-sysfs.c | 17 +- drivers/pci/pci.c | 137 ----- drivers/pci/pci.h | 4 + drivers/pci/rebar.c | 197 +++++++ drivers/pci/rom.c | 149 ++++- drivers/pci/setup-bus.c | 104 +++- drivers/pci/setup-res.c | 53 -- drivers/phy/phy-can-transceiver.c | 3 + drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8167.c | 2 +- drivers/pinctrl/mediatek/pinctrl-mt8516.c | 2 +- drivers/pinctrl/meson/pinctrl-meson.c | 2 +- drivers/pinctrl/nuvoton/pinctrl-ma35.c | 3 +- drivers/pinctrl/nuvoton/pinctrl-ma35d1.c | 470 +++++++++------- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +- drivers/platform/x86/amd/pmc/pmc-quirks.c | 39 ++ drivers/platform/x86/amd/pmc/pmc.c | 83 ++- drivers/platform/x86/amd/pmc/pmc.h | 2 + drivers/platform/x86/dell/dell-laptop.c | 5 + drivers/platform/x86/xo15-ebook.c | 7 +- drivers/pmdomain/imx/imx8m-blk-ctrl.c | 46 +- drivers/power/sequencing/core.c | 9 +- drivers/power/supply/charger-manager.c | 6 +- drivers/power/supply/cpcap-battery.c | 11 +- drivers/power/supply/power_supply_core.c | 11 +- drivers/pwm/pwm-imx27.c | 8 +- drivers/rapidio/devices/tsi721.c | 3 +- drivers/regulator/core.c | 4 +- drivers/regulator/ltc3676.c | 10 +- drivers/remoteproc/qcom_common.c | 14 +- drivers/reset/reset-imx7.c | 6 + drivers/reset/reset-sunxi.c | 4 +- drivers/rpmsg/qcom_glink_native.c | 2 - drivers/rpmsg/rpmsg_core.c | 43 +- drivers/rpmsg/virtio_rpmsg_bus.c | 1 - drivers/rtc/rtc-abx80x.c | 3 +- drivers/rtc/rtc-cmos.c | 6 + drivers/rtc/rtc-ds1307.c | 30 +- drivers/rtc/rtc-mpfs.c | 2 +- drivers/rtc/rtc-msc313.c | 4 +- drivers/s390/char/monwriter.c | 3 + drivers/s390/crypto/pkey_api.c | 8 +- drivers/s390/crypto/pkey_pckmo.c | 4 + drivers/s390/crypto/zcrypt_cex2a.c | 0 drivers/s390/crypto/zcrypt_cex2a.h | 0 drivers/s390/crypto/zcrypt_cex2c.c | 0 drivers/s390/crypto/zcrypt_cex2c.h | 0 drivers/scsi/elx/efct/efct_hw.c | 2 + drivers/scsi/elx/efct/efct_unsol.c | 1 + drivers/scsi/hpsa.c | 4 + drivers/scsi/lpfc/lpfc_init.c | 3 +- drivers/scsi/pm8001/pm8001_ctl.c | 5 +- drivers/scsi/scsi_scan.c | 2 +- drivers/scsi/scsi_transport_sas.c | 101 ++-- drivers/scsi/sg.c | 7 +- drivers/scsi/smartpqi/smartpqi_init.c | 2 +- drivers/soc/fsl/qe/qe.c | 3 + drivers/soc/ti/k3-ringacc.c | 4 +- drivers/soc/xilinx/zynqmp_power.c | 4 +- drivers/spi/spi-dw.h | 1 + drivers/spi/spi-ep93xx.c | 1 + drivers/spi/spi-hisi-kunpeng.c | 6 +- drivers/spi/spi-meson-spifc.c | 1 + drivers/spi/spi-rpc-if.c | 6 +- drivers/spi/spi-sh-msiof.c | 10 +- drivers/spi/spi-uniphier.c | 4 +- drivers/spi/spi-xilinx.c | 11 +- drivers/spi/spi.c | 5 - drivers/staging/media/atomisp/i2c/atomisp-gc2235.c | 29 +- drivers/staging/media/atomisp/pci/atomisp_cmd.c | 6 +- drivers/staging/media/atomisp/pci/sh_css.c | 8 +- drivers/staging/media/sunxi/cedrus/cedrus.c | 4 +- drivers/staging/most/video/video.c | 7 +- drivers/staging/nvec/nvec.c | 4 +- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 93 ++-- drivers/staging/rtl8723bs/core/rtw_security.c | 2 +- drivers/target/iscsi/iscsi_target_auth.c | 6 +- drivers/target/loopback/tcm_loop.c | 64 --- drivers/target/target_core_fabric_lib.c | 89 ++- drivers/target/target_core_internal.h | 3 +- drivers/target/target_core_pr.c | 12 +- drivers/thermal/intel/therm_throt.c | 7 +- drivers/thermal/testing/command.c | 48 +- drivers/thermal/testing/thermal_testing.h | 8 + drivers/thermal/testing/zone.c | 7 +- drivers/thermal/thermal_hwmon.c | 5 +- drivers/thunderbolt/debugfs.c | 8 +- drivers/tty/serial/8250/8250_omap.c | 3 +- drivers/tty/serial/max310x.c | 12 + drivers/tty/serial/msm_serial.c | 3 +- drivers/ufs/core/ufshcd.c | 2 +- drivers/usb/atm/ueagle-atm.c | 36 +- drivers/usb/gadget/function/f_fs.c | 6 +- drivers/usb/host/max3421-hcd.c | 8 + drivers/usb/misc/iowarrior.c | 74 +-- drivers/vdpa/octeon_ep/octep_vdpa_main.c | 7 +- drivers/vdpa/vdpa_user/vduse_dev.c | 72 ++- drivers/vfio/pci/mlx5/cmd.h | 15 +- drivers/vfio/pci/qat/main.c | 18 +- drivers/vhost/net.c | 15 +- drivers/vhost/vdpa.c | 29 +- drivers/vhost/vhost.c | 11 +- drivers/video/fbdev/aty/radeon_base.c | 1 + drivers/video/fbdev/broadsheetfb.c | 8 +- drivers/video/fbdev/carminefb.c | 1 + drivers/video/fbdev/core/fbcon.c | 7 +- drivers/video/fbdev/efifb.c | 1 + drivers/video/fbdev/hecubafb.c | 6 +- drivers/video/fbdev/i740fb.c | 1 + drivers/video/fbdev/metronomefb.c | 8 +- drivers/video/fbdev/nvidia/nvidia.c | 1 + drivers/video/fbdev/s3fb.c | 1 + drivers/video/fbdev/sm501fb.c | 16 +- drivers/video/fbdev/sm712.h | 2 +- drivers/video/fbdev/tdfxfb.c | 1 + drivers/video/fbdev/tridentfb.c | 1 + drivers/video/fbdev/uvesafb.c | 4 +- drivers/video/fbdev/vesafb.c | 1 + drivers/watchdog/sama5d4_wdt.c | 48 +- drivers/watchdog/sp5100_tco.c | 3 +- drivers/watchdog/sprd_wdt.c | 5 +- drivers/watchdog/watchdog_core.c | 3 + drivers/xen/gntdev.c | 8 +- drivers/xen/xen-scsiback.c | 30 +- fs/9p/vfs_addr.c | 3 +- fs/9p/vfs_inode.c | 9 + fs/afs/callback.c | 7 +- fs/afs/cell.c | 43 +- fs/afs/cmservice.c | 2 - fs/afs/dir.c | 5 +- fs/afs/dynroot.c | 509 ++++++++--------- fs/afs/file.c | 15 +- fs/afs/fs_operation.c | 2 +- fs/afs/inode.c | 1 - fs/afs/internal.h | 12 +- fs/afs/main.c | 3 + fs/afs/proc.c | 10 +- fs/afs/rxrpc.c | 11 +- fs/afs/super.c | 16 +- fs/afs/vl_list.c | 10 +- fs/afs/volume.c | 2 +- fs/btrfs/btrfs_inode.h | 3 +- fs/btrfs/compression.c | 2 +- fs/btrfs/direct-io.c | 69 ++- fs/btrfs/disk-io.c | 16 +- fs/btrfs/extent-tree.c | 5 +- fs/btrfs/extent_io.c | 106 ++-- fs/btrfs/file.c | 27 +- fs/btrfs/fs.h | 7 - fs/btrfs/inode.c | 228 ++------ fs/btrfs/ordered-data.c | 41 +- fs/btrfs/ordered-data.h | 8 +- fs/btrfs/reflink.c | 106 ++-- fs/btrfs/super.c | 3 +- fs/ceph/addr.c | 13 +- fs/configfs/dir.c | 57 +- fs/crypto/fscrypt_private.h | 87 +-- fs/crypto/inline_crypt.c | 8 +- fs/crypto/keyring.c | 239 ++++---- fs/crypto/keysetup.c | 121 ++-- fs/dlm/midcomms.c | 4 +- fs/efs/file.c | 21 +- fs/eventpoll.c | 609 ++++++++++++++------- fs/exfat/dir.c | 49 +- fs/exfat/exfat_fs.h | 7 +- fs/exfat/inode.c | 2 +- fs/exfat/namei.c | 206 +++---- fs/ext2/file.c | 9 +- fs/ext4/inode.c | 3 +- fs/ext4/ioctl.c | 15 +- fs/fhandle.c | 2 +- fs/fs-writeback.c | 5 - fs/hfs/bfind.c | 2 +- fs/hfs/bnode.c | 54 +- fs/hfs/brec.c | 2 +- fs/hfs/btree.c | 2 +- fs/hfs/btree.h | 71 +-- fs/hfs/hfs_fs.h | 88 +-- fs/hfs/inode.c | 3 +- fs/hfsplus/bfind.c | 2 +- fs/hfsplus/bnode.c | 60 +- fs/hfsplus/brec.c | 2 +- fs/hfsplus/btree.c | 2 +- fs/hfsplus/hfsplus_fs.h | 40 +- fs/jbd2/journal.c | 2 + fs/lockd/svcsubs.c | 4 +- fs/minix/minix.h | 2 +- fs/namei.c | 24 +- fs/netfs/buffered_read.c | 16 +- fs/netfs/objects.c | 15 +- fs/netfs/read_collect.c | 47 +- fs/netfs/write_issue.c | 11 +- fs/nfs/callback_proc.c | 9 +- fs/nfs/delegation.c | 9 +- fs/nfs/filelayout/filelayout.c | 2 + fs/nfs/flexfilelayout/flexfilelayout.c | 29 + fs/nfs/flexfilelayout/flexfilelayout.h | 16 + fs/nfs/fscache.c | 6 +- fs/nfs/fscache.h | 3 +- fs/nfs/internal.h | 12 +- fs/nfs/nfs4proc.c | 22 +- fs/nfs/pnfs.c | 4 +- fs/nfs/pnfs_nfs.c | 2 +- fs/nfs/read.c | 25 +- fs/nfs/write.c | 14 +- fs/nfsd/nfs4state.c | 16 +- fs/nilfs2/super.c | 2 - fs/ntfs3/fslog.c | 147 ++++- fs/ntfs3/index.c | 45 +- fs/ntfs3/lznt.c | 2 +- fs/ntfs3/namei.c | 2 +- fs/ntfs3/ntfs_fs.h | 3 +- fs/ntfs3/run.c | 9 +- fs/ocfs2/alloc.c | 2 +- fs/ocfs2/aops.c | 13 +- fs/ocfs2/buffer_head_io.c | 7 +- fs/ocfs2/dlm/dlmdebug.c | 16 +- fs/ocfs2/dlmglue.c | 17 + fs/ocfs2/inode.c | 150 ++++- fs/ocfs2/journal.c | 13 +- fs/ocfs2/journal.h | 3 + fs/ocfs2/move_extents.c | 4 +- fs/ocfs2/ocfs2.h | 2 - fs/ocfs2/quota_local.c | 2 +- fs/ocfs2/stack_user.c | 10 +- fs/ocfs2/super.c | 2 - fs/ocfs2/sysfile.c | 9 +- fs/orangefs/dir.c | 7 +- fs/overlayfs/inode.c | 4 +- fs/proc/array.c | 15 +- fs/proc/base.c | 184 +++---- fs/proc/fd.c | 31 +- fs/proc/generic.c | 9 +- fs/proc/internal.h | 6 +- fs/proc/namespaces.c | 16 +- fs/proc/proc_net.c | 2 +- fs/proc/task_mmu.c | 61 ++- fs/smb/client/cifs_swn.c | 329 ++++++++--- fs/smb/client/cifssmb.c | 10 +- fs/smb/client/connect.c | 3 + fs/smb/client/file.c | 4 +- fs/smb/client/inode.c | 30 +- fs/smb/client/ioctl.c | 12 +- fs/smb/client/misc.c | 8 + fs/smb/client/smb2ops.c | 38 +- fs/smb/client/smb2pdu.c | 10 +- fs/smb/client/trace.h | 2 + fs/smb/server/connection.c | 101 +++- fs/smb/server/connection.h | 6 + fs/smb/server/misc.c | 33 -- fs/smb/server/misc.h | 1 - fs/smb/server/oplock.c | 13 +- fs/smb/server/server.c | 12 + fs/smb/server/smb2pdu.c | 53 +- fs/smb/server/smbacl.c | 7 +- fs/smb/server/vfs.c | 78 +-- fs/smb/server/vfs_cache.c | 114 +++- fs/smb/server/vfs_cache.h | 1 + fs/sysfs/file.c | 4 + fs/udf/super.c | 2 +- include/acpi/acpi_bus.h | 2 + include/asm-generic/bitops/lock.h | 22 +- include/dt-bindings/power/fsl,imx93-power.h | 1 + include/linux/amba/bus.h | 5 - include/linux/bpf.h | 14 +- include/linux/bpf_local_storage.h | 3 - include/linux/bpf_lsm.h | 4 + include/linux/cdx/cdx_bus.h | 4 - include/linux/device.h | 5 +- include/linux/dpll.h | 55 ++ include/linux/filter.h | 15 +- include/linux/gfp.h | 4 + include/linux/hid.h | 29 + include/linux/host1x.h | 7 + include/linux/hyperv.h | 5 - include/linux/i3c/master.h | 2 +- include/linux/inetdevice.h | 5 + include/linux/iommu.h | 2 +- include/linux/jiffies.h | 15 +- include/linux/namei.h | 7 +- include/linux/netfs.h | 7 +- include/linux/nfs_page.h | 1 + include/linux/nfs_xdr.h | 1 - include/linux/pci.h | 4 +- include/linux/rpmsg.h | 4 - include/linux/rtnetlink.h | 63 ++- include/linux/seqlock.h | 110 ++++ include/linux/slab.h | 100 ++++ include/linux/sunrpc/clnt.h | 1 + include/linux/sunrpc/xprt.h | 2 + include/linux/vmalloc.h | 4 +- include/linux/workqueue.h | 1 + include/net/addrconf.h | 15 +- include/net/bluetooth/hci.h | 21 +- include/net/bluetooth/hci_core.h | 49 +- include/net/bluetooth/l2cap.h | 13 +- include/net/dropreason-core.h | 21 +- include/net/fib_rules.h | 5 + include/net/gue.h | 2 +- include/net/ip_fib.h | 7 +- include/net/ip_vs.h | 3 +- include/net/net_namespace.h | 4 + include/net/netfilter/nf_conntrack_extend.h | 12 - include/net/netfilter/nf_queue.h | 1 + include/net/scm.h | 4 +- include/net/sctp/sctp.h | 3 +- include/net/tc_act/tc_pedit.h | 18 +- include/net/udp_tunnel.h | 86 ++- include/net/xfrm.h | 15 +- include/trace/events/afs.h | 4 + include/uapi/linux/bpf.h | 1 + include/uapi/linux/dpll.h | 1 + io_uring/rw.c | 13 +- kernel/bpf/bpf_inode_storage.c | 9 + kernel/bpf/bpf_lsm.c | 3 + kernel/bpf/cgroup.c | 108 ++-- kernel/bpf/core.c | 85 ++- kernel/bpf/devmap.c | 12 + kernel/bpf/dispatcher.c | 2 +- kernel/bpf/hashtab.c | 21 +- kernel/bpf/helpers.c | 12 +- kernel/bpf/inode.c | 13 +- kernel/bpf/lpm_trie.c | 11 +- kernel/bpf/syscall.c | 5 +- kernel/bpf/verifier.c | 3 +- kernel/cgroup/cpuset.c | 7 +- kernel/cpu.c | 20 +- kernel/fork.c | 9 +- kernel/kcov.c | 4 +- kernel/sched/core.c | 1 + kernel/sched/debug.c | 9 +- kernel/sched/fair.c | 25 +- kernel/taskstats.c | 62 ++- kernel/time/jiffies.c | 16 +- kernel/time/posix-cpu-timers.c | 2 +- kernel/time/tick-sched.c | 11 +- kernel/time/time.c | 2 +- kernel/time/timekeeping.c | 7 +- kernel/trace/bpf_trace.c | 11 +- kernel/trace/ring_buffer.c | 3 +- kernel/trace/trace_eprobe.c | 2 +- kernel/trace/trace_events_hist.c | 41 +- kernel/trace/trace_events_user.c | 43 +- kernel/trace/trace_osnoise.c | 4 +- kernel/trace/trace_probe.c | 1 + kernel/trace/trace_probe.h | 2 +- kernel/workqueue.c | 2 +- lib/test_meminit.c | 2 +- mm/compaction.c | 7 +- mm/damon/core.c | 51 +- mm/damon/sysfs-schemes.c | 17 +- mm/memory_hotplug.c | 2 +- mm/mm_init.c | 13 +- mm/numa_emulation.c | 17 +- mm/swap_cgroup.c | 6 + net/9p/client.c | 2 + net/9p/trans_rdma.c | 19 +- net/Kconfig.debug | 15 + net/atm/common.c | 2 + net/batman-adv/distributed-arp-table.c | 30 +- net/batman-adv/fragmentation.c | 8 +- net/batman-adv/gateway_client.c | 3 +- net/batman-adv/main.c | 13 +- net/batman-adv/multicast_forw.c | 7 +- net/batman-adv/routing.c | 3 +- net/batman-adv/soft-interface.c | 17 +- net/batman-adv/soft-interface.h | 2 + net/batman-adv/translation-table.c | 5 +- net/bluetooth/6lowpan.c | 74 +-- net/bluetooth/eir.c | 8 +- net/bluetooth/hci_codec.c | 2 +- net/bluetooth/hci_conn.c | 62 +-- net/bluetooth/hci_core.c | 83 +-- net/bluetooth/hci_event.c | 28 +- net/bluetooth/hci_sync.c | 179 +++++- net/bluetooth/iso.c | 4 +- net/bluetooth/l2cap_core.c | 206 +++++-- net/bluetooth/l2cap_sock.c | 103 ++-- net/bluetooth/mgmt.c | 5 +- net/bluetooth/msft.c | 2 +- net/bluetooth/sco.c | 62 ++- net/bluetooth/smp.c | 27 +- net/bridge/br_cfm.c | 6 + net/bridge/br_cfm_netlink.c | 4 +- net/bridge/br_if.c | 3 + net/bridge/br_stp.c | 3 +- net/bridge/netfilter/ebtables.c | 13 +- net/bridge/netfilter/nft_meta_bridge.c | 4 +- net/can/bcm.c | 127 ++++- net/can/isotp.c | 9 +- net/core/dev.c | 2 + net/core/fib_rules.c | 6 +- net/core/filter.c | 28 +- net/core/flow_dissector.c | 12 +- net/core/lwt_bpf.c | 12 + net/core/net_namespace.c | 6 + net/core/netdev-genl.c | 4 +- net/core/rtnetlink.c | 81 +++ net/devlink/rate.c | 10 +- net/handshake/genl.c | 2 +- net/ieee802154/core.c | 2 +- net/ieee802154/header_ops.c | 9 +- net/ieee802154/ieee802154.h | 17 + net/ieee802154/netlink.c | 36 +- net/ife/ife.c | 2 +- net/ipv4/igmp.c | 14 +- net/ipv4/inet_connection_sock.c | 6 + net/ipv4/ip_vti.c | 3 + net/ipv4/ipip.c | 3 + net/ipv4/netfilter/nf_reject_ipv4.c | 2 +- net/ipv4/udp_tunnel_core.c | 16 +- net/ipv4/udp_tunnel_nic.c | 80 ++- net/ipv6/addrconf.c | 101 ++-- net/ipv6/ip6_fib.c | 17 +- net/ipv6/ip6_gre.c | 6 + net/ipv6/ip6_vti.c | 3 + net/ipv6/mcast.c | 165 +++--- net/ipv6/ndisc.c | 8 +- net/ipv6/netfilter.c | 4 +- net/ipv6/netfilter/ip6t_ah.c | 5 + net/ipv6/netfilter/ip6t_hbh.c | 1 + net/ipv6/netfilter/ip6t_rt.c | 3 +- net/ipv6/netfilter/nf_conntrack_reasm.c | 3 +- net/ipv6/route.c | 9 +- net/ipv6/seg6.c | 3 + net/ipv6/sit.c | 3 + net/kcm/kcmsock.c | 8 +- net/llc/af_llc.c | 1 + net/llc/llc_conn.c | 1 - net/mac80211/main.c | 3 +- net/mac80211/tx.c | 17 +- net/mac802154/iface.c | 2 +- net/mac802154/scan.c | 1 + net/netfilter/ipset/ip_set_core.c | 4 +- net/netfilter/ipset/ip_set_hash_gen.h | 69 ++- net/netfilter/ipvs/ip_vs_app.c | 10 +- net/netfilter/ipvs/ip_vs_conn.c | 4 +- net/netfilter/ipvs/ip_vs_core.c | 36 +- net/netfilter/ipvs/ip_vs_proto_sctp.c | 18 +- net/netfilter/ipvs/ip_vs_proto_tcp.c | 11 +- net/netfilter/ipvs/ip_vs_proto_udp.c | 3 +- net/netfilter/ipvs/ip_vs_xmit.c | 6 +- net/netfilter/nf_conncount.c | 23 +- net/netfilter/nf_conntrack_core.c | 83 +-- net/netfilter/nf_conntrack_ecache.c | 2 +- net/netfilter/nf_conntrack_extend.c | 32 +- net/netfilter/nf_conntrack_irc.c | 6 +- net/netfilter/nf_conntrack_seqadj.c | 2 + net/netfilter/nf_nat_core.c | 10 + net/netfilter/nf_nat_sip.c | 11 + net/netfilter/nf_queue.c | 14 + net/netfilter/nf_synproxy_core.c | 40 +- net/netfilter/nfnetlink_cthelper.c | 24 +- net/netfilter/nfnetlink_osf.c | 6 +- net/netfilter/nfnetlink_queue.c | 3 + net/netfilter/nft_compat.c | 24 +- net/netfilter/nft_lookup.c | 10 +- net/netfilter/nft_set_pipapo.c | 34 +- net/netfilter/nft_set_pipapo.h | 8 + net/netfilter/nft_synproxy.c | 9 +- net/netfilter/xt_cluster.c | 2 +- net/netfilter/xt_connmark.c | 14 +- net/netfilter/xt_nat.c | 9 + net/netfilter/xt_rateest.c | 2 +- net/netfilter/xt_u32.c | 12 +- net/openvswitch/conntrack.c | 2 +- net/openvswitch/flow_netlink.c | 201 +++++-- net/psample/psample.c | 6 +- net/qrtr/af_qrtr.c | 2 +- net/rxrpc/recvmsg.c | 5 +- net/sched/act_api.c | 13 +- net/sched/act_bpf.c | 2 +- net/sched/act_ct.c | 13 +- net/sched/act_pedit.c | 13 +- net/sched/cls_api.c | 25 +- net/sched/cls_bpf.c | 10 +- net/sched/cls_flow.c | 12 +- net/sched/sch_cake.c | 5 +- net/sched/sch_codel.c | 48 +- net/sched/sch_drr.c | 8 +- net/sched/sch_fq_codel.c | 41 +- net/sched/sch_hfsc.c | 24 +- net/sched/sch_hhf.c | 27 + net/sched/sch_htb.c | 14 +- net/sched/sch_multiq.c | 2 +- net/sched/sch_taprio.c | 2 +- net/sched/sch_teql.c | 126 +++-- net/sctp/diag.c | 67 ++- net/sctp/sm_make_chunk.c | 10 +- net/sctp/sm_statefuns.c | 23 +- net/sctp/socket.c | 38 +- net/smc/smc_cdc.c | 15 +- net/smc/smc_loopback.c | 5 + net/sunrpc/clnt.c | 19 +- net/sunrpc/svcsock.c | 10 + net/sunrpc/xdr.c | 14 +- net/sunrpc/xprt.c | 16 + net/sunrpc/xprtrdma/backchannel.c | 5 +- net/sunrpc/xprtrdma/frwr_ops.c | 2 +- net/sunrpc/xprtrdma/rpc_rdma.c | 171 ++++-- net/sunrpc/xprtrdma/transport.c | 85 ++- net/sunrpc/xprtrdma/verbs.c | 126 ++++- net/sunrpc/xprtrdma/xprt_rdma.h | 4 +- net/sunrpc/xprtsock.c | 16 +- net/tipc/bearer.c | 1 + net/tipc/core.c | 5 + net/tipc/discover.c | 14 +- net/tipc/name_distr.c | 13 +- net/tipc/netlink.c | 12 + net/tipc/socket.c | 3 + net/tls/tls_sw.c | 11 + net/unix/af_unix.c | 94 ++-- net/vmw_vsock/virtio_transport_common.c | 88 ++- net/wireless/nl80211.c | 2 +- net/xfrm/espintcp.c | 34 +- net/xfrm/xfrm_interface_core.c | 3 + net/xfrm/xfrm_policy.c | 27 +- net/xfrm/xfrm_state.c | 26 +- net/xfrm/xfrm_user.c | 20 +- rust/kernel/alloc/kvec.rs | 4 +- rust/kernel/block/mq/gen_disk.rs | 15 +- rust/kernel/block/mq/request.rs | 2 + samples/trace_events/trace-events-sample.c | 4 + scripts/kconfig/conf.c | 6 +- security/apparmor/apparmorfs.c | 111 +++- security/apparmor/domain.c | 58 +- security/apparmor/include/apparmorfs.h | 12 + security/apparmor/label.c | 2 +- security/apparmor/net.c | 1 + security/apparmor/policy.c | 20 +- security/apparmor/procattr.c | 2 + security/bpf/hooks.c | 3 + security/integrity/evm/evm_secfs.c | 16 +- security/keys/keyring.c | 2 +- security/landlock/net.c | 11 +- security/selinux/hooks.c | 80 ++- sound/aoa/fabrics/layout.c | 6 + sound/core/init.c | 11 +- sound/core/seq/seq_clientmgr.c | 33 +- sound/core/seq/seq_memory.c | 2 +- sound/core/seq/seq_midi.c | 55 +- sound/pci/hda/cs35l41_hda.c | 77 ++- sound/pci/hda/cs35l41_hda.h | 5 + sound/soc/amd/acp/acp-sdw-sof-mach.c | 7 +- sound/soc/codecs/adau1372.c | 5 + sound/soc/codecs/aw88261.c | 12 +- sound/soc/codecs/cs35l56-shared.c | 1 + sound/soc/codecs/cs35l56.c | 14 +- sound/soc/codecs/hdac_hdmi.c | 4 +- sound/soc/codecs/lpass-va-macro.c | 8 +- sound/soc/codecs/tlv320aic3x.c | 25 +- sound/soc/fsl/fsl_asrc_dma.c | 20 + sound/soc/fsl/fsl_audmix.c | 6 + sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 11 + sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 9 + sound/soc/qcom/qdsp6/q6apm.c | 8 + sound/soc/sh/rcar/rsnd.h | 2 +- sound/soc/sof/ipc3-control.c | 79 ++- sound/soc/sof/ipc4-control.c | 11 +- sound/soc/sof/topology.c | 5 +- sound/soc/tegra/tegra210_ahub.c | 4 +- sound/usb/midi2.c | 5 + sound/usb/mixer_scarlett2.c | 201 ++++++- tools/bpf/bpftool/cgroup.c | 14 +- tools/bpf/bpftool/gen.c | 2 +- tools/bpf/bpftool/net.c | 4 +- tools/include/uapi/linux/bpf.h | 1 + tools/include/uapi/linux/mount.h | 235 ++++++++ tools/include/uapi/linux/nsfs.h | 45 ++ tools/lib/api/fs/fs.c | 19 +- tools/lib/bpf/libbpf.c | 9 +- tools/lib/bpf/strset.c | 62 ++- tools/lib/bpf/usdt.c | 16 +- tools/lib/symbol/kallsyms.c | 5 +- tools/perf/Documentation/perf-inject.txt | 5 + tools/perf/Documentation/perf-sched.txt | 8 + tools/perf/arch/arm64/util/header.c | 1 - tools/perf/arch/common.c | 4 +- tools/perf/bench/inject-buildid.c | 9 +- tools/perf/builtin-annotate.c | 3 +- tools/perf/builtin-buildid-cache.c | 12 +- tools/perf/builtin-buildid-list.c | 10 +- tools/perf/builtin-c2c.c | 24 +- tools/perf/builtin-diff.c | 3 +- tools/perf/builtin-inject.c | 197 ++++++- tools/perf/builtin-report.c | 14 +- tools/perf/builtin-sched.c | 261 ++++++--- tools/perf/builtin-script.c | 1 + tools/perf/builtin-stat.c | 50 +- tools/perf/include/perf/perf_dlfilter.h | 2 +- tools/perf/tests/dlfilter-test.c | 8 +- tools/perf/tests/dso-data.c | 4 +- tools/perf/tests/pmu-events.c | 24 +- tools/perf/tests/sample-parsing.c | 5 +- tools/perf/tests/sdt.c | 2 +- tools/perf/tests/symbols.c | 4 +- tools/perf/util/arm-spe.c | 221 +++++++- tools/perf/util/bpf-event.c | 18 +- tools/perf/util/bpf-utils.c | 16 + tools/perf/util/build-id.c | 40 +- tools/perf/util/build-id.h | 6 +- tools/perf/util/cpumap.c | 28 +- tools/perf/util/cs-etm-base.c | 4 +- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 21 +- tools/perf/util/cs-etm.c | 311 +++++++---- tools/perf/util/cs-etm.h | 8 +- tools/perf/util/debuginfo.c | 9 +- tools/perf/util/disasm.c | 2 +- tools/perf/util/dso.c | 276 +++++++--- tools/perf/util/dso.h | 93 ++-- tools/perf/util/dsos.c | 20 +- tools/perf/util/env.h | 14 + tools/perf/util/event.c | 17 +- tools/perf/util/event.h | 1 + tools/perf/util/header.c | 56 +- tools/perf/util/hist.c | 7 +- tools/perf/util/intel-bts.c | 3 +- .../util/intel-pt-decoder/intel-pt-insn-decoder.c | 11 +- tools/perf/util/intel-pt.c | 27 +- tools/perf/util/machine.c | 70 +-- tools/perf/util/map.c | 15 +- tools/perf/util/map.h | 5 +- tools/perf/util/maps.c | 156 ++++-- tools/perf/util/maps.h | 3 + tools/perf/util/mmap.c | 18 +- tools/perf/util/pmu.c | 10 +- tools/perf/util/probe-event.c | 4 +- tools/perf/util/probe-file.c | 4 +- tools/perf/util/probe-finder.c | 2 +- .../util/scripting-engines/trace-event-python.c | 7 +- tools/perf/util/sort.c | 27 +- tools/perf/util/svghelper.c | 10 +- tools/perf/util/symbol-elf.c | 116 ++-- tools/perf/util/symbol-minimal.c | 16 +- tools/perf/util/symbol.c | 21 +- tools/perf/util/synthetic-events.c | 48 +- tools/perf/util/synthetic-events.h | 6 +- tools/perf/util/thread.c | 5 + tools/perf/util/unwind-libunwind-local.c | 16 +- tools/power/x86/intel-speed-select/isst-daemon.c | 9 +- tools/testing/cxl/test/cxl.c | 10 +- tools/testing/cxl/test/mem.c | 6 +- .../selftests/bpf/prog_tests/fill_link_info.c | 2 +- .../selftests/bpf/prog_tests/verifier_log.c | 1 + .../selftests/bpf/progs/bpf_iter_task_vmas.c | 2 +- .../testing/selftests/bpf/progs/test_tunnel_kern.c | 13 +- tools/testing/selftests/bpf/progs/xdp_flowtable.c | 7 +- tools/testing/selftests/bpf/vmtest.sh | 2 +- .../selftests/filesystems/statmount/Makefile | 3 +- .../selftests/filesystems/statmount/statmount.h | 36 ++ .../ftrace/test.d/00basic/test_ownership.tc | 2 +- tools/testing/selftests/hid/Makefile | 2 +- tools/testing/selftests/hid/hid_bpf.c | 36 +- tools/testing/selftests/hid/progs/hid.c | 15 + .../selftests/landlock/scoped_signal_test.c | 237 +++++++- .../selftests/mm/charge_reserved_hugetlb.sh | 3 +- tools/testing/selftests/mm/compaction_test.c | 3 + tools/testing/selftests/mm/hmm-tests.c | 63 ++- tools/testing/selftests/mm/hugepage-mremap.c | 32 +- tools/testing/selftests/mm/pkey-arm64.h | 3 +- tools/testing/selftests/net/lib.sh | 25 +- tools/testing/selftests/net/tcp_mmap.c | 4 + tools/virtio/vringh_test.c | 5 + virt/kvm/kvm_main.c | 16 +- 1201 files changed, 17287 insertions(+), 9232 deletions(-)
Greg Kroah-Hartman
maintainerPATCH 1/1276 smb/server: do not require delete access for non-replacing links
6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: ChenXiaoSong <[email protected]>
[ Upstream commit 851ed9e09639e0daf79a506ce26097b296ed5518 ]
Reproducer:
1. server: systemctl start ksmbd
2. client: mount -t cifs //${server_ip}/export /mnt
3. client: touch /mnt/file; ln /mnt/file /mnt/hardlink
4. client err log: ln: failed to create hard link 'hardlink' => 'file': Permission denied
5. server err log: ksmbd: no right to delete : 0x80
--- fs/smb/server/smb2pdu.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
fs/smb/server/smb2pdu.c +8 -6
@@ -6526,16 +6526,18 @@ static int smb2_set_info_file(struct ksmbd_work *work, struct ksmbd_file *fp, }case FILE_LINK_INFORMATION : { -if (!(fp->daccess &FILE_DELETE_LE )) { -pr_err ("no right to delete : 0x%x\n" , fp->daccess); -return -EACCES ; - } +struct smb2_file_link_info *file_info;if (buf_len <sizeof (struct smb2_file_link_info ))return -EINVAL ; -return smb2_create_link (work, work->tcon->share_conf, - (struct smb2_file_link_info *)buffer, + file_info = (struct smb2_file_link_info *)buffer; +if (file_info->ReplaceIfExists && !(fp->daccess &FILE_DELETE_LE )) { +pr_err ("no right to delete : 0x%x\n" , fp->daccess); +return -EACCES ; + } + +return smb2_create_link (work, work->tcon->share_conf, file_info, buf_len, fp->filp, work->conn->local_nls); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 2/1276 iommu/vt-d: Clear Present bit before tearing down context entry
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lu Baolu <[email protected]>
[ Upstream commit c1e4f1dccbe9d7656d1c6872ebeadb5992d0aaa2 ]
When tearing down a context entry, the current implementation zeros the entire 128-bit entry using multiple 64-bit writes. This creates a window where the hardware can fetch a "torn" entry — where some fields are already zeroed while the 'Present' bit is still set — leading to unpredictable behavior or spurious faults.
While x86 provides strong write ordering, the compiler may reorder writes to the two 64-bit halves of the context entry. Even without compiler reordering, the hardware fetch is not guaranteed to be atomic with respect to multiple CPU writes.
Align with the "Guidance to Software for Invalidations" in the VT-d spec (Section 6.5.3.3) by implementing the recommended ownership handshake:
1. Clear only the 'Present' (P) bit of the context entry first to signal the transition of ownership from hardware to software.
2. Use dma_wmb() to ensure the cleared bit is visible to the IOMMU.
3. Perform the required cache and context-cache invalidation to ensure hardware no longer has cached references to the entry.
4. Fully zero out the entry only after the invalidation is complete.
Also, add a dma_wmb() to context_set_present() to ensure the entry is fully initialized before the 'Present' bit becomes visible.
--- drivers/iommu/intel/iommu.c | 4 +++- drivers/iommu/intel/iommu.h | 21 ++++++++++++++++++++- drivers/iommu/intel/pasid.c | 5 ++++- 3 files changed, 27 insertions(+), 3 deletions(-)
drivers/iommu/intel/iommu.c +3 -1
@@ -1914,10 +1914,12 @@ static void domain_context_clear_one(struct device_domain_info *info, u8 bus, u8 } did =context_domain_id (context); -context_clear_entry (context); +context_clear_present (context);__iommu_flush_cache (iommu, context,sizeof (*context));spin_unlock (&iommu->lock);intel_context_flush_present (info, context, did, true); +context_clear_entry (context); +__iommu_flush_cache (iommu, context,sizeof (*context)); } static int domain_setup_first_level(struct intel_iommu *iommu,
drivers/iommu/intel/iommu.h +20 -1
@@ -958,7 +958,26 @@ static inline unsigned long virt_to_dma_pfn(void *p)static inline void context_set_present (struct context_entry *context) { - context->lo |=1 ; +u64 val; + +dma_wmb (); + val =READ_ONCE (context->lo) |1 ; +WRITE_ONCE (context->lo, val); +} + +/* +* Clear the Present (P) bit (bit 0) of a context table entry. This initiates +* the transition of the entry's ownership from hardware to software. The +* caller is responsible for fulfilling the invalidation handshake recommended +* by the VT-d spec, Section 6.5.3.3 (Guidance to Software for Invalidations). +*/ +static inline void context_clear_present (struct context_entry *context) +{ +u64 val; + + val =READ_ONCE (context->lo) &GENMASK_ULL (63 ,1 ); +WRITE_ONCE (context->lo, val); +dma_wmb (); }static inline void context_set_fault_enable (struct context_entry *context)
drivers/iommu/intel/pasid.c +4 -1
@@ -804,7 +804,7 @@ static int device_pasid_table_setup(struct device *dev, u8 bus, u8 devfn) }if (context_copied (iommu, bus, devfn)) { -context_clear_entry (context); +context_clear_present (context);__iommu_flush_cache (iommu, context,sizeof (*context));/*
@@ -824,6 +824,9 @@ static int device_pasid_table_setup(struct device *dev, u8 bus, u8 devfn) iommu->flush.flush_iotlb (iommu,0 ,0 ,0 ,DMA_TLB_GLOBAL_FLUSH );devtlb_invalidation_with_pasid (iommu, dev,IOMMU_NO_PASID ); +context_clear_entry (context); +__iommu_flush_cache (iommu, context,sizeof (*context)); +/* * At this point, the device is supposed to finish reset at * its driver probe stage, so no in-flight DMA will exist,
Signature · 1 line
2.53.0
Quoted 9 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.12.97 release. There are 1276 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, 23 Jul 2026 15:23:00 +0000. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.12.97-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-6.12.y
and the diffstat can be found below.thanks,
greg k-h
perf fails to build with the following build error:
In file included from tests/vmlinux-kallsyms.c:8:util/dso.h:664:6: warning: no previous prototype for 'dso__put' [-Wmissing-prototypes]
void dso__put(struct dso *dso) LOCKS_EXCLUDED(_dso__data_open_lock);
^~~~~~~~
util/dso.h: In function 'dso__put':
util/dso.h:664:32: error: expected declaration specifiers before 'LOCKS_EXCLUDED'
void dso__put(struct dso *dso) LOCKS_EXCLUDED(_dso__data_open_lock);
^~~~~~~~~~~~~~this is caused by commit 3e2cea6464884252284765fb48b00e56449ed63d ("perf dso: Use lock annotations to fix asan deadlock") we also need to backport c5ebf3a26601c833a3ea8c6035d4318445a7e3a5 ("perf mutex: Add annotations for LOCKS_EXCLUDED and LOCKS_RETURNED") here.
Signature · 1 line
Florian
Greg Kroah-Hartman
maintainerPATCH 3/1276 tcp: Add preempt_{disable,enable}_nested() in reqsk_queue_hash_req().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit e10902df24488ca722303133acfc82490f7d59ad ]
syzbot reported a weird reqsk->rsk_refcnt underflow in __inet_csk_reqsk_queue_drop().
The captured reqsk_put() in __inet_csk_reqsk_queue_drop() is called only when it successfully removes reqsk from ehash.
Moreover, reqsk_timer_handler() calls another reqsk_put() after that.
This indicates that the reqsk was missing both refcnts for ehash and the timer itself.
Since all the syzbot reports had PREEMPT_RT enabled, the only possible scenario is that reqsk_queue_hash_req() is preempted after mod_timer() and before refcount_set(), and then the timer triggered after 1s aborts the reqsk due to its listener's close().
Let's wrap mod_timer() and refcount_set() with preempt_disable_nested() and preempt_enable_nested().
Note that inet_ehash_insert() holds the normal spin_lock() (mutex in PREEMPT_RT), so it must be called outside of preempt_disable_nested(), but this is fine.
The lookup path just ignores 0 sk_refcnt entries in ehash and tries to create another reqsk, but this will fail at inet_ehash_insert().
[0]:refcount_t: underflow; use-after-free.
WARNING: lib/refcount.c:28 at refcount_warn_saturate+0xb2/0x110 lib/refcount.c:28, CPU#0: ktimers/0/16
Modules linked in:
CPU: 0 UID: 0 PID: 16 Comm: ktimers/0 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:refcount_warn_saturate+0xb2/0x110 lib/refcount.c:28
Code: e4 7d d1 0a 67 48 0f b9 3a eb 4a e8 38 3d 23 fd 48 8d 3d e1 7d d1 0a 67 48 0f b9 3a eb 37 e8 25 3d 23 fd 48 8d 3d de 7d d1 0a <67> 48 0f b9 3a eb 24 e8 12 3d 23 fd 48 8d 3d db 7d d1 0a 67 48 0f
RSP: 0000:ffffc90000157948 EFLAGS: 00010246
RAX: ffffffff84a1301b RBX: 0000000000000003 RCX: ffff88801ca98000
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffffffff8f72ae00
RBP: ffffffff99ae3b01 R08: ffff88801ca98000 R09: 0000000000000005
R10: 0000000000000100 R11: 0000000000000004 R12: ffff8880425ef568
R13: ffff8880425ef4f8 R14: ffff8880425ef578 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff888126386000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7b46710e9c CR3: 000000000dbb6000 CR4: 00000000003526f0
Call Trace:
<TASK>
__refcount_sub_and_test include/linux/refcount.h:400 [inline]
__refcount_dec_and_test include/linux/refcount.h:432 [inline]
refcount_dec_and_test include/linux/refcount.h:450 [inline]
reqsk_put include/net/request_sock.h:136 [inline]
__inet_csk_reqsk_queue_drop+0x3ce/0x440 net/ipv4/inet_connection_sock.c:1007
reqsk_timer_handler+0x651/0xdf0 net/ipv4/inet_connection_sock.c:1137
call_timer_fn+0x192/0x5e0 kernel/time/timer.c:1748
expire_timers kernel/time/timer.c:1799 [inline]
__run_timers kernel/time/timer.c:2374 [inline]
__run_timer_base+0x6a3/0x9f0 kernel/time/timer.c:2386
run_timer_base kernel/time/timer.c:2395 [inline]
run_timer_softirq+0x67/0x170 kernel/time/timer.c:2403
handle_softirqs+0x1de/0x6d0 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
run_ktimerd+0x69/0x100 kernel/softirq.c:1151
smpboot_thread_fn+0x541/0xa50 kernel/smpboot.c:160
kthread+0x388/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>[updated to not require timeout changes from
commit 3ce5dd8161ec ("tcp: Remove timeout arg from reqsk_queue_hash_req()") DCCP was retired by commit 2a63dd0edf38 ("net: Retire DCCP socket.") after the release of 6.12, so the shared inet_csk_reqsk_queue_hash_add still requires the timout argument]
--- net/ipv4/inet_connection_sock.c | 6 ++++++ 1 file changed, 6 insertions(+)
net/ipv4/inet_connection_sock.c +6 -0
@@ -1186,6 +1186,9 @@ static bool reqsk_queue_hash_req(struct request_sock *req,/* The timer needs to be setup after a successful insertion. */ timer_setup (&req->rsk_timer, reqsk_timer_handler,TIMER_PINNED ); + +preempt_disable_nested (); +mod_timer (&req->rsk_timer, jiffies + timeout);/* before letting lookups find us, make sure all req fields
@@ -1193,6 +1196,9 @@ static bool reqsk_queue_hash_req(struct request_sock *req,*/ smp_wmb ();refcount_set (&req->rsk_refcnt,2 +1 ); + +preempt_enable_nested (); +return true; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 4/1276 bpf: Support for hardening against JIT spraying
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit 96cce16e26dd02a8678f1e87f88a4b5cdb63b995 upstream.
The BPF JIT allocator packs many small programs into larger executable allocations and reuses space within those allocations as programs are loaded and freed. When fresh code is written into space that a previous program occupied, an indirect jump into the new program can reuse a branch prediction left behind by the old one.
Flush the indirect branch predictors before reusing JIT memory so that indirect jumps into a newly written program don't reuse predictions from an old program that occupied the same space.
Introduce bpf_arch_pred_flush_enabled static key and bpf_arch_pred_flush static call for flushing the branch predictors on JIT memory reuse. Architectures that need a flush, can update it to a predictor flush function. By default, its a NOP and does not emit any CALL.
Allocations larger than a pack are not covered by this flush. That is safe because cBPF programs (the unprivileged attack surface) are bounded well below a pack size. Issue a warning if this assumption is ever violated while the flush is active.
--- include/linux/filter.h | 10 ++++++++++ kernel/bpf/core.c | 19 +++++++++++++++++++ 2 files changed, 29 insertions(+)
include/linux/filter.h +10 -0
@@ -22,6 +22,7 @@#include <linux/vmalloc.h> #include <linux/sockptr.h> #include <crypto/sha1.h> +#include <linux/static_call.h> #include <linux/u64_stats_sync.h> #include <net/sch_generic.h>
@@ -1238,6 +1239,15 @@ extern long bpf_jit_limit_max;typedef void (*bpf_jit_fill_hole_t )(void *area,unsigned int size); +/* +* Flush the indirect branch predictors before reusing JIT memory, so that +* indirect jumps into a newly written program don't reuse predictions left +* behind by an old program that occupied the same space. +*/ +void bpf_arch_pred_flush (void ); +DECLARE_STATIC_CALL (bpf_arch_pred_flush, bpf_arch_pred_flush); +DECLARE_STATIC_KEY_FALSE (bpf_pred_flush_enabled); +void bpf_jit_fill_hole_with_zero (void *area,unsigned int size); struct bpf_binary_header *
kernel/bpf/core.c +19 -0
@@ -38,6 +38,7 @@#include <linux/bpf_mem_alloc.h> #include <linux/memcontrol.h> #include <linux/execmem.h> +#include <linux/static_call.h> #include <asm/barrier.h> #include <linux/unaligned.h>
@@ -892,6 +893,15 @@ void bpf_jit_fill_hole_with_zero(void *area, unsigned int size)memset (area,0 , size); } +DEFINE_STATIC_CALL_NULL (bpf_arch_pred_flush, bpf_arch_pred_flush); + +/* +* Enabled once bpf_arch_pred_flush points at a real flush routine. Lets the +* pack allocator test "is a predictor flush wired up at all" with a cheap +* static branch instead of repeatedly querying the static call target. +*/ +DEFINE_STATIC_KEY_FALSE (bpf_pred_flush_enabled); +#define BPF_PROG_SIZE_TO_NBITS (size) (round_up(size, BPF_PROG_CHUNK_SIZE) / BPF_PROG_CHUNK_SIZE)static DEFINE_MUTEX (pack_mutex);
@@ -951,6 +961,14 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns)mutex_lock (&pack_mutex);if (size >BPF_PROG_PACK_SIZE ) { +/* +* Allocations larger than a pack get their own pages, and +* predictors are not flushed for such allocation. This is only +* safe because cBPF programs (the unprivileged attack surface) +* are bounded well below a pack size. +*/ +if (static_branch_unlikely (&bpf_pred_flush_enabled)) +pr_warn_once ("BPF: Predictors not flushed for allocations greater than BPF_PROG_PACK_SIZE\n" ); size =round_up (size,PAGE_SIZE ); ptr =bpf_jit_alloc_exec (size);if (ptr) {
@@ -981,6 +999,7 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns) pos =0 ; found_free_area: +static_call_cond (bpf_arch_pred_flush)();bitmap_set (pack->bitmap, pos, nbits); ptr = (void *)(pack->ptr) + (pos <<BPF_PROG_CHUNK_SHIFT );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 5/1276 x86/bugs: Enable IBPB flush on BPF JIT allocation
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit a3af84b0fa00ead01fcd0e28b5d773ff25990a0d upstream.
Enable hardening against JIT spraying when Spectre-v2 mitigations are in use. Specifically, issue an IBPB flush on BPF JIT memory reuse. Skip enabling the IBPB flush if the BPF dispatcher is already using a retpoline sequence.
This hardening applies only when BPF-JIT is in use. Guard the enabling under CONFIG_BPF_JIT so that bugs.c still builds with CONFIG_BPF_JIT=n.
[ pawan: Use entry_ibpb() instead of write_ibpb(). JIT hardening enable
moved to spectre_v2_select_mitigation() because there is no spectre_v2_apply_mitigation()]
--- arch/x86/include/asm/nospec-branch.h | 4 +++ arch/x86/kernel/cpu/bugs.c | 50 +++++++++++++++++++++++++--- 2 files changed, 49 insertions(+), 5 deletions(-)
arch/x86/include/asm/nospec-branch.h +4 -0
@@ -405,6 +405,10 @@ extern void srso_alias_return_thunk(void);extern void entry_untrain_ret (void );extern void entry_ibpb (void ); +#ifdef CONFIG_BPF_JIT +extern void bpf_arch_ibpb (void ); +#endif +#ifdef CONFIG_X86_64 extern void clear_bhb_loop (void );#endif
arch/x86/kernel/cpu/bugs.c +45 -5
88 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 6/1276 bpf: Restrict JIT predictor flush to cBPF
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit 0bb99f2cfaae6822d734d69722de30af823efdf3 upstream.
Currently predictor flush on memory reuse is done for all BPF JIT allocations, but only cBPF programs can be loaded by an unprivileged user. eBPF is privileged by default, and flushing predictors for all CPUs on every eBPF reuse penalizes the common case for no security benefit.
eBPF allocations can be frequent on busy systems, only flush predictors for cBPF programs. Trampoline and dispatcher allocations also skip the flush as they are eBPF-only.
[pawan: backport dropped "was_classic" hunk for arches that do not
support pack allocator]
--- arch/arm64/net/bpf_jit_comp.c | 4 ++-- arch/powerpc/net/bpf_jit_comp.c | 2 +- arch/riscv/net/bpf_jit_comp64.c | 2 +- arch/riscv/net/bpf_jit_core.c | 3 ++- arch/x86/net/bpf_jit_comp.c | 5 +++-- include/linux/filter.h | 5 +++-- kernel/bpf/core.c | 13 ++++++++----- kernel/bpf/dispatcher.c | 2 +- 8 files changed, 21 insertions(+), 15 deletions(-)
arch/arm64/net/bpf_jit_comp.c +2 -2
@@ -1881,7 +1881,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog) image_size = extable_offset + extable_size; ro_header =bpf_jit_binary_pack_alloc (image_size, &ro_image_ptr,sizeof (u64), &header, &image_ptr, - jit_fill_hole); + jit_fill_hole, was_classic);if (!ro_header) { prog = orig_prog; goto out_off;
@@ -2413,7 +2413,7 @@ int arch_bpf_trampoline_size(const struct btf_func_model *m, u32 flags,void *arch_alloc_bpf_trampoline (unsigned int size) { -return bpf_prog_pack_alloc (size, jit_fill_hole); +return bpf_prog_pack_alloc (size, jit_fill_hole, false); }void arch_free_bpf_trampoline (void *image,unsigned int size)
arch/powerpc/net/bpf_jit_comp.c +1 -1
@@ -174,7 +174,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp) alloclen = proglen +FUNCTION_DESCR_SIZE + fixup_len + extable_len; fhdr =bpf_jit_binary_pack_alloc (alloclen, &fimage,4 , &hdr, &image, - bpf_jit_fill_ill_insns); + bpf_jit_fill_ill_insns,bpf_prog_was_classic (fp));if (!fhdr) { fp = org_fp; goto out_addrs;
arch/riscv/net/bpf_jit_comp64.c +1 -1
@@ -1113,7 +1113,7 @@ int arch_bpf_trampoline_size(const struct btf_func_model *m, u32 flags,void *arch_alloc_bpf_trampoline (unsigned int size) { -return bpf_prog_pack_alloc (size, bpf_fill_ill_insns); +return bpf_prog_pack_alloc (size, bpf_fill_ill_insns, false); }void arch_free_bpf_trampoline (void *image,unsigned int size)
arch/riscv/net/bpf_jit_core.c +2 -1
@@ -126,7 +126,8 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)bpf_jit_binary_pack_alloc (prog_size + extable_size, &jit_data->ro_image,sizeof (u32), &jit_data->header, &jit_data->image, - bpf_fill_ill_insns); + bpf_fill_ill_insns, +bpf_prog_was_classic (prog));if (!jit_data->ro_header) { prog = orig_prog; goto out_offset;
arch/x86/net/bpf_jit_comp.c +3 -2
@@ -3206,7 +3206,7 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *rw_imvoid *arch_alloc_bpf_trampoline (unsigned int size) { -return bpf_prog_pack_alloc (size, jit_fill_hole); +return bpf_prog_pack_alloc (size, jit_fill_hole, false); }void arch_free_bpf_trampoline (void *image,unsigned int size)
@@ -3491,7 +3491,8 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)/* allocate module memory for x86 insns and extable */ header =bpf_jit_binary_pack_alloc (roundup (proglen, align) + extable_size, &image, align, &rw_header, &rw_image, - jit_fill_hole); + jit_fill_hole, +bpf_prog_was_classic (prog));if (!header) { prog = orig_prog; goto out_addrs;
include/linux/filter.h +3 -2
@@ -1262,7 +1262,7 @@ void bpf_jit_free(struct bpf_prog *fp);struct bpf_binary_header *bpf_jit_binary_pack_hdr (const struct bpf_prog *fp); -void *bpf_prog_pack_alloc (u32 size,bpf_jit_fill_hole_t bpf_fill_ill_insns); +void *bpf_prog_pack_alloc (u32 size,bpf_jit_fill_hole_t bpf_fill_ill_insns,bool was_classic);void bpf_prog_pack_free (void *ptr,u32 size);static inline bool bpf_prog_kallsyms_verify_off (const struct bpf_prog *fp)
@@ -1276,7 +1276,8 @@ bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **ro_image,unsigned int alignment, struct bpf_binary_header **rw_hdr, u8 **rw_image, - bpf_jit_fill_hole_t bpf_fill_ill_insns); + bpf_jit_fill_hole_t bpf_fill_ill_insns, + bool was_classic);int bpf_jit_binary_pack_finalize (struct bpf_binary_header *ro_header,struct bpf_binary_header *rw_header); void bpf_jit_binary_pack_free(struct bpf_binary_header *ro_header,
kernel/bpf/core.c +8 -5
@@ -952,7 +952,7 @@ static struct bpf_prog_pack *alloc_new_pack(bpf_jit_fill_hole_t bpf_fill_ill_insreturn NULL ; } -void *bpf_prog_pack_alloc (u32 size,bpf_jit_fill_hole_t bpf_fill_ill_insns) +void *bpf_prog_pack_alloc (u32 size,bpf_jit_fill_hole_t bpf_fill_ill_insns,bool was_classic) {unsigned int nbits =BPF_PROG_SIZE_TO_NBITS (size);struct bpf_prog_pack *pack;
@@ -967,7 +967,7 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns)* safe because cBPF programs (the unprivileged attack surface) * are bounded well below a pack size. */ -if (static_branch_unlikely (&bpf_pred_flush_enabled)) +if (was_classic &&static_branch_unlikely (&bpf_pred_flush_enabled))pr_warn_once ("BPF: Predictors not flushed for allocations greater than BPF_PROG_PACK_SIZE\n" ); size =round_up (size,PAGE_SIZE ); ptr =bpf_jit_alloc_exec (size);
@@ -999,7 +999,9 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns) pos =0 ; found_free_area: -static_call_cond (bpf_arch_pred_flush)(); +/* Flush only for cBPF as it may contain a crafted gadget */ +if (static_branch_unlikely (&bpf_pred_flush_enabled) && was_classic) +static_call_cond (bpf_arch_pred_flush)();bitmap_set (pack->bitmap, pos, nbits); ptr = (void *)(pack->ptr) + (pos <<BPF_PROG_CHUNK_SHIFT );
@@ -1159,7 +1161,8 @@ bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **image_ptr,unsigned int alignment, struct bpf_binary_header **rw_header, u8 **rw_image, - bpf_jit_fill_hole_t bpf_fill_ill_insns) + bpf_jit_fill_hole_t bpf_fill_ill_insns, + bool was_classic) { struct bpf_binary_header *ro_header;u32 size, hole, start;
@@ -1172,7 +1175,7 @@ bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **image_ptr,if (bpf_jit_charge_modmem (size))return NULL ; - ro_header =bpf_prog_pack_alloc (size, bpf_fill_ill_insns); + ro_header =bpf_prog_pack_alloc (size, bpf_fill_ill_insns, was_classic);if (!ro_header) {bpf_jit_uncharge_modmem (size);return NULL ;
kernel/bpf/dispatcher.c +1 -1
@@ -145,7 +145,7 @@ void bpf_dispatcher_change_prog(struct bpf_dispatcher *d, struct bpf_prog *from,mutex_lock (&d->mutex);if (!d->image) { - d->image =bpf_prog_pack_alloc (PAGE_SIZE , bpf_jit_fill_hole_with_zero); + d->image =bpf_prog_pack_alloc (PAGE_SIZE , bpf_jit_fill_hole_with_zero, false);if (!d->image) goto out; d->rw_image =bpf_jit_alloc_exec (PAGE_SIZE );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 7/1276 bpf: Skip redundant IBPB in pack allocator
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit a23c1c5396a91680703360d1ee28a44657c503c4 upstream.
bpf_prog_pack_alloc() issues IBPB on all CPUs on every cBPF allocation, even when reusing chunks from an existing pack where no new memory was touched since the last IBPB.
Since IBPB on all CPUs is heavy, Dave Hansen suggested to track allocation since last IBPB, and only issue IBPB at reuse for the chunks that have not seen an IBPB since they were last freed.
Track per-pack whether an IBPB is needed via arch_flush_needed. Set it when allocating a chunk, reset on IBPB flush. On reuse, conditionally issue the flush. Since IBPB invalidates all BTB entries, clear the flag on all packs after flushing.
--- kernel/bpf/core.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-)
kernel/bpf/core.c +14 -1
@@ -885,6 +885,7 @@ int bpf_jit_add_poke_descriptor(struct bpf_prog *prog,struct bpf_prog_pack {struct list_head list;void *ptr; +bool arch_flush_needed;unsigned long bitmap[]; };
@@ -938,6 +939,8 @@ static struct bpf_prog_pack *alloc_new_pack(bpf_jit_fill_hole_t bpf_fill_ill_insbpf_fill_ill_insns (pack->ptr,BPF_PROG_PACK_SIZE );bitmap_zero (pack->bitmap,BPF_PROG_PACK_SIZE /BPF_PROG_CHUNK_SIZE ); +if (static_branch_unlikely (&bpf_pred_flush_enabled)) + pack->arch_flush_needed = true;set_vm_flush_reset_perms (pack->ptr); err =set_memory_rox ((unsigned long )pack->ptr,BPF_PROG_PACK_SIZE /PAGE_SIZE );
@@ -1000,8 +1003,15 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns, bool found_free_area:/* Flush only for cBPF as it may contain a crafted gadget */ -if (static_branch_unlikely (&bpf_pred_flush_enabled) && was_classic) +if (static_branch_unlikely (&bpf_pred_flush_enabled) && + pack->arch_flush_needed && + was_classic) { +struct bpf_prog_pack *p; +static_call_cond (bpf_arch_pred_flush)(); +list_for_each_entry (p, &pack_list, list) + p->arch_flush_needed = false; + }bitmap_set (pack->bitmap, pos, nbits); ptr = (void *)(pack->ptr) + (pos <<BPF_PROG_CHUNK_SHIFT );
@@ -1039,6 +1049,9 @@ void bpf_prog_pack_free(void *ptr, u32 size) "bpf_prog_pack bug: missing bpf_arch_text_invalidate?\n");bitmap_clear (pack->bitmap, pos, nbits); + +if (static_branch_unlikely (&bpf_pred_flush_enabled)) + pack->arch_flush_needed = true;if (bitmap_find_next_zero_area (pack->bitmap,BPF_PROG_CHUNK_COUNT ,0 ,BPF_PROG_CHUNK_COUNT ,0 ) ==0 ) {list_del (&pack->list);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 8/1276 bpf: Prefer packs that wont trigger an IBPB flush on allocation
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit a9b1f19a6a673ba06820898d0f1ad02883ea1639 upstream.
Currently BPF pack allocator picks the chunks from the first available pack. While this is okay, it naturally leads to more frequent flushes when there are multiple packs in the system that weren't used since the last flush.
As an optimization prefer allocating the new programs from packs that are unused since last flush. When all packs are dirty, allocation forces a flush and marks all packs clean.
Below are some future optimizations ideas:
1. Currently, the "dirty" tracking is only done at the pack-level. Flush frequency can further be reduced with chunk-level tracking. This requires a new bitmap per-pack to track the dirty state.
2. IBPB flush is done on all CPUs, even if only a single CPU ran the BPF program. On a system with hundreds of CPUs this could be a major bottleneck forcing hundreds of IPIs to deliver the flush. The solution is to track the CPUs where a BPF program ran, and issue IBPB only on those CPUs.
3. Avoid IBPB when flush is already done at other sources (e.g. context switch).
--- kernel/bpf/core.c | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-)
kernel/bpf/core.c +24 -3
@@ -958,8 +958,8 @@ static struct bpf_prog_pack *alloc_new_pack(bpf_jit_fill_hole_t bpf_fill_ill_insvoid *bpf_prog_pack_alloc (u32 size,bpf_jit_fill_hole_t bpf_fill_ill_insns,bool was_classic) {unsigned int nbits =BPF_PROG_SIZE_TO_NBITS (size); -struct bpf_prog_pack *pack; -unsigned long pos; +struct bpf_prog_pack *pack, *fallback_pack =NULL ; +unsigned long pos, fallback_pos =0 ;void *ptr =NULL ;mutex_lock (&pack_mutex);
@@ -991,8 +991,29 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns, boollist_for_each_entry (pack, &pack_list, list) { pos =bitmap_find_next_zero_area (pack->bitmap,BPF_PROG_CHUNK_COUNT ,0 , nbits,0 ); -if (pos <BPF_PROG_CHUNK_COUNT ) +if (pos >=BPF_PROG_CHUNK_COUNT ) +continue ; +/* Flush not enabled, use any pack */ +if (!static_branch_unlikely (&bpf_pred_flush_enabled)) goto found_free_area; +/* +* cBPF reuse of a dirty pack triggers a flush, so prefer a +* clean pack for cBPF. eBPF never flushes, so pick the first +* free pack, dirty or clean. +*/ +if (!was_classic || !pack->arch_flush_needed) + goto found_free_area; +if (!fallback_pack) { + fallback_pack = pack; + fallback_pos = pos; + } + } + +/* No preferred pack found */ +if (fallback_pack) { + pack = fallback_pack; + pos = fallback_pos; + goto found_free_area; } pack =alloc_new_pack (bpf_fill_ill_insns);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 9/1276 bpf: Prefer dirty packs for eBPF allocations
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pawan Gupta <[email protected]>
commit b72e29e0f7ee329d89f86db8700c8ea99b4a370a upstream.
The pack allocator only flushes predictors when reusing a dirty pack for cBPF, eBPF allocations never trigger a flush. Currently, eBPF picks the first free pack, which could be a clean pack. As an optimization, leaving a clean pack for cBPF can avoid flushes.
Prefer dirty packs for eBPF and keep clean packs free for cBPF. This mirrors the existing cBPF preference for clean packs: each program kind prefers the pack that avoids an extra flush, and falls back to the other kind only when no preferred pack has room. eBPF reuse of a dirty pack is harmless since eBPF being privileged does not flush.
--- kernel/bpf/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/bpf/core.c +3 -3
@@ -998,10 +998,10 @@ void *bpf_prog_pack_alloc(u32 size, bpf_jit_fill_hole_t bpf_fill_ill_insns, bool goto found_free_area;/* * cBPF reuse of a dirty pack triggers a flush, so prefer a -* clean pack for cBPF. eBPF never flushes, so pick the first -* free pack, dirty or clean. +* clean pack for cBPF. eBPF never flushes, so steer it to a +* dirty pack and keep clean packs free for cBPF. */ -if (!was_classic || !pack->arch_flush_needed) +if (was_classic ^ pack->arch_flush_needed) goto found_free_area;if (!fallback_pack) { fallback_pack = pack;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 10/1276 sched/fair: Only update stats for allowed CPUs when looking for dst group
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Adam Li <[email protected]>
[ Upstream commit 82d6e01a0699800efd8b048eb584c907ccb47b7a ]
Load imbalance is observed when the workload frequently forks new threads. Due to CPU affinity, the workload can run on CPU 0-7 in the first group, and only on CPU 8-11 in the second group. CPU 12-15 are always idle.
{ 0 1 2 3 4 5 6 7 } {8 9 10 11 12 13 14 15}
* * * * * * * * * * * *
When looking for dst group for newly forked threads, in many times update_sg_wakeup_stats() reports the second group has more idle CPUs than the first group. The scheduler thinks the second group is less busy. Then it selects least busy CPUs among CPU 8-11. Therefore CPU 8-11 can be crowded with newly forked threads, at the same time CPU 0-7 can be idle.
A task may not use all the CPUs in a schedule group due to CPU affinity. Only update schedule group statistics for allowed CPUs.
--- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
@@ -10739,7 +10739,7 @@ static inline void update_sg_wakeup_stats(struct sched_domain *sd,if (sd->flags &SD_ASYM_CPUCAPACITY ) sgs->group_misfit_task_load =1 ; -for_each_cpu (i,sched_group_span (group)) { +for_each_cpu_and (i,sched_group_span (group), p->cpus_ptr) {struct rq *rq =cpu_rq (i);unsigned int local;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 11/1276 crypto: algif_skcipher - force synchronous processing
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Muhammet Kaan KILINÇ <[email protected]>
The AIO/async path in skcipher_recvmsg() passes the socket-wide ctx->iv directly into the skcipher request. After io_submit() the socket lock is dropped and the request is processed asynchronously by a worker (e.g. cryptd), which dereferences ctx->iv only later.
A concurrent sendmsg(ALG_SET_IV) on the same socket can overwrite ctx->iv inside this window, so the in-flight request runs under an attacker-controlled IV. For CTR and other stream modes this causes IV/keystream reuse and allows an unprivileged user to recover the plaintext of a concurrent operation.
Snapshotting ctx->iv into per-request storage for the async path is not sufficient here. For ciphers with statesize == 0 - which includes cbc and ctr - skcipher_prepare_alg() installs skcipher_noimport()/ skcipher_noexport(), so ctx->state carries nothing and the MSG_MORE inter-chunk IV chaining is carried solely by the in-place req->iv writeback. A snapshot redirects that writeback into per-request memory that af_alg_free_resources() releases on completion, so AIO + MSG_MORE with cbc/ctr would silently produce wrong output. Writing the IV back from the completion callback instead is not possible either: that would require lock_sock() there, but the callback can run in softirq/atomic context, so it must not sleep.
Make the operation synchronous instead. ctx->iv is then only ever dereferenced under the socket lock held by recvmsg(), which removes the race, and the req->iv writeback lands in ctx->iv as before, which keeps MSG_MORE chaining intact for statesize == 0 ciphers. The ctx->state import/export path is unchanged for ciphers that do have state.
This is equivalent to the upstream resolution: commit fcc77d33a34c ("net: Remove support for AIO on sockets") removed the AIO socket path across net/ entirely, producing the same end state for this file - algif_skcipher never processes an AIO request asynchronously. After this patch, _skcipher_recvmsg() matches mainline's crypto/algif_skcipher.c as it stands today, including the same now-dead -EIOCBQUEUED check. This patch deviates from that commit deliberately: rather than removing AIO socket support tree-wide, which would be far too invasive for stable, it removes only the AIO branch in crypto/algif_skcipher.c. io_submit() now completes synchronously, which is valid for the AIO interface; AF_ALG async is rarely used in practice.
The -EIOCBQUEUED check in skcipher_recvmsg() is now dead but harmless, and is left alone to keep the fix minimal.
--- crypto/algif_skcipher.c | 75 +++++++++++++---------------------------- 1 file changed, 24 insertions(+), 51 deletions(-)
crypto/algif_skcipher.c +24 -51
@@ -79,20 +79,6 @@ static int algif_skcipher_export(struct sock *sk, struct skcipher_request *req)return err; } -static void algif_skcipher_done (void *data,int err) -{ -struct af_alg_async_req *areq = data; -struct sock *sk = areq->sk; - -if (err) - goto out; - - err =algif_skcipher_export (sk, &areq->cra_u.skcipher_req); - -out: -af_alg_async_cb (data, err); -} -static int _skcipher_recvmsg (struct socket *sock,struct msghdr *msg,size_t ignored,int flags) {
@@ -171,43 +157,30 @@ static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, cflags |=CRYPTO_SKCIPHER_REQ_CONT ; } -if (msg->msg_iocb && !is_sync_kiocb (msg->msg_iocb)) { -/* AIO operation */ -sock_hold (sk); - areq->iocb = msg->msg_iocb; - -/* Remember output size that will be generated. */ - areq->outlen = len; - -skcipher_request_set_callback (&areq->cra_u.skcipher_req, - cflags | -CRYPTO_TFM_REQ_MAY_SLEEP , - algif_skcipher_done, areq); - err = ctx->enc ? -crypto_skcipher_encrypt (&areq->cra_u.skcipher_req) : -crypto_skcipher_decrypt (&areq->cra_u.skcipher_req); - -/* AIO operation in progress */ -if (err == -EINPROGRESS ) -return -EIOCBQUEUED ; - -sock_put (sk); - }else { -/* Synchronous operation */ -skcipher_request_set_callback (&areq->cra_u.skcipher_req, - cflags | -CRYPTO_TFM_REQ_MAY_SLEEP | -CRYPTO_TFM_REQ_MAY_BACKLOG , - crypto_req_done, &ctx->wait); - err =crypto_wait_req (ctx->enc ? -crypto_skcipher_encrypt (&areq->cra_u.skcipher_req) : -crypto_skcipher_decrypt (&areq->cra_u.skcipher_req), - &ctx->wait); - -if (!err) - err =algif_skcipher_export ( - sk, &areq->cra_u.skcipher_req); - } +/* +* Force synchronous processing. The async (AIO) path passed the +* socket-wide ctx->iv into the request, which the worker +* dereferenced after the socket lock had been dropped, letting a +* concurrent sendmsg(ALG_SET_IV) inject an attacker IV. Mainline +* removed the AIO socket path in commit fcc77d33a34c ("net: Remove +* support for AIO on sockets"); the minimal stable fix is to always +* complete synchronously, so ctx->iv is only ever dereferenced under +* the socket lock. This also keeps the IV chaining intact: for +* ciphers with statesize == 0 (e.g. ctr, cbc) the chained IV is +* carried by the req->iv writeback into ctx->iv, which is only +* consistent on the synchronous path. +*/ +skcipher_request_set_callback (&areq->cra_u.skcipher_req, + cflags | +CRYPTO_TFM_REQ_MAY_SLEEP | +CRYPTO_TFM_REQ_MAY_BACKLOG , + crypto_req_done, &ctx->wait); + err =crypto_wait_req (ctx->enc ? +crypto_skcipher_encrypt (&areq->cra_u.skcipher_req) : +crypto_skcipher_decrypt (&areq->cra_u.skcipher_req), + &ctx->wait); +if (!err) + err =algif_skcipher_export (sk, &areq->cra_u.skcipher_req); free:af_alg_free_resources (areq);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 12/1276 KVM: arm64: Bound used_lrs when flushing the pKVM hyp vCPU
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hyunwoo Kim <[email protected]>
commit 8cc8bbbfab14c22c5551d0dd19b208a44b141c76 upstream.
flush_hyp_vcpu() copies the host vGIC state into the hyp's private vCPU on every run. The vGIC list register save and restore use used_lrs as their loop bound and expect it to stay within the number of implemented list registers. While this is generally the case, flush_hyp_vcpu() copies vgic_v3 verbatim and does not enforce this, so a value provided by the host is used at EL2 to index vgic_lr[] and access ICH_LR<n>_EL2 (host -> EL2).
Fix by clamping used_lrs to the number of implemented list registers after the copy, as the trusted path already does in vgic_flush_lr_state(). The number of implemented list registers is constant after init, so it is replicated once from kvm_vgic_global_state.nr_lr into hyp_gicv3_nr_lr rather than read on every entry.
--- arch/arm64/include/asm/kvm_hyp.h | 1 + arch/arm64/kvm/arm.c | 2 ++ arch/arm64/kvm/hyp/nvhe/hyp-main.c | 9 +++++++++ 3 files changed, 12 insertions(+)
arch/arm64/include/asm/kvm_hyp.h +1 -0
@@ -144,5 +144,6 @@ extern u64 kvm_nvhe_sym(id_aa64smfr0_el1_sys_val);extern unsigned long kvm_nvhe_sym (__icache_flags );extern unsigned int kvm_nvhe_sym (kvm_arm_vmid_bits );extern unsigned int kvm_nvhe_sym (kvm_host_sve_max_vl ); +extern unsigned int kvm_nvhe_sym (hyp_gicv3_nr_lr );#endif /* __ARM64_KVM_HYP_H__ */
arch/arm64/kvm/arm.c +2 -0
@@ -2313,6 +2313,8 @@ static int __init init_subsystems(void)switch (err) {case 0 : vgic_present = true; +if (static_branch_unlikely (&kvm_vgic_global_state.gicv3_cpuif)) +kvm_nvhe_sym (hyp_gicv3_nr_lr) = kvm_vgic_global_state.nr_lr;break ;case -ENODEV :case -ENXIO :
arch/arm64/kvm/hyp/nvhe/hyp-main.c +9 -0
@@ -22,6 +22,9 @@ DEFINE_PER_CPU(struct kvm_nvhe_init_params, kvm_init_params); +/* Number of implemented GICv3 LRs. Used by flush_hyp_vcpu(). */ +unsigned int hyp_gicv3_nr_lr; +void __kvm_hyp_host_forward_smc (struct kvm_cpu_context *host_ctxt);static void __hyp_sve_save_guest (struct kvm_vcpu *vcpu)
@@ -116,6 +119,12 @@ static void flush_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) hyp_vcpu->vcpu.arch.vsesr_el2 = host_vcpu->arch.vsesr_el2; hyp_vcpu->vcpu.arch.vgic_cpu.vgic_v3 = host_vcpu->arch.vgic_cpu.vgic_v3; + +/* Bound used_lrs by the number of implemented list registers. */ + hyp_vcpu->vcpu.arch.vgic_cpu.vgic_v3.used_lrs = + min_t(unsigned int, + hyp_vcpu->vcpu.arch.vgic_cpu.vgic_v3.used_lrs, + hyp_gicv3_nr_lr); }static void sync_hyp_vcpu (struct pkvm_hyp_vcpu *hyp_vcpu)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 13/1276 KVM: arm64: Clear __hyp_running_vcpu when flushing the pKVM hyp vCPU
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hyunwoo Kim <[email protected]>
commit e8042f6e1d7befb2fb6b10a75918642bcd0acf9a upstream.
flush_hyp_vcpu() copies the host vCPU context into the hyp's private vCPU on every run. ctxt_to_vcpu() expects a guest context to have a NULL __hyp_running_vcpu, which is only ever set on the host context, so that it resolves the vCPU via container_of(). While this is generally the case, flush_hyp_vcpu() copies the context verbatim and does not enforce this, so a value provided by the host is dereferenced at EL2 (host -> EL2).
Fix by clearing __hyp_running_vcpu after the copy.
--- arch/arm64/kvm/hyp/nvhe/hyp-main.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/kvm/hyp/nvhe/hyp-main.c +3 -0
@@ -103,6 +103,9 @@ static void flush_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) hyp_vcpu->vcpu.arch.ctxt = host_vcpu->arch.ctxt; +/* __hyp_running_vcpu must be NULL in a guest context. */ + hyp_vcpu->vcpu.arch.ctxt.__hyp_running_vcpu =NULL ; + hyp_vcpu->vcpu.arch.sve_state =kern_hyp_va (host_vcpu->arch.sve_state);/* Limit guest vector length to the maximum supported by the host. */ hyp_vcpu->vcpu.arch.sve_max_vl =min (host_vcpu->arch.sve_max_vl, kvm_host_sve_max_vl);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 14/1276 iommu: Pass old domain to set_dev_pasid op
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yi Liu <[email protected]>
[ Upstream commit b45a3777ceabbe08ab7a6e97f258191c07cbab8d ]
To support domain replacement for pasid, the underlying iommu driver needs to know the old domain hence be able to clean up the existing attachment. It would be much convenient for iommu layer to pass down the old domain. Otherwise, iommu drivers would need to track domain for pasids by themselves, this would duplicate code among the iommu drivers. Or iommu drivers would rely group->pasid_array to get domain, which may not always the correct one.
Stable-dep-of: f46452c3df7a ("iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry")
--- drivers/iommu/amd/amd_iommu.h | 3 ++- drivers/iommu/amd/pasid.c | 3 ++- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c | 3 ++- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 3 ++- drivers/iommu/intel/iommu.c | 6 ++++-- drivers/iommu/intel/svm.c | 3 ++- drivers/iommu/iommu.c | 3 ++- include/linux/iommu.h | 2 +- 8 files changed, 17 insertions(+), 9 deletions(-)
drivers/iommu/amd/amd_iommu.h +2 -1
@@ -52,7 +52,8 @@ struct iommu_domain *amd_iommu_domain_alloc_sva(struct device *dev, struct mm_struct *mm);void amd_iommu_domain_free (struct iommu_domain *dom);int iommu_sva_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t pasid); +struct device *dev,ioasid_t pasid, +struct iommu_domain *old);void amd_iommu_remove_dev_pasid (struct device *dev,ioasid_t pasid,struct iommu_domain *domain);
drivers/iommu/amd/pasid.c +2 -1
@@ -100,7 +100,8 @@ static const struct mmu_notifier_ops sva_mn = { };int iommu_sva_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t pasid) +struct device *dev,ioasid_t pasid, +struct iommu_domain *old) {struct pdom_dev_data *pdom_dev_data;struct protection_domain *sva_pdom =to_pdomain (domain);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c +2 -1
@@ -332,7 +332,8 @@ void arm_smmu_sva_notifier_synchronize(void) }static int arm_smmu_sva_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t id) +struct device *dev,ioasid_t id, +struct iommu_domain *old) {struct arm_smmu_domain *smmu_domain =to_smmu_domain (domain);struct arm_smmu_master *master =dev_iommu_priv_get (dev);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +2 -1
@@ -2879,7 +2879,8 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) }static int arm_smmu_s1_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t id) +struct device *dev,ioasid_t id, +struct iommu_domain *old) {struct arm_smmu_domain *smmu_domain =to_smmu_domain (domain);struct arm_smmu_master *master =dev_iommu_priv_get (dev);
drivers/iommu/intel/iommu.c +4 -2
@@ -4338,7 +4338,8 @@ static void intel_iommu_remove_dev_pasid(struct device *dev, ioasid_t pasid, }static int intel_iommu_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t pasid) +struct device *dev,ioasid_t pasid, +struct iommu_domain *old) {struct device_domain_info *info =dev_iommu_priv_get (dev);struct dmar_domain *dmar_domain =to_dmar_domain (domain);
@@ -4624,7 +4625,8 @@ static int identity_domain_attach_dev(struct iommu_domain *domain, struct device }static int identity_domain_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t pasid) +struct device *dev,ioasid_t pasid, +struct iommu_domain *old) {struct device_domain_info *info =dev_iommu_priv_get (dev);struct intel_iommu *iommu = info->iommu;
drivers/iommu/intel/svm.c +2 -1
@@ -111,7 +111,8 @@ static const struct mmu_notifier_ops intel_mmuops = { };static int intel_svm_set_dev_pasid (struct iommu_domain *domain, -struct device *dev,ioasid_t pasid) +struct device *dev,ioasid_t pasid, +struct iommu_domain *old) {struct device_domain_info *info =dev_iommu_priv_get (dev);struct dmar_domain *dmar_domain =to_dmar_domain (domain);
drivers/iommu/iommu.c +2 -1
@@ -3342,7 +3342,8 @@ static int __iommu_set_group_pasid(struct iommu_domain *domain,for_each_group_device (group, device) {if (device->dev->iommu->max_pasids >0 ) { - ret = domain->ops->set_dev_pasid (domain, device->dev, pasid); + ret = domain->ops->set_dev_pasid (domain, device->dev, + pasid,NULL );if (ret) goto err_revert; }
include/linux/iommu.h +1 -1
@@ -642,7 +642,7 @@ struct iommu_ops {struct iommu_domain_ops {int (*attach_dev)(struct iommu_domain *domain,struct device *dev);int (*set_dev_pasid)(struct iommu_domain *domain,struct device *dev, -ioasid_t pasid); +ioasid_t pasid,struct iommu_domain *old); int (*map_pages)(struct iommu_domain *domain, unsigned long iova, phys_addr_t paddr, size_t pgsize, size_t pgcount,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 15/1276 iommu/vt-d: Cleanup intel_context_flush_present()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lu Baolu <[email protected]>
[ Upstream commit 4c293add5874038dc82ef579663dd86744d8e872 ]
The intel_context_flush_present() is called in places where either the scalable mode is disabled, or scalable mode is enabled but all PASID entries are known to be non-present. In these cases, the flush_domains path within intel_context_flush_present() will never execute. This dead code is therefore removed.
Stable-dep-of: f46452c3df7a ("iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry")
--- drivers/iommu/intel/iommu.c | 4 ++-- drivers/iommu/intel/iommu.h | 5 ++--- drivers/iommu/intel/pasid.c | 41 +++++++------------------------------ 3 files changed, 11 insertions(+), 39 deletions(-)
drivers/iommu/intel/iommu.c +2 -2
@@ -1917,7 +1917,7 @@ static void domain_context_clear_one(struct device_domain_info *info, u8 bus, u8context_clear_present (context);__iommu_flush_cache (iommu, context,sizeof (*context));spin_unlock (&iommu->lock); -intel_context_flush_present (info, context, did, true); +intel_context_flush_no_pasid (info, context, did);context_clear_entry (context);__iommu_flush_cache (iommu, context,sizeof (*context)); }
@@ -4153,7 +4153,7 @@ static int context_flip_pri(struct device_domain_info *info, bool enable)if (!ecap_coherent (iommu->ecap))clflush_cache_range (context,sizeof (*context)); -intel_context_flush_present (info, context, did, true); +intel_context_flush_no_pasid (info, context, did);spin_unlock (&iommu->lock);return 0 ;
drivers/iommu/intel/iommu.h +2 -3
@@ -1296,9 +1296,8 @@ void cache_tag_flush_all(struct dmar_domain *domain);void cache_tag_flush_range_np (struct dmar_domain *domain,unsigned long start,unsigned long end); -void intel_context_flush_present (struct device_domain_info *info, -struct context_entry *context, -u16 did,bool affect_domains); +void intel_context_flush_no_pasid (struct device_domain_info *info, +struct context_entry *context,u16 did);int intel_iommu_enable_prq (struct intel_iommu *iommu);int intel_iommu_finish_prq (struct intel_iommu *iommu);
drivers/iommu/intel/pasid.c +7 -34
61 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 16/1276 iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Michael Bommarito <[email protected]>
[ Upstream commit f46452c3df7a8d8a5addc0926e76ef19ea7da0a0 ]
device_pasid_table_teardown() zeroes the 128-bit scalable-mode context entry with context_clear_entry() while the Present bit is still set. This creates a window where the hardware can fetch a torn entry, with some fields already zeroed while Present is still set, leading to unpredictable behavior or spurious faults. The context-cache invalidation is issued only after the entry has been zeroed, and intel_pasid_free_table() then frees the PASID directory pages, so the IOMMU can keep walking a stale Present=1 entry that points at freed memory.
While x86 provides strong write ordering, the compiler may reorder the two 64-bit writes to the entry, and the hardware fetch is not guaranteed to be atomic with respect to multiple CPU writes.
Commit c1e4f1dccbe9d ("iommu/vt-d: Clear Present bit before tearing down context entry") fixed this exact pattern in domain_context_clear_one() and the copied-context path, but device_pasid_table_teardown() was not converted.
Align it with the "Guidance to Software for Invalidations" in the VT-d spec, Section 6.5.3.3, using the same ownership handshake as the sibling
fix: clear only the Present bit, flush it to the IOMMU, perform the context-cache invalidation, and only then zero the rest of the entry.
--- drivers/iommu/intel/pasid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/iommu/intel/pasid.c +3 -1
@@ -714,10 +714,12 @@ static void device_pasid_table_teardown(struct device *dev, u8 bus, u8 devfn) } did =context_domain_id (context); -context_clear_entry (context); +context_clear_present (context);__iommu_flush_cache (iommu, context,sizeof (*context));spin_unlock (&iommu->lock);intel_context_flush_no_pasid (info, context, did); +context_clear_entry (context); +__iommu_flush_cache (iommu, context,sizeof (*context)); }static int pci_pasid_table_teardown (struct pci_dev *pdev,u16 alias,void *data)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 17/1276 timekeeping: Register default clocksource before taking tk_core.lock
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mikhail Gavrilov <[email protected]>
[ Upstream commit 8fa30821180a9a19e78e9f4df1c0ba710252801e ]
Commit f24df84cbe05 ("time/jiffies: Register jiffies clocksource before usage") moved the jiffies clocksource registration into clocksource_default_clock(), so that it is registered lazily on the first call. __clocksource_register() acquires clocksource_mutex, but the first caller is timekeeping_init(), which invokes clocksource_default_clock() while holding tk_core.lock, a raw spinlock.
Acquiring a sleeping mutex while holding a raw spinlock is invalid.
The default clocksource only has to be registered before tk_setup_internals() consumes its mult/shift/maxadj. Neither clocksource_default_clock(), the ->enable() callback, nor the registration itself need tk_core.lock, so fetch and enable the clock before acquiring the lock. This preserves the "register before usage" ordering while keeping clocksource_mutex out of the raw spinlock section.
clocksource_default_clock() has a second caller, clocksource_done_booting(), which invokes it with clocksource_mutex already held. That path avoids a recursive lock because timekeeping_init() has already run and set cs_jiffies_registered, so the registration is skipped there. This change does not alter that; it only fixes the invalid wait context in timekeeping_init().
--- kernel/time/timekeeping.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
kernel/time/timekeeping.c +4 -3
@@ -1685,13 +1685,14 @@ void __init timekeeping_init(void)*/ wall_to_mono =timespec64_sub (boot_offset, wall_time); + clock =clocksource_default_clock (); +if (clock->enable) + clock->enable (clock); +raw_spin_lock_irqsave (&timekeeper_lock, flags);write_seqcount_begin (&tk_core.seq);ntp_init (); - clock =clocksource_default_clock (); -if (clock->enable) - clock->enable (clock);tk_setup_internals (tk, clock);tk_set_xtime (tk, &wall_time);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 18/1276 nvmet-tcp: check INIT_FAILED before nvmet_req_uninit in digest error path
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shivam Kumar <[email protected]>
commit 4606467a75cfc16721937272ed29462a750b60c8 upstream.
In nvmet_tcp_try_recv_ddgst(), when a data digest mismatch is detected, nvmet_req_uninit() is called unconditionally. However, if the command arrived via the nvmet_tcp_handle_req_failure() path, nvmet_req_init() had returned false and percpu_ref_tryget_live() was never executed. The unconditional percpu_ref_put() inside nvmet_req_uninit() then causes a refcount underflow, leading to a WARNING in percpu_ref_switch_to_atomic_rcu, a use-after-free diagnostic, and eventually a permanent workqueue deadlock.
Check cmd->flags & NVMET_TCP_F_INIT_FAILED before calling nvmet_req_uninit(), matching the existing pattern in nvmet_tcp_execute_request().
--- drivers/nvme/target/tcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/nvme/target/tcp.c +2 -1
@@ -1383,7 +1383,8 @@ static int nvmet_tcp_try_recv_ddgst(stru queue->idx, cmd->req.cmd->common.command_id, queue->pdu.cmd.hdr.type,le32_to_cpu (cmd->recv_ddgst), le32_to_cpu(cmd->exp_ddgst)); -nvmet_req_uninit (&cmd->req); +if (!(cmd->flags &NVMET_TCP_F_INIT_FAILED )) +nvmet_req_uninit (&cmd->req);nvmet_tcp_free_cmd_buffers (cmd);nvmet_tcp_fatal_error (queue); ret = -EPROTO ;
Greg Kroah-Hartman
maintainerPATCH 19/1276 nvmet-tcp: Fix potential UAF when ddgst mismatch
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sagi Grimberg <[email protected]>
commit dbbd07d0a7020b80f6a7028e561908f7b83b3d5a upstream.
Shivam Kumar found via vulnerability testing:
When data digest is enabled on an NVMe/TCP connection and a digest mismatch occurs on a non-final H2C_DATA PDU during an R2T-based data transfer, the digest error handler in nvmet_tcp_try_recv_ddgst() calls nvmet_req_uninit() — which performs percpu_ref_put() on the submission queue — but does NOT mark the command as completed. It does not set cqe->status, does not modify rbytes_done, and does not clear any flag. When the subsequent fatal error triggers queue teardown, nvmet_tcp_uninit_data_in_cmds() iterates all commands, checks nvmet_tcp_need_data_in() for each one, and finds that the already-uninited command still appears to need data (because rbytes_done < transfer_len and cqe->status == 0). It therefore calls nvmet_req_uninit() a second time on the same command — a double percpu_ref_put against a single percpu_ref_get.
--- drivers/nvme/target/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/nvme/target/tcp.c +3 -1
@@ -1383,8 +1383,10 @@ static int nvmet_tcp_try_recv_ddgst(stru queue->idx, cmd->req.cmd->common.command_id, queue->pdu.cmd.hdr.type,le32_to_cpu (cmd->recv_ddgst), le32_to_cpu(cmd->exp_ddgst)); -if (!(cmd->flags &NVMET_TCP_F_INIT_FAILED )) +if (!(cmd->flags &NVMET_TCP_F_INIT_FAILED )) { + cmd->req.cqe->status =NVME_SC_CMD_SEQ_ERROR ;nvmet_req_uninit (&cmd->req); + }nvmet_tcp_free_cmd_buffers (cmd);nvmet_tcp_fatal_error (queue); ret = -EPROTO ;
Greg Kroah-Hartman
maintainerPATCH 20/1276 vsock/virtio: fix zerocopy completion for multi-skb sends
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stefano Garzarella <[email protected]>
commit ae38d9179190a956e2a87a69ef1dd6f451b51c4d upstream.
When a large message is fragmented into multiple skbs, the zerocopy uarg is only allocated and attached to the last skb in the loop. Non-final skbs carry pinned user pages with no completion tracking, so the kernel has no way to notify userspace when those pages are safe to reuse. If the loop breaks early the uarg is never allocated at all, leaking pinned pages with no completion notification.
Fix this by following the approach used by TCP: allocate the zerocopy uarg (if not provided by the caller) before the send loop and attach it to every skb via skb_zcopy_set(), which takes a reference per skb. Each skb's completion properly decrements the refcount, and the notification only fires after the last skb is freed.
On failure, if no data was sent, the uarg is cleanly aborted via net_zcopy_put_abort().
This issue was initially discovered by sashiko while reviewing commit 1cb36e252211 ("vsock/virtio: fix MSG_ZEROCOPY pinned-pages accounting") but was pre-existing.
--- net/vmw_vsock/virtio_transport_common.c | 78 +++++++++++-------------- 1 file changed, 34 insertions(+), 44 deletions(-)
net/vmw_vsock/virtio_transport_common.c +34 -44
@@ -72,35 +72,6 @@ static bool virtio_transport_can_zcopy(const struct virtio_transport *t_ops,return true; } -static int virtio_transport_init_zcopy_skb (struct vsock_sock *vsk, -struct sk_buff *skb, -struct msghdr *msg, -bool zerocopy) -{ -struct ubuf_info *uarg; - -if (msg->msg_ubuf) { - uarg = msg->msg_ubuf; -net_zcopy_get (uarg); - }else { -struct iov_iter *iter = &msg->msg_iter; -struct ubuf_info_msgzc *uarg_zc; - - uarg =msg_zerocopy_realloc (sk_vsock (vsk), - iter->count, -NULL ); -if (!uarg) -return -1 ; - - uarg_zc =uarg_to_msgzc (uarg); - uarg_zc->zerocopy = zerocopy ?1 :0 ; - } - -skb_zcopy_init (skb, uarg); - -return 0 ; -} - static int virtio_transport_fill_skb(struct sk_buff *skb, struct virtio_vsock_pkt_info *info, size_t len,
@@ -321,8 +292,10 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,u32 src_cid, src_port, dst_cid, dst_port;const struct virtio_transport *t_ops;struct virtio_vsock_sock *vvs; +struct ubuf_info *uarg =NULL ;u32 pkt_len = info->pkt_len;bool can_zcopy = false; +bool have_uref = false;u32 rest_len;int ret;
@@ -364,6 +337,25 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,if (can_zcopy) max_skb_len =min_t (u32,VIRTIO_VSOCK_MAX_PKT_BUF_SIZE , (MAX_SKB_FRAGS *PAGE_SIZE )); + +if (info->msg->msg_flags &MSG_ZEROCOPY && + info->op ==VIRTIO_VSOCK_OP_RW ) { + uarg = info->msg->msg_ubuf; + +if (!uarg) { + uarg =msg_zerocopy_realloc (sk_vsock (vsk), + pkt_len,NULL ); +if (!uarg) { +virtio_transport_put_credit (vvs, pkt_len); +return -ENOMEM ; + } + +if (!can_zcopy) +uarg_to_msgzc (uarg)->zerocopy =0 ; + + have_uref = true; + } + } } rest_len = pkt_len;
@@ -382,21 +374,7 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,break ; } -/* We process buffer part by part, allocating skb on -* each iteration. If this is last skb for this buffer -* and MSG_ZEROCOPY mode is in use - we must allocate -* completion for the current syscall. -*/ -if (info->msg && info->msg->msg_flags &MSG_ZEROCOPY && - skb_len == rest_len && info->op ==VIRTIO_VSOCK_OP_RW ) { -if (virtio_transport_init_zcopy_skb (vsk, skb, - info->msg, - can_zcopy)) { -kfree_skb (skb); - ret = -ENOMEM ; -break ; - } - } +skb_zcopy_set (skb, uarg,NULL );virtio_transport_inc_tx_pkt (vvs, skb);
@@ -420,6 +398,18 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,virtio_transport_put_credit (vvs, rest_len); +/* msg_zerocopy_realloc() initializes the ubuf_info refcnt to 1. +* skb_zcopy_set() increases it for each skb, so we can drop that +* initial reference to keep it balanced. +*/ +if (have_uref) { +if (rest_len == pkt_len) +/* No data sent, abort the notification. */ +net_zcopy_put_abort (uarg, true); +else +net_zcopy_put (uarg); + } +/* Return number of bytes, if any data has been sent. */ if (rest_len != pkt_len) ret = pkt_len - rest_len;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 21/1276 vsock/virtio: bind uarg before filling zerocopy skb
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jingguo Tan <[email protected]>
[ Upstream commit 1e584c304cfb94a759417130b1fc6d30b30c4cce ]
virtio_transport_send_pkt_info() allocates or reuses the zerocopy uarg before entering the send loop, but virtio_transport_alloc_skb() still fills the skb before it inherits that uarg. When fixed-buffer vectored zerocopy hits MAX_SKB_FRAGS, io_sg_from_iter() may partially attach managed frags and return -EMSGSIZE. The rollback path call kfree_skb() to free an skb that carries SKBFL_MANAGED_FRAG_REFS but no uarg, so skb_release_data() falls through to ordinary frag unref.
Pass the uarg into virtio_transport_alloc_skb() and bind it immediately before virtio_transport_fill_skb(). This keeps control or no-payload skbs untouched while ensuring success and rollback share one lifetime rule.
--- net/vmw_vsock/virtio_transport_common.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
net/vmw_vsock/virtio_transport_common.c +9 -3
@@ -208,6 +208,7 @@ static u16 virtio_transport_get_type(struct sock *sk) static struct sk_buff *virtio_transport_alloc_skb(struct virtio_vsock_pkt_info *info, size_t payload_len, bool zcopy, + struct ubuf_info *uarg, u32 src_cid, u32 src_port, u32 dst_cid,
@@ -248,6 +249,12 @@ static struct sk_buff *virtio_transport_alloc_skb(struct virtio_vsock_pkt_info *if (info->msg && payload_len >0 ) {int err; +/* Bind the zerocopy lifetime before filling frags so error +* rollback frees managed fixed-buffer pages through +* the uarg-aware path. +*/ +skb_zcopy_set (skb, uarg,NULL ); + err =virtio_transport_fill_skb (skb, info, payload_len, zcopy);if (err) goto out;
@@ -367,6 +374,7 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk, skb_len =min (max_skb_len, rest_len); skb =virtio_transport_alloc_skb (info, skb_len, can_zcopy, + uarg, src_cid, src_port, dst_cid, dst_port);if (!skb) {
@@ -374,8 +382,6 @@ static int virtio_transport_send_pkt_info(struct vsock_sock *vsk,break ; } -skb_zcopy_set (skb, uarg,NULL ); -virtio_transport_inc_tx_pkt (vvs, skb); ret = t_ops->send_pkt (skb);
@@ -1171,7 +1177,7 @@ static int virtio_transport_reset_no_sock(const struct virtio_transport *t,if (!t)return -ENOTCONN ; - reply = virtio_transport_alloc_skb(&info, 0, false, + reply = virtio_transport_alloc_skb(&info, 0, false, NULL, le64_to_cpu(hdr->dst_cid), le32_to_cpu(hdr->dst_port), le64_to_cpu(hdr->src_cid),
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 22/1276 crypto: sun4i-ss - Remove insecure and unused rng_alg
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Biggers <[email protected]>
commit b2c41fa9dd8fc740c489e060b199165771f268d1 upstream.
Remove sun4i_ss_rng, as it is insecure and unused:
- It has multiple vulnerabilities. sun4i_ss_prng_seed() is missing locking and has a buffer overflow. sun4i_ss_prng_generate() fails to fill the entire buffer with cryptographic random bytes, because it rounds the destination length down and also doesn't actually wait for the hardware to be ready before pulling bytes from it.
- No user of this code is known. It's usable only theoretically via the "rng" algorithm type of AF_ALG. But userspace actually just uses the actual Linux RNG (/dev/random etc) instead. And rng_algs don't contribute entropy to the actual Linux RNG either. (This may have been confused with hwrng, which does contribute entropy.)
The sun4i_ss_prng_seed() buffer overflow was reported by Tianchu Chen and discovered by Atuin - Automated Vulnerability Discovery Engine
There's no point in fixing all these vulnerabilities individually when this is unused code, so let's just remove it.
--- arch/arm/configs/sunxi_defconfig | 1 - drivers/crypto/allwinner/Kconfig | 8 --- drivers/crypto/allwinner/sun4i-ss/Makefile | 1 - .../crypto/allwinner/sun4i-ss/sun4i-ss-core.c | 36 ---------- .../crypto/allwinner/sun4i-ss/sun4i-ss-prng.c | 69 ------------------- drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | 20 ------ 6 files changed, 135 deletions(-) delete mode 100644 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c
arch/arm/configs/sunxi_defconfig +0 -1
@@ -170,7 +170,6 @@ CONFIG_ROOT_NFS=y CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_ISO8859_1=y CONFIG_CRYPTO_DEV_SUN4I_SS=y -CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG=y CONFIG_CRYPTO_DEV_SUN8I_CE=y CONFIG_CRYPTO_DEV_SUN8I_SS=y CONFIG_DMA_CMA=y
drivers/crypto/allwinner/Kconfig +0 -8
@@ -24,14 +24,6 @@ config CRYPTO_DEV_SUN4I_SS To compile this driver as a module, choose M here: the module will be called sun4i-ss. -config CRYPTO_DEV_SUN4I_SS_PRNG - bool "Support for Allwinner Security System PRNG" - depends on CRYPTO_DEV_SUN4I_SS - select CRYPTO_RNG - help - Select this option if you want to provide kernel-side support for - the Pseudo-Random Number Generator found in the Security System. - config CRYPTO_DEV_SUN4I_SS_DEBUG bool "Enable sun4i-ss stats" depends on CRYPTO_DEV_SUN4I_SS
drivers/crypto/allwinner/sun4i-ss/Makefile +0 -1
@@ -1,4 +1,3 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_CRYPTO_DEV_SUN4I_SS) += sun4i-ss.o sun4i-ss-y += sun4i-ss-core.o sun4i-ss-hash.o sun4i-ss-cipher.o -sun4i-ss-$(CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG) += sun4i-ss-prng.o
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c +0 -36
@@ -213,23 +213,6 @@ static struct sun4i_ss_alg_template ss_algs[] = { } } }, -#ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG -{ - .type = CRYPTO_ALG_TYPE_RNG, - .alg.rng = { - .base = { - .cra_name = "stdrng", - .cra_driver_name = "sun4i_ss_rng", - .cra_priority = 300, - .cra_ctxsize = 0, - .cra_module = THIS_MODULE, - }, - .generate = sun4i_ss_prng_generate, - .seed = sun4i_ss_prng_seed, - .seedsize = SS_SEED_LEN / BITS_PER_BYTE, - } -}, -#endif };static int sun4i_ss_debugfs_show (struct seq_file *seq,void *v)
@@ -247,12 +230,6 @@ static int sun4i_ss_debugfs_show(struct seq_file *seq, void *v) ss_algs[i].stat_req, ss_algs[i].stat_opti, ss_algs[i].stat_fb, ss_algs[i].stat_bytes);break ; -case CRYPTO_ALG_TYPE_RNG : -seq_printf (seq,"%s %s reqs=%lu tsize=%lu\n" , - ss_algs[i].alg.rng.base.cra_driver_name, - ss_algs[i].alg.rng.base.cra_name, - ss_algs[i].stat_req, ss_algs[i].stat_bytes); -break ;case CRYPTO_ALG_TYPE_AHASH : seq_printf(seq, "%s %s reqs=%lu\n", ss_algs[i].alg.hash.halg.base.cra_driver_name,
@@ -471,13 +448,6 @@ static int sun4i_ss_probe(struct platform_device *pdev) goto error_alg; }break ; -case CRYPTO_ALG_TYPE_RNG : - err =crypto_register_rng (&ss_algs[i].alg.rng); -if (err) { -dev_err (ss->dev,"Fail to register %s\n" , - ss_algs[i].alg.rng.base.cra_name); - } -break ; } }
@@ -497,9 +467,6 @@ static int sun4i_ss_probe(struct platform_device *pdev)case CRYPTO_ALG_TYPE_AHASH :crypto_unregister_ahash (&ss_algs[i].alg.hash);break ; -case CRYPTO_ALG_TYPE_RNG : -crypto_unregister_rng (&ss_algs[i].alg.rng); -break ; } } error_pm:
@@ -520,9 +487,6 @@ static void sun4i_ss_remove(struct platform_device *pdev)case CRYPTO_ALG_TYPE_AHASH :crypto_unregister_ahash (&ss_algs[i].alg.hash);break ; -case CRYPTO_ALG_TYPE_RNG : -crypto_unregister_rng (&ss_algs[i].alg.rng); -break ; } }
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c deleted +0 -69
69 lines not on this page · raw message
drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h +0 -20
@@ -31,8 +31,6 @@#include <crypto/internal/skcipher.h> #include <crypto/aes.h> #include <crypto/internal/des.h> -#include <crypto/internal/rng.h> -#include <crypto/rng.h> #define SS_CTL 0x00#define SS_KEY0 0x04
@@ -62,10 +60,6 @@/* SS_CTL configuration values */ -/* PRNG generator mode - bit 15 */ -#define SS_PRNG_ONESHOT (0 << 15) -#define SS_PRNG_CONTINUE (1 << 15) -/* IV mode for hash */ #define SS_IV_ARBITRARY (1 << 14)
@@ -94,14 +88,10 @@#define SS_OP_3DES (2 << 4)#define SS_OP_SHA1 (3 << 4)#define SS_OP_MD5 (4 << 4) -#define SS_OP_PRNG (5 << 4)/* Data end bit - bit 2 */ #define SS_DATA_END (1 << 2) -/* PRNG start bit - bit 1 */ -#define SS_PRNG_START (1 << 1) -/* SS Enable bit - bit 0 */ #define SS_DISABLED (0 << 0)#define SS_ENABLED (1 << 0)
@@ -128,9 +118,6 @@#define SS_RXFIFO_EMP_INT_ENABLE (1 << 2)#define SS_TXFIFO_AVA_INT_ENABLE (1 << 0) -#define SS_SEED_LEN 192 -#define SS_DATA_LEN 160 -/* * struct ss_variant - Describe SS hardware variant * @sha1_in_be: The SHA1 digest is given by SS in BE, and so need to be inverted.
@@ -151,9 +138,6 @@ struct sun4i_ss_ctx {char buf[4 *SS_RX_MAX ];/* buffer for linearize SG src */ char bufo[4 *SS_TX_MAX ];/* buffer for linearize SG dst */ spinlock_t slock;/* control the use of the device */ -#ifdef CONFIG_CRYPTO_DEV_SUN4I_SS_PRNG -u32 seed[SS_SEED_LEN /BITS_PER_LONG ]; -#endif struct dentry *dbgfs_dir;struct dentry *dbgfs_stats; };
@@ -164,7 +148,6 @@ struct sun4i_ss_alg_template {union {struct skcipher_alg crypto;struct ahash_alg hash; -struct rng_alg rng; } alg;struct sun4i_ss_ctx *ss;unsigned long stat_req;
@@ -231,6 +214,3 @@ int sun4i_ss_des_setkey(struct crypto_skcipher *tfm, const u8 *key, unsigned int keylen);int sun4i_ss_des3_setkey (struct crypto_skcipher *tfm,const u8 *key,unsigned int keylen); -int sun4i_ss_prng_generate (struct crypto_rng *tfm,const u8 *src, -unsigned int slen,u8 *dst,unsigned int dlen); -int sun4i_ss_prng_seed (struct crypto_rng *tfm,const u8 *seed,unsigned int slen);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 23/1276 iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vasant Hegde <[email protected]>
commit 58c0ac6125d89bf6ec65a521eaeb52a0e8e20a9f upstream.
Due to CVE-2023-20585, the Event log buffer must use the maximum supported size (512K) on Milan/Genoa (Family 0x19) systems when SNP is enabled, to mitigate a potential security vulnerability. All other systems continue to use the default Event log buffer size (8K).
Apply the errata fix by making the following changes:
* Introduce new global variable (amd_iommu_evtlog_size) to have event log buffer size. Adjust variable size for family 0x19.
* Since 'iommu_snp_enable()' must be called after the core IOMMU subsystem is initialized, it cannot be moved to the early init stage. The SNP errata must also be applied after the 'iommu_snp_enable()' check. Therefore, 'alloc_event_buffer()' and 'iommu_enable_event_buffer()' are now called in the IOMMU_ENABLED state, after the errata is applied.
* Adjust alloc_event_buffer() and iommu_enable_event_buffer() to handle all IOMMU instances.
* Also rename EVT_* macros to make it more readable.
Conflicts:
drivers/iommu/amd/init.c
[ Conflicts in alloc_event_buffer() and iommu_enable_event_buffer()
due to lack of upstream AMD IOMMU kdump buffer reuse code. Similarly, do not add a kdump check when allocating an event log buffer in state_next(). ]
--- drivers/iommu/amd/amd_iommu.h | 2 + drivers/iommu/amd/amd_iommu_types.h | 10 ++-- drivers/iommu/amd/init.c | 77 +++++++++++++++++++++-------- drivers/iommu/amd/iommu.c | 2 +- 4 files changed, 67 insertions(+), 24 deletions(-)
drivers/iommu/amd/amd_iommu.h +2 -0
@@ -11,6 +11,8 @@#include "amd_iommu_types.h" +extern int amd_iommu_evtlog_size; +irqreturn_t amd_iommu_int_thread (int irq,void *data);irqreturn_t amd_iommu_int_thread_evtlog (int irq,void *data);irqreturn_t amd_iommu_int_thread_pprlog (int irq,void *data);
drivers/iommu/amd/amd_iommu_types.h +7 -3
@@ -15,6 +15,7 @@#include <linux/mutex.h> #include <linux/msi.h> #include <linux/list.h> +#include <linux/sizes.h> #include <linux/spinlock.h> #include <linux/pci.h> #include <linux/irqreturn.h>
@@ -132,7 +133,6 @@#define MMIO_STATUS_GALOG_INT_MASK BIT(10)/* event logging constants */ -#define EVENT_ENTRY_SIZE 0x10#define EVENT_TYPE_SHIFT 28#define EVENT_TYPE_MASK 0xf#define EVENT_TYPE_ILL_DEV 0x1
@@ -240,8 +240,12 @@#define MMIO_CMD_SIZE_512 (0x9ULL << MMIO_CMD_SIZE_SHIFT)/* constants for event buffer handling */ -#define EVT_BUFFER_SIZE 8192/* 512 entries */ -#define EVT_LEN_MASK (0x9ULL << 56) +#define EVTLOG_ENTRY_SIZE 0x10 +#define EVTLOG_SIZE_SHIFT 56 +#define EVTLOG_SIZE_DEF SZ_8K/* 512 entries */ +#define EVTLOG_LEN_MASK_DEF (0x9ULL << EVTLOG_SIZE_SHIFT) +#define EVTLOG_SIZE_MAX SZ_512K/* 32K entries */ +#define EVTLOG_LEN_MASK_MAX (0xFULL << EVTLOG_SIZE_SHIFT)/* Constants for PPR Log handling */ #define PPR_LOG_ENTRIES 512
drivers/iommu/amd/init.c +57 -20
148 lines not on this page · raw message
drivers/iommu/amd/iommu.c +1 -1
@@ -1003,7 +1003,7 @@ static void iommu_poll_events(struct amd_iommu *iommu)iommu_print_event (iommu, iommu->evt_buf + head);/* Update head pointer of hardware ring-buffer */ - head = (head +EVENT_ENTRY_SIZE ) %EVT_BUFFER_SIZE ; + head = (head +EVTLOG_ENTRY_SIZE ) % amd_iommu_evtlog_size;writel (head, iommu->mmio_base +MMIO_EVT_HEAD_OFFSET ); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 24/1276 iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vasant Hegde <[email protected]>
commit 1f44aab79bac31f459422dfb213e907bb386509c upstream.
Due to CVE-2023-20585, the PPR log buffer must use the maximum supported size (512K) on Genoa (Family 0x19, model >= 0x10) systems when SNP is enabled, to mitigate a potential security vulnerability. Note that Family 0x19 models below 0x10 (Milan) do not support PPR when SNP is enabled. Hence the PPR log size increase is only applied for model >= 0x10. All other systems continue to use the default PPR log buffer size (8K).
Apply the errata fix by making the following changes:
- Introduce global new variable (amd_iommu_pprlog_size) to have PPR log buffer size. Adjust variable size for Genoa family.
- Extend 'amd_iommu_apply_erratum_snp()' to also set the PPR log buffer size to maximum for Family 0x19 model >= 0x10 when SNP is enabled.
- Rename PPR_* macros to make it more readable.
--- drivers/iommu/amd/amd_iommu.h | 1 + drivers/iommu/amd/amd_iommu_types.h | 11 ++++++----- drivers/iommu/amd/init.c | 13 ++++++++++++- drivers/iommu/amd/ppr.c | 10 ++++++---- 4 files changed, 25 insertions(+), 10 deletions(-)
drivers/iommu/amd/amd_iommu.h +1 -0
@@ -12,6 +12,7 @@#include "amd_iommu_types.h" extern int amd_iommu_evtlog_size; +extern int amd_iommu_pprlog_size;irqreturn_t amd_iommu_int_thread (int irq,void *data);irqreturn_t amd_iommu_int_thread_evtlog (int irq,void *data);
drivers/iommu/amd/amd_iommu_types.h +6 -5
@@ -248,11 +248,12 @@#define EVTLOG_LEN_MASK_MAX (0xFULL << EVTLOG_SIZE_SHIFT)/* Constants for PPR Log handling */ -#define PPR_LOG_ENTRIES 512 -#define PPR_LOG_SIZE_SHIFT 56 -#define PPR_LOG_SIZE_512 (0x9ULL << PPR_LOG_SIZE_SHIFT) -#define PPR_ENTRY_SIZE 16 -#define PPR_LOG_SIZE (PPR_ENTRY_SIZE * PPR_LOG_ENTRIES) +#define PPRLOG_ENTRY_SIZE 0x10 +#define PPRLOG_SIZE_SHIFT 56 +#define PPRLOG_SIZE_DEF SZ_8K/* 512 entries */ +#define PPRLOG_LEN_MASK_DEF (0x9ULL << PPRLOG_SIZE_SHIFT) +#define PPRLOG_SIZE_MAX SZ_512K/* 32K entries */ +#define PPRLOG_LEN_MASK_MAX (0xFULL << PPRLOG_SIZE_SHIFT)/* PAGE_SERVICE_REQUEST PPR Log Buffer Entry flags */ #define PPR_FLAG_EXEC 0x002/* Execute permission requested */
drivers/iommu/amd/init.c +12 -1
@@ -134,6 +134,7 @@ struct ivhd_entry { } __attribute__((packed));int amd_iommu_evtlog_size =EVTLOG_SIZE_DEF ; +int amd_iommu_pprlog_size =PPRLOG_SIZE_DEF ;/* * An AMD IOMMU memory definition structure. It defines things like exclusion
@@ -3265,6 +3266,16 @@ static void amd_iommu_apply_erratum_snp(void) amd_iommu_evtlog_size =EVTLOG_SIZE_MAX ;pr_info ("Applying erratum: Increase Event log size to 0x%x\n" , amd_iommu_evtlog_size); + +/* +* Set PPR log buffer size to max. +* (Family 0x19, model < 0x10 doesn't support PPR when SNP is enabled). +*/ +if (boot_cpu_data.x86_model >=0x10 ) { + amd_iommu_pprlog_size =PPRLOG_SIZE_MAX ; +pr_info ("Applying erratum: Increase PPR log size to 0x%x\n" , + amd_iommu_pprlog_size); + }#endif }
@@ -3906,7 +3917,7 @@ int amd_iommu_snp_disable(void)if (ret)return ret; - ret =iommu_make_shared (iommu->ppr_log,PPR_LOG_SIZE ); + ret =iommu_make_shared (iommu->ppr_log, amd_iommu_pprlog_size);if (ret)return ret;
drivers/iommu/amd/ppr.c +6 -4
@@ -20,7 +20,7 @@int __init amd_iommu_alloc_ppr_log (struct amd_iommu *iommu) { iommu->ppr_log =iommu_alloc_4k_pages (iommu,GFP_KERNEL | __GFP_ZERO, -PPR_LOG_SIZE ); + amd_iommu_pprlog_size);return iommu->ppr_log ?0 : -ENOMEM ; }
@@ -33,7 +33,9 @@ void amd_iommu_enable_ppr_log(struct amd_iommu *iommu)iommu_feature_enable (iommu,CONTROL_PPR_EN ); - entry =iommu_virt_to_phys (iommu->ppr_log) |PPR_LOG_SIZE_512 ; + entry =iommu_virt_to_phys (iommu->ppr_log); + entry |= (amd_iommu_pprlog_size ==PPRLOG_SIZE_DEF ) ? +PPRLOG_LEN_MASK_DEF :PPRLOG_LEN_MASK_MAX ;memcpy_toio (iommu->mmio_base +MMIO_PPR_LOG_OFFSET , &entry,sizeof (entry));
@@ -48,7 +50,7 @@ void amd_iommu_enable_ppr_log(struct amd_iommu *iommu)void __init amd_iommu_free_ppr_log (struct amd_iommu *iommu) { -iommu_free_pages (iommu->ppr_log,get_order (PPR_LOG_SIZE )); +iommu_free_pages (iommu->ppr_log,get_order (amd_iommu_pprlog_size)); }/*
@@ -201,7 +203,7 @@ void amd_iommu_poll_ppr_log(struct amd_iommu *iommu) raw[0 ] = raw[1 ] =0UL ;/* Update head pointer of hardware ring-buffer */ - head = (head +PPR_ENTRY_SIZE ) %PPR_LOG_SIZE ; + head = (head +PPRLOG_ENTRY_SIZE ) % amd_iommu_pprlog_size;writel (head, iommu->mmio_base +MMIO_PPR_HEAD_OFFSET );/* Handle PPR entry */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 25/1276 x86/mm: Fix check/use ordering in switch_mm_irqs_off()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stephen Dolan <[email protected]>
This is a stable-specific fix. There is no single upstream commit to cherry-pick; the equivalent mainline fix is commit 83b0177a6c48 ("x86/mm: Fix SMP ordering in switch_mm_irqs_off()"), which is in v6.18 but does not apply to these trees because the surrounding code was refactored.
The backports of commit fea4e317f9e7 ("x86/mm: Eliminate window where TLB flushes may be inadvertently skipped") -- the fix for CVE-2025-37964 -- to the 6.1, 6.6 and 6.12 trees ended up with two code blocks in the wrong order relative to mainline. The fix depends on setting cpu_tlbstate.loaded_mm to LOADED_MM_SWITCHING *before* reading tlb_gen, so that a concurrent TLB shootdown either sees LOADED_MM_SWITCHING and sends the IPI, or the switching CPU sees the updated tlb_gen. In the stable trees the write of LOADED_MM_SWITCHING was placed after the tlb_gen read, so the race window fea4e317f9e7 was meant to close is still open and CVE-2025-37964 is unfixed there:
a process can be left running with stale TLB entries, which typically manifests as rare, hard-to-bisect memory corruption or segfaults.
This has been confirmed by several independent parties:
- reproduced on 6.1.y/6.6.y/6.12.y with the test program in [1], and confirmed fixed by this patch
- Seth Forshee saw segfaults on 6.12.y within ~30 minutes of running a test workload; with this patch it ran 18 hours cleanly [2]
- Greg Thelen reports 6.6.y- and 6.12.y-based test failures fixed by this patch [3]
Dave Hansen acked the patch [4] and has no objection to it going into stable [5].
The patch below is against 6.12.y; the identical change applies to 6.1.y and 6.6.y. (The cpumask_test_cpu()/smp_mb() portion of the mainline fix is not needed here because commit 209954cbc7d0 ("x86/mm/tlb: Update mm_cpumask lazily") was never backported to these trees.)
[1] https://lore.kernel.org/lkml/CAHDw0oGd0B4=uuv8NGqbUQ_ZVmSheU2bN70e4QhFXWvuAZdt2w@mail.gmail.com/
[2] https://lore.kernel.org/lkml/aZYWXe739XUJrBld@do-x1carbon/
[3] https://lore.kernel.org/lkml/CAHH2K0brx9omC9QYyB6Lio3t_1Lf8v=VaFoiaG23UgQ-aec89Q@mail.gmail.com/
[4] https://lore.kernel.org/lkml/[email protected]/
[5] https://lore.kernel.org/lkml/[email protected]/
--- arch/x86/mm/tlb.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
arch/x86/mm/tlb.c +8 -8
@@ -606,6 +606,14 @@ void switch_mm_irqs_off(struct mm_struct *unused, struct mm_struct *next,*/ cond_mitigation (tsk); +/* +* Indicate that CR3 is about to change. nmi_uaccess_okay() +* and others are sensitive to the window where mm_cpumask(), +* CR3 and cpu_tlbstate.loaded_mm are not all in sync. +*/ +this_cpu_write (cpu_tlbstate.loaded_mm,LOADED_MM_SWITCHING ); +barrier (); +/* * Stop remote flushes for the previous mm. * Skip kernel threads; we never send init_mm TLB flushing IPIs,
@@ -623,14 +631,6 @@ void switch_mm_irqs_off(struct mm_struct *unused, struct mm_struct *next, next_tlb_gen =atomic64_read (&next->context.tlb_gen);choose_new_asid (next, next_tlb_gen, &new_asid, &need_flush); - -/* -* Indicate that CR3 is about to change. nmi_uaccess_okay() -* and others are sensitive to the window where mm_cpumask(), -* CR3 and cpu_tlbstate.loaded_mm are not all in sync. -*/ -this_cpu_write (cpu_tlbstate.loaded_mm,LOADED_MM_SWITCHING ); -barrier (); } new_lam =mm_lam_cr3_mask (next);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 26/1276 net: dropreason: Gather SOCKET_ drop reasons.
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 454d402481d45af79ee7eea7e64bce02bbbe9766 ]
The following patch adds a new drop reason starting with the SOCKET_ prefix.
Let's gather the existing SOCKET_ reasons.
Note that the order is not part of uAPI.
--- include/net/dropreason-core.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
include/net/dropreason-core.h +6 -6
@@ -6,9 +6,10 @@#define DEFINE_DROP_REASON (FN , FNe) \ FN(NOT_SPECIFIED) \ FN(NO_SOCKET) \ + FN(SOCKET_FILTER) \ + FN(SOCKET_RCVBUFF) \ FN(PKT_TOO_SMALL) \ FN(TCP_CSUM) \ - FN(SOCKET_FILTER) \ FN(UDP_CSUM) \ FN(NETFILTER_DROP) \ FN(OTHERHOST) \
@@ -18,7 +19,6 @@ FN(UNICAST_IN_L2_MULTICAST) \ FN(XFRM_POLICY) \ FN(IP_NOPROTO) \ - FN(SOCKET_RCVBUFF) \ FN(PROTO_MEM) \ FN(TCP_AUTH_HDR) \ FN(TCP_MD5NOTFOUND) \
@@ -124,12 +124,14 @@ enum skb_drop_reason {* 3) no valid child socket during 3WHS process */ SKB_DROP_REASON_NO_SOCKET , +/** @SKB_DROP_REASON_SOCKET_FILTER: dropped by socket filter */ +SKB_DROP_REASON_SOCKET_FILTER , +/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */ +SKB_DROP_REASON_SOCKET_RCVBUFF ,/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */ SKB_DROP_REASON_PKT_TOO_SMALL ,/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */ SKB_DROP_REASON_TCP_CSUM , -/** @SKB_DROP_REASON_SOCKET_FILTER: dropped by socket filter */ -SKB_DROP_REASON_SOCKET_FILTER ,/** @SKB_DROP_REASON_UDP_CSUM: UDP checksum error */ SKB_DROP_REASON_UDP_CSUM,/** @SKB_DROP_REASON_NETFILTER_DROP: dropped by netfilter */
@@ -160,8 +162,6 @@ enum skb_drop_reason {SKB_DROP_REASON_XFRM_POLICY ,/** @SKB_DROP_REASON_IP_NOPROTO: no support for IP protocol */ SKB_DROP_REASON_IP_NOPROTO, -/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */ - SKB_DROP_REASON_SOCKET_RCVBUFF,/** * @SKB_DROP_REASON_PROTO_MEM: proto memory limitation, such as * udp packet drop out of udp_memory_allocated.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 27/1276 af_unix: Set drop reason in unix_release_sock().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit c32f0bd7d4838982c6724fca0da92353f27c6f88 ]
unix_release_sock() is called when the last refcnt of struct file is released.
Let's define a new drop reason SKB_DROP_REASON_SOCKET_CLOSE and set it for kfree_skb() in unix_release_sock().
# echo 1 > /sys/kernel/tracing/events/skb/kfree_skb/enable
# python3
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
from socket import *
s1, s2 =socketpair(AF_UNIX)s1.send(b'hello world')s2.close()
# cat /sys/kernel/tracing/trace_pipe
...
python3-280 ... kfree_skb: ... protocol=0 location=unix_release_sock+0x260/0x420 reason: SOCKET_CLOSETo be precise, unix_release_sock() is also called for a new child socket in unix_stream_connect() when something fails, but the new sk does not have skb in the recv queue then and no event is logged.
Note that only tcp_inbound_ao_hash() uses a similar drop reason, SKB_DROP_REASON_TCP_CLOSE, and this can be generalised later.
--- include/net/dropreason-core.h | 3 +++ net/unix/af_unix.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
include/net/dropreason-core.h +3 -0
@@ -6,6 +6,7 @@#define DEFINE_DROP_REASON (FN , FNe) \ FN(NOT_SPECIFIED) \ FN(NO_SOCKET) \ + FN(SOCKET_CLOSE) \ FN(SOCKET_FILTER) \ FN(SOCKET_RCVBUFF) \ FN(PKT_TOO_SMALL) \
@@ -124,6 +125,8 @@ enum skb_drop_reason {* 3) no valid child socket during 3WHS process */ SKB_DROP_REASON_NO_SOCKET , +/** @SKB_DROP_REASON_SOCKET_CLOSE: socket is close()d */ +SKB_DROP_REASON_SOCKET_CLOSE ,/** @SKB_DROP_REASON_SOCKET_FILTER: dropped by socket filter */ SKB_DROP_REASON_SOCKET_FILTER,/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */
net/unix/af_unix.c +2 -2
@@ -731,8 +731,8 @@ static void unix_release_sock(struct sock *sk, int embrion)if (state ==TCP_LISTEN )unix_release_sock (skb->sk,1 ); -/* passed fds are erased in the kfree_skb hook */ -kfree_skb (skb); +/* passed fds are erased in the kfree_skb hook */ +kfree_skb_reason (skb,SKB_DROP_REASON_SOCKET_CLOSE ); }if (path.dentry)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 28/1276 af_unix: Set drop reason in manage_oob().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 533643b091dd6e246d57caf81e6892fa9cbb1cc9 ]
AF_UNIX SOCK_STREAM socket supports MSG_OOB.
When OOB data is sent to a socket, recv() will break at that point.
If the next recv() does not have MSG_OOB, the normal data following the OOB data is returned.
Then, the OOB skb is dropped.
Let's define a new drop reason for that case in manage_oob().
# echo 1 > /sys/kernel/tracing/events/skb/kfree_skb/enable
# python3
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
from socket import *
s1, s2 =socketpair(AF_UNIX)s1.send(b'a', MSG_OOB)s1.send(b'b')s2.recv(2)
b'b'
# cat /sys/kernel/tracing/trace_pipe
...
python3-223 ... kfree_skb: ... location=unix_stream_read_generic+0x59e/0xc20 reason: UNIX_SKIP_OOB--- include/net/dropreason-core.h | 6 ++++++ net/unix/af_unix.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
include/net/dropreason-core.h +6 -0
@@ -9,6 +9,7 @@ FN(SOCKET_CLOSE) \ FN(SOCKET_FILTER) \ FN(SOCKET_RCVBUFF) \ + FN(UNIX_SKIP_OOB) \ FN(PKT_TOO_SMALL) \ FN(TCP_CSUM) \ FN(UDP_CSUM) \
@@ -131,6 +132,11 @@ enum skb_drop_reason {SKB_DROP_REASON_SOCKET_FILTER ,/** @SKB_DROP_REASON_SOCKET_RCVBUFF: socket receive buff is full */ SKB_DROP_REASON_SOCKET_RCVBUFF , +/** +* @SKB_DROP_REASON_UNIX_SKIP_OOB: Out-Of-Band data is skipped by +* recv() without MSG_OOB so dropped. +*/ +SKB_DROP_REASON_UNIX_SKIP_OOB ,/** @SKB_DROP_REASON_PKT_TOO_SMALL: packet size is too small */ SKB_DROP_REASON_PKT_TOO_SMALL,/** @SKB_DROP_REASON_TCP_CSUM: TCP checksum error */
net/unix/af_unix.c +1 -1
@@ -2714,7 +2714,7 @@ static struct sk_buff *manage_oob(struct sk_buff *skb, struct sock *sk,spin_unlock (&sk->sk_receive_queue.lock);consume_skb (read_skb); -kfree_skb (unread_skb); +kfree_skb_reason (unread_skb,SKB_DROP_REASON_UNIX_SKIP_OOB );return skb; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 29/1276 af_unix: Set drop reason in unix_stream_read_skb().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit bace4b468049a558295a0f59460fcb51e28f8fde ]
unix_stream_read_skb() is called when BPF SOCKMAP reads some data from a socket in the map.
SOCKMAP does not support MSG_OOB, and reading OOB results in a drop.
Let's set drop reasons respectively.
* SOCKET_CLOSE : the socket in SOCKMAP was close()d
* UNIX_SKIP_OOB : OOB was read from the socket in SOCKMAP
--- net/unix/af_unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
net/unix/af_unix.c +2 -2
@@ -2743,7 +2743,7 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)if (sock_flag (sk,SOCK_DEAD )) {unix_state_unlock (sk); -kfree_skb (skb); +kfree_skb_reason (skb,SKB_DROP_REASON_SOCKET_CLOSE );return -ECONNRESET ; }
@@ -2757,7 +2757,7 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)unix_state_unlock (sk);if (drop) { -kfree_skb (skb); +kfree_skb_reason (skb,SKB_DROP_REASON_UNIX_SKIP_OOB );return -EAGAIN ; } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 30/1276 af_unix/scm: fix whitespace errors
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexander Mikhalitsyn <[email protected]>
[ Upstream commit 2b9996417e4ec231c91818f9ea8107ae62ef75ad ]
Fix whitespace/formatting errors.
--- include/net/scm.h | 4 ++-- net/unix/af_unix.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
include/net/scm.h +2 -2
@@ -69,7 +69,7 @@ static __inline__ void unix_get_peersec_dgram(struct socket *sock, struct scm_costatic __inline__void scm_set_cred (struct scm_cookie *scm,struct pid *pid,kuid_t uid,kgid_t gid) { - scm->pid =get_pid (pid); + scm->pid =get_pid (pid); scm->creds.pid =pid_vnr (pid); scm->creds.uid = uid; scm->creds.gid = gid;
@@ -78,7 +78,7 @@ static __inline__ void scm_set_cred(struct scm_cookie *scm,static __inline__void scm_destroy_cred (struct scm_cookie *scm) {put_pid (scm->pid); - scm->pid =NULL ; + scm->pid =NULL ; }static __inline__void scm_destroy (struct scm_cookie *scm)
net/unix/af_unix.c +1 -1
@@ -1887,7 +1887,7 @@ static void unix_destruct_scm(struct sk_buff *skb)struct scm_cookie scm;memset (&scm,0 ,sizeof (scm)); - scm.pid =UNIXCB (skb).pid; + scm.pid =UNIXCB (skb).pid;if (UNIXCB (skb).fp)unix_detach_fds (&scm, skb);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 31/1276 af_unix: Dont hold unix_state_lock() in __unix_dgram_recvmsg().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit b429a5ad19cb4efe63d18388a2a4deebcba742c6 ]
When __skb_try_recv_datagram() returns NULL in __unix_dgram_recvmsg(), we hold unix_state_lock() unconditionally.
This is because SOCK_SEQPACKET sk needs to return EOF in case its peer has been close()d concurrently.
This behaviour totally depends on the timing of the peer's close() and reading sk->sk_shutdown, and taking the lock does not play a role.
Let's drop the lock from __unix_dgram_recvmsg() and use READ_ONCE().
--- net/unix/af_unix.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
net/unix/af_unix.c +1 -3
@@ -2463,12 +2463,10 @@ int __unix_dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t size, &err, &timeo, last));if (!skb) {/* implies iolock unlocked */ -unix_state_lock (sk);/* Signal EOF on disconnected non-blocking SEQPACKET socket. */ if (sk->sk_type ==SOCK_SEQPACKET && err == -EAGAIN && - (sk->sk_shutdown &RCV_SHUTDOWN )) + (READ_ONCE (sk->sk_shutdown) &RCV_SHUTDOWN )) err =0 ; -unix_state_unlock (sk); goto out; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 32/1276 af_unix: Dont check SOCK_DEAD in unix_stream_read_skb().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 772f01049c4b722b28b3f7025b4996379f127ebf ]
unix_stream_read_skb() checks SOCK_DEAD only when the dequeued skb is OOB skb.
unix_stream_read_skb() is called for a SOCK_STREAM socket in SOCKMAP when data is sent to it.
The function is invoked via sk_psock_verdict_data_ready(), which is set to sk->sk_data_ready().
During sendmsg(), we check if the receiver has SOCK_DEAD, so there is no point in checking it again later in ->read_skb().
Also, unix_read_skb() for SOCK_DGRAM does not have the test either.
Let's remove the SOCK_DEAD test in unix_stream_read_skb().
--- net/unix/af_unix.c | 10 ---------- 1 file changed, 10 deletions(-)
net/unix/af_unix.c +0 -10
@@ -2737,14 +2737,6 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)if (unlikely (skb ==READ_ONCE (u->oob_skb))) {bool drop = false; -unix_state_lock (sk); - -if (sock_flag (sk,SOCK_DEAD )) { -unix_state_unlock (sk); -kfree_skb_reason (skb,SKB_DROP_REASON_SOCKET_CLOSE ); -return -ECONNRESET ; - } -spin_lock (&sk->sk_receive_queue.lock);if (likely (skb == u->oob_skb)) {WRITE_ONCE (u->oob_skb,NULL );
@@ -2752,8 +2744,6 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor) }spin_unlock (&sk->sk_receive_queue.lock); -unix_state_unlock (sk); -if (drop) {kfree_skb_reason (skb,SKB_DROP_REASON_UNIX_SKIP_OOB );return -EAGAIN ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 33/1276 af_unix: Dont use skb_recv_datagram() in unix_stream_read_skb().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit d0aac85449dec992bb8dc2503f2cb9e94ef436db ]
unix_stream_read_skb() calls skb_recv_datagram() with MSG_DONTWAIT, which is mostly equivalent to sock_error(sk) + skb_dequeue().
In the following patch, we will add a new field to cache the number of bytes in the receive queue. Then, we want to avoid introducing atomic ops in the fast path, so we will reuse the receive queue lock.
As a preparation for the change, let's not use skb_recv_datagram() in unix_stream_read_skb().
Note that sock_error() is now moved out of the u->iolock mutex as the mutex does not synchronise the peer's close() at all.
--- net/unix/af_unix.c | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-)
net/unix/af_unix.c +22 -17
@@ -2720,6 +2720,7 @@ static struct sk_buff *manage_oob(struct sk_buff *skb, struct sock *sk,static int unix_stream_read_skb (struct sock *sk,skb_read_actor_t recv_actor) { +struct sk_buff_head *queue = &sk->sk_receive_queue;struct unix_sock *u =unix_sk (sk);struct sk_buff *skb;int err;
@@ -2727,30 +2728,34 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)if (unlikely (READ_ONCE (sk->sk_state) !=TCP_ESTABLISHED ))return -ENOTCONN ; -mutex_lock (&u->iolock); - skb =skb_recv_datagram (sk,MSG_DONTWAIT , &err); -mutex_unlock (&u->iolock); -if (!skb) + err =sock_error (sk); +if (err)return err; -#if IS_ENABLED (CONFIG_AF_UNIX_OOB ) -if (unlikely (skb ==READ_ONCE (u->oob_skb))) { -bool drop = false; +mutex_lock (&u->iolock); +spin_lock (&queue->lock); -spin_lock (&sk->sk_receive_queue.lock); -if (likely (skb == u->oob_skb)) { -WRITE_ONCE (u->oob_skb,NULL ); - drop = true; - } -spin_unlock (&sk->sk_receive_queue.lock); + skb =__skb_dequeue (queue); +if (!skb) { +spin_unlock (&queue->lock); +mutex_unlock (&u->iolock); +return -EAGAIN ; + } -if (drop) { -kfree_skb_reason (skb,SKB_DROP_REASON_UNIX_SKIP_OOB ); -return -EAGAIN ; - } +#if IS_ENABLED (CONFIG_AF_UNIX_OOB ) +if (skb == u->oob_skb) { +WRITE_ONCE (u->oob_skb,NULL ); +spin_unlock (&queue->lock); +mutex_unlock (&u->iolock); + +kfree_skb_reason (skb,SKB_DROP_REASON_UNIX_SKIP_OOB ); +return -EAGAIN ; }#endif +spin_unlock (&queue->lock); +mutex_unlock (&u->iolock); +return recv_actor (sk, skb); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 34/1276 af_unix: Drop all SCM attributes for SOCKMAP.
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 965dc93481d1b80d341bdd16c27b16fe197175ee ]
SOCKMAP can hide inflight fd from AF_UNIX GC.
When a socket in SOCKMAP receives skb with inflight fd, sk_psock_verdict_data_ready() looks up the mapped socket and enqueue skb to its psock->ingress_skb.
Since neither the old nor the new GC can inspect the psock queue, the hidden skb leaks the inflight sockets. Note that this cannot be detected via kmemleak because inflight sockets are linked to a global list.
In addition, SOCKMAP redirect breaks the Tarjan-based GC's assumption that unix_edge.successor is always alive, which is no longer true once skb is redirected, resulting in use-after-free below. [0]
Moreover, SOCKMAP does not call scm_stat_del() properly, so unix_show_fdinfo() could report an incorrect fd count.
sk_msg_recvmsg() does not support any SCM attributes in the first place.
Let's drop all SCM attributes before passing skb to the SOCKMAP layer.
[0]:
BUG: KASAN: slab-use-after-free in unix_del_edges (net/unix/garbage.c:118 net/unix/garbage.c:181 net/unix/garbage.c:251) Read of size 8 at addr ffff888125362670 by task kworker/56:1/496 CPU: 56 UID: 0 PID: 496 Comm: kworker/56:1 Not tainted 7.0.0-rc7-00263-gb9d8b856689d #3 PREEMPT(lazy) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014 Workqueue: events sk_psock_backlog Call Trace: <TASK> dump_stack_lvl (lib/dump_stack.c:122) print_report (mm/kasan/report.c:379) kasan_report (mm/kasan/report.c:597) unix_del_edges (net/unix/garbage.c:118 net/unix/garbage.c:181 net/unix/garbage.c:251) unix_destroy_fpl (net/unix/garbage.c:317) unix_destruct_scm (./include/net/scm.h:80 ./include/net/scm.h:86 net/unix/af_unix.c:1976) sk_psock_backlog (./include/linux/skbuff.h:?) process_scheduled_works (kernel/workqueue.c:?) worker_thread (kernel/workqueue.c:?) kthread (kernel/kthread.c:438) ret_from_fork (arch/x86/kernel/process.c:164) ret_from_fork_asm (arch/x86/entry/entry_64.S:258) </TASK> Allocated by task 955: kasan_save_track (mm/kasan/common.c:58 mm/kasan/common.c:78) __kasan_slab_alloc (mm/kasan/common.c:369) kmem_cache_alloc_noprof (mm/slub.c:4539) sk_prot_alloc (net/core/sock.c:2240) sk_alloc (net/core/sock.c:2301) unix_create1 (net/unix/af_unix.c:1099) unix_create (net/unix/af_unix.c:1169) __sock_create (net/socket.c:1606) __sys_socketpair (net/socket.c:1811) __x64_sys_socketpair (net/socket.c:1863 net/socket.c:1860 net/socket.c:1860) do_syscall_64 (arch/x86/entry/syscall_64.c:?) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Freed by task 496: kasan_save_track (mm/kasan/common.c:58 mm/kasan/common.c:78) kasan_save_free_info (mm/kasan/generic.c:587) __kasan_slab_free (mm/kasan/common.c:287) kmem_cache_free (mm/slub.c:6165) __sk_destruct (net/core/sock.c:2282 net/core/sock.c:2384) sk_psock_destroy (./include/net/sock.h:?) process_scheduled_works (kernel/workqueue.c:?) worker_thread (kernel/workqueue.c:?) kthread (kernel/kthread.c:438) ret_from_fork (arch/x86/kernel/process.c:164) ret_from_fork_asm (arch/x86/entry/entry_64.S:258)
--- net/unix/af_unix.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-)
net/unix/af_unix.c +27 -8
@@ -1884,16 +1884,19 @@ static void unix_peek_fds(struct scm_cookie *scm, struct sk_buff *skb)static void unix_destruct_scm (struct sk_buff *skb) { -struct scm_cookie scm; +struct scm_cookie scm = {}; + +swap (scm.pid,UNIXCB (skb).pid); -memset (&scm,0 ,sizeof (scm)); - scm.pid =UNIXCB (skb).pid;if (UNIXCB (skb).fp)unix_detach_fds (&scm, skb); -/* Alas, it calls VFS */ -/* So fscking what? fput() had been SMP-safe since the last Summer */ scm_destroy (&scm); +} + +static void unix_wfree (struct sk_buff *skb) +{ +unix_destruct_scm (skb);sock_wfree (skb); }
@@ -1909,7 +1912,7 @@ static int unix_scm_to_skb(struct scm_cookie *scm, struct sk_buff *skb, bool senif (scm->fp && send_fds) err =unix_attach_fds (scm, skb); - skb->destructor = unix_destruct_scm; + skb->destructor = unix_wfree;return err; }
@@ -1970,6 +1973,13 @@ static void scm_stat_del(struct sock *sk, struct sk_buff *skb) } } +static void unix_orphan_scm (struct sock *sk,struct sk_buff *skb) +{ +scm_stat_del (sk, skb); +unix_destruct_scm (skb); + skb->destructor = sock_wfree; +} +/* * Send AF_UNIX data. */
@@ -2556,10 +2566,16 @@ static int unix_read_skb(struct sock *sk, skb_read_actor_t recv_actor)int err;mutex_lock (&u->iolock); + skb =skb_recv_datagram (sk,MSG_DONTWAIT , &err); -mutex_unlock (&u->iolock); -if (!skb) +if (!skb) { +mutex_unlock (&u->iolock);return err; + } + +unix_orphan_scm (sk, skb); + +mutex_unlock (&u->iolock);return recv_actor (sk, skb); }
@@ -2754,6 +2770,9 @@ static int unix_stream_read_skb(struct sock *sk, skb_read_actor_t recv_actor)#endif spin_unlock (&queue->lock); + +unix_orphan_scm (sk, skb); +mutex_unlock (&u->iolock);return recv_actor (sk, skb);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 35/1276 crypto: crypto4xx - Remove ahash-related code
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Herbert Xu <[email protected]>
commit 97855e7f1ccf4917f305baab199edb9f2595ff5b upstream.
The hash implementation in crypto4xx has been disabled since 2009. As nobody has tried to fix this remove all the dead code.
--- drivers/crypto/amcc/crypto4xx_alg.c | 106 --------------------------- drivers/crypto/amcc/crypto4xx_core.c | 43 +---------- drivers/crypto/amcc/crypto4xx_core.h | 7 -- 3 files changed, 1 insertion(+), 155 deletions(-)
drivers/crypto/amcc/crypto4xx_alg.c +0 -106
@@ -12,9 +12,6 @@#include <linux/interrupt.h> #include <linux/spinlock_types.h> #include <linux/scatterlist.h> -#include <linux/crypto.h> -#include <linux/hash.h> -#include <crypto/internal/hash.h> #include <linux/dma-mapping.h> #include <crypto/algapi.h> #include <crypto/aead.h>
@@ -602,106 +599,3 @@ int crypto4xx_decrypt_aes_gcm(struct aead_request *req) {return crypto4xx_crypt_aes_gcm (req, true); } - -/* -* HASH SHA1 Functions -*/ -static int crypto4xx_hash_alg_init (struct crypto_tfm *tfm, -unsigned int sa_len, -unsigned char ha, -unsigned char hm) -{ -struct crypto_alg *alg = tfm->__crt_alg; -struct crypto4xx_alg *my_alg; -struct crypto4xx_ctx *ctx =crypto_tfm_ctx (tfm); -struct dynamic_sa_hash160 *sa; -int rc; - - my_alg = container_of(__crypto_ahash_alg(alg), struct crypto4xx_alg, - alg.u.hash); - ctx->dev = my_alg->dev; - -/* Create SA */ -if (ctx->sa_in || ctx->sa_out) -crypto4xx_free_sa (ctx); - - rc =crypto4xx_alloc_sa (ctx, sa_len); -if (rc) -return rc; - -crypto_ahash_set_reqsize (__crypto_ahash_cast (tfm), -sizeof (struct crypto4xx_ctx )); - sa = (struct dynamic_sa_hash160 *)ctx->sa_in; -set_dynamic_sa_command_0 (&sa->ctrl,SA_SAVE_HASH ,SA_NOT_SAVE_IV , -SA_NOT_LOAD_HASH ,SA_LOAD_IV_FROM_SA , -SA_NO_HEADER_PROC , ha,SA_CIPHER_ALG_NULL , -SA_PAD_TYPE_ZERO ,SA_OP_GROUP_BASIC , -SA_OPCODE_HASH ,DIR_INBOUND ); -set_dynamic_sa_command_1 (&sa->ctrl,0 ,SA_HASH_MODE_HASH , -CRYPTO_FEEDBACK_MODE_NO_FB ,SA_EXTENDED_SN_OFF , -SA_SEQ_MASK_OFF ,SA_MC_ENABLE , -SA_NOT_COPY_PAD ,SA_NOT_COPY_PAYLOAD , -SA_NOT_COPY_HDR ); -/* Need to zero hash digest in SA */ -memset (sa->inner_digest,0 ,sizeof (sa->inner_digest)); -memset (sa->outer_digest,0 ,sizeof (sa->outer_digest)); - -return 0 ; -} - -int crypto4xx_hash_init (struct ahash_request *req) -{ -struct crypto4xx_ctx *ctx =crypto_tfm_ctx (req->base.tfm); -int ds; -struct dynamic_sa_ctl *sa; - - sa = ctx->sa_in; - ds =crypto_ahash_digestsize ( -__crypto_ahash_cast (req->base.tfm)); - sa->sa_command_0.bf.digest_len = ds >>2 ; - sa->sa_command_0.bf.load_hash_state =SA_LOAD_HASH_FROM_SA ; - -return 0 ; -} - -int crypto4xx_hash_update (struct ahash_request *req) -{ -struct crypto_ahash *ahash =crypto_ahash_reqtfm (req); -struct crypto4xx_ctx *ctx =crypto_tfm_ctx (req->base.tfm); -struct scatterlist dst; -unsigned int ds =crypto_ahash_digestsize (ahash); - -sg_init_one (&dst, req->result, ds); - -return crypto4xx_build_pd (&req->base, ctx, req->src, &dst, - req->nbytes,NULL ,0 , ctx->sa_in, - ctx->sa_len,0 ,NULL ); -} - -int crypto4xx_hash_final (struct ahash_request *req) -{ -return 0 ; -} - -int crypto4xx_hash_digest (struct ahash_request *req) -{ -struct crypto_ahash *ahash =crypto_ahash_reqtfm (req); -struct crypto4xx_ctx *ctx =crypto_tfm_ctx (req->base.tfm); -struct scatterlist dst; -unsigned int ds =crypto_ahash_digestsize (ahash); - -sg_init_one (&dst, req->result, ds); - -return crypto4xx_build_pd (&req->base, ctx, req->src, &dst, - req->nbytes,NULL ,0 , ctx->sa_in, - ctx->sa_len,0 ,NULL ); -} - -/* -* SHA1 Algorithm -*/ -int crypto4xx_sha1_alg_init (struct crypto_tfm *tfm) -{ -return crypto4xx_hash_alg_init (tfm,SA_HASH160_LEN ,SA_HASH_ALG_SHA1 , -SA_HASH_MODE_HASH ); -}
drivers/crypto/amcc/crypto4xx_core.c +1 -42
79 lines not on this page · raw message
drivers/crypto/amcc/crypto4xx_core.h +0 -7
@@ -16,7 +16,6 @@#include <linux/ratelimit.h> #include <linux/mutex.h> #include <linux/scatterlist.h> -#include <crypto/internal/hash.h> #include <crypto/internal/aead.h> #include <crypto/internal/rng.h> #include <crypto/internal/skcipher.h>
@@ -135,7 +134,6 @@ struct crypto4xx_alg_common {u32 type;union {struct skcipher_alg cipher; -struct ahash_alg hash;struct aead_alg aead;struct rng_alg rng; } u;
@@ -177,11 +175,6 @@ int crypto4xx_encrypt_noiv_block(struct skcipher_request *req);int crypto4xx_decrypt_noiv_block (struct skcipher_request *req);int crypto4xx_rfc3686_encrypt (struct skcipher_request *req);int crypto4xx_rfc3686_decrypt (struct skcipher_request *req); -int crypto4xx_sha1_alg_init (struct crypto_tfm *tfm); -int crypto4xx_hash_digest (struct ahash_request *req); -int crypto4xx_hash_final (struct ahash_request *req); -int crypto4xx_hash_update (struct ahash_request *req); -int crypto4xx_hash_init (struct ahash_request *req);/* * Note: Only use this function to copy items that is word aligned.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 36/1276 crypto: crypto4xx - Remove insecure and unused rng_alg
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Biggers <[email protected]>
commit 7811ec9e973d2c9e465083699f0c8240b98cb8c4 upstream.
Remove crypto4xx_rng, as it is insecure and unused:
- It has only a 64-bit security strength, which is highly inadequate. This can be seen by the fact that crypto4xx_hw_init() seeds it with only 64 bits of entropy, and the fact that the original commit mentions that it implements ANSI X9.17 Annex C.
Another issue was that this driver didn't implement the crypto_rng API correctly, as crypto4xx_prng_generate() didn't return 0 on success.
- No user of this code is known. It's usable only theoretically via the "rng" algorithm type of AF_ALG. But userspace actually just uses the actual Linux RNG (/dev/random etc) instead. And rng_algs don't contribute entropy to the actual Linux RNG either. (This may have been confused with hwrng, which does contribute entropy.)
--- drivers/crypto/amcc/crypto4xx_core.c | 87 ------------------------- drivers/crypto/amcc/crypto4xx_core.h | 4 -- drivers/crypto/amcc/crypto4xx_reg_def.h | 11 ---- 3 files changed, 102 deletions(-)
drivers/crypto/amcc/crypto4xx_core.c +0 -87
@@ -31,11 +31,9 @@#include <crypto/ctr.h> #include <crypto/gcm.h> #include <crypto/sha1.h> -#include <crypto/rng.h> #include <crypto/scatterwalk.h> #include <crypto/skcipher.h> #include <crypto/internal/aead.h> -#include <crypto/internal/rng.h> #include <crypto/internal/skcipher.h> #include "crypto4xx_reg_def.h" #include "crypto4xx_core.h"
@@ -989,10 +987,6 @@ static int crypto4xx_register_alg(struct crypto4xx_device *sec_dev, rc =crypto_register_aead (&alg->alg.u.aead);break ; -case CRYPTO_ALG_TYPE_RNG : - rc =crypto_register_rng (&alg->alg.u.rng); -break ; -default : rc =crypto_register_skcipher (&alg->alg.u.cipher);break ;
@@ -1018,10 +1012,6 @@ static void crypto4xx_unregister_alg(struct crypto4xx_device *sec_dev)crypto_unregister_aead (&alg->alg.u.aead);break ; -case CRYPTO_ALG_TYPE_RNG : -crypto_unregister_rng (&alg->alg.u.rng); -break ; -default :crypto_unregister_skcipher (&alg->alg.u.cipher); }
@@ -1080,69 +1070,6 @@ static irqreturn_t crypto4xx_ce_interrupt_handler_revb(int irq, void *data) PPC4XX_TMO_ERR_INT); } -static int ppc4xx_prng_data_read (struct crypto4xx_device *dev, -u8 *data,unsigned int max) -{ -unsigned int i, curr =0 ; -u32 val[2 ]; - -do { -/* trigger PRN generation */ -writel (PPC4XX_PRNG_CTRL_AUTO_EN , - dev->ce_base +CRYPTO4XX_PRNG_CTRL ); - -for (i =0 ; i <1024 ; i++) { -/* usually 19 iterations are enough */ -if ((readl (dev->ce_base +CRYPTO4XX_PRNG_STAT ) & -CRYPTO4XX_PRNG_STAT_BUSY )) -continue ; - - val[0 ] =readl_be (dev->ce_base +CRYPTO4XX_PRNG_RES_0 ); - val[1 ] =readl_be (dev->ce_base +CRYPTO4XX_PRNG_RES_1 ); -break ; - } -if (i ==1024 ) -return -ETIMEDOUT ; - -if ((max - curr) >=8 ) { -memcpy (data, &val,8 ); - data +=8 ; - curr +=8 ; - }else { -/* copy only remaining bytes */ -memcpy (data, &val, max - curr); -break ; - } - }while (curr < max); - -return curr; -} - -static int crypto4xx_prng_generate (struct crypto_rng *tfm, -const u8 *src,unsigned int slen, -u8 *dstn,unsigned int dlen) -{ -struct rng_alg *alg =crypto_rng_alg (tfm); -struct crypto4xx_alg *amcc_alg; -struct crypto4xx_device *dev; -int ret; - - amcc_alg = container_of(alg, struct crypto4xx_alg, alg.u.rng); - dev = amcc_alg->dev; - -mutex_lock (&dev->core_dev->rng_lock); - ret =ppc4xx_prng_data_read (dev, dstn, dlen); -mutex_unlock (&dev->core_dev->rng_lock); -return ret; -} - - -static int crypto4xx_prng_seed (struct crypto_rng *tfm,const u8 *seed, -unsigned int slen) -{ -return 0 ; -} -/* * Supported Crypto Algorithms */
@@ -1272,18 +1199,6 @@ static struct crypto4xx_alg_common crypto4xx_alg[] = { .cra_module = THIS_MODULE, }, } }, - { .type = CRYPTO_ALG_TYPE_RNG, .u.rng = { - .base = { - .cra_name = "stdrng", - .cra_driver_name = "crypto4xx_rng", - .cra_priority = 300, - .cra_ctxsize = 0, - .cra_module = THIS_MODULE, - }, - .generate = crypto4xx_prng_generate, - .seed = crypto4xx_prng_seed, - .seedsize = 0, - } }, };/*
@@ -1361,7 +1276,6 @@ static int crypto4xx_probe(struct platform_device *ofdev) core_dev->dev->core_dev = core_dev; core_dev->dev->is_revb = is_revb; core_dev->device = dev; -mutex_init (&core_dev->rng_lock);spin_lock_init (&core_dev->lock);INIT_LIST_HEAD (&core_dev->dev->alg_list);ratelimit_default_init (&core_dev->dev->aead_ratelimit);
@@ -1439,7 +1353,6 @@ static void crypto4xx_remove(struct platform_device *ofdev)tasklet_kill (&core_dev->tasklet);/* Un-register with Linux CryptoAPI */ crypto4xx_unregister_alg (core_dev->dev); -mutex_destroy (&core_dev->rng_lock);/* Free all allocated memory */ crypto4xx_stop_all (core_dev); }
drivers/crypto/amcc/crypto4xx_core.h +0 -4
@@ -14,10 +14,8 @@#define __CRYPTO4XX_CORE_H__#include <linux/ratelimit.h> -#include <linux/mutex.h> #include <linux/scatterlist.h> #include <crypto/internal/aead.h> -#include <crypto/internal/rng.h> #include <crypto/internal/skcipher.h> #include "crypto4xx_reg_def.h" #include "crypto4xx_sa.h"
@@ -111,7 +109,6 @@ struct crypto4xx_core_device {u32 irq;struct tasklet_struct tasklet;spinlock_t lock; -struct mutex rng_lock; };struct crypto4xx_ctx {
@@ -135,7 +132,6 @@ struct crypto4xx_alg_common {union {struct skcipher_alg cipher;struct aead_alg aead; -struct rng_alg rng; } u; };
drivers/crypto/amcc/crypto4xx_reg_def.h +0 -11
@@ -90,20 +90,9 @@#define CRYPTO4XX_BYTE_ORDER_CFG 0x000600d8#define CRYPTO4XX_ENDIAN_CFG 0x000600d8 -#define CRYPTO4XX_PRNG_STAT 0x00070000 -#define CRYPTO4XX_PRNG_STAT_BUSY 0x1#define CRYPTO4XX_PRNG_CTRL 0x00070004#define CRYPTO4XX_PRNG_SEED_L 0x00070008#define CRYPTO4XX_PRNG_SEED_H 0x0007000c - -#define CRYPTO4XX_PRNG_RES_0 0x00070020 -#define CRYPTO4XX_PRNG_RES_1 0x00070024 -#define CRYPTO4XX_PRNG_RES_2 0x00070028 -#define CRYPTO4XX_PRNG_RES_3 0x0007002C - -#define CRYPTO4XX_PRNG_LFSR_L 0x00070030 -#define CRYPTO4XX_PRNG_LFSR_H 0x00070034 -/* * Initialize CRYPTO ENGINE registers, and memory bases. */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 37/1276 crypto: hisi-trng - Remove crypto_rng interface
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Biggers <[email protected]>
commit 216a7795ec210bdabd5dad42323eee70bbfc8d90 upstream.
drivers/crypto/hisilicon/trng/trng.c exposes the same hardware through two completely separate interfaces, crypto_rng and hwrng. However, the implementation of this is buggy because it permits generation operations from these interfaces to run concurrently with each other, accessing the same registers. That is, hisi_trng_generate() synchronizes with itself but not with hisi_trng_read(). This results in potential repetition of output from the RNG, output of non-random values, etc.
Fortunately, there's actually no point in hardware RNG drivers implementing the crypto_rng interface. It's not actually used by anything besides the "rng" algorithm type of AF_ALG, which in turn is not actually used in practice. Other crypto_rng hardware drivers are likewise being phased out, leaving just the hwrng support.
Thus, remove it to simplify the code and avoid conflict (and confusion) with the hwrng interface which is the one that actually matters.
--- drivers/crypto/hisilicon/Kconfig | 1 - drivers/crypto/hisilicon/trng/trng.c | 296 +-------------------------- 2 files changed, 2 insertions(+), 295 deletions(-)
drivers/crypto/hisilicon/Kconfig +0 -1
@@ -79,6 +79,5 @@ config CRYPTO_DEV_HISI_TRNG tristate "Support for HISI TRNG Driver" depends on ARM64 && ACPI select HW_RANDOM - select CRYPTO_RNG help Support for HiSilicon TRNG Driver.
drivers/crypto/hisilicon/trng/trng.c +2 -294
353 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 38/1276 time/jiffies: Register jiffies clocksource before usage
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Gleixner <[email protected]>
[ Upstream commit f24df84cbe05e4471c04ac4b921fc0340bbc7752 ]
Teddy reported that a XEN HVM has a long boot delay, which was bisected to the recent enhancements to the negative motion detection. It turned out that the jiffies clocksource is used in early boot before it is registered, which leaves the max_delta_raw field at zero. That causes the read out to be clamped to the max delta of 0, which means time is not making progress.
Cure it by ensuring that it is initialized before its first usage in timekeeping_init().
--- kernel/time/jiffies.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
kernel/time/jiffies.c +5 -6
@@ -61,15 +61,14 @@ EXPORT_SYMBOL(get_jiffies_64);EXPORT_SYMBOL (jiffies); -static int __init init_jiffies_clocksource (void ) -{ -return __clocksource_register (&clocksource_jiffies); -} - -core_initcall (init_jiffies_clocksource); +static bool cs_jiffies_registered__initdata ;struct clocksource *__init __weak clocksource_default_clock (void ) { +if (!cs_jiffies_registered) { +__clocksource_register (&clocksource_jiffies); + cs_jiffies_registered = true; + }return &clocksource_jiffies; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 39/1276 time/jiffies: Change register_refined_jiffies() to void __init
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Su Hui <[email protected]>
[ Upstream commit 007c07168ac0c64387be500f6604b09ace3f3bdc ]
register_refined_jiffies() is only used in setup code and always returns 0. Mark it as __init to save some bytes and change it to void.
--- include/linux/jiffies.h | 2 +- kernel/time/jiffies.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-)
include/linux/jiffies.h +1 -1
@@ -59,7 +59,7 @@/* LATCH is used in the interval timer and ftape setup. */ #define LATCH ((CLOCK_TICK_RATE + HZ/2) / HZ)/* For divider */ -extern int register_refined_jiffies (long clock_tick_rate); +extern void register_refined_jiffies (long clock_tick_rate);/* TICK_USEC is the time between ticks in usec assuming SHIFTED_HZ */ #define TICK_USEC ((USEC_PER_SEC + HZ/2) / HZ)
kernel/time/jiffies.c +1 -4
@@ -74,13 +74,11 @@ struct clocksource * __init __weak clocksource_default_clock(void)static struct clocksource refined_jiffies; -int register_refined_jiffies (long cycles_per_second) +void __init register_refined_jiffies (long cycles_per_second) {u64 nsec_per_tick, shift_hz;long cycles_per_tick; - - refined_jiffies = clocksource_jiffies; refined_jiffies.name ="refined-jiffies" ; refined_jiffies.rating++;
@@ -99,5 +97,4 @@ int register_refined_jiffies(long cycles_per_second) refined_jiffies.mult = ((u32 )nsec_per_tick) <<JIFFIES_SHIFT ;__clocksource_register (&refined_jiffies); -return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 40/1276 media: uvcvideo: Use hw timestaming if the clock buffer is full
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit ede7de6e6b3db552d10ac50557d69c50d1b08486 upstream.
In some situations, even with a full clock buffer, it does not contain 250msec of data. This results in the driver jumping back from software to hardware timestapsing creating a nasty artifact in the video.
If the clock buffer is full, use it to calculate the timestamp instead of defaulting to software stamps, the reduced accuracy is less visible than jumping from one timestamping mechanism to the other.
--- drivers/media/usb/uvc/uvc_video.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/media/usb/uvc/uvc_video.c +12 -5
@@ -829,15 +829,22 @@ void uvc_video_clock_update(struct uvc_s y2 +=2048 <<16 ;/* -* Have at least 1/4 of a second of timestamps before we -* try to do any calculation. Otherwise we do not have enough -* precision. This value was determined by running Android CTS -* on different devices. +* If the buffer is not full, we want to gather at least 1/4th of +* timestamps before using HW timestamping. We do this to avoid jitter +* on the initial frames. +* +* If the buffer is full we would use it regardless of how much data +* it represents. This could be solved with an infinite big circular +* buffer, but RAM is expensive these days, specially the infinitely +* big. +* +* The value of 1/4th of a second was determined by running Android's +* CTS on different devices. * * dev_sof runs at 1KHz, and we have a fixed point precision of * 16 bits. */ -if ((y2 - y1) < ((1000 /4 ) <<16 )) +if (clock->size != clock->count && (y2 - y1) < ((1000 /4 ) <<16 )) goto done; y = (u64)(y2 - y1) * (1ULL <<31 ) + (u64 )y1 * (u64 )x2
Greg Kroah-Hartman
maintainerPATCH 41/1276 media: uvcvideo: Avoid partial metadata buffers
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit a15b773fe4ffa450b56347cc506b2d1405600f5d upstream.
If the metadata queue that is empty receives a new buffer while we are in the middle of processing a frame, the first metadata buffer will contain partial information.
Avoid this by tracking the state of the metadata buffer and making sure that it is in sync with the data buffer.
Now that we are at it, make sure that we skip buffers of size 1 or 0. They are not allowed by the spec... but it is a simple check to add and better be safe than sorry.
--- drivers/media/usb/uvc/uvc_video.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
drivers/media/usb/uvc/uvc_video.c +9 -4
@@ -1152,7 +1152,9 @@ static void uvc_video_stats_stop(struct* uvc_video_decode_end will never be called with a NULL buffer. */ static int uvc_video_decode_start (struct uvc_streaming *stream, -struct uvc_buffer *buf,const u8 *data,int len) +struct uvc_buffer *buf, +struct uvc_buffer *meta_buf, +const u8 *data,int len) {u8 header_len;u8 fid;
@@ -1225,6 +1227,8 @@ static int uvc_video_decode_start(struct/* TODO: Handle PTS and SCR. */ buf->state =UVC_BUF_STATE_ACTIVE ; +if (meta_buf) + meta_buf->state =UVC_BUF_STATE_ACTIVE ; }/*
@@ -1441,7 +1445,7 @@ static void uvc_video_decode_meta(structktime_t time;const u8 *scr; -if (!meta_buf || length ==2 ) +if (length <=2 || !meta_buf || meta_buf->state !=UVC_BUF_STATE_ACTIVE )return ; has_pts = mem[1 ] &UVC_STREAM_PTS ;
@@ -1558,7 +1562,7 @@ static void uvc_video_decode_isoc(struct/* Decode the payload header. */ mem = urb->transfer_buffer + urb->iso_frame_desc[i].offset; do { - ret = uvc_video_decode_start(stream, buf, mem, + ret = uvc_video_decode_start(stream, buf, meta_buf, mem, urb->iso_frame_desc[i].actual_length); if (ret == -EAGAIN) uvc_video_next_buffers(stream, &buf, &meta_buf);
@@ -1607,7 +1611,8 @@ static void uvc_video_decode_bulk(struct*/ if (stream->bulk.header_size ==0 && !stream->bulk.skip_payload) {do { - ret =uvc_video_decode_start (stream, buf, mem, len); + ret =uvc_video_decode_start (stream, buf, meta_buf, mem, + len);if (ret == -EAGAIN )uvc_video_next_buffers (stream, &buf, &meta_buf); }while (ret == -EAGAIN );
Greg Kroah-Hartman
maintainerPATCH 42/1276 media: uvcvideo: Fix buffer sequence in frame gaps
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit 2f24ac8dd87983a55f0498898f34a5f2b735b802 upstream.
In UVC, the FID flips with every frame. For every FID flip, we increase the stream sequence number.
Now, if a FID flips multiple times and there is no data transferred between the flips, the buffer sequence number will be set to the value of the stream sequence number after the first flip.
Userspace uses the buffer sequence number to determine if there have been missing frames. With the current behaviour, userspace will think that the gap is in the wrong location.
This patch modifies uvc_video_decode_start() to provide the correct buffer sequence number and timestamp.
--- drivers/media/usb/uvc/uvc_video.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
drivers/media/usb/uvc/uvc_video.c +13 -4
@@ -1181,6 +1181,19 @@ static int uvc_video_decode_start(struct stream->sequence++;if (stream->sequence)uvc_video_stats_update (stream); + +/* +* On a FID flip initialize sequence number and timestamp. +* +* The driver already takes care of injecting FID flips for +* UVC_QUIRK_STREAM_NO_FID and UVC_QUIRK_MJPEG_NO_EOF. +*/ +if (buf) { + buf->buf.field =V4L2_FIELD_NONE ; + buf->buf.sequence = stream->sequence; + buf->buf.vb2_buf.timestamp = +ktime_to_ns (uvc_video_get_time ()); + } }uvc_video_clock_decode (stream, buf, data, len);
@@ -1221,10 +1234,6 @@ static int uvc_video_decode_start(structreturn -ENODATA ; } - buf->buf.field =V4L2_FIELD_NONE ; - buf->buf.sequence = stream->sequence; - buf->buf.vb2_buf.timestamp =ktime_to_ns (uvc_video_get_time ()); -/* TODO: Handle PTS and SCR. */ buf->state =UVC_BUF_STATE_ACTIVE ;if (meta_buf)
Greg Kroah-Hartman
maintainerPATCH 43/1276 media: uvcvideo: Fix dev_sof filtering in hw timestamp
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit edc1917599c5339aedc83135cade66517e0a2972 upstream.
To avoid filling the clock circular buffer with duplicated data we only add it if the new value sof is different than the last added sof.
The issue is that we compare the unprocess sof with the processed sof. If there is a sof_offset, or UVC_QUIRK_INVALID_DEVICE_SOF is enabled, the comparison will not work as expected.
This patch moves the comparison to the right place.
--- drivers/media/usb/uvc/uvc_video.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
drivers/media/usb/uvc/uvc_video.c +10 -9
@@ -578,16 +578,7 @@ uvc_video_clock_decode(struct uvc_streamif (!has_scr)return ; -/* -* To limit the amount of data, drop SCRs with an SOF identical to the -* previous one. This filtering is also needed to support UVC 1.5, where -* all the data packets of the same frame contains the same SOF. In that -* case only the first one will match the host_sof. -*/ sample.dev_sof =get_unaligned_le16 (&data[header_size -2 ]); -if (sample.dev_sof == stream->clock.last_sof) -return ; - sample.dev_stc =get_unaligned_le32 (&data[header_size -6 ]);/*
@@ -659,6 +650,16 @@ uvc_video_clock_decode(struct uvc_stream } sample.dev_sof = (sample.dev_sof + stream->clock.sof_offset) &2047 ; + +/* +* To limit the amount of data, drop SCRs with an SOF identical to the +* previous one. This filtering is also needed to support UVC 1.5, where +* all the data packets of the same frame contains the same SOF. In that +* case only the first one will match the host_sof. +*/ +if (sample.dev_sof == stream->clock.last_sof) +return ; +uvc_video_clock_add_sample (&stream->clock, &sample); stream->clock.last_sof = sample.dev_sof; }
Greg Kroah-Hartman
maintainerPATCH 44/1276 media: uvcvideo: Do not add clock samples with small sof delta
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit ba649fff36c1fe68489a86d00285224907edd436 upstream.
Some UVC 1.1 cameras running in fast isochronous mode tend to spam the USB host with a lot of empty packets. These packets contain clock information and are added to the clock buffer but do not add any accuracy to the calculation. In fact, it is quite the opposite, in our calculations, only the first and the last timestamp is used, and we only have 32 slots.
Ignore the samples that will produce less than MIN_HW_TIMESTAMP_DIFF data.
--- drivers/media/usb/uvc/uvc_video.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
drivers/media/usb/uvc/uvc_video.c +12 -2
@@ -532,6 +532,15 @@ static void uvc_video_clock_add_sample(sspin_unlock_irqrestore (&clock->lock, flags); } +static inline u16 sof_diff (u16 a,u16 b) +{ +/* +* Because the result is modulo 2048 (via & 2047), we do not need a +* special case for a < b. +*/ +return (a - b) &2047 ; +} +static void uvc_video_clock_decode (struct uvc_streaming *stream,struct uvc_buffer *buf,const u8 *data,int len)
@@ -652,12 +661,13 @@ uvc_video_clock_decode(struct uvc_stream sample.dev_sof = (sample.dev_sof + stream->clock.sof_offset) &2047 ;/* -* To limit the amount of data, drop SCRs with an SOF identical to the +* To limit the amount of data, drop SCRs with an SOF similar to the * previous one. This filtering is also needed to support UVC 1.5, where * all the data packets of the same frame contains the same SOF. In that * case only the first one will match the host_sof. */ -if (sample.dev_sof == stream->clock.last_sof) +if (sof_diff (sample.dev_sof, stream->clock.last_sof) <= + (UVC_MIN_HW_TIMESTAMP_DIFF / stream->clock.size))return ;uvc_video_clock_add_sample (&stream->clock, &sample);
Greg Kroah-Hartman
maintainerPATCH 45/1276 media: uvcvideo: Relax the constrains for interpolating the hw clock
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit 1719d78f832dda8dd3f09a867ba74e05d6f11308 upstream.
In the initial version we set the min value to 250msec. Looks like 100msec can also provide a good value.
Now that we are at it, add a macro to make it cleaner.
--- drivers/media/usb/uvc/uvc_video.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-)
drivers/media/usb/uvc/uvc_video.c +12 -5
@@ -489,6 +489,13 @@ static int uvc_commit_video(struct uvc_s* Clocks and timestamps */ +/* +* The accuracy of the hardware timestamping depends on having enough data to +* interpolate between the different clock domains. This value is sof cycles, +* this is, milliseconds. +*/ +#define UVC_MIN_HW_TIMESTAMP_DIFF 100 +static inline ktime_t uvc_video_get_time (void ) {if (uvc_clock_param ==CLOCK_MONOTONIC )
@@ -849,13 +856,13 @@ void uvc_video_clock_update(struct uvc_s* buffer, but RAM is expensive these days, specially the infinitely * big. * -* The value of 1/4th of a second was determined by running Android's -* CTS on different devices. +* The value of UVC_MIN_HW_TIMESTAMP_DIFF was determined by running +* Android's CTS on different devices. * -* dev_sof runs at 1KHz, and we have a fixed point precision of -* 16 bits. +* y1 and y2 are dev_sof with a fixed point precision of 16 bits. */ -if (clock->size != clock->count && (y2 - y1) < ((1000 /4 ) <<16 )) +if (clock->size != clock->count && + (y2 - y1) < (UVC_MIN_HW_TIMESTAMP_DIFF <<16 )) goto done; y = (u64)(y2 - y1) * (1ULL <<31 ) + (u64 )y1 * (u64 )x2
Greg Kroah-Hartman
maintainerPATCH 46/1276 media: uvcvideo: Fix sequence number when no EOF
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ricardo Ribalda <[email protected]>
commit f078966ca1fb1b3865d8e6bbe2705cfd277fc637 upstream.
If the driver could not detect the EOF, the sequence number is increased twice:
1) When we enter uvc_video_decode_start() with the old buffer and FID has flipped => We return -EAGAIN and last_fid is not flipped
2) When we enter uvc_video_decode_start() with the new buffer.
Fix this issue by moving the new frame detection logic earlier in uvc_video_decode_start().
This also has some nice side affects:
- The error status from the new packet will no longer get propagated to the previous frame-buffer.
- uvc_video_clock_decode() will no longer update the previous frame buf->stf with info from the new packet.
- uvc_video_clock_decode() and uvc_video_stats_decode() will no longer get called twice for the same packet.
--- drivers/media/usb/uvc/uvc_video.c | 92 +++++++++++++++++++------------------- 1 file changed, 47 insertions(+), 45 deletions(-)
drivers/media/usb/uvc/uvc_video.c +47 -45
@@ -1192,6 +1192,53 @@ static int uvc_video_decode_start(struct fid = data[1 ] &UVC_STREAM_FID ;/* +* Mark the buffer as done if we're at the beginning of a new frame. +* End of frame detection is better implemented by checking the EOF +* bit (FID bit toggling is delayed by one frame compared to the EOF +* bit), but some devices don't set the bit at end of frame (and the +* last payload can be lost anyway). We thus must check if the FID has +* been toggled. +* +* stream->last_fid is initialized to -1, and buf->bytesused to 0, +* so the first isochronous frame will never trigger an end of frame +* detection. +* +* Empty buffers (bytesused == 0) don't trigger end of frame detection +* as it doesn't make sense to return an empty buffer. This also +* avoids detecting end of frame conditions at FID toggling if the +* previous payload had the EOF bit set. +*/ +if (fid != stream->last_fid && buf && buf->bytesused !=0 ) { +uvc_dbg (stream->dev,FRAME , +"Frame complete (FID bit toggled)\n" ); + buf->state =UVC_BUF_STATE_READY ; + +return -EAGAIN ; + } + +/* +* Some cameras, when running two parallel streams (one MJPEG alongside +* another non-MJPEG stream), are known to lose the EOF packet for a frame. +* We can detect the end of a frame by checking for a new SOI marker, as +* the SOI always lies on the packet boundary between two frames for +* these devices. +*/ +if (stream->dev->quirks &UVC_QUIRK_MJPEG_NO_EOF && + (stream->cur_format->fcc ==V4L2_PIX_FMT_MJPEG || + stream->cur_format->fcc ==V4L2_PIX_FMT_JPEG ) && + buf && buf->bytesused !=0 ) { +const u8 *packet = data + header_len; + +if (len >= header_len +2 && + packet[0 ] ==0xff && packet[1 ] ==JPEG_MARKER_SOI ) { + buf->state =UVC_BUF_STATE_READY ; + buf->error =1 ; + stream->last_fid ^=UVC_STREAM_FID ; +return -EAGAIN ; + } + } + +/* * Increase the sequence number regardless of any buffer states, so * that discontinuous sequence numbers always indicate lost frames. */
@@ -1258,51 +1305,6 @@ static int uvc_video_decode_start(struct meta_buf->state =UVC_BUF_STATE_ACTIVE ; } -/* -* Mark the buffer as done if we're at the beginning of a new frame. -* End of frame detection is better implemented by checking the EOF -* bit (FID bit toggling is delayed by one frame compared to the EOF -* bit), but some devices don't set the bit at end of frame (and the -* last payload can be lost anyway). We thus must check if the FID has -* been toggled. -* -* stream->last_fid is initialized to -1, so the first isochronous -* frame will never trigger an end of frame detection. -* -* Empty buffers (bytesused == 0) don't trigger end of frame detection -* as it doesn't make sense to return an empty buffer. This also -* avoids detecting end of frame conditions at FID toggling if the -* previous payload had the EOF bit set. -*/ -if (fid != stream->last_fid && buf->bytesused !=0 ) { -uvc_dbg (stream->dev,FRAME , -"Frame complete (FID bit toggled)\n" ); - buf->state =UVC_BUF_STATE_READY ; -return -EAGAIN ; - } - -/* -* Some cameras, when running two parallel streams (one MJPEG alongside -* another non-MJPEG stream), are known to lose the EOF packet for a frame. -* We can detect the end of a frame by checking for a new SOI marker, as -* the SOI always lies on the packet boundary between two frames for -* these devices. -*/ -if (stream->dev->quirks &UVC_QUIRK_MJPEG_NO_EOF && - (stream->cur_format->fcc ==V4L2_PIX_FMT_MJPEG || - stream->cur_format->fcc ==V4L2_PIX_FMT_JPEG )) { -const u8 *packet = data + header_len; - -if (len >= header_len +2 && - packet[0 ] ==0xff && packet[1 ] ==JPEG_MARKER_SOI && - buf->bytesused !=0 ) { - buf->state =UVC_BUF_STATE_READY ; - buf->error =1 ; - stream->last_fid ^=UVC_STREAM_FID ; -return -EAGAIN ; - } - } - stream->last_fid = fid;return header_len;
Greg Kroah-Hartman
maintainerPATCH 47/1276 dt-bindings: media: sun4i-a10-video-engine: Add interconnect properties
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chen-Yu Tsai <[email protected]>
commit 018f2dc3a42098d3b04edd1480adc51d268adb14 upstream.
The Allwinner video engine sits behind the MBUS that is represented as an interconnect.
Make sure that the interconnect properties are valid in the binding.
--- Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml +10 -0
@@ -63,6 +63,16 @@ properties: CMA pool to use for buffers allocation instead of the default CMA pool. + # FIXME: This should be made required eventually once every SoC will + # have the MBUS declared. + interconnects: + maxItems: 1 + + # FIXME: This should be made required eventually once every SoC will + # have the MBUS declared. + interconnect-names: + const: dma-mem + required: - compatible - reg
Greg Kroah-Hartman
maintainerPATCH 48/1276 dt-bindings: power: imx93: Add MIPI PHY power domain
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guoniu Zhou <[email protected]>
commit 6aa38ef0eab32df5409b72d62509de6ba09cea50 upstream.
Add MIPI PHY power domain for shared PHY resources used by both MIPI DSI and CSI blocks.
--- include/dt-bindings/power/fsl,imx93-power.h | 1 + 1 file changed, 1 insertion(+)
include/dt-bindings/power/fsl,imx93-power.h +1 -0
@@ -11,5 +11,6 @@#define IMX93_MEDIABLK_PD_PXP 2#define IMX93_MEDIABLK_PD_LCDIF 3#define IMX93_MEDIABLK_PD_ISI 4 +#define IMX93_MEDIABLK_PD_MIPI_PHY 5#endif
Greg Kroah-Hartman
maintainerPATCH 49/1276 serial: msm: Disable DMA for kernel console UART
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stephan Gerhold <[email protected]>
commit 22dd2777e6c180e1c945b00f6d18550979436324 upstream.
At the moment, concurrent writes from userspace and the kernel to the console can trigger a race condition that results in an infinite loop of the same messages printed over and over again. This is most likely to happen during system startup or shutdown when the init system starts/stops a large number of system services that interact with various kernel code.
When userspace writes to the TTY device, the driver initiates an asynchronous DMA transfer and releases the port lock. At the same moment, the kernel printk path might grab the port lock and re-configure the UART controller for PIO, without waiting for the DMA operation to complete. It seems like this collision results in zero progress being reported for the DMA engine, so the same text is printed to the console over and over again.
For the kernel console, we want a reliable output path that will be functional even during crashes etc. So rather than implementing complex code to synchronize the kernel console write routines with the userspace DMA write routines, simply disable DMA for the console UART instance.
Similar checks exist in many other serial drivers, e.g. 8250_port.c, imx.c, sh-sci.c etc.
--- drivers/tty/serial/msm_serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/msm_serial.c +2 -1
@@ -1228,7 +1228,8 @@ static int msm_startup(struct uart_port data |=MSM_UART_MR1_AUTO_RFR_LEVEL0 & rfr_level;msm_write (port, data,MSM_UART_MR1 ); -if (msm_port->is_uartdm) { +/* Disable DMA for console to prevent PIO/DMA collisions */ +if (msm_port->is_uartdm && !uart_console (port)) {msm_request_tx_dma (msm_port, msm_port->uart.mapbase);msm_request_rx_dma (msm_port, msm_port->uart.mapbase); }
Greg Kroah-Hartman
maintainerPATCH 50/1276 serial: max310x: implement gpio_chip::get_direction()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tapio Reijonen <[email protected]>
commit a483b1a91b33b7533280e7c3efd2bc1275caef18 upstream.
It's strongly recommended for GPIO drivers to always implement the .get_direction() callback - even when the direction is tracked in software. The GPIO core emits a warning when the callback is missing and a user reads the direction of a line, e.g. via /sys/kernel/debug/gpio.
The MAX310X keeps the GPIO direction in the GPIOCFG register (a set bit selects output), which the existing direction_input/output callbacks already program, so the current direction can be read back directly.
--- drivers/tty/serial/max310x.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/tty/serial/max310x.c +12 -0
@@ -1198,6 +1198,17 @@ static void max310x_gpio_set(struct gpio value ? 1 << (offset % 4) : 0); } +static int max310x_gpio_get_direction (struct gpio_chip *chip,unsigned int offset) +{ +struct max310x_port *s =gpiochip_get_data (chip); +struct uart_port *port = &s->p[offset /4 ].port; +unsigned int val; + + val =max310x_port_read (port,MAX310X_GPIOCFG_REG ); + +return val &BIT (offset %4 ) ?GPIO_LINE_DIRECTION_OUT :GPIO_LINE_DIRECTION_IN ; +} +static int max310x_gpio_direction_input (struct gpio_chip *chip,unsigned int offset) {struct max310x_port *s =gpiochip_get_data (chip);
@@ -1407,6 +1418,7 @@ static int max310x_probe(struct device * s->gpio.owner =THIS_MODULE ; s->gpio.parent = dev; s->gpio.label = devtype->name; + s->gpio.get_direction = max310x_gpio_get_direction; s->gpio.direction_input = max310x_gpio_direction_input; s->gpio.get = max310x_gpio_get; s->gpio.direction_output= max310x_gpio_direction_output;
Greg Kroah-Hartman
maintainerPATCH 51/1276 serial: 8250_omap: clear rx_running on zero-length DMA completes
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthias Feser <[email protected]>
commit 061b627ba534230a18ec4d7251562af12325d06a upstream.
On AM33xx RX DMA only triggers when the FIFO reaches the configured threshold (typically 48 bytes). For smaller bursts no DMA request is issued and the FIFO is drained by RX timeout.
In this case __dma_rx_do_complete() can legitimately see count == 0.
The current code exits early in this case and does not clear dma->rx_running, leaving the DMA state inconsistent. This can prevent RX DMA from restarting and may cause omap_8250_rx_dma_flush() to fail, marking DMA as broken.
Fix this by clearing dma->rx_running once the DMA transfer has completed or been terminated, even if no data was transferred.
--- drivers/tty/serial/8250/8250_omap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/8250/8250_omap.c +2 -1
@@ -965,11 +965,12 @@ static void __dma_rx_do_complete(structdev_err (p->port.dev,"teardown incomplete\n" ); } } + + dma->rx_running =0 ;if (!count) goto out; ret =tty_insert_flip_string (tty_port, dma->rx_buf, count); - dma->rx_running =0 ; p->port.icount.rx += ret; p->port.icount.buf_overrun += count - ret; out:
Greg Kroah-Hartman
maintainerPATCH 52/1276 rxrpc: rxrpc_verify_data ensure rx_dec_buffer alloc
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeffrey Altman <[email protected]>
commit 16c8ae9735c5bd7e54dd7478d6348e0fc860842d upstream.
rxrpc_recvmsg_data() calls rxrpc_verify_data() whenever the rxrpc_call.rx_dec_buffer is unallocated and assumes that upon successful return that rx_dec_buffer must be allocated. However, rxrpc_verify_data() does not request an allocation if the rxrpc_skb_priv.len is zero.
In addition, failure to allocate rx_dec_buffer will result in a call to skb_copy_bits() with a NULL destination which can trigger a NULL pointer dereference.
To prevent these issues rxrpc_verify_data() is modified to always attempt to allocate the rxrpc_call.rx_dec_buffer if it is NULL.
This issue was identified with assistance of a private sashiko instance.
--- net/rxrpc/recvmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/rxrpc/recvmsg.c +1 -1
@@ -157,7 +157,7 @@ static int rxrpc_verify_data(struct rxrpstruct rxrpc_skb_priv *sp =rxrpc_skb (skb);int ret; -if (sp->len > call->rx_dec_bsize) { +if (sp->len > call->rx_dec_bsize || !call->rx_dec_buffer) {/* Make sure we can hold a 1412-byte jumbo subpacket and make * sure that the buffer size is aligned to a crypto blocksize. */
Greg Kroah-Hartman
maintainerPATCH 53/1276 rxrpc: Fix leak of released call in recvmsg(MSG_PEEK)
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 4bdb9e471f5b1ac9cbe4add5de7ff085a0ec303c upstream.
Fix rxrpc_recvmsg() to also drop the ref it holds on an already-released call if MSG_PEEK is in force (the function holds a ref on the call irrespective of whether MSG_PEEK is specified or not).
--- net/rxrpc/recvmsg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
net/rxrpc/recvmsg.c +1 -2
@@ -429,8 +429,7 @@ try_again:if (test_bit (RXRPC_CALL_RELEASED , &call->flags)) {rxrpc_see_call (call, rxrpc_call_see_already_released);mutex_unlock (&call->user_mutex); -if (!(flags &MSG_PEEK )) -rxrpc_put_call (call, rxrpc_call_put_recvmsg); +rxrpc_put_call (call, rxrpc_call_put_recvmsg); goto try_again; }
Greg Kroah-Hartman
maintainerPATCH 54/1276 afs: Fix netns teardown to cancel the preallocation charger
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 47694fbc9d24ab6bf210f91e8efe06a10a478064 upstream.
Fix the teardown of an afs network namespace to make sure it cancels the work item that keeps the preallocated rxrpc call/conn/peer queue charged before incoming calls are disabled (i.e. listen 0).
Also, if net->live is false because the afs netns is being deleted, make afs_charge_preallocation() skip charging and make afs_rx_new_call() avoid requeuing the charger.
(This was found by AI review).
--- fs/afs/rxrpc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
fs/afs/rxrpc.c +4 -2
@@ -110,6 +110,7 @@ void afs_close_socket(struct afs_net *ne {_enter ("" ); +cancel_work_sync (&net->charge_preallocation_work);kernel_listen (net->socket,0 );flush_workqueue (afs_async_calls);
@@ -737,7 +738,7 @@ void afs_charge_preallocation(struct wor container_of(work, struct afs_net, charge_preallocation_work);struct afs_call *call = net->spare_incoming_call; -for (;;) { +while (READ_ONCE (net->live)) {if (!call) { call =afs_alloc_call (net, &afs_RXCMxxxx,GFP_KERNEL );if (!call)
@@ -782,7 +783,8 @@ static void afs_rx_new_call(struct sock {struct afs_net *net =afs_sock2net (sk); -queue_work (afs_wq, &net->charge_preallocation_work); +if (net->live) +queue_work (afs_wq, &net->charge_preallocation_work); }/*
Greg Kroah-Hartman
maintainerPATCH 55/1276 afs: fix NULL pointer dereference in afs_get_tree()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matvey Kovalev <[email protected]>
commit 0b70716081c6462be9b2928ad736d0d527b09678 upstream.
afs_alloc_sbi() uses kzalloc for memory allocation. And, if ctx->dyn_root is not null, as->cell and as->volume are null. In trace_afs_get_tree() they are dereferenced.
KASAN error message:
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 2 PID: 18478 Comm: syz-executor.7 Not tainted 5.10.246-syzkaller #0 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:perf_trace_afs_get_tree+0x1d9/0x550
include/trace/events/afs.h:1365
Call Trace: trace_afs_get_tree include/trace/events/afs.h:1365 [inline] afs_get_tree+0x922/0x1350 fs/afs/super.c:599 vfs_get_tree+0x8e/0x300 fs/super.c:1572 do_new_mount fs/namespace.c:3011 [inline] path_mount+0x14a5/0x2220 fs/namespace.c:3341 do_mount fs/namespace.c:3354 [inline] __do_sys_mount fs/namespace.c:3562 [inline] __se_sys_mount fs/namespace.c:3539 [inline] __x64_sys_mount+0x283/0x300 fs/namespace.c:3539 do_syscall_64+0x33/0x50 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
--- fs/afs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/afs/super.c +2 -1
@@ -598,7 +598,8 @@ static int afs_get_tree(struct fs_contex } fc->root =dget (sb->s_root); -trace_afs_get_tree (as->cell, as->volume); +if (!ctx->dyn_root) +trace_afs_get_tree (as->cell, as->volume);_leave (" = 0 [%p]" , sb);return 0 ;
Greg Kroah-Hartman
maintainerPATCH 56/1276 afs: Fix further netns teardown to cancel the preallocation charger
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 2daf8ac812c3d78c642fe7652f62e29df5e3da20 upstream.
When an afs network namespace is torn down, it cancels and waits for the work item that keeps the preallocated rxrpc call/conn/peer queue charged before disabling incoming (i.e. listen 0), but there's a small window in which it can be requeued by an incoming call wending through the I/O thread.
Fix this by cancelling the charger work item again after reducing the listen backlog to zero.
--- fs/afs/rxrpc.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/afs/rxrpc.c +5 -0
@@ -111,8 +111,13 @@ void afs_close_socket(struct afs_net *ne_enter ("" );cancel_work_sync (&net->charge_preallocation_work); +/* Future work items should now see ->live is false. */ +kernel_listen (net->socket,0 ); + +/* Make sure work items are no longer running. */ flush_workqueue (afs_async_calls); +cancel_work_sync (&net->charge_preallocation_work);if (net->spare_incoming_call) {afs_put_call (net->spare_incoming_call);
Greg Kroah-Hartman
maintainerPATCH 57/1276 fbcon: fix NULL pointer dereference for a console without vc_data
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ian Bridges <[email protected]>
commit 5fae9a928482d4845bca169a3a098789203a1ca4 upstream.
fbcon_new_modelist() runs when a framebuffer's modelist changes. For each console mapped to it with fb_display[i].mode set, it reads vc_cons[i].d and passes the vc_num to fbcon_set_disp(). This assumes a console with a mode set has a vc_data, but it can be NULL. fbcon_set_disp() sets fb_display[i].mode before it checks vc_data, and fbcon_deinit() leaves the mode set after the vc_data is freed. fbcon_new_modelist() then dereferences the NULL vc_data.
Keep fb_display[i].mode set only while the console has a vc_data. Check vc_data before setting the mode in fbcon_set_disp(), and clear the mode in fbcon_deinit(). The existing mode check in fbcon_new_modelist() then skips such consoles.
--- drivers/video/fbdev/core/fbcon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/video/fbdev/core/fbcon.c +4 -3
@@ -1201,6 +1201,7 @@ static void fbcon_deinit(struct vc_dataint idx;fbcon_free_font (p); + p->mode =NULL ; idx = con2fb_map[vc->vc_num];if (idx ==-1 )
@@ -1371,14 +1372,14 @@ static void fbcon_set_disp(struct fb_inf p = &fb_display[unit]; -if (var_to_display (p, var, info)) -return ; - vc = vc_cons[unit].d;if (!vc)return ; +if (var_to_display (p, var, info)) +return ; + default_mode = vc->vc_display_fg; svc = *default_mode; t = &fb_display[svc->vc_num];
Greg Kroah-Hartman
maintainerPATCH 58/1276 clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chen Ni <[email protected]>
[ Upstream commit fed9f727cc3f91dde8278961269419083502b40e ]
The devm_reset_control_get_optional_exclusive() function may return an ERR_PTR in case of genuine reset control acquisition errors, not just NULL which indicates the legitimate absence of an optional reset.
Add an IS_ERR() check after the call in sun5i_timer_probe(). On error, return the error code to ensure proper failure handling rather than proceeding with invalid pointers.
--- drivers/clocksource/timer-sun5i.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/clocksource/timer-sun5i.c +3 -0
@@ -284,6 +284,9 @@ static int sun5i_timer_probe(struct platform_device *pdev) } rstc =devm_reset_control_get_optional_exclusive (dev,NULL ); +if (IS_ERR (rstc)) +return dev_err_probe (dev,PTR_ERR (rstc), +"failed to get reset\n" );if (rstc)reset_control_deassert (rstc);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 59/1276 drm/rockchip: Test for imported buffers with drm_gem_is_imported()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Zimmermann <[email protected]>
[ Upstream commit 9fc0da81916250f343599a4dd259f097196bf0fb ]
Instead of testing import_attach for imported GEM buffers, invoke drm_gem_is_imported() to do the test. The test itself does not change.
--- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/rockchip_drm_gem.c +1 -1
@@ -332,7 +332,7 @@ void rockchip_gem_free_object(struct drm_gem_object *obj)struct rockchip_drm_private *private = drm->dev_private;struct rockchip_gem_object *rk_obj =to_rockchip_obj (obj); -if (obj->import_attach) { +if (drm_gem_is_imported (obj)) {if (private->domain) {rockchip_gem_iommu_unmap (rk_obj); }else {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/1276 drm/tidss: Drop extra drm_mode_config_reset() call
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tomi Valkeinen <[email protected]>
[ Upstream commit f468fef38716f667e805e0fa2c497c6b9c325bb9 ]
We are calling drm_mode_config_reset() twice at probe time. There's no reason for this and the second call can be removed, reducing work at probe time slightly.
--- drivers/gpu/drm/tidss/tidss_kms.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/tidss/tidss_kms.c +0 -2
@@ -267,8 +267,6 @@ int tidss_modeset_init(struct tidss_device *tidss)if (ret)return ret; -drm_mode_config_reset (ddev); -dev_dbg (tidss->dev,"%s done\n" , __func__);return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/1276 drm/gpuvm: Do not prepare NULL objects
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jonathan Cavitt <[email protected]>
[ Upstream commit 88f059f6f6f589bd78e2ceb05a1339a8c10b8626 ]
Statis analysis issue:
drm_gpuvm_prepare_range issues an exec_object_prepare call to all drm_gem_objects mapped between addr and addr + range. However, it is possible (albeit very unlikely) that the objects found through drm_gpuvm_for_each_va_range (as connected to va->gem) are NULL, as seen in other functions such as drm_gpuva_link and drm_gpuva_unlink_defer.
Do not prepare NULL objects.
--- drivers/gpu/drm/drm_gpuvm.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/drm_gpuvm.c +3 -0
@@ -1219,6 +1219,9 @@ drm_gpuvm_prepare_range(struct drm_gpuvm *gpuvm, struct drm_exec *exec,drm_gpuvm_for_each_va_range (va, gpuvm, addr, end) {struct drm_gem_object *obj = va->gem.obj; +if (unlikely (!obj)) +continue ; + ret =exec_prepare_obj (exec, obj, num_fences);if (ret)return ret;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 62/1276 drm/amdgpu: fix integer overflow in amdgpu_gem_align_pitch()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Werner Kasselman <[email protected]>
[ Upstream commit fc3659f178d4a65599167d5a648bbeef4b0d4446 ]
amdgpu_gem_align_pitch() is passed u32 width and cpp from dumb buffer creation but uses signed int internally. The round-up add and the aligned * cpp multiplication can overflow, returning zero or a negative pitch. A zero pitch propagates to a zero-sized GEM object allocation that reaches userspace via DRM_IOCTL_MODE_CREATE_DUMB.
Switch the helper to unsigned int and use check_add_overflow() / check_mul_overflow() so wraparound returns zero. Reject a zero pitch or size in amdgpu_mode_dumb_create() rather than allocating a zero- byte BO.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +17 -8
@@ -27,6 +27,7 @@*/ #include <linux/ktime.h> #include <linux/module.h> +#include <linux/overflow.h> #include <linux/pagemap.h> #include <linux/pci.h> #include <linux/dma-buf.h>
@@ -913,13 +914,14 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data,return r; } -static int amdgpu_gem_align_pitch (struct amdgpu_device *adev, -int width, -int cpp, -bool tiled) +static unsigned int amdgpu_gem_align_pitch (struct amdgpu_device *adev, +unsigned int width, +unsigned int cpp, +bool tiled) { -int aligned = width; -int pitch_mask =0 ; +unsigned int aligned = width; +unsigned int pitch_mask =0 ; +unsigned int pitch;switch (cpp) {case 1 :
@@ -934,9 +936,12 @@ static int amdgpu_gem_align_pitch(struct amdgpu_device *adev,break ; } - aligned += pitch_mask; +if (check_add_overflow (aligned, pitch_mask, &aligned)) +return 0 ; aligned &= ~pitch_mask; -return aligned * cpp; +if (check_mul_overflow (aligned, cpp, &pitch)) +return 0 ; +return pitch; } int amdgpu_mode_dumb_create(struct drm_file *file_priv,
@@ -963,8 +968,12 @@ int amdgpu_mode_dumb_create(struct drm_file *file_priv, args->pitch =amdgpu_gem_align_pitch (adev, args->width,DIV_ROUND_UP (args->bpp,8 ),0 ); +if (!args->pitch) +return -EINVAL ; args->size = (u64 )args->pitch * args->height; args->size =ALIGN (args->size,PAGE_SIZE ); +if (!args->size) +return -EINVAL ; domain =amdgpu_bo_get_preferred_domain (adev,amdgpu_display_supported_domains (adev, flags)); r = amdgpu_gem_object_create(adev, args->size, 0, domain, flags,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 63/1276 drm/radeon: fix integer overflow in radeon_align_pitch()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Werner Kasselman <[email protected]>
[ Upstream commit ce3b24eb3ee8f82de851535f516bf21f83e82259 ]
radeon_align_pitch() has the same kind of overflow issue as the old amdgpu helper: both the alignment round-up add and the final 'aligned * cpp' calculation can overflow signed int.
If that wraps, radeon_mode_dumb_create() can end up returning an invalid pitch or creating a zero-sized dumb buffer.
Fix this by using check_add_overflow() for the alignment round-up and check_mul_overflow() for the final pitch calculation, returning 0 on overflow. Also reject zero pitch and size in radeon_mode_dumb_create().
Found via AST-based call-graph analysis using sqry.
--- drivers/gpu/drm/radeon/radeon_gem.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_gem.c +11 -2
@@ -28,6 +28,7 @@#include <linux/debugfs.h> #include <linux/iosys-map.h> +#include <linux/overflow.h> #include <linux/pci.h> #include <drm/drm_device.h>
@@ -807,6 +808,7 @@ int radeon_align_pitch(struct radeon_device *rdev, int width, int cpp, bool tileint aligned = width;int align_large = (ASIC_IS_AVIVO (rdev)) || tiled;int pitch_mask =0 ; +int pitch;switch (cpp) {case 1 :
@@ -821,9 +823,12 @@ int radeon_align_pitch(struct radeon_device *rdev, int width, int cpp, bool tilebreak ; } - aligned += pitch_mask; +if (check_add_overflow (aligned, pitch_mask, &aligned)) +return 0 ; aligned &= ~pitch_mask; -return aligned * cpp; +if (check_mul_overflow (aligned, cpp, &pitch)) +return 0 ; +return pitch; } int radeon_mode_dumb_create(struct drm_file *file_priv,
@@ -837,8 +842,12 @@ int radeon_mode_dumb_create(struct drm_file *file_priv, args->pitch =radeon_align_pitch (rdev, args->width,DIV_ROUND_UP (args->bpp,8 ),0 ); +if (!args->pitch) +return -EINVAL ; args->size = (u64 )args->pitch * args->height; args->size =ALIGN (args->size,PAGE_SIZE ); +if (!args->size) +return -EINVAL ; r = radeon_gem_object_create(rdev, args->size, 0, RADEON_GEM_DOMAIN_VRAM, 0,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 64/1276 drm/radeon: fix memory leak in radeon_ring_restore() on lock failure
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yuho Choi <[email protected]>
[ Upstream commit 82f1d6042611d45b8b9de423bbcb4e0ced9ec62b ]
radeon_ring_restore() takes ownership of the data buffer allocated by radeon_ring_backup(). The caller (radeon_gpu_reset()) only frees it in the non-restore branch; in the restore branch it relies on radeon_ring_restore() to free it.
If radeon_ring_lock() fails, the function returned early without calling kvfree(data), leaking the ring backup buffer on every GPU reset that fails at the lock stage. During repeated GPU resets this causes cumulative kernel memory exhaustion.
Free data before returning the error.
--- drivers/gpu/drm/radeon/radeon_ring.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_ring.c +3 -1
@@ -356,8 +356,10 @@ int radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring,/* restore the saved ring content */ r =radeon_ring_lock (rdev, ring, size); -if (r) +if (r) { +kvfree (data);return r; + }for (i =0 ; i < size; ++i) {radeon_ring_write (ring, data[i]);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 65/1276 libbpf: Report error when a negative kprobe offset is specified
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Aaron Tomlin <[email protected]>
[ Upstream commit ad35d8018669fd2eea76e3f74eb050fd3d2fb690 ]
In attach_kprobe(), the parsing logic uses sscanf() to extract the target function name and offset from the section definition. Currently, if a user specifies a negative offset (e.g., SEC("kprobe/func+-100")), the input is not explicitly caught and reported as an error.
This commit updates the logic to explicitly notify the user when a negative integer is provided. To facilitate this check, the offset variable is changed from unsigned long to long so that sscanf() can accurately capture a negative input for evaluation.
If a negative offset is detected, the loader will now print an informative warning stating that the offset must be non-negative, and return -EINVAL.
Additionally, free(func) is called in this new error path to prevent a memory leak, as the function name string is dynamically allocated by sscanf().
--- tools/lib/bpf/libbpf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
tools/lib/bpf/libbpf.c +8 -1
@@ -11626,7 +11626,7 @@ bpf_program__attach_kprobe_multi_opts(const struct bpf_program *prog,static int attach_kprobe (const struct bpf_program *prog,long cookie,struct bpf_link **link) {DECLARE_LIBBPF_OPTS (bpf_kprobe_opts, opts); -unsigned long offset =0 ; +long offset =0 ;const char *func_name;char *func;int n;
@@ -11648,6 +11648,13 @@ static int attach_kprobe(const struct bpf_program *prog, long cookie, struct bpfpr_warn ("kprobe name is invalid: %s\n" , func_name);return -EINVAL ; } + +if (offset <0 ) { +free (func); +pr_warn ("kprobe offset must be a non-negative integer: %li\n" , offset); +return -EINVAL ; + } +if (opts.retprobe && offset !=0 ) {free (func);pr_warn ("kretprobes do not support offset specification\n" );
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 66/1276 drm/amd/pm: remove trailing semicolon from AMDGPU_PM_POLICY_ATTR macro
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Wang <[email protected]>
[ Upstream commit 0d892afb52d2b940d891b6b52dc9f04debef2d81 ]
macros should not include a trailing semicolon as per kernel coding style (checkpatch.pl warning).
move the semicolon from the macro definition to the invocation sites instead.
checkpatch.pl logs:
WARNING: macros should not use a trailing semicolon
+#define AMDGPU_PM_POLICY_ATTR(_name, _id) \
+ static struct amdgpu_pm_policy_attr pm_policy_attr_##_name = { \
+ .dev_attr = __ATTR(_name, 0644, amdgpu_get_pm_policy_attr, \
+ amdgpu_set_pm_policy_attr), \
+ .id = PP_PM_POLICY_##_id, \
+ };
--- drivers/gpu/drm/amd/pm/amdgpu_pm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +3 -3
@@ -2363,12 +2363,12 @@ static ssize_t amdgpu_set_pm_policy_attr(struct device *dev, .dev_attr = __ATTR(_name, 0644, amdgpu_get_pm_policy_attr, \ amdgpu_set_pm_policy_attr), \ .id = PP_PM_POLICY_##_id, \ - }; + }#define AMDGPU_PM_POLICY_ATTR_VAR (_name) pm_policy_attr_##_name.dev_attr.attr -AMDGPU_PM_POLICY_ATTR(soc_pstate, SOC_PSTATE) -AMDGPU_PM_POLICY_ATTR(xgmi_plpd, XGMI_PLPD) +AMDGPU_PM_POLICY_ATTR (soc_pstate,SOC_PSTATE ); +AMDGPU_PM_POLICY_ATTR (xgmi_plpd,XGMI_PLPD );static struct attribute *pm_policy_attrs[] = { &AMDGPU_PM_POLICY_ATTR_VAR (soc_pstate),
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 67/1276 selftests/bpf: Use local type for flow_offload_tuple_rhash in xdp_flowtable
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gregory Bell <[email protected]>
[ Upstream commit ac985e7bf840e34a8dafe0808cc571fd85896c30 ]
Define flow_offload_tuple_rhash___local and use it in place of the forward-declared kernel type for the bpf_xdp_flow_lookup kfunc return type and tuplehash variable. This is consistent with how bpf_flowtable_opts___local is already handled in the same file and avoids relying on a forward declaration of the struct.
--- tools/testing/selftests/bpf/progs/xdp_flowtable.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
tools/testing/selftests/bpf/progs/xdp_flowtable.c +5 -2
@@ -15,7 +15,10 @@ struct bpf_flowtable_opts___local {s32 error; }; -struct flow_offload_tuple_rhash * +struct flow_offload_tuple_rhash___local { +}; + +struct flow_offload_tuple_rhash___local *bpf_xdp_flow_lookup (struct xdp_md *,struct bpf_fib_lookup *,struct bpf_flowtable_opts___local *,u32 ) __ksym;
@@ -67,7 +70,7 @@ int xdp_flowtable_do_lookup(struct xdp_md *ctx) {void *data_end = (void *)(long )ctx->data_end;struct bpf_flowtable_opts___local opts = {}; -struct flow_offload_tuple_rhash *tuplehash; +struct flow_offload_tuple_rhash___local *tuplehash;struct bpf_fib_lookup tuple = { .ifindex = ctx->ingress_ifindex, };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 68/1276 selftests/bpf: Use local type for bpf_fou_encap in test_tunnel_kern
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gregory Bell <[email protected]>
[ Upstream commit afb0450be061907a0f5d36bd8b010ca30eda3d3b ]
Replace the forward-declared struct bpf_fou_encap with the existing bpf_fou_encap___local type in the bpf_skb_set_fou_encap and bpf_skb_get_fou_encap declarations. This removes the need for the forward declaration and the explicit casts at each call.
--- .../testing/selftests/bpf/progs/test_tunnel_kern.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-)
tools/testing/selftests/bpf/progs/test_tunnel_kern.c +6 -7
@@ -6,6 +6,7 @@* modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. */ +#define BPF_NO_KFUNC_PROTOTYPES #include "vmlinux.h" #include <bpf/bpf_core_read.h> #include <bpf/bpf_helpers.h>
@@ -36,12 +37,10 @@ enum bpf_fou_encap_type___local { FOU_BPF_ENCAP_GUE___local, }; -struct bpf_fou_encap ; - int bpf_skb_set_fou_encap(struct __sk_buff *skb_ctx, - struct bpf_fou_encap *encap, int type) __ksym; + struct bpf_fou_encap___local *encap, int type) __ksym; int bpf_skb_get_fou_encap(struct __sk_buff *skb_ctx, - struct bpf_fou_encap *encap) __ksym; + struct bpf_fou_encap___local *encap) __ksym;struct xfrm_state *bpf_xdp_get_xfrm_state (struct xdp_md *ctx,struct bpf_xfrm_state_opts *opts,u32 opts__sz) __ksym;
@@ -781,7 +780,7 @@ int ipip_gue_set_tunnel(struct __sk_buff *skb) encap.sport =0 ; encap.dport =bpf_htons (5555 ); - ret =bpf_skb_set_fou_encap (skb, (struct bpf_fou_encap *)&encap, + ret =bpf_skb_set_fou_encap (skb, &encap, bpf_core_enum_value(enum bpf_fou_encap_type___local, FOU_BPF_ENCAP_GUE___local));if (ret <0 ) {
@@ -820,7 +819,7 @@ int ipip_fou_set_tunnel(struct __sk_buff *skb) encap.sport =0 ; encap.dport =bpf_htons (5555 ); - ret =bpf_skb_set_fou_encap (skb, (struct bpf_fou_encap *)&encap, + ret =bpf_skb_set_fou_encap (skb, &encap, FOU_BPF_ENCAP_FOU___local);if (ret <0 ) {log_err (ret);
@@ -843,7 +842,7 @@ int ipip_encap_get_tunnel(struct __sk_buff *skb)return TC_ACT_SHOT ; } - ret =bpf_skb_get_fou_encap (skb, (struct bpf_fou_encap *)&encap); + ret =bpf_skb_get_fou_encap (skb, &encap);if (ret <0 ) {log_err (ret);return TC_ACT_SHOT ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 69/1276 Documentation: proc: fix section numbering in table of contents
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baolin Liu <[email protected]>
[ Upstream commit 97a7bd8c2c58a6d820df563d1d0f68aafec45477 ]
Commit e24ccaaf7ec4 ("block: remove last remaining traces of IDE documentation") removed the IDE section but left its table of contents entry behind.
Fix the stale entry and renumber the following sections.
Message-ID: <[email protected]>
--- Documentation/filesystems/proc.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
Documentation/filesystems/proc.rst +7 -7
@@ -23,13 +23,13 @@ fixes/update part 1.1 Stefani Seibold <[email protected]> June 9 2009 1 Collecting System Information 1.1 Process-Specific Subdirectories 1.2 Kernel data - 1.3 IDE devices in /proc/ide - 1.4 Networking info in /proc/net - 1.5 SCSI info - 1.6 Parallel port info in /proc/parport - 1.7 TTY info in /proc/tty - 1.8 Miscellaneous kernel statistics in /proc/stat - 1.9 Ext4 file system parameters + 1.3 Networking info in /proc/net + 1.4 SCSI info + 1.5 Parallel port info in /proc/parport + 1.6 TTY info in /proc/tty + 1.7 Miscellaneous kernel statistics in /proc/stat + 1.8 Ext4 file system parameters + 1.9 /proc/consoles - Shows registered system consoles 2 Modifying System Parameters
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 70/1276 arm64: dts: rockchip: Fix gmac0 reset pin for NanoPi R5S
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Diederik de Haas <[email protected]>
[ Upstream commit c83c4a09d4c01c91d6c52d6d4d77a06892a3e83b ]
According to the NanoPi R5S 2204 schematic on page 6, GPIO0_C4 is for GMAC0_INT/PMEB_GPIO0_C4, while GPIO0_C5 is for GMAC0_RSTn_GPIO0_C5. While the 'reset-gpios' property was set correctly, the corresponding pinctrl didn't match that.
Next to fixing the pinctrl definition, also change the node name and phandle to match what is used in the schematic.
--- arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts +3 -3
@@ -77,7 +77,7 @@ &mdio0 { rgmii_phy0: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; - pinctrl-0 = <ð_phy0_reset_pin>; + pinctrl-0 = <&gmac0_rstn_gpio0_c5_pin>; pinctrl-names = "default"; }; };
@@ -111,8 +111,8 @@ &pcie3x2 { &pinctrl { gmac0 { - eth_phy0_reset_pin: eth-phy0-reset-pin { - rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>; + gmac0_rstn_gpio0_c5_pin: gmac0-rstn-gpio0-c5-pin { + rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>; }; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 71/1276 arm64: dts: qcom: sc8180x: Fix phy simple_bus_reg warning
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
[ Upstream commit f319a5fc998e29699d325af0e461721b3768eeec ]
Correct the unit address of phy node in Qualcomm SC8180x SoC DTSI to fix W=1 DTC warning:
sc8180x.dtsi:2650.31-2695.5: Warning (simple_bus_reg): /soc@0/phy@88ee000: simple-bus unit address format error, expected "88ed000"
--- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc8180x.dtsi +1 -1
@@ -2637,7 +2637,7 @@ usb_mp_qmpphy1: phy@88ec000 { status = "disabled"; }; - usb_sec_qmpphy: phy@88ee000 { + usb_sec_qmpphy: phy@88ed000 { compatible = "qcom,sc8180x-qmp-usb3-dp-phy"; reg = <0 0x088ed000 0 0x3000>;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 72/1276 arm64: dts: qcom: sdm845-mezzanine: Fix camss ports unit_address_vs_reg warning
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
[ Upstream commit f20a82aacd7f381084391a8d1f0f58defa91974c ]
Add necessary properties for ports node in SDM845 DB845c Navigation mezzanine overlay to fix W=1 DTC warning:
sdm845-db845c-navigation-mezzanine.dtso:19.10-24.5: Warning (unit_address_vs_reg): /fragment@0/__overlay__/ports/port@0: node has a unit name, but no reg or ranges property
--- .../boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/qcom/sdm845-db845c-navigation-mezzanine.dtso +5 -0
@@ -16,7 +16,12 @@ status = "okay"; ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + csiphy0_ep: endpoint { data-lanes = <0 1 2 3>; remote-endpoint = <&ov8856_ep>;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 73/1276 wifi: cfg80211: fix grammar in MLO group key error message
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Louis Kotze <[email protected]>
[ Upstream commit 9dcc1af3bbf5441f71a1e51b8d81bdf38a249607 ]
The error message emitted by nl80211_validate_key_link_id() when a group key install on an MLO wdev is missing the link ID reads "link ID must for MLO group key", which is missing the words "be set". This makes the error harder to grep and parse in userspace logs, and is reported verbatim by wpa_supplicant via its nl80211 extack relay, e.g.:
wpa_supplicant: nl80211: kernel reports: link ID must for MLO group key
The sibling error strings in the same helper already use grammatical phrasing ("link ID not allowed for pairwise key", "invalid link ID for MLO group key", "link ID not allowed for non-MLO group key"). Fix this one to match.
No functional change.
--- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/nl80211.c +1 -1
@@ -4571,7 +4571,7 @@ static int nl80211_validate_key_link_id(struct genl_info *info,if (wdev->valid_links) {if (link_id ==-1 ) {GENL_SET_ERR_MSG (info, -"link ID must for MLO group key" ); +"link ID must be set for MLO group key" );return -EINVAL ; }if (!(wdev->valid_links &BIT (link_id))) {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 74/1276 arm64: tegra: Fix Tegra234 MGBE PTP clock
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jon Hunter <[email protected]>
[ Upstream commit 8f0cc929a4bad534c5a860a53d88912cf16d9c9c ]
The Tegra MGBE PTP clock is incorrectly named as 'ptp-ref' and not 'ptp_ref' and this causing the initialisation of the PTP clock to fail. The device-tree binding doc for the device and the Tegra MGBE driver have been updated to use the correct name and so update the device-tree for Tegra234 as well.
--- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +4 -4
@@ -3529,7 +3529,7 @@ ethernet@6800000 { <&bpmp TEGRA234_CLK_MGBE0_RX_PCS_M>, <&bpmp TEGRA234_CLK_MGBE0_RX_PCS>, <&bpmp TEGRA234_CLK_MGBE0_TX_PCS>; - clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", + clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m", "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", "rx-pcs", "tx-pcs"; resets = <&bpmp TEGRA234_RESET_MGBE0_MAC>,
@@ -3571,7 +3571,7 @@ ethernet@6900000 { <&bpmp TEGRA234_CLK_MGBE1_RX_PCS_M>, <&bpmp TEGRA234_CLK_MGBE1_RX_PCS>, <&bpmp TEGRA234_CLK_MGBE1_TX_PCS>; - clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", + clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m", "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", "rx-pcs", "tx-pcs"; resets = <&bpmp TEGRA234_RESET_MGBE1_MAC>,
@@ -3613,7 +3613,7 @@ ethernet@6a00000 { <&bpmp TEGRA234_CLK_MGBE2_RX_PCS_M>, <&bpmp TEGRA234_CLK_MGBE2_RX_PCS>, <&bpmp TEGRA234_CLK_MGBE2_TX_PCS>; - clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", + clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m", "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", "rx-pcs", "tx-pcs"; resets = <&bpmp TEGRA234_RESET_MGBE2_MAC>,
@@ -3655,7 +3655,7 @@ ethernet@6b00000 { <&bpmp TEGRA234_CLK_MGBE3_RX_PCS_M>, <&bpmp TEGRA234_CLK_MGBE3_RX_PCS>, <&bpmp TEGRA234_CLK_MGBE3_TX_PCS>; - clock-names = "mgbe", "mac", "mac-divider", "ptp-ref", "rx-input-m", + clock-names = "mgbe", "mac", "mac-divider", "ptp_ref", "rx-input-m", "rx-input", "tx", "eee-pcs", "rx-pcs-input", "rx-pcs-m", "rx-pcs", "tx-pcs"; resets = <&bpmp TEGRA234_RESET_MGBE3_MAC>,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 75/1276 dt-bindings: pinctrl: nvidia,tegra234: Add missing required block
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
[ Upstream commit 61b5deb5a968f7a82124f9b2591a6a151ed7273a ]
Binding should require 'reg' property, because address space cannot be missing in the hardware and is already needed by the Linux drivers. Require also 'compatible' by convention, although it is not strictly necessary.
--- .../bindings/pinctrl/nvidia,tegra234-pinmux-aon.yaml | 4 ++++ .../devicetree/bindings/pinctrl/nvidia,tegra234-pinmux.yaml | 4 ++++ 2 files changed, 8 insertions(+)
Documentation/devicetree/bindings/pinctrl/nvidia,tegra234-pinmux-aon.yaml +4 -0
@@ -58,6 +58,10 @@ patternProperties: drive_soc_gpio27_pee6, drive_ao_retention_n_pee2, drive_vcomp_alert_pee1, drive_hdmi_cec_pgg0 ] +required: + - compatible + - reg + unevaluatedProperties: false examples:
Documentation/devicetree/bindings/pinctrl/nvidia,tegra234-pinmux.yaml +4 -0
@@ -115,6 +115,10 @@ patternProperties: drive_sdmmc1_dat2_pj4, drive_sdmmc1_dat1_pj3, drive_sdmmc1_dat0_pj2 ] +required: + - compatible + - reg + unevaluatedProperties: false examples:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 76/1276 drm/amdkfd: Validate CRIU-restored IDs before idr_alloc
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Srinivasan Shanmugam <[email protected]>
[ Upstream commit 85043dd49c2f51a37b22618168e3ae59ab92f0d6 ]
The KFD CRIU restore flow restores previously saved object IDs from userspace.
For event restore:
kfd_criu_restore_event()
-> create_signal_event() / create_other_event()
-> allocate_event_notification_slot()
-> idr_alloc(..., *restore_id, *restore_id + 1, ...)For BO restore:
criu_restore_memory_of_gpu()
-> idr_alloc(..., bo_priv->idr_handle, ...)
In both cases, the restored ID comes from userspace-provided CRIU data.
idr_alloc() expects the ID range values to fit within signed int limits. If a restored ID is larger than INT_MAX, it can trigger a WARN in the IDR layer.
A kernel WARN is undesirable because it prints a warning trace and may cause a panic or reboot on systems with panic_on_warn enabled.
Smatch reported these paths as allowing unchecked userspace values to reach idr_alloc().
Add INT_MAX validation before using restored IDs in:
- kfd_criu_restore_event()
- criu_restore_memory_of_gpu()
If the restored ID is invalid, return -EINVAL.
This prevents invalid restore data from reaching the IDR layer and avoids WARN-triggering paths, while keeping valid restore behavior unchanged.
--- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 3 +++ drivers/gpu/drm/amd/amdkfd/kfd_events.c | 5 +++++ 2 files changed, 8 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +3 -0
@@ -2322,6 +2322,9 @@ static int criu_restore_memory_of_gpu(struct kfd_process_device *pdd,const bool criu_resume = true;u64 offset; +if (bo_priv->idr_handle >INT_MAX ) +return -EINVAL ; +if (bo_bucket->alloc_flags &KFD_IOC_ALLOC_MEM_FLAGS_DOORBELL ) {if (bo_bucket->size !=kfd_doorbell_process_slice (pdd->dev->kfd))
drivers/gpu/drm/amd/amdkfd/kfd_events.c +5 -0
@@ -480,6 +480,11 @@ int kfd_criu_restore_event(struct file *devkfd, } *priv_data_offset +=sizeof (*ev_priv); +if (ev_priv->event_id >INT_MAX ) { + ret = -EINVAL ; + goto exit; + } +if (ev_priv->user_handle) { ret =kfd_kmap_event_page (p, ev_priv->user_handle);if (ret)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 77/1276 driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Danilo Krummrich <[email protected]>
[ Upstream commit e9506871a8ea304cde48ff4a57226df2aadddae3 ]
dev_has_sync_state() reads dev->driver twice without holding device_lock() -- once for the NULL check and once to dereference ->sync_state. Some callers only hold device_links_write_lock, which doesn't prevent a concurrent unbind from clearing dev->driver via device_unbind_cleanup().
Fix it by reading dev->driver exactly once with READ_ONCE(), pairing with the WRITE_ONCE() in device_set_driver().
--- include/linux/device.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/device.h +4 -1
@@ -1023,9 +1023,12 @@ static inline void device_lock_assert(struct device *dev)static inline bool dev_has_sync_state (struct device *dev) { +struct device_driver *drv; +if (!dev)return false; -if (dev->driver && dev->driver->sync_state) + drv =READ_ONCE (dev->driver); +if (drv && drv->sync_state)return true;if (dev->bus && dev->bus->sync_state)return true;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 78/1276 wifi: rtw89: Correct data type for scan index to avoid infinite loop
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shin-Yi Lin <[email protected]>
[ Upstream commit 08fdcb529df6df3562dd2b0035f88dd5be8b3c68 ]
A kernel soft lockup was observed during Wi-Fi scanning on the 6GHz band. The CPU becomes stuck in rtw89_hw_scan_add_chan_ax for over 20 seconds, leading to a system panic.
RIP points to 0f b6 c3 (movzbl %bl, %eax), which zero-extends the low 8 bits of RBX into RAX.
RBX (the counter i) has reached a huge value: 0x137466a1.
watchdog: BUG: soft lockup - CPU#2 stuck for 26s! [kworker/u16:4:6124] Workqueue: events_unbound cfg80211_wiphy_work [cfg80211] RIP: 0010:rtw89_hw_scan_add_chan_ax+0xb3/0x6e0 [rtw89_core] Code: a0 48 89 45 a8 44 89 6d 9c 44 89 75 98 eb 29 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 c3 01 <0f> b6 c3 41 3b 44 24 74 0f 83 0b 02 00 00 0f b6 c3 48 8d 14 80 49 RSP: 0018:ffffcb48cbaa39f8 EFLAGS: 00000202 RAX: 0000000000000005 RBX: 00000000137466a1 RCX: 0000000000000000 RDX: ffff89ffc9d851a8 RSI: 0000000000004f0d RDI: 0000000096af0130 RBP: ffffcb48cbaa3a60 R08: 0000000000000000 R09: ffff8a00b7502080 R10: ffff8a00b75ff600 R11: 0000000000000000 R12: ffff89ffc7553870 R13: ffff8a00b7ac8f19 R14: ffff8a00b75020d8 R15: ffff89ffc3d54d80 FS: 0000000000000000(0000) GS:ffff8a014f962000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007558d7f9f4c4 CR3: 0000000178040001 CR4: 00000000001706f0 Call Trace: <TASK> rtw89_hw_scan_prep_chan_list_ax+0x8a/0x400 [rtw89_core] rtw89_hw_scan_start+0x546/0x8a0 [rtw89_core] ? rtw89_fw_h2c_default_cmac_tbl+0x13c/0x1f0 [rtw89_core] rtw89_ops_hw_scan+0xae/0x120 [rtw89_core] drv_hw_scan+0xbb/0x180 [mac80211] __ieee80211_start_scan+0x2fc/0x750 [mac80211] ieee80211_request_scan+0xe/0x20 [mac80211] ieee80211_scan+0x123/0x190 [mac80211] rdev_scan+0x40/0x110 [cfg80211] cfg80211_scan_6ghz+0x5a1/0xa30 [cfg80211]
By objdump with source:
for (i = 0; i < req->n_6ghz_params; i++) { 5fbc0: 83 c3 01 add $0x1,%ebx --> i++
5fbc3: 0f b6 c3 movzbl %bl,%eax --> get counter
fbc6: 41 3b 44 24 74 cmp 0x74(%r12),%eax
* RBX: 00000000137466a1 -> %bl = a1 -> EAX = 000000a1 (161)
--- drivers/net/wireless/realtek/rtw89/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtw89/fw.c +1 -1
@@ -6144,7 +6144,7 @@ static int rtw89_update_6ghz_rnr_chan(struct rtw89_dev *rtwdev,struct sk_buff *skb;bool found;int ret =0 ; -u8 i; +u32 i;if (!req->n_6ghz_params)return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 79/1276 wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tristan Madani <[email protected]>
[ Upstream commit 6e76e9ed273dfb4b3333a5ebbb94958cc5752ab6 ]
In rtw_pci_rx_napi(), new_len is computed as the sum of pkt_len (14-bit descriptor field, max 16383) and pkt_offset (drv_info_sz + shift, both firmware-controlled). The result can exceed RTK_PCI_RX_BUF_SIZE (11478), causing an out-of-bounds read from the pre-allocated DMA buffer when skb_put_data copies new_len bytes. The USB transport already validates this (rtw_usb_rx_data_put checks against RTW_USB_MAX_RECVBUF_SZ); the PCIe path does not.
Add a check that new_len does not exceed the DMA buffer size.
--- drivers/net/wireless/realtek/rtw88/pci.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/wireless/realtek/rtw88/pci.c +5 -0
@@ -1076,6 +1076,11 @@ static u32 rtw_pci_rx_napi(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci,* discard the frame if none available */ new_len = pkt_stat.pkt_len + pkt_offset; +if (unlikely (new_len >RTK_PCI_RX_BUF_SIZE )) { +rtw_dbg (rtwdev,RTW_DBG_RX , +"oversized RX packet: %u\n" , new_len); + goto next_rp; + } new =dev_alloc_skb (new_len);if (WARN_ONCE (!new,"rx routine starvation\n" )) goto next_rp;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 80/1276 kconfig: fix potential NULL pointer dereference in conf_askvalue
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xingjing Deng <[email protected]>
[ Upstream commit b9d21c32dca2167a614e66c9e27999b9e1c33d55 ]
In conf_askvalue(), the 'def' argument (retrieved via sym_get_string_value) can be NULL. While current call sites ensure that 'def' is valid, calling printf("%s\n", def) is technically undefined behavior and could lead to a segmentation fault on certain libc implementations if the function were called with a NULL pointer in the future.
Improve the robustness of conf_askvalue() by providing an empty string as a fallback.
Additionally, remove the redundant re-initialization of the 'line' buffer inside the !sym_is_changeable(sym) block, as it is already properly initialized at the function entry.
--- scripts/kconfig/conf.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
scripts/kconfig/conf.c +2 -4
@@ -297,9 +297,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) line[1 ] =0 ;if (!sym_is_changeable (sym)) { -printf ("%s\n" , def); - line[0 ] ='\n' ; - line[1 ] =0 ; +printf ("%s\n" , def ?:"" );return 0 ; }
@@ -307,7 +305,7 @@ static int conf_askvalue(struct symbol *sym, const char *def)case oldconfig:case syncconfig:if (sym_has_value (sym)) { -printf ("%s\n" , def); +printf ("%s\n" , def ?:"" );return 0 ; }/* fall through */
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 81/1276 soc: xilinx: Shutdown and free rx mailbox channel
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Prasanna Kumar T S M <[email protected]>
[ Upstream commit fdee7c66c0d7b6869c36b9f9a915abf29ab5b550 ]
A mbox rx channel is requested using mbox_request_channel_byname() in probe. In remove callback, the rx mailbox channel is cleaned up when the rx_chan is NULL due to incorrect condition check. The mailbox channel is not shutdown and it can receive messages even after the device removal. This leads to use after free. Also the channel resources are not freed. Fix this by checking the rx_chan correctly.
--- drivers/soc/xilinx/zynqmp_power.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/soc/xilinx/zynqmp_power.c +3 -1
@@ -396,8 +396,10 @@ static void zynqmp_pm_remove(struct platform_device *pdev) {sysfs_remove_file (&pdev->dev.kobj, &dev_attr_suspend_mode.attr); -if (!rx_chan) +if (rx_chan) {mbox_free_channel (rx_chan); + rx_chan =NULL ; + } }static const struct of_device_id pm_of_match[] = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 82/1276 wifi: ath9k: fix OOB access from firmware tx status queue ID
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tristan Madani <[email protected]>
[ Upstream commit 7ce2f118a2389e8f0a64068c6fe7cc7d40639be0 ]
ath_tx_edma_tasklet() accesses sc->tx.txq[ts.qid] where ts.qid is a 4-bit hardware field (0-15), but the txq array only has ATH9K_NUM_TX_QUEUES (10) entries. A qid >= 10 causes an OOB array access.
Add a bounds check on ts.qid before using it as an array index.
--- drivers/net/wireless/ath/ath9k/xmit.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/wireless/ath/ath9k/xmit.c +5 -0
@@ -2759,6 +2759,11 @@ void ath_tx_edma_tasklet(struct ath_softc *sc)continue ; } +if (ts.qid >=ATH9K_NUM_TX_QUEUES ) { +ath_dbg (common,XMIT ,"invalid qid %d\n" , ts.qid); +continue ; + } + txq = &sc->tx.txq[ts.qid];ath_txq_lock (sc, txq);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 83/1276 ARM: dts: am335x-sl50: Fix audio bitclock and frame master endpoint
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jihed Chaibi <[email protected]>
[ Upstream commit 2bc564f46b00dc4f4331fc337277ff3f5fac8a4e ]
The cpu_endpoint in mcasp0 specifies the TLV320AIC3106 codec as the bitclock and frame master, but the phandles point to the codec's port node (codec_port) rather than its endpoint node (codec_endpoint).
audio-graph-card calls simple_util_parse_daifmt() with ep_codec set to the endpoint node (codec_endpoint). The function resolves the bitclock-master phandle and checks whether it equals ep_codec. Since codec_port is the parent of codec_endpoint, not the endpoint itself, the comparison always evaluates to false. This causes the mcasp0 CPU side to be silently configured as bitclock and frame master instead of the codec, which is the opposite of the intended configuration.
Fix by pointing bitclock-master and frame-master to codec_endpoint.
--- arch/arm/boot/dts/ti/omap/am335x-sl50.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/ti/omap/am335x-sl50.dts +2 -2
@@ -558,8 +558,8 @@ cpu_endpoint: endpoint { remote-endpoint = <&codec_endpoint>; dai-format = "dsp_b"; - bitclock-master = <&codec_port>; - frame-master = <&codec_port>; + bitclock-master = <&codec_endpoint>; + frame-master = <&codec_endpoint>; bitclock-inversion; clocks = <&audio_mclk>; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 84/1276 watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yingjie Gao <[email protected]>
[ Upstream commit 4f675f036cd5e9cfbe6df5f24f8338158af96a4b ]
Commit 009637de1f65 ("watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)") added Hygon vendor matching to the efch layout selection, but newer Hygon 0x790b SMBus devices still need the efch_mmio path.
The efch_mmio path enables EFCH_PM_DECODEEN_WDT_TMREN before probing the watchdog MMIO block. If firmware leaves that bit clear and the driver picks the legacy efch path instead, probe falls back to the alternate window and fails with "Watchdog hardware is disabled".
Select efch_mmio for Hygon 0x790b devices with revision 0x51 or later, matching the equivalent AMD behavior and allowing the watchdog to initialize on those systems.
--- drivers/watchdog/sp5100_tco.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/watchdog/sp5100_tco.c +2 -1
@@ -92,7 +92,8 @@ static enum tco_reg_layout tco_reg_layout(struct pci_dev *dev) dev->device == PCI_DEVICE_ID_ATI_SBX00_SMBUS && dev->revision < 0x40) {return sp5100; - } else if (dev->vendor == PCI_VENDOR_ID_AMD && + } else if ((dev->vendor == PCI_VENDOR_ID_AMD || + dev->vendor == PCI_VENDOR_ID_HYGON) && sp5100_tco_pci->device == PCI_DEVICE_ID_AMD_KERNCZ_SMBUS && sp5100_tco_pci->revision >= AMD_ZEN_SMBUS_PCI_REV) {return efch_mmio;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 85/1276 watchdog: sama5d4_wdt: Fix WDDIS detection on SAM9X60 and SAMA7G5
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Balakrishnan Sambath <[email protected]>
[ Upstream commit e8bc610b14a99d24b0916635102cc52ba41def9b ]
The driver hardcoded AT91_WDT_WDDIS (bit 15) in wdt_enabled and the probe initial state readout. SAM9X60 and SAMA7G5 use bit 12 (AT91_SAM9X60_WDDIS), causing incorrect WDDIS detection.
Introduce a per-device wddis_mask field to select the correct WDDIS bit based on the compatible string.
--- drivers/watchdog/sama5d4_wdt.c | 48 +++++++++++++++------------------- 1 file changed, 21 insertions(+), 27 deletions(-)
drivers/watchdog/sama5d4_wdt.c +21 -27
@@ -30,6 +30,7 @@ struct sama5d4_wdt {void __iomem *reg_base;u32 mr;u32 ir; +u32 wddis_mask;unsigned long last_ping;bool need_irq;bool sam9x60_support;
@@ -48,7 +49,10 @@ MODULE_PARM_DESC(nowayout,"Watchdog cannot be stopped once started (default=" __MODULE_STRING(WATCHDOG_NOWAYOUT) ")"); -#define wdt_enabled (!(wdt->mr & AT91_WDT_WDDIS)) +static inline bool wdt_enabled (struct sama5d4_wdt *wdt) +{ +return !(wdt->mr & wdt->wddis_mask); +}#define wdt_read (wdt, field) \ readl_relaxed((wdt)->reg_base + (field))
@@ -81,12 +85,9 @@ static int sama5d4_wdt_start(struct watchdog_device *wdd) {struct sama5d4_wdt *wdt =watchdog_get_drvdata (wdd); -if (wdt->sam9x60_support) { +if (wdt->sam9x60_support)writel_relaxed (wdt->ir, wdt->reg_base +AT91_SAM9X60_IER ); - wdt->mr &= ~AT91_SAM9X60_WDDIS ; - }else { - wdt->mr &= ~AT91_WDT_WDDIS ; - } + wdt->mr &= ~wdt->wddis_mask;wdt_write (wdt,AT91_WDT_MR , wdt->mr);return 0 ;
@@ -96,12 +97,9 @@ static int sama5d4_wdt_stop(struct watchdog_device *wdd) {struct sama5d4_wdt *wdt =watchdog_get_drvdata (wdd); -if (wdt->sam9x60_support) { +if (wdt->sam9x60_support)writel_relaxed (wdt->ir, wdt->reg_base +AT91_SAM9X60_IDR ); - wdt->mr |=AT91_SAM9X60_WDDIS ; - }else { - wdt->mr |=AT91_WDT_WDDIS ; - } + wdt->mr |= wdt->wddis_mask;wdt_write (wdt,AT91_WDT_MR , wdt->mr);return 0 ;
@@ -117,7 +115,7 @@ static int sama5d4_wdt_ping(struct watchdog_device *wdd) }static int sama5d4_wdt_set_timeout (struct watchdog_device *wdd, -unsigned int timeout) +unsigned int timeout) {struct sama5d4_wdt *wdt =watchdog_get_drvdata (wdd);u32 value =WDT_SEC2TICKS (timeout);
@@ -140,8 +138,8 @@ static int sama5d4_wdt_set_timeout(struct watchdog_device *wdd,* If the watchdog is enabled, then the timeout can be updated. Else, * wait that the user enables it. */ -if (wdt_enabled) -wdt_write (wdt,AT91_WDT_MR , wdt->mr & ~AT91_WDT_WDDIS ); +if (wdt_enabled (wdt)) +wdt_write (wdt,AT91_WDT_MR , wdt->mr & ~wdt->wddis_mask); wdd->timeout = timeout;
@@ -184,10 +182,7 @@ static int of_sama5d4_wdt_init(struct device_node *np, struct sama5d4_wdt *wdt) {const char *tmp; -if (wdt->sam9x60_support) - wdt->mr =AT91_SAM9X60_WDDIS ; -else - wdt->mr =AT91_WDT_WDDIS ; + wdt->mr = wdt->wddis_mask;if (!of_property_read_string (np,"atmel,watchdog-type" , &tmp) && !strcmp (tmp,"software" ))
@@ -213,15 +208,11 @@ static int sama5d4_wdt_init(struct sama5d4_wdt *wdt)* If the watchdog is already running, we can safely update it. * Else, we have to disable it properly. */ -if (!wdt_enabled) { +if (!wdt_enabled (wdt)) { reg =wdt_read (wdt,AT91_WDT_MR ); -if (wdt->sam9x60_support && (!(reg &AT91_SAM9X60_WDDIS ))) -wdt_write_nosleep (wdt,AT91_WDT_MR , - reg |AT91_SAM9X60_WDDIS ); -else if (!wdt->sam9x60_support && - (!(reg &AT91_WDT_WDDIS ))) +if (!(reg & wdt->wddis_mask))wdt_write_nosleep (wdt,AT91_WDT_MR , - reg |AT91_WDT_WDDIS ); + reg | wdt->wddis_mask); }if (wdt->sam9x60_support) {
@@ -273,6 +264,9 @@ static int sama5d4_wdt_probe(struct platform_device *pdev) of_device_is_compatible(dev->of_node, "microchip,sama7g5-wdt")) wdt->sam9x60_support = true; + wdt->wddis_mask = wdt->sam9x60_support ?AT91_SAM9X60_WDDIS + :AT91_WDT_WDDIS ; +watchdog_set_drvdata (wdd, wdt); regs =devm_platform_ioremap_resource (pdev,0 );
@@ -306,8 +300,8 @@ static int sama5d4_wdt_probe(struct platform_device *pdev)watchdog_init_timeout (wdd, wdt_timeout, dev); reg =wdt_read (wdt,AT91_WDT_MR ); -if (!(reg &AT91_WDT_WDDIS )) { - wdt->mr &= ~AT91_WDT_WDDIS ; +if (!(reg & wdt->wddis_mask)) { + wdt->mr &= ~wdt->wddis_mask;set_bit (WDOG_HW_RUNNING , &wdd->status); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 86/1276 watchdog: sprd_wdt: Remove redundant sprd_wdt_disable() on register failure
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Felix Gu <[email protected]>
[ Upstream commit 96b3cfc3b8ad0524d12fed1e08bc5df3ff345f64 ]
The driver uses devm_add_action_or_reset() to register sprd_wdt_disable() as a managed cleanup action.
When devm_watchdog_register_device() fails, the devm core will invoke the cleanup action automatically.
The explicit sprd_wdt_disable() call in the error path is therefore redundant and results in adouble cleanup.
--- drivers/watchdog/sprd_wdt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/watchdog/sprd_wdt.c +2 -3
@@ -320,10 +320,9 @@ static int sprd_wdt_probe(struct platform_device *pdev)watchdog_init_timeout (&wdt->wdd,0 , dev); ret =devm_watchdog_register_device (dev, &wdt->wdd); -if (ret) { -sprd_wdt_disable (wdt); +if (ret)return ret; - } +platform_set_drvdata (pdev, wdt);return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 87/1276 media: cedrus: Fix failure to clean up hardware on probe failure
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Samuel Holland <[email protected]>
[ Upstream commit f0a22f1d602ed499a192284de5e811a73421f0c7 ]
If V4L2 device fails to register, then SRAM still be claimed and as a result driver will not be able to probe again.
cedrus 1c0e000.video-codec: Failed to claim SRAM
cedrus 1c0e000.video-codec: Failed to probe hardware
cedrus 1c0e000.video-codec: probe with driver cedrus failed with error -16
cedrus_hw_remove undoes everything that was previously done by cedrus_hw_probe, such as disabling runtime power management and releasing the claimed SRAM and reserved memory region.
--- drivers/staging/media/sunxi/cedrus/cedrus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/media/sunxi/cedrus/cedrus.c +3 -1
@@ -478,7 +478,7 @@ static int cedrus_probe(struct platform_device *pdev) ret =v4l2_device_register (&pdev->dev, &dev->v4l2_dev);if (ret) {dev_err (&pdev->dev,"Failed to register V4L2 device\n" ); -return ret; + goto err_hw; } vfd = &dev->vfd;
@@ -539,6 +539,8 @@ static int cedrus_probe(struct platform_device *pdev)v4l2_m2m_release (dev->m2m_dev); err_v4l2:v4l2_device_unregister (&dev->v4l2_dev); +err_hw: +cedrus_hw_remove (dev);return ret; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 88/1276 media: v4l2-common: Add YUV24 format info
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nas Chung <[email protected]>
[ Upstream commit 968b741872914a15363af0daf24ed2e82ec355f3 ]
The YUV24 format is missing an entry in the v4l2_format_info(). The YUV24 format is the packed YUV 4:4:4 formats with 8 bits per component.
--- drivers/media/v4l2-core/v4l2-common.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/v4l2-core/v4l2-common.c +1 -0
@@ -269,6 +269,7 @@ const struct v4l2_format_info *v4l2_format_info(u32 format) { .format = V4L2_PIX_FMT_Y212, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 }, { .format = V4L2_PIX_FMT_Y216, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 4, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 2, .vdiv = 1 }, { .format = V4L2_PIX_FMT_YUV48_12, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 6, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 }, + { .format = V4L2_PIX_FMT_YUV24, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 1, .comp_planes = 1, .bpp = { 3, 0, 0, 0 }, .bpp_div = { 1, 1, 1, 1 }, .hdiv = 1, .vdiv = 1 }, { .format = V4L2_PIX_FMT_MT2110T, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2, .block_w = { 16, 8, 0, 0 }, .block_h = { 32, 16, 0, 0 }}, { .format = V4L2_PIX_FMT_MT2110R, .pixel_enc = V4L2_PIXEL_ENC_YUV, .mem_planes = 2, .comp_planes = 2, .bpp = { 5, 10, 0, 0 }, .bpp_div = { 4, 4, 1, 1 }, .hdiv = 2, .vdiv = 2,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 89/1276 memory: tegra: Wire up system sleep PM ops
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ashish Mhetre <[email protected]>
[ Upstream commit 2411c8d1e3e09910e94bab0d0a2c071fbc8a9e7b ]
The tegra-mc platform driver does not register any dev_pm_ops, so the SoC-specific ->resume() is never invoked (e.g. tegra186_mc_resume) on system wake. On Tegra186 and later this means MC client Stream-ID override registers are not reprogrammed, and clients behind the ARM SMMU fault on the first DMA after resume.
Register a dev_pm_ops on the tegra-mc driver and route the system resume callback into mc->soc->ops->resume() so the existing SID restore path runs again on wake.
No suspend callback is needed as the resume path reprograms all MC state from the static SoC tables, so there is nothing to save.
--- drivers/memory/tegra/mc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
drivers/memory/tegra/mc.c +14 -0
@@ -13,6 +13,7 @@#include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_device.h> +#include <linux/pm.h> #include <linux/slab.h> #include <linux/sort.h> #include <linux/tegra-icc.h>
@@ -986,10 +987,23 @@ static void tegra_mc_sync_state(struct device *dev)icc_sync_state (dev); } +static int tegra_mc_resume (struct device *dev) +{ +struct tegra_mc *mc =dev_get_drvdata (dev); + +if (mc->soc->ops && mc->soc->ops->resume) + mc->soc->ops->resume (mc); + +return 0 ; +} + +static DEFINE_SIMPLE_DEV_PM_OPS(tegra_mc_pm_ops, NULL, tegra_mc_resume); +static struct platform_driver tegra_mc_driver = { .driver = { .name ="tegra-mc" , .of_match_table = tegra_mc_of_match, + .pm =pm_sleep_ptr (&tegra_mc_pm_ops), .suppress_bind_attrs = true, .sync_state = tegra_mc_sync_state, },
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 90/1276 crypto: qat - fix heartbeat error injection
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Damian Muszynski <[email protected]>
[ Upstream commit 2e96024632b386c86860aa78639940fc96d6fcc9 ]
The current implementation of the heartbeat error injection uses adf_disable_arb_thd() to stop a specific accelerator engine thread from processing requests. This does not reliably prevent the device from generating responses.
Fix the error injection by disabling the device arbiter through exit_arb() instead. This properly simulates a device failure by stopping all arbitration, which results in missing responses for sent requests.
Remove the now unused adf_disable_arb_thd() function and its declaration.
--- .../intel/qat/qat_common/adf_common_drv.h | 1 - .../qat/qat_common/adf_heartbeat_inject.c | 6 ++--- .../intel/qat/qat_common/adf_hw_arbiter.c | 25 ------------------- 3 files changed, 2 insertions(+), 30 deletions(-)
drivers/crypto/intel/qat/qat_common/adf_common_drv.h +0 -1
@@ -91,7 +91,6 @@ void adf_exit_aer(void);int adf_init_arb (struct adf_accel_dev *accel_dev);void adf_exit_arb (struct adf_accel_dev *accel_dev);void adf_update_ring_arb (struct adf_etr_ring_data *ring); -int adf_disable_arb_thd (struct adf_accel_dev *accel_dev,u32 ae,u32 thr);int adf_dev_get (struct adf_accel_dev *accel_dev);void adf_dev_put (struct adf_accel_dev *accel_dev);
drivers/crypto/intel/qat/qat_common/adf_heartbeat_inject.c +2 -4
@@ -64,10 +64,8 @@ int adf_heartbeat_inject_error(struct adf_accel_dev *accel_dev)if (ret)return ret; -/* Configure worker threads to stop processing any packet */ - ret =adf_disable_arb_thd (accel_dev, rand_ae, rand_thr); -if (ret) -return ret; +/* Disable arbiter to stop processing any packet */ + hw_device->exit_arb (accel_dev);/* Change HB counters memory to simulate a hang */ adf_set_hb_counters_fail (accel_dev, rand_ae, rand_thr);
drivers/crypto/intel/qat/qat_common/adf_hw_arbiter.c +0 -25
@@ -99,28 +99,3 @@ void adf_exit_arb(struct adf_accel_dev *accel_dev) csr_ops->write_csr_ring_srv_arb_en (csr, i,0 ); }EXPORT_SYMBOL_GPL (adf_exit_arb); - -int adf_disable_arb_thd (struct adf_accel_dev *accel_dev,u32 ae,u32 thr) -{ -void __iomem *csr = accel_dev->transport->banks[0 ].csr_addr; -struct adf_hw_device_data *hw_data = accel_dev->hw_device; -const u32 *thd_2_arb_cfg; -struct arb_info info; -u32 ae_thr_map; - -if (ADF_AE_STRAND0_THREAD == thr ||ADF_AE_STRAND1_THREAD == thr) - thr =ADF_AE_ADMIN_THREAD ; - - hw_data->get_arb_info (&info); - thd_2_arb_cfg = hw_data->get_arb_mapping (accel_dev); -if (!thd_2_arb_cfg) -return -EFAULT ; - -/* Disable scheduling for this particular AE and thread */ - ae_thr_map = *(thd_2_arb_cfg + ae); - ae_thr_map &= ~(GENMASK (3 ,0 ) << (thr *BIT (2 ))); - -WRITE_CSR_ARB_WT2SAM (csr, info.arb_offset, info.wt2sam_offset, ae, - ae_thr_map); -return 0 ; -}
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 91/1276 pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Felix Gu <[email protected]>
[ Upstream commit 334f7bcbdc79dc8e5b938ac3372453a5368221cf ]
In the error path of sunxi_pmx_request(), the code calls regulator_put(s_reg->regulator) to release the regulator. However, s_reg->regulator is only assigned after a successful regulator_enable(). This causes a memory leak: the regulator obtained via regulator_get() is never properly released when regulator_enable() fails.
--- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/sunxi/pinctrl-sunxi.c +1 -1
@@ -880,7 +880,7 @@ static int sunxi_pmx_request(struct pinctrl_dev *pctldev, unsigned offset)return 0 ; out: -regulator_put (s_reg->regulator); +regulator_put (reg);return ret; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 92/1276 drm/gpuvm: take refcount on DRM device
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alice Ryhl <[email protected]>
[ Upstream commit c2d72717e0a9dd01c6a1bac61a1462a8e04bd179 ]
Currently GPUVM relies on the owner implicitly holding a refcount to the drm device, and it does not implicitly take a refcount on the drm device. This design is error-prone, so take a refcount on the device.
--- drivers/gpu/drm/drm_gpuvm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_gpuvm.c +5 -1
@@ -25,6 +25,7 @@* */ +#include <drm/drm_drv.h> #include <drm/drm_gpuvm.h> #include <linux/interval_tree_generic.h>
@@ -1019,6 +1020,7 @@ drm_gpuvm_init(struct drm_gpuvm *gpuvm, const char *name, gpuvm->drm = drm; gpuvm->r_obj = r_obj; +drm_dev_get (drm);drm_gem_object_get (r_obj);drm_gpuvm_warn_check_overflow (gpuvm, start_offset, range);
@@ -1060,13 +1062,15 @@ static void drm_gpuvm_free(struct kref *kref) { struct drm_gpuvm *gpuvm = container_of(kref, struct drm_gpuvm, kref); +struct drm_device *drm = gpuvm->drm;drm_gpuvm_fini (gpuvm); -if (drm_WARN_ON (gpuvm->drm, !gpuvm->ops->vm_free)) +if (drm_WARN_ON (drm, !gpuvm->ops->vm_free))return ; gpuvm->ops->vm_free (gpuvm); +drm_dev_put (drm); }/**
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 93/1276 arm64: dts: rockchip: fix rk809 interrupt pin on rk3566-roc-pc
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Weixin Guo <[email protected]>
[ Upstream commit 460bac478c5fe69054ffc60d607bba03bcaf909b ]
The RK809 PMIC interrupt pin on the Firefly ROC-RK3566-PC (Station M2) is physically connected to GPIO0_A3 (RK_PA3) according to the board's schematic.
Currently, the PMIC node incorrectly specifies RK_PA7 for the interrupt, which prevents the PMIC from correctly signaling interrupts. (Note that the pinctrl node 'pmic_int' correctly configures RK_PA3).
Fix this by updating the interrupts property to use RK_PA3.
--- arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts +1 -1
@@ -245,7 +245,7 @@ rk809: pmic@20 { compatible = "rockchip,rk809"; reg = <0x20>; interrupt-parent = <&gpio0>; - interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>; + interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; clock-output-names = "rk808-clkout1", "rk808-clkout2"; assigned-clocks = <&cru I2S1_MCLKOUT_TX>; assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 94/1276 arm64: dts: imx8x-colibri: Correct SODIMM PAD settings
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peng Fan <[email protected]>
[ Upstream commit 0a03ee38a262cab0d9754e9947d565e089a9f7a5 ]
SION is BIT(30), not BIT(26). Correct it.
--- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +2 -2
@@ -577,12 +577,12 @@ pinctrl_adc0: adc0grp { */ pinctrl_atmel_adap: atmeladaptergrp { fsl,pins = <IMX8QXP_UART1_RX_LSIO_GPIO0_IO22 0x21>, /* SODIMM 30 */ - <IMX8QXP_UART1_TX_LSIO_GPIO0_IO21 0x4000021>; /* SODIMM 28 */ + <IMX8QXP_UART1_TX_LSIO_GPIO0_IO21 0x40000021>; /* SODIMM 28 */ }; /* Atmel MXT touchsceen + boards with built-in Capacitive Touch Connector */ pinctrl_atmel_conn: atmelconnectorgrp { - fsl,pins = <IMX8QXP_QSPI0B_DATA2_LSIO_GPIO3_IO20 0x4000021>, /* SODIMM 107 */ + fsl,pins = <IMX8QXP_QSPI0B_DATA2_LSIO_GPIO3_IO20 0x40000021>, /* SODIMM 107 */ <IMX8QXP_QSPI0B_SS1_B_LSIO_GPIO3_IO24 0x21>; /* SODIMM 106 */ };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 95/1276 vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuniyuki Iwashima <[email protected]>
[ Upstream commit 30a45c0bffdd62350261e2f2689fdba426a33578 ]
udp_tunnel_sock_release() could set sk->sk_user_data to NULL while vxlan_gro_prepare_receive() is running.
Let's check if rcu_dereference_sk_user_data() is NULL after skb_gro_remcsum_init().
--- drivers/net/vxlan/vxlan_core.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/net/vxlan/vxlan_core.c +6 -2
@@ -679,14 +679,18 @@ static struct vxlanhdr *vxlan_gro_prepare_receive(struct sock *sk,struct sk_buff *skb, struct gro_remcsum *grc) { - struct sk_buff *p; struct vxlanhdr *vh, *vh2;unsigned int hlen, off_vx; -struct vxlan_sock *vs =rcu_dereference_sk_user_data (sk); +struct vxlan_sock *vs; +struct sk_buff *p;__be32 flags;skb_gro_remcsum_init (grc); + vs =rcu_dereference_sk_user_data (sk); +if (!vs) +return NULL ; + off_vx =skb_gro_offset (skb); hlen = off_vx +sizeof (*vh); vh =skb_gro_header (skb, hlen, off_vx);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 96/1276 crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tycho Andersen (AMD) <[email protected]>
[ Upstream commit 1b864b6cb213bbd7b406e9b2e98c962077f300df ]
Sashiko notes:
Quoted 9 lines
regarding the bounds check in
snp_filter_reserved_mem_regions()called viawalk_iomem_res_desc(): does the check
if ((range_list->num_elements* 16 + 8) >PAGE_SIZE) allow an off-by-one heap buffer overflow?If
range_list->num_elementsis 255, 255 * 16 + 8 = 4088, which is <= 4096. Writingrange->base(8 bytes) fills 4088-4095, but writingrange->page_count(4 bytes) would write to 4096-4099, overflowing the kzalloc-allocatedPAGE_SIZEbuffer.
Fix this by accounting for the entry about to be written to, in addition to the entries that are already allocated.
--- drivers/crypto/ccp/sev-dev.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/crypto/ccp/sev-dev.c +4 -3
@@ -1066,10 +1066,11 @@ static int snp_filter_reserved_mem_regions(struct resource *rs, void *arg)size_t size;/* -* Ensure the list of HV_FIXED pages that will be passed to firmware -* do not exceed the page-sized argument buffer. +* Ensure the list of HV_FIXED pages passed to the firmware including +* the one about to be written to do not exceed the page-sized argument +* buffer. */ -if ((range_list->num_elements *sizeof (struct sev_data_range ) + +if (((range_list->num_elements +1 ) *sizeof (struct sev_data_range ) +sizeof (struct sev_data_range_list )) >PAGE_SIZE )return -E2BIG ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 97/1276 crypto: atmel-sha204a - fix blocking and non-blocking rng logic
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lothar Rubusch <[email protected]>
[ Upstream commit 319400fc5ee15db5793aa45f854968141326effc ]
The blocking and non-blocking paths were failing to provide valid entropy due to improper buffer management. Reading the buffer starting from byte 1, only fetch the 32 bytes of random data from the return message.
Tested on an Atmel SHA204A device.
Before (here for blocking), tests showed repeatedly reading reduced bytes.
$ head -c 32 /dev/hwrng | hexdump -C 00000000 02 28 85 b3 47 40 f2 ee 00 00 00 00 00 00 00 00 |.(..G@..........| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000020
After, the result will be similar to the following:
$ head -c 32 /dev/hwrng | hexdump -C 00000000 5a fc 3f 13 14 68 fe 06 68 0a bd 04 83 6e 09 69 |Z.?..h..h....n.i| 00000010 75 ff cf 87 10 84 3b c9 c1 df ae eb 45 53 4c c3 |u.....;.....ESL.| 00000020
--- drivers/crypto/atmel-sha204a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/crypto/atmel-sha204a.c +4 -4
@@ -48,8 +48,8 @@ static int atmel_sha204a_rng_read_nonblocking(struct hwrng *rng, void *data,if (rng->priv) { work_data = (struct atmel_i2c_work_data *)rng->priv; - max =min (sizeof (work_data->cmd.data), max); -memcpy (data, &work_data->cmd.data, max); + max =min (RANDOM_RSP_SIZE -CMD_OVERHEAD_SIZE , max); +memcpy (data, &work_data->cmd.data[RSP_DATA_IDX ], max); rng->priv =0 ; }else { work_data =kmalloc (sizeof (*work_data),GFP_ATOMIC );
@@ -87,8 +87,8 @@ static int atmel_sha204a_rng_read(struct hwrng *rng, void *data, size_t max,if (ret)return ret; - max =min (sizeof (cmd.data), max); -memcpy (data, cmd.data, max); + max =min (RANDOM_RSP_SIZE -CMD_OVERHEAD_SIZE , max); +memcpy (data, &cmd.data[RSP_DATA_IDX ], max);return max; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 98/1276 crypto: ecrdsa - fix unknown OID check in ecrdsa_param_curve
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thorsten Blum <[email protected]>
[ Upstream commit 2d7b2cfc59998baf5e8622a24dc28f69a5212e06 ]
The ->curve_oid check in ecrdsa_param_curve() rejects the valid enum value 0 (OID_id_dsa_with_sha1), but look_up_OID() returns OID__NR on lookup failure. Compare ->curve_oid with OID__NR instead to ensure that only unknown OIDs return -EINVAL.
--- crypto/ecrdsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/ecrdsa.c +1 -1
@@ -153,7 +153,7 @@ int ecrdsa_param_curve(void *context, size_t hdrlen, unsigned char tag,struct ecrdsa_ctx *ctx = context; ctx->curve_oid =look_up_OID (value, vlen); -if (!ctx->curve_oid) +if (ctx->curve_oid ==OID__NR )return -EINVAL ; ctx->curve =get_curve_by_oid (ctx->curve_oid);return 0 ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 99/1276 crypto: asymmetric_keys - fix OOB read in pefile_digest_pe_contents
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Weiming Shi <[email protected]>
[ Upstream commit f7dd32c5179d7755de18e21d5674b08f9e5cb180 ]
pefile_digest_pe_contents() computes the trailing-data hash length as pelen - (hashed_bytes + certs_size). A crafted PE can make the addition exceed pelen, causing the unsigned subtraction to underflow to ~4 GiB. This is passed to crypto_shash_update() which reads out of bounds and panics on unmapped vmalloc guard pages.
BUG: unable to handle page fault for address: ffffc900038d8000 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:sha256_blocks_generic (lib/crypto/sha256.c:152) Call Trace: <TASK> __sha256_update (lib/crypto/sha256.c:208) crypto_sha256_update (crypto/sha256.c:142) verify_pefile_signature (crypto/asymmetric_keys/verify_pefile.c:436) kexec_kernel_verify_pe_sig (kernel/kexec_file.c:151) __do_sys_kexec_file_load (kernel/kexec_file.c:406) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) </TASK> Kernel panic - not syncing: Fatal exception
Validate that the addition does not overflow and the result does not exceed pelen before the subtraction. Return -ELIBBAD on failure.
--- crypto/asymmetric_keys/verify_pefile.c | 2 ++ 1 file changed, 2 insertions(+)
crypto/asymmetric_keys/verify_pefile.c +2 -0
@@ -305,6 +305,8 @@ static int pefile_digest_pe_contents(const void *pebuf, unsigned int pelen,if (pelen > hashed_bytes) { tmp = hashed_bytes + ctx->certs_size; +if (tmp <= hashed_bytes || pelen < tmp) +return -ELIBBAD ; ret =crypto_shash_update (desc, pebuf + hashed_bytes, pelen - tmp);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 100/1276 ARM: multi_v7_defconfig: Correct QCOM_RPMH and QCOM_RPMHPD
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
[ Upstream commit 02802b40c31d2f2cfc94716189cfaf610930c589 ]
QCOM_RPMH and QCOM_RPMHPD can be build only as modules when QCOM_COMMAND_DB is module itself.
--- arch/arm/configs/multi_v7_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/configs/multi_v7_defconfig +2 -2
@@ -1112,7 +1112,7 @@ CONFIG_QCOM_COMMAND_DB=m CONFIG_QCOM_GSBI=y CONFIG_QCOM_OCMEM=m CONFIG_QCOM_RMTFS_MEM=m -CONFIG_QCOM_RPMH=y +CONFIG_QCOM_RPMH=m CONFIG_QCOM_SMEM=y CONFIG_QCOM_SMD_RPM=y CONFIG_QCOM_SMP2P=y
@@ -1149,7 +1149,7 @@ CONFIG_KEYSTONE_NAVIGATOR_QMSS=y CONFIG_KEYSTONE_NAVIGATOR_DMA=y CONFIG_RASPBERRYPI_POWER=y CONFIG_QCOM_CPR=y -CONFIG_QCOM_RPMHPD=y +CONFIG_QCOM_RPMHPD=m CONFIG_QCOM_RPMPD=y CONFIG_ROCKCHIP_PM_DOMAINS=y CONFIG_TI_SCI_PM_DOMAINS=y
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 101/1276 dlm: fix add msg handle in send_queue ordered
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexander Aring <[email protected]>
[ Upstream commit d2248cb70c070f8f04762872772e155b59016f17 ]
In a benchmark scenario triggering a lot of requests that triggers a lot of DLM messages on the network it can be that the mh->seq is not ordered according the oldest seq number. This ordering is required by dlm_receive_ack as "before(mh->seq, seq)" will stop to check for older sequence numbers that are ordered in the tail of "node->send_queue".
The side effects of not having it correct ordered regarding "before(mh->seq, seq)" are refcounting issues and use-after free.
I only was able to reproduce this issue in a experimental DLM branch and a user space DLM benchmark that uses io_uring. After changing this I don't experienced any refcounting with the sending buffer issues anymore.
--- fs/dlm/midcomms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/dlm/midcomms.c +2 -2
@@ -968,10 +968,10 @@ static void midcomms_new_msg_cb(void *data)atomic_inc (&mh->node->send_queue_cnt);spin_lock_bh (&mh->node->send_queue_lock); +/* need to be locked with list_add_tail_rcu() because list is ordered */ + mh->seq =atomic_fetch_inc (&mh->node->seq_send);list_add_tail_rcu (&mh->list, &mh->node->send_queue);spin_unlock_bh (&mh->node->send_queue_lock); - - mh->seq =atomic_fetch_inc (&mh->node->seq_send); } static struct dlm_msg *dlm_midcomms_get_msg_3_2(struct dlm_mhandle *mh, int nodeid,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 102/1276 nilfs2: fix backing_dev_info reference leak
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shuangpeng Bai <[email protected]>
[ Upstream commit 665f192a2a11384cb7dc1be5f87d16438522a4ed ]
setup_bdev_super() already initializes sb->s_bdev and takes a reference on the block device backing_dev_info when assigning sb->s_bdi.
nilfs_fill_super() takes another reference to the same backing_dev_info and stores it in sb->s_bdi again. The extra reference is not paired with a matching bdi_put(), since generic_shutdown_super() releases sb->s_bdi only once.
Drop the redundant bdi_get() in nilfs_fill_super(). The single reference taken by setup_bdev_super() is enough and is released during superblock shutdown.
--- fs/nilfs2/super.c | 2 -- 1 file changed, 2 deletions(-)
fs/nilfs2/super.c +0 -2
@@ -1062,8 +1062,6 @@ nilfs_fill_super(struct super_block *sb, struct fs_context *fc) sb->s_time_gran =1 ; sb->s_max_links =NILFS_LINK_MAX ; - sb->s_bdi =bdi_get (sb->s_bdev->bd_disk->bdi); - err =load_nilfs (nilfs, sb);if (err) goto failed_nilfs;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 103/1276 media: qcom: camss: vfe: fix PIX subdev naming on VFE lite
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Wenmeng Liu <[email protected]>
[ Upstream commit c97e797a64cdfe4acecff831b4285418d2815893 ]
VFE lite hardware does not provide a functional PIX path, but after the per sub-device type resource changes the PIX subdev name is still assigned unconditionally.
Only assign the PIX subdev name on non-lite VFE variants to avoid exposing a misleading device name.
--- drivers/media/platform/qcom/camss/camss-vfe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/qcom/camss/camss-vfe.c +1 -1
@@ -1740,7 +1740,7 @@ int msm_vfe_register_entities(struct vfe_device *vfe,v4l2_subdev_init (sd, &vfe_v4l2_ops); sd->internal_ops = &vfe_v4l2_internal_ops; sd->flags |=V4L2_SUBDEV_FL_HAS_DEVNODE ; -if (i ==VFE_LINE_PIX ) +if (i ==VFE_LINE_PIX && vfe->res->is_lite == false)snprintf (sd->name,ARRAY_SIZE (sd->name),"%s%d_%s" ,MSM_VFE_NAME , vfe->id,"pix" );else
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 104/1276 iommu/amd: Fix a stale comment about which legacy mode is user visible
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sean Christopherson <[email protected]>
[ Upstream commit 4bf53c2d0c08bbdaa32f2114281f1ddab61902bf ]
Update a stale comment about which of the legacy modes is visible to the user, i.e. can be forced via amd_iommu_intr=legacy.
--- drivers/iommu/amd/amd_iommu_types.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/iommu/amd/amd_iommu_types.h +6 -5
@@ -969,12 +969,13 @@ static inline int get_hpet_devid(int id) }enum amd_iommu_intr_mode_type { -AMD_IOMMU_GUEST_IR_LEGACY , - -/* This mode is not visible to users. It is used when -* we cannot fully enable vAPIC and fallback to only support -* legacy interrupt remapping via 128-bit IRTE. +/* +* The legacy format mode is not visible to users to prevent the user +* from crashing x2APIC systems, which for all intents and purposes +* require 128-bit IRTEs. The legacy format will be forced as needed +* when hardware doesn't support 128-bit IRTEs. */ +AMD_IOMMU_GUEST_IR_LEGACY ,AMD_IOMMU_GUEST_IR_LEGACY_GA ,AMD_IOMMU_GUEST_IR_VAPIC , };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 105/1276 arm64: dts: mediatek: mt8192-asurada: Move PCIe DMA bounce buffer to host
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chen-Yu Tsai <[email protected]>
[ Upstream commit 533275a4b5240a2bf2c592bd4536560388306d26 ]
The DMA bounce buffer is attached to the PCIe host controller, i.e. all PCIe DMA transfers should use it.
Move it from the PCIe (WiFi) device node down to the PCIe host controller node.
--- arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +1 -1
@@ -515,6 +515,7 @@ flash@0 { &pcie { pinctrl-names = "default"; pinctrl-0 = <&pcie_pins>; + memory-region = <&wifi_restricted_dma_region>; pcie0: pcie@0,0 { device_type = "pci";
@@ -529,7 +530,6 @@ pcie0: pcie@0,0 { wifi: wifi@0,0 { reg = <0x10000 0 0 0 0x100000>, <0x10000 0 0x100000 0 0x100000>; - memory-region = <&wifi_restricted_dma_region>; }; }; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 106/1276 rust: alloc: fix `Vec::extend_with` SAFETY comment
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hsiu Che Yu <[email protected]>
[ Upstream commit f497aae6ded43f91b1dbf29a35d7062823635640 ]
Fix an incorrect operator in the SAFETY comment, changing < to <=, since Vec::reserve guarantees capacity for exactly n additional elements, so the equal case should be included.
--- rust/kernel/alloc/kvec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rust/kernel/alloc/kvec.rs +1 -1
@@ -479,7 +479,7 @@ impl<T: Clone, A: Allocator> Vec<T, A> { spare[n -1 ].write (value);// SAFETY: -// - `self.len() + n < self.capacity()` due to the call to reserve above, +// - `self.len() + n <= self.capacity()` due to the call to reserve above, // - the loop and the line above initialized the next `n` elements. unsafe { self.set_len (self.len () + n) };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 107/1276 clk: scmi: Fix clock rate rounding
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cristian Marussi <[email protected]>
[ Upstream commit d0c81a38d06d446d341532700b3a4a43d3b00eb1 ]
While the do_div() helper used for rounding expects its divisor argument to be a 32bits quantity, the currently provided divisor parameter is a 64bit value that, as a consequence, is silently truncated and a possible source of bugs.
Fix by using the proper div64_ul helper.
--- drivers/clk/clk-scmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/clk-scmi.c +2 -2
@@ -10,9 +10,9 @@#include <linux/device.h> #include <linux/err.h> #include <linux/of.h> +#include <linux/math64.h> #include <linux/module.h> #include <linux/scmi_protocol.h> -#include <asm/div64.h> #define NOT_ATOMIC false#define ATOMIC true
@@ -78,7 +78,7 @@ static long scmi_clk_round_rate(struct clk_hw *hw, unsigned long rate, ftmp = rate - fmin; ftmp += clk->info->range.step_size -1 ;/* to round up */ -do_div (ftmp, clk->info->range.step_size); + ftmp =div64_ul (ftmp, clk->info->range.step_size);return ftmp * clk->info->range.step_size + fmin; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 108/1276 arm64: dts: qcom: kodiak: Fix ICE reg size
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuldeep Singh <[email protected]>
[ Upstream commit fa9c7403af64d3e56a6c20dedc60e0a55b527509 ]
The ICE register region on Kodiak is currently defined as 0x8000 bytes. According to the hardware specification, the correct register size is 0x18000.
Update the ICE node reg property to match the hardware.
--- arch/arm64/boot/dts/qcom/sc7280.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280.dtsi +1 -1
@@ -2394,7 +2394,7 @@ ufs_mem_phy: phy@1d87000 { ice: crypto@1d88000 { compatible = "qcom,sc7280-inline-crypto-engine", "qcom,inline-crypto-engine"; - reg = <0 0x01d88000 0 0x8000>; + reg = <0 0x01d88000 0 0x18000>; clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 109/1276 arm64: dts: qcom: sm8450: Fix ICE reg size
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Kuldeep Singh <[email protected]>
[ Upstream commit 7fb3d0512dacc0d09217eb45057357f00298203d ]
The ICE register region size was originally described incorrectly when the ICE hardware was first introduced. The same value was later carried over unchanged when the ICE node was split out from the UFS node into its own DT entry.
Correct the register size to match the hardware specification.
--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +1 -1
@@ -4543,7 +4543,7 @@ ufs_mem_phy: phy@1d87000 { ice: crypto@1d88000 { compatible = "qcom,sm8450-inline-crypto-engine", "qcom,inline-crypto-engine"; - reg = <0 0x01d88000 0 0x8000>; + reg = <0 0x01d88000 0 0x18000>; clocks = <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 110/1276 drm/hisilicon/hibmc: move display contrl config to hibmc_probe()
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lin He <[email protected]>
[ Upstream commit de2a56c71f9b223922ea8fe0192d3c1fa2954608 ]
If there's no VGA output, this encoder modeset won't be called, which will cause displaying data from GPU being cut off. It's actually a common display config for DP and VGA, so move the vdac encoder modeset to driver load stage.
Removed invalid bit configurations from hibmc_display_ctrl
--- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 11 ++++++++++ .../gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 22 ------------------- 2 files changed, 11 insertions(+), 22 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +11 -0
@@ -174,6 +174,15 @@ void hibmc_set_current_gate(struct hibmc_drm_private *priv, unsigned int gate)writel (gate, mmio + gate_reg); } +static void hibmc_display_ctrl (struct hibmc_drm_private *priv) +{ +u32 reg; + + reg =readl (priv->mmio +HIBMC_DISPLAY_CONTROL_HISILE ); + reg |=HIBMC_DISPLAY_CONTROL_PANELDATE (1 ); +writel (reg, priv->mmio +HIBMC_DISPLAY_CONTROL_HISILE ); +} +static void hibmc_hw_config (struct hibmc_drm_private *priv) {u32 reg;
@@ -205,6 +214,8 @@ static void hibmc_hw_config(struct hibmc_drm_private *priv) reg |=HIBMC_MSCCTL_LOCALMEM_RESET (1 );writel (reg, priv->mmio +HIBMC_MISC_CTRL ); + +hibmc_display_ctrl (priv); }static int hibmc_hw_map (struct hibmc_drm_private *priv)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c +0 -22
@@ -70,26 +70,6 @@ static const struct drm_connector_funcs hibmc_connector_funcs = { .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, }; -static void hibmc_encoder_mode_set (struct drm_encoder *encoder, -struct drm_display_mode *mode, -struct drm_display_mode *adj_mode) -{ -u32 reg; -struct drm_device *dev = encoder->dev; -struct hibmc_drm_private *priv =to_hibmc_drm_private (dev); - - reg =readl (priv->mmio +HIBMC_DISPLAY_CONTROL_HISILE ); - reg |=HIBMC_DISPLAY_CONTROL_FPVDDEN (1 ); - reg |=HIBMC_DISPLAY_CONTROL_PANELDATE (1 ); - reg |=HIBMC_DISPLAY_CONTROL_FPEN (1 ); - reg |=HIBMC_DISPLAY_CONTROL_VBIASEN (1 ); -writel (reg, priv->mmio +HIBMC_DISPLAY_CONTROL_HISILE ); -} - -static const struct drm_encoder_helper_funcs hibmc_encoder_helper_funcs = { - .mode_set = hibmc_encoder_mode_set, -}; -int hibmc_vdac_init (struct hibmc_drm_private *priv) {struct drm_device *dev = &priv->dev;
@@ -112,8 +92,6 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv) goto err; } -drm_encoder_helper_add (encoder, &hibmc_encoder_helper_funcs); - ret = drm_connector_init_with_ddc(dev, connector, &hibmc_connector_funcs, DRM_MODE_CONNECTOR_VGA,
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 111/1276 drm/hisilicon/hibmc: use clock to look up the PLL value
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lin He <[email protected]>
[ Upstream commit 99ef3a4f1c1813cabd50bb3e8522e85e00838bb2 ]
In the past, we use width and height to look up our PLL value. But actually the actual clock check is also necessnary. There are some resolutions that width and height same, but its clock different. Add the clock check when using pll_table to determine the PLL value.
--- .../gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 80 +++++++++++-------- 1 file changed, 45 insertions(+), 35 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +45 -35
@@ -32,26 +32,43 @@ struct hibmc_display_panel_pll {struct hibmc_dislay_pll_config {u64 hdisplay;u64 vdisplay; +int clock;u32 pll1_config_value;u32 pll2_config_value; };static const struct hibmc_dislay_pll_config hibmc_pll_table[] = { - {640 ,480 ,CRT_PLL1_HS_25MHZ ,CRT_PLL2_HS_25MHZ }, - {800 ,600 ,CRT_PLL1_HS_40MHZ ,CRT_PLL2_HS_40MHZ }, - {1024 ,768 ,CRT_PLL1_HS_65MHZ ,CRT_PLL2_HS_65MHZ }, - {1152 ,864 ,CRT_PLL1_HS_80MHZ_1152 ,CRT_PLL2_HS_80MHZ }, - {1280 ,768 ,CRT_PLL1_HS_80MHZ ,CRT_PLL2_HS_80MHZ }, - {1280 ,720 ,CRT_PLL1_HS_74MHZ ,CRT_PLL2_HS_74MHZ }, - {1280 ,960 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, - {1280 ,1024 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, - {1440 ,900 ,CRT_PLL1_HS_106MHZ ,CRT_PLL2_HS_106MHZ }, - {1600 ,900 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, - {1600 ,1200 ,CRT_PLL1_HS_162MHZ ,CRT_PLL2_HS_162MHZ }, - {1920 ,1080 ,CRT_PLL1_HS_148MHZ ,CRT_PLL2_HS_148MHZ }, - {1920 ,1200 ,CRT_PLL1_HS_193MHZ ,CRT_PLL2_HS_193MHZ }, + {640 ,480 ,25000 ,CRT_PLL1_HS_25MHZ ,CRT_PLL2_HS_25MHZ }, + {800 ,600 ,40000 ,CRT_PLL1_HS_40MHZ ,CRT_PLL2_HS_40MHZ }, + {1024 ,768 ,65000 ,CRT_PLL1_HS_65MHZ ,CRT_PLL2_HS_65MHZ }, + {1152 ,864 ,78750 ,CRT_PLL1_HS_80MHZ_1152 ,CRT_PLL2_HS_80MHZ }, + {1280 ,768 ,80000 ,CRT_PLL1_HS_80MHZ ,CRT_PLL2_HS_80MHZ }, + {1280 ,720 ,74375 ,CRT_PLL1_HS_74MHZ ,CRT_PLL2_HS_74MHZ }, + {1280 ,960 ,108000 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, + {1280 ,1024 ,108000 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, + {1440 ,900 ,105952 ,CRT_PLL1_HS_106MHZ ,CRT_PLL2_HS_106MHZ }, + {1600 ,900 ,108000 ,CRT_PLL1_HS_108MHZ ,CRT_PLL2_HS_108MHZ }, + {1600 ,1200 ,162500 ,CRT_PLL1_HS_162MHZ ,CRT_PLL2_HS_162MHZ }, + {1920 ,1080 ,148750 ,CRT_PLL1_HS_148MHZ ,CRT_PLL2_HS_148MHZ }, + {1920 ,1200 ,193750 ,CRT_PLL1_HS_193MHZ ,CRT_PLL2_HS_193MHZ }, }; +static int hibmc_get_best_clock_idx (const struct drm_display_mode *mode) +{ +int i, diff; + +for (i =0 ; i <ARRAY_SIZE (hibmc_pll_table); i++) { +if (hibmc_pll_table[i].hdisplay == mode->hdisplay && + hibmc_pll_table[i].vdisplay == mode->vdisplay) { + diff =abs (mode->clock - hibmc_pll_table[i].clock); +if (diff < mode->clock /100 )/* tolerance 1/100 */ +return i; + } + } + +return -MODE_CLOCK_RANGE ; +} +static int hibmc_plane_atomic_check (struct drm_plane *plane,struct drm_atomic_state *state) {
@@ -214,19 +231,15 @@ static enum drm_mode_status hibmc_crtc_mode_valid(struct drm_crtc *crtc, const struct drm_display_mode *mode) { - size_t i = 0; int vrefresh = drm_mode_vrefresh(mode);if (vrefresh <59 || vrefresh >61 )return MODE_NOCLOCK ; -for (i =0 ; i <ARRAY_SIZE (hibmc_pll_table); i++) { -if (hibmc_pll_table[i].hdisplay == mode->hdisplay && - hibmc_pll_table[i].vdisplay == mode->vdisplay) -return MODE_OK ; - } +if (hibmc_get_best_clock_idx (mode) >=0 ) +return MODE_OK ; -return MODE_BAD ; +return MODE_CLOCK_RANGE ; }static u32 format_pll_reg (void )
@@ -281,23 +294,20 @@ static void set_vclock_hisilicon(struct drm_device *dev, u64 pll)writel (val, priv->mmio +CRT_PLL1_HS ); } -static void get_pll_config (u64 x,u64 y,u32 *pll1,u32 *pll2) +static void get_pll_config (struct drm_display_mode *mode,u32 *pll1,u32 *pll2) { -size_t i; -size_t count =ARRAY_SIZE (hibmc_pll_table); - -for (i =0 ; i < count; i++) { -if (hibmc_pll_table[i].hdisplay == x && - hibmc_pll_table[i].vdisplay == y) { - *pll1 = hibmc_pll_table[i].pll1_config_value; - *pll2 = hibmc_pll_table[i].pll2_config_value; -return ; - } +int idx; + + idx =hibmc_get_best_clock_idx (mode); +if (idx <0 ) { +/* if found none, we use default value */ + *pll1 =CRT_PLL1_HS_25MHZ ; + *pll2 =CRT_PLL2_HS_25MHZ ; +return ; } -/* if found none, we use default value */ - *pll1 =CRT_PLL1_HS_25MHZ ; - *pll2 =CRT_PLL2_HS_25MHZ ; + *pll1 = hibmc_pll_table[idx].pll1_config_value; + *pll2 = hibmc_pll_table[idx].pll2_config_value; }/*
@@ -319,7 +329,7 @@ static u32 display_ctrl_adjust(struct drm_device *dev, x = mode->hdisplay; y = mode->vdisplay; -get_pll_config (x, y, &pll1, &pll2); +get_pll_config (mode, &pll1, &pll2);writel (pll2, priv->mmio +CRT_PLL2_HS );set_vclock_hisilicon (dev, pll1);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 112/1276 evm: terminate and bound the evm_xattrs read buffer
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <[email protected]>
[ Upstream commit 11143a19f5b8dc8f414deab87571134f9f447313 ]
evm_read_xattrs() allocates size + 1 bytes, fills them from the list of enabled xattrs, and then passes strlen(temp) to simple_read_from_buffer(). When no configured xattrs are enabled, the fill loop stores nothing and temp[0] remains uninitialized, so strlen() reads beyond initialized memory.
Explicitly terminate the buffer after allocation, use snprintf() for each formatted line, and pass the accumulated length, without risk of truncation, to simple_read_from_buffer().
--- security/integrity/evm/evm_secfs.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
security/integrity/evm/evm_secfs.c +11 -5
@@ -128,8 +128,8 @@ static ssize_t evm_read_xattrs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) { char *temp; -int offset =0 ; -ssize_t rc, size =0 ; +size_t offset =0 , size =0 ; +ssize_t rc;struct xattr_list *xattr;if (*ppos !=0 )
@@ -152,16 +152,22 @@ static ssize_t evm_read_xattrs(struct file *filp, char __user *buf,return -ENOMEM ; } + temp[size] ='\0' ; + +/* +* No truncation possible: size is computed over the same enabled +* xattrs under xattr_list_mutex, so offset never exceeds size. +*/ list_for_each_entry (xattr, &evm_config_xattrnames, list) {if (!xattr->enabled)continue ; -sprintf (temp + offset,"%s\n" , xattr->name); - offset +=strlen (xattr->name) +1 ; + offset +=snprintf (temp + offset, size +1 - offset,"%s\n" , + xattr->name); }mutex_unlock (&xattr_list_mutex); - rc =simple_read_from_buffer (buf, count, ppos, temp,strlen (temp)); + rc =simple_read_from_buffer (buf, count, ppos, temp, offset);kfree (temp);
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 113/1276 thermal: hwmon: Fix critical temperature attribute removal
In reply to Greg Kroah-Hartman6.12-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rafael J. Wysocki <[email protected]>
[ Upstream commit c2114dbda05354dbcf4dfbb30a2c623e8611c43a ]
Since the return value of thermal_zone_crit_temp_valid() depends on the behavior of the thermal zone .get_crit_temp() callback which may change over time in theory, thermal_remove_hwmon_sysfs() may attempt to remove a critical temperature attribute that has not been created, passing a pointer to an uninitialized attribute structure to device_remove_file().
To avoid that, set a flag in struct thermal_hwmon_temp after creating a critical temperature attribute and use the value of that flag to decide whether or not the attribute needs to be removed.
--- drivers/thermal/thermal_hwmon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/thermal/thermal_hwmon.c +4 -1
@@ -40,6 +40,7 @@ struct thermal_hwmon_temp {struct thermal_zone_device *tz;struct thermal_hwmon_attr temp_input;/* hwmon sys attr */ struct thermal_hwmon_attr temp_crit;/* hwmon sys attr */ +bool temp_crit_present; };static LIST_HEAD (thermal_hwmon_list);
@@ -194,6 +195,8 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) &temp->temp_crit.attr);if (result) goto unregister_input; + + temp->temp_crit_present = true; }mutex_lock (&thermal_hwmon_list_lock);
@@ -238,7 +241,7 @@ void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) }device_remove_file (hwmon->device, &temp->temp_input.attr); -if (thermal_zone_crit_temp_valid (tz)) +if (temp->temp_crit_present)device_remove_file (hwmon->device, &temp->temp_crit.attr);mutex_lock (&thermal_hwmon_list_lock);
Signature · 1 line
2.53.0