6.18.40-rc1 review
Subsystems (13)
Greg Kroah-Hartman
maintainerPATCH 1/1611 nvme-pci: DMA unmap the correct regions in nvme_free_sgls
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Roger Pau Monne <[email protected]>
commit a54afbc8a2138f8c2490510cf26cde188d480c43 upstream.
The call to nvme_free_sgls() in nvme_unmap_data() has the sg_list and sge parameters swapped. This wasn't noticed by the compiler because both share the same type. On a Xen PV hardware domain, and possibly any other architectures that takes that path, this leads to corruption of the NVMe contents.
[nb: drop the attrs parameter added in 6.19 by commit 61d43b1731e0
("nvme-pci: migrate to dma_map_phys instead of map_page"), which is not in 6.18.y]
--- drivers/nvme/host/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/host/pci.c +2 -2
@@ -761,8 +761,8 @@ static void nvme_unmap_data(struct request *req)if (!blk_rq_dma_unmap (req, dma_dev, &iod->dma_state, iod->total_len)) {if (nvme_pci_cmd_use_sgl (&iod->cmd)) -nvme_free_sgls (req, iod->descriptors[0 ], - &iod->cmd.common.dptr.sgl); +nvme_free_sgls (req, &iod->cmd.common.dptr.sgl, + iod->descriptors[0 ]);else nvme_free_prps (req); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainercover 6.18.40-rc1 review
This is the start of the stable review cycle for the 6.18.40 release. There are 1611 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.18.40-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.18.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 6.18.40-rc1
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Avoid repeated requests to allocate WC pages
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Initialize dpi variable to zero
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
Ilpo Järvinen <[email protected]>
PCI: Fix Resizable BAR restore order
Ilpo Järvinen <[email protected]>
PCI: Fix BAR resize rollback path overwriting ret
Ian Rogers <[email protected]>
perf symbol: Fix ENOENT case for filename__read_build_id
Chukun Pan <[email protected]>
pinctrl: airoha: fix pinctrl function mismatch issue
Matt Bobrowski <[email protected]>
bpf: Reject BPF_MAP_TYPE_INODE_STORAGE creation if BPF LSM is uninitialized
Nicolin Chen <[email protected]>
iommufd: Move vevent memory allocation outside spinlock
Nicolin Chen <[email protected]>
iommufd: Propagate allocation failure in iommufd_veventq_deliver_fetch()
Oliver Upton <[email protected]>
KVM: arm64: nv: Re-translate VNCR before injecting abort
Marc Zyngier <[email protected]>
KVM: arm64: Deduplicate ASID retrieval code
Zenghui Yu <[email protected]>
samples/damon/mtier: fail early if address range parameters are invalid
SeongJae Park <[email protected]>
mm/damon/core: trace esz at first setup
SeongJae Park <[email protected]>
mm/damon/core: always put unsuccessfully committed target pids
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
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
Ahsan Atta <[email protected]>
crypto: qat - fix restarting state leak on allocation failure
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()
Thorsten Blum <[email protected]>
crypto: atmel-sha204a - fail on hwrng registration error in probe path
Neill Kapron <[email protected]>
usb: gadget: f_fs: Tie read_buffer lifetime to ffs_epfile
Tyler Baker <[email protected]>
usb: gadget: f_fs: initialize reset_work at allocation time
Al Viro <[email protected]>
functionfs: use spinlock for FFS_DEACTIVATED/FFS_CLOSING transitions
Al Viro <[email protected]>
functionfs: switch to simple_remove_by_name()
Al Viro <[email protected]>
functionfs: don't bother with ffs->ref in ffs_data_{opened,closed}()Al Viro <[email protected]>
functionfs: don't abuse ffs_data_closed() on fs shutdown
Al Viro <[email protected]>
new helper: simple_remove_by_name()
Mauricio Faria de Oliveira <[email protected]>
usb: atm: ueagle-atm: wait for pre-firmware load in .disconnect()
Mauricio Faria de Oliveira <[email protected]>
usb: atm: ueagle-atm: remove function entry/exit debug messages
Mauricio Faria de Oliveira <[email protected]>
usb: atm: ueagle-atm: use dev_dbg() for 'device found' message
Ben Dooks <[email protected]>
usb: dwc3: fix dwc3_readl() and dwc3_writel() calls in dwc3_ulpi_setup()
Ingo Rohloff <[email protected]>
usb: dwc3: Support USB3340x ULPI PHY high-speed negotiation.
Christoph Hellwig <[email protected]>
xfs: use bio_reuse in the zone GC code
Christoph Hellwig <[email protected]>
xfs: only log freed extents for the current RTG in zoned growfs
Christoph Hellwig <[email protected]>
xfs: add a xfs_groups_to_rfsbs helper
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
Nuoqi Gui <[email protected]>
bpf: Keep dynamic inner array lookups nullable
Mykyta Yatsenko <[email protected]>
bpf: Introduce struct bpf_map_desc in verifier
Mykyta Yatsenko <[email protected]>
bpf: Consistently use reg_state() for register access in the verifier
Christoph Hellwig <[email protected]>
xfs: initialize iomap->flags earlier in xfs_bmbt_to_iomap
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
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()
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
Haofeng Li <[email protected]>
ksmbd: validate NTLMv2 response before updating session key
Eric Biggers <[email protected]>
ksmbd: Use HMAC-MD5 library for NTLMv2
Eric Biggers <[email protected]>
ksmbd: Use HMAC-SHA256 library for message signing and key generation
Eric Biggers <[email protected]>
ksmbd: Use SHA-512 library for SMB3.1.1 preauth hash
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
Davide Ornaghi <[email protected]>
ksmbd: fix path resolution in ksmbd_vfs_kern_path_create
Namjae Jeon <[email protected]>
ksmbd: use opener credentials for FSCTL mutations
David Howells <[email protected]>
cifs: SMB1 split: Add some #includes
David Howells <[email protected]>
cifs: SMB1 split: Rename cifstransport.c
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
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
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: Add kerneldoc for pci_resize_resource()
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: Try BAR resize even when no window was released
Ilpo Järvinen <[email protected]>
PCI: Change pci_dev variable from 'bridge' to 'dev'
Ilpo Järvinen <[email protected]>
PCI/IOV: Adjust ->barsz[] when changing BAR size
Richard Zhu <[email protected]>
PCI: imx6: Configure REF_USE_PAD before PHY reset for i.MX95
Franz Schnyder <[email protected]>
PCI: imx6: Fix reference clock source selection for i.MX95
Chris Mason <[email protected]>
binder: cache secctx size before release zeroes it
Jisheng Zhang <[email protected]>
binder: Use LIST_HEAD() to initialize on stack list head
Alex Williamson <[email protected]>
vfio/mlx5: Fix racy bitfields and tighten struct layout
Cássio Gabriel <[email protected]>
ALSA: hda/tas2781: Cancel async firmware request at unbind
Cássio Gabriel <[email protected]>
firmware_loader: Add cancel helper for async requests
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
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
Eric Biggers <[email protected]>
crypto: xilinx-trng - Remove crypto_rng interface
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: fix resume error handling
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: make non-fatal errors non-blocking in suspend
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: use pm_runtime_resume_and_get() in suspend
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: disable irq during suspend to fix unhandled interrupt
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: fix esdhc_change_pinstate() to allow default state restore
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: restore DLL override for DDR modes on resume
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: remove unnecessary mmc_card_wake_sdio_irq check for tuning save/restore
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
Zhao Li <[email protected]>
wifi: ieee80211: validate MLE common info length
Haofeng Li <[email protected]>
wifi: cfg80211: validate EHT MLE before MLD ID read
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
Thomas Weißschuh <[email protected]>
riscv: vdso: Do not use LTO for the vDSO
Maoyi Xie <[email protected]>
wifi: brcmfmac: cyw: fix heap overflow on a short auth frame
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
Zhiping Zhang <[email protected]>
net/mlx5: free mlx5_st_idx_data on final dealloc
Thorsten Blum <[email protected]>
powerpc/pseries: fix memory leak on krealloc failure in papr_init
Luke Wang <[email protected]>
mmc: sdhci-esdhc-imx: restore pinctrl before restoring ios timing on resume
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
Hui Wang <[email protected]>
selftests/rseq: Fix a building error for riscv arch
Gerald Schaefer <[email protected]>
s390/mm: Fix type mismatch in get_align_mask().
Heiko Carstens <[email protected]>
s390/diag: Add missing array_index_nospec() call to memtop_get_page_count()
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: Allow capacity transition to zero for locked drives
TJ Adams <[email protected]>
ata: libata-core: Skip HPA resize for locked drives
Reinette Chatre <[email protected]>
fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list
Tony Luck <[email protected]>
fs/resctrl: Free mon_data structures on rdt_get_tree() failure
Jinjie Ruan <[email protected]>
cpu/hotplug: Fix NULL kobject warning in cpuhp_smt_enable()
Jinjie Ruan <[email protected]>
arm64: smp: Fix hot-unplug tearing by forcing unregistration
Théo Lebrun <[email protected]>
net: macb: drop in-flight Tx SKBs on close
Dust Li <[email protected]>
dibs: loopback: validate offset and size in move_data()
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
Dawei Feng <[email protected]>
octeontx2-pf: fix SQB pointer leak on init failure
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
Dawei Feng <[email protected]>
net/mlx5: HWS, fix matcher leak on resize target setup failure
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
Lad Prabhakar <[email protected]>
rtc: renesas-rtca3: Fix PIE clear polling condition in alarm setup error path
Abdun Nihaal <[email protected]>
bnx2x: fix potential memory leak in bnx2x_alloc_mem_bp()
Wentao Liang <[email protected]>
ipmi: fix refcount leak in i_ipmi_request()
Sabrina Dubroca <[email protected]>
espintcp: use sk_msg_free_partial to fix partial send
Matt Fleming <[email protected]>
ipmi: Fix user refcount underflow in event delivery
Hongchen Zhang <[email protected]>
LoongArch: Fix missing dirty page tracking in {pte,pmd}_wrprotect()
Xuewen Wang <[email protected]>
LoongArch: Fix nr passing in set_direct_map_valid_noflush()
Biju Das <[email protected]>
pwm: rzg2l-gpt: Fix period_ticks type from u32 to u64
Ihor Solodrai <[email protected]>
selftests/bpf: Add simple strscpy() implementation
Sean Christopherson <[email protected]>
KVM: TDX: Account all non-transient page allocations for per-TD structures
Shuicheng Lin <[email protected]>
drm/xe/userptr: Stub notifier_lock helpers when DRM_GPUSVM=n
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
Ankit Garg <[email protected]>
gve: fix header buffer corruption with header-split and HW-GRO
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_tunnel: require CAP_NET_ADMIN in the device netns for changelink
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
Ross Porter <[email protected]>
selftests: net: fix file owner for broadcast_ether_dst test
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
Philippe Schenker <[email protected]>
net: ethernet: ti: icssg: guard PA stat lookups
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
Sergio Paracuellos <[email protected]>
gpio: mt7621: avoid corruption of shared interrupt trigger state
Paul Louvel <[email protected]>
gpio-f7188x: Add support for NCT6126D version B
Sergio Paracuellos <[email protected]>
gpio: mt7621: be sure IRQ domain is created before exposing GPIO chips
Runyu Xiao <[email protected]>
gpio: tegra: do not call pinctrl for GPIO direction
Sergio Paracuellos <[email protected]>
gpio: mt7621: more robust management of IRQ domain teardown
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()
Thomas Gleixner <[email protected]>
locking/rt: Fix the incorrect RCU protection in rt_spin_unlock()
Maoyi Xie <[email protected]>
wifi: libertas_tf: fix use-after-free in lbtf_free_adapter()
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
Wentao Liang <[email protected]>
accel/amdxdna: Fix use-after-free in amdxdna_gem_dmabuf_mmap()
Baineng Shou <[email protected]>
dma-fence: Make dma_fence_dedup_array() robust against 0-count input
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-integrity: fix leaking uninitialized kernel memory
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
Samuel Moelius <[email protected]>
dm-pcache: reject option groups without values
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
Yitang Yang <[email protected]>
block: fix IORING_URING_CMD_REISSUE flags check in blkdev_uring_cmd
Mike Waychison <[email protected]>
block: fix race in blk_time_get_ns() returning 0
Connor Williamson <[email protected]>
block: remove redundant GD_NEED_PART_SCAN in add_disk_final()
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
Tristan Madani <[email protected]>
bpf: Reset register bounds before narrowing retval range in check_mem_access()
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: serialize TX state transitions under so->rx_lock
Oliver Hartkopp <[email protected]>
can: isotp: fix use-after-free race with concurrent NETDEV_UNREGISTER
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
Wentao Liang <[email protected]>
nvmet: fix refcount leak in nvmet_sq_create()
Bryam Vargas <[email protected]>
nvmet-rdma: handle inline data with a nonzero offset
Michael Bommarito <[email protected]>
nvmet-auth: reject short AUTH_RECEIVE buffers
Nick Chan <[email protected]>
nvme-apple: Prevent shared tags across queues on Apple A11
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
Qianyu Luo <[email protected]>
xfrm: nat_keepalive: avoid double free on send error
Wentao Liang <[email protected]>
xen/gntdev: fix error handling in ioctl
Steven Rostedt <[email protected]>
ufs: core: tracing: Do not dereference pointers in TP_printk()
Dmitry Safonov <[email protected]>
tcp: Decrement tcp_md5_needed static branch
Michael Bommarito <[email protected]>
tcp: defer md5sig_info kfree past RCU grace period in tcp_connect
Paul Greenwalt <[email protected]>
ice: fix ice_init_link() error return preventing probe
Pei Xiao <[email protected]>
i2c: spacemit: fix spurious IRQ handling returning IRQ_HANDLED
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
Vincent Jardin <[email protected]>
i2c: imx: fix locked bus on SMBus block-read of 0 (IRQ)
Vincent Jardin <[email protected]>
i2c: imx: fix locked bus on SMBus block-read of 0 (atomic)
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
Srinivas Pandruvada <[email protected]>
platform/x86: ISST: Restore SST-PP control to all domains
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
Hongling Zeng <[email protected]>
sunrpc: fix uninitialized xprt_create_args structure
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()
Baoli Zhang <[email protected]>
tpm: restore timeout for key creation commands
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
Stafford Horne <[email protected]>
openrisc: Fix jump_label smp syncing
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
Manivannan Sadhasivam <[email protected]>
bus: mhi: host: pci_generic: Fix the physical function check
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 UBSAN array-index-out-of-bounds in ocfs2_sum_rightmost_rec
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
Stafford Horne <[email protected]>
openrisc: Add full instruction cache invalidate functions
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()
Alexey Charkov <[email protected]>
power: supply: bq257xx: Fix VSYSMIN clamping logic
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
Amit Machhiwal <[email protected]>
powerpc/dt_cpu_ftrs: Set CPU_FTR_P11_PVR for Power11 and later processors
Jinjiang Tu <[email protected]>
fs/proc: fix KPF_KSM reported for all anonymous pages
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()
Bryam Vargas <[email protected]>
landlock: Fix LANDLOCK_SCOPE_SIGNAL bypass on the SIGIO path
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
Deepanshu Kartikey <[email protected]>
mm/hugetlb: fix hugetlb cgroup rsvd charge/uncharge mismatch
Johan Hovold <[email protected]>
power: supply: max17042: fix OF node reference imbalance
Ma Ke <[email protected]>
power: supply: cpcap-battery: Fix missing nvmem_device_put() causing reference leak
Muchun Song <[email protected]>
mm/mm_init: fix pageblock migratetype for ZONE_DEVICE compound pages
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
Luxiao Xu <[email protected]>
sunrpc: harden rq_procinfo lifecycle to prevent double-free
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: clean untagged VLAN on netdev registration failure
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: ensure minimal ethernet header on TX
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: retrieve ethhdr after potential skb realloc on RX
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()
Zhongqiu Han <[email protected]>
cpufreq: schedutil: Fix uncleared need_freq_update on the .adjust_perf() path
Sandipan Das <[email protected]>
perf/x86/amd/lbr: Fix kernel address leakage
Sandipan Das <[email protected]>
perf/x86/amd/brs: 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
Mario Limonciello <[email protected]>
x86/video: Only fall back to vga_default_device() without screen info
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
Eliot Courtney <[email protected]>
gpu: nova-core: simplify and_then with condition to filter
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: mt8183: Check runtime resume during probe
Cássio Gabriel <[email protected]>
ASoC: mediatek: mt8192: Release reserved memory on cleanup
Cássio Gabriel <[email protected]>
ASoC: mediatek: mt8192: Check runtime resume during probe
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()
Oliver Upton <[email protected]>
KVM: arm64: nv: Inject SEA if guest VNCR isn't normal memory
Oliver Upton <[email protected]>
KVM: arm64: nv: Inject SEA if kvm_translate_vncr() can't resolve PFN
Oliver Upton <[email protected]>
KVM: arm64: nv: Respect read-only PFN when mapping L1 VNCR
Weiming Shi <[email protected]>
KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops()
Fuad Tabba <[email protected]>
KVM: arm64: nv: Write ESR_EL2 for injected nested SError exceptions
Oliver Upton <[email protected]>
KVM: arm64: nv: Drop bogus WARN for write to ZCR_EL2
Marc Zyngier <[email protected]>
KVM: Move kvm_io_bus_get_dev() locking responsibilities to callers
Sean Christopherson <[email protected]>
KVM: nVMX: Put vmcs12 pages if nested VM-Enter fails due to invalid guest state
leixiang <[email protected]>
KVM: x86: Nullify irqfd->producer if updating IRTE for bypass fails
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
Marc Zyngier <[email protected]>
KVM: arm64: vgic: Handle race between interrupt affinity change and LPI disabling
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
Gautam Menghani <[email protected]>
powerpc/pseries/Kconfig: Enable CONFIG_VPA_PMU to be used with KVM
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()
Yanfei Xu <[email protected]>
LoongArch: KVM: Validate irqchip index in irqfd routing
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
Quentin Schulz <[email protected]>
arm64: dts: rockchip: fix Ethernet PHY not found on PX30 Ringneck
Nickolay Goppen <[email protected]>
arm64: dts: qcom: sdm630: describe adsp_mem region properly
Hugo Villeneuve <[email protected]>
ARM: dts: imx6ul-var-som: fix warning for non-existent dc-supply property
Krzysztof Kozlowski <[email protected]>
arm64: dts: s32g3: Fix SWT8 watchdog address
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()
Runyu Xiao <[email protected]>
octeontx2-vf: clear stale mailbox IRQ state before request_irq()
Runyu Xiao <[email protected]>
octeontx2-pf: clear stale mailbox IRQ state before request_irq()
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()
Li Xiasong <[email protected]>
tipc: restrict socket queue dumps in enqueue tracepoints
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()
Przemyslaw Korba <[email protected]>
idpf: add padding to PTP virtchnl structures
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]>
ipv4: igmp: Fix potential memory leaks in igmp_mod_timer() and igmp_stop_timer()
Yuyang Huang <[email protected]>
ipv4: igmp: annotate data-races around timer-related fields
Yuyang Huang <[email protected]>
ipv4: igmp: annotate data-races around im->users
Eric Dumazet <[email protected]>
ipv6: mcast: Fix potential UAF in MLD delayed work
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
Rosen Penev <[email protected]>
net: mdio: select REGMAP_MMIO instead of depending on it
Maíra Canal <[email protected]>
drm/v3d: Reject invalid indirect BO handle in indirect CSD setup
Lizhi Hou <[email protected]>
accel/amdxdna: Fix potential amdxdna_umap lifetime race
Ben Dooks <[email protected]>
tracing: Make tracepoint_printk static as not exported
Jia Wang <[email protected]>
gpio: dwapb: Defer clock gating until noirq
Rosen Penev <[email protected]>
gpio: dwapb: reduce allocation to single kzalloc
Jisheng Zhang <[email protected]>
gpio: dwapb: Use modern PM macros
Enrico Pozzobon <[email protected]>
net: usb: lan78xx: disable VLAN filter in promiscuous mode
Chuck Lever <[email protected]>
net/tls: Consume empty data records in tls_sw_read_sock()
Lizhi Hou <[email protected]>
accel/amdxdna: Use unsigned long for nr_pages in amdxdna_hmm_register()
Hui Wang <[email protected]>
ring-buffer: Fix event length with forced 8-byte alignment
Stig Hornang <[email protected]>
Bluetooth: L2CAP: fix tx ident leak for commands without a response
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
Sungwoo Kim <[email protected]>
Bluetooth: sco: Fix a race condition in sco_sock_timeout()
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 publication race for priv->channel_stats[]
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
Pablo Neira Ayuso <[email protected]>
netfilter: nft_set_rbtree: get command skips end element with open interval
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
Jia He <[email protected]>
arm64/sysreg: Fix BWE field encoding in ID_AA64DFR2_EL1
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()
Jiri Olsa <[email protected]>
uprobes/x86: Use proper mm_struct in __in_uprobe_trampoline
David Windsor <[email protected]>
x86/uprobes: Keep shadow stack in sync for emulated CALLs
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
Shuicheng Lin <[email protected]>
drm/xe/userptr: Hold notifier_lock for write on inject test path
Francois Dugast <[email protected]>
drm/xe/pt: Fix NULL pointer dereference in xe_pt_zap_ptes_entry()
David Howells <[email protected]>
netfs: Fix folio state after ENOMEM whilst under writeback iteration
David Howells <[email protected]>
netfs: Fix writeback error handling
David Howells <[email protected]>
netfs: Fix writethrough to use collection offload
David Howells <[email protected]>
netfs: Fix netfs_create_write_req() to handle async cache object creation
Morduan Zang <[email protected]>
iomap: guard io_size EOF trim against concurrent truncate underflow
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 premature cell exposure through /afs
David Howells <[email protected]>
afs: Fix lack of locking around modifications of net->cells_dyn_ino
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 reinitialisation of the inode, in particular ->lock_work
David Howells <[email protected]>
afs: Fix misplaced inc of net->cells_outstanding
David Howells <[email protected]>
afs: Fix bulk lookup malfunction due to change in dir_emit() API
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
Samuel Moelius <[email protected]>
net/sched: dualpi2: clear stale classification on filter miss
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
Jakub Kicinski <[email protected]>
selftests: drv-net: tso: don't touch dangerous feature bits
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
Xin Long <[email protected]>
sctp: fix addr_wq_timer race in sctp_free_addr_wq()
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
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Make the $ prefix mandatory for comm access
Sechang Lim <[email protected]>
tracing/fprobe: Fix NULL pointer dereference in fprobe_fgraph_entry()
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
Masami Hiramatsu (Google) <[email protected]>
tracing/probes: Remove WARN_ON_ONCE from parse_btf_arg
Steven Rostedt <[email protected]>
tracing/eprobes: Allow use of BTF names to dereference pointers
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
Jiawen Wu <[email protected]>
net: libwx: fix VMDQ mask for 1-queue mode
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
Jakub Kicinski <[email protected]>
eth: fbnic: don't cache shinfo across skb realloc
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
Kyle Hendry <[email protected]>
MIPS: mm: Add check for highmem before removing memory block
Maciej W. Rozycki <[email protected]>
MIPS: DEC: Ensure RTC platform device deregistration upon failure
Xin Long <[email protected]>
sctp: add INIT verification after cookie unpacking
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
Corey Leavitt <[email protected]>
net: pse-pd: scope pse_control regulator handle to kref lifetime
Pengpeng Hou <[email protected]>
gpio: htc-egpio: use managed gpiochip registration
Pengpeng Hou <[email protected]>
gpio: mvebu: fail probe if gpiochip registration fails
Samuel Holland <[email protected]>
riscv: Fix 32-bit call_on_irq_stack() frame pointer ABI
Yicong Yang <[email protected]>
ACPI: RIMT: Only defer the IOMMU configuration in init stage
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
Jiaming Zhang <[email protected]>
ALSA: FCP: Fix NULL pointer dereference in interface lookup
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
Nirmoy Das <[email protected]>
selftests: tls: size splice_short pipe by page size
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
Shengjiu Wang <[email protected]>
ASoC: fsl_asrc_dma: fix eDMA maxburst misalignment with channel count
Tiezhu Yang <[email protected]>
LoongArch: BPF: Fix off-by-one error in tail call
Tiezhu Yang <[email protected]>
LoongArch: BPF: Fix outdated tail call comments
谢致邦 (XIE Zhibang) <[email protected]>
LoongArch: Move struct kimage forward declaration before use
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
Jan Klos <[email protected]>
net: phy: realtek: Clear MDIO_AN_10GBT_CTRL_ADV10G bit
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
Jakub Kicinski <[email protected]>
eth: fbnic: fix ordering of heartbeat vs ownership
Fernando Fernandez Mancera <[email protected]>
ipv6: fix missing notification for ignore_routes_with_linkdown
Fernando Fernandez Mancera <[email protected]>
ipv6: fix state corruption during proxy_ndp sysctl restart
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
Nicolai Buchwitz <[email protected]>
net: usb: lan78xx: restore VLAN and hash filters after link up
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
Eric Dumazet <[email protected]>
net: do not acquire dev->tx_global_lock in netdev_watchdog_up()
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
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
John Madieu <[email protected]>
rtc: isl1208: Balance enable_irq_wake() with disable_irq_wake() on cleanup
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()
Ruoyu Wang <[email protected]>
gpiolib: initialize return value in gpiochip_set_multiple()
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
Jiayuan Chen <[email protected]>
ipv6: ioam: fix type confusion of dst_entry
Weiming Shi <[email protected]>
ipv6: ndisc: fix NULL deref in accept_untracked_na()
Wayen Yan <[email protected]>
net: airoha: Fix skb->priority underflow in airoha_dev_select_queue()
Michael Bommarito <[email protected]>
net/sched: act_ct: fix nf_connlabels leak on two error paths
Rosen Penev <[email protected]>
net: emac: Fix NULL pointer dereference in emac_probe
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: skip uffd-stress test when nr_pages_per_cpu is zero
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: free dynamically allocated PMD-sized buffers in split_huge_page_test
Sayali Patil <[email protected]>
selftests/mm: size tmpfs according to PMD page size in split_huge_page_test
Sayali Patil <[email protected]>
selftests/mm: fix cgroup task placement and drop memory.current checks in hugetlb_reparenting_test.sh
Sayali Patil <[email protected]>
selftests/mm: fix hugetlb pathname construction in hugetlb_reparenting_test.sh
Sayali Patil <[email protected]>
selftests/mm: restore default nr_hugepages value via exit trap in hugetlb_reparenting_test.sh
Sayali Patil <[email protected]>
selftests/mm: restore default nr_hugepages value via exit trap in charge_reserved_hugetlb.sh
Hao Ge <[email protected]>
alloc_tag: fix use-after-free in /proc/allocinfo after module unload
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
Florian Westphal <[email protected]>
netfilter: nft_flow_offload: zero device address for non-ether case
Pablo Neira Ayuso <[email protected]>
netfilter: flowtable: move path discovery infrastructure to its own file
Florian Westphal <[email protected]>
netfilter: nft_meta_bridge: add validate callback for get operations
Florian Westphal <[email protected]>
netfilter: nft_payload: reject offsets exceeding 65535 bytes
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
Abd-Alrhman Masalkhi <[email protected]>
md/raid1: honor REQ_NOWAIT when waiting for behind writes
Yu Kuai <[email protected]>
md: merge mddev serialize_policy into mddev_flags
Yu Kuai <[email protected]>
md: merge mddev faillast_dev into mddev_flags
Yu Kuai <[email protected]>
md: merge mddev has_superblock into mddev_flags
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()
Ivan Abramov <[email protected]>
ieee802154: Avoid calling WARN_ON() on -ENOMEM in cfg802154_switch_netns()
Ivan Abramov <[email protected]>
ieee802154: Restore initial state on failed device_rename() in cfg802154_switch_netns()
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
Ido Schimmel <[email protected]>
selftests: vlan_bridge_binding: Fix flaky operational state check
Yun Zhou <[email protected]>
flow_dissector: check device type before reading ETH_ADDRS
Lukasz Raczylo <[email protected]>
net: macb: add TX stall timeout callback to recover from lost TSTART write
Wayen Yan <[email protected]>
net: airoha: fix foe_check_time allocation size
Cosmin Ratiu <[email protected]>
devlink: Fix parent ref leak on tc-bw failure
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
Michael Bommarito <[email protected]>
ALSA: usb-audio: qcom: clear opened when stream enable fails
Michael Bommarito <[email protected]>
ALSA: usb-audio: qcom: reject stream disable with no active interface
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
Matthew Schwartz <[email protected]>
drm/amd/display: Fix mem_type change detection for async flips
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 dso: Set standard errno on decompression failure
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Validate array presence before casting BPF prog info pointers
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
Xu Rao <[email protected]>
ALSA: usb-audio: qcom: Free sideband sg_table objects
Adrian Hunter <[email protected]>
i3c: master: Add missing runtime PM get in dev_nack_retry_count_store()
Adrian Hunter <[email protected]>
i3c: master: Update dev_nack_retry_count under maintenance lock
Jisheng Zhang <[email protected]>
spi: dw: fix wrong BAUDR setting after resume
Thomas Hellström <[email protected]>
drm/xe: Fix wa_oob codegen recipe for external module builds
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: Reject oversized BPF metadata events that truncate header.size
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 sched: Replace (void*)1 sentinel with proper runtime allocation
Arnaldo Carvalho de Melo <[email protected]>
perf hwmon: Fix fd check to accept fd 0 in hwmon_pmu__describe_items()
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Use snprintf() for root_dir path construction
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Set error code when open() fails on uncompressed fallback path
Arnaldo Carvalho de Melo <[email protected]>
perf dso: Fix heap overflow in dso__get_filename() on decompressed path
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Fix uninitialized pathname on uncompressed fallback in filename__decompress()
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Add O_CLOEXEC to open() calls in DSO and ELF code
James Clark <[email protected]>
perf tools: Don't read build-ids from non-regular files
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
Karol Wachowski <[email protected]>
accel/ivpu: fix HWS command queue leak on registration failure
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: Defer new-device registration out of DAA caller context
Adrian Hunter <[email protected]>
i3c: master: Ensure Hot-Join operations are stopped on shutdown
Adrian Hunter <[email protected]>
i3c: master: Consolidate Hot-Join DAA work in the core
Jorge Marques <[email protected]>
i3c: master: Move rstdaa error suppression
Adrian Hunter <[email protected]>
i3c: master: Add i3c_master_do_daa_ext() for post-hibernation address recovery
Adrian Hunter <[email protected]>
i3c: master: Introduce optional Runtime PM support
Adrian Hunter <[email protected]>
i3c: master: Replace WARN_ON() with dev_err() in i3c_dev_free_ibi_locked()
Adrian Ng Ho Yin <[email protected]>
i3c: add sysfs entry and attribute for Device NACK Retry count
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
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Preserve RUN bit when aborting DMA ring
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Switch PIO data allocation to devm_kzalloc()
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Allow for Multi-Bus Instances
Adrian Hunter <[email protected]>
i3c: mipi-i3c-hci: Quieten initialization messages
Maciek Borzecki <[email protected]>
apparmor: fix uninitialised pointer passed to audit_log_untrustedstring()
Georgia Garcia <[email protected]>
apparmor: don't audit files pointing to aa_null.dentry
Zygmunt Krynicki <[email protected]>
apparmor: put secmark label after secid lookup
Zygmunt Krynicki <[email protected]>
apparmor: aa_getprocattr free procattr leak on format failure
Zygmunt Krynicki <[email protected]>
apparmor: fail policy unpack on accept2 allocation failure
Hongling Zeng <[email protected]>
apparmor: Fix return in ns_mkdir_op
Georgia Garcia <[email protected]>
apparmor: remove or add symlinks to rawdata according to export_binary
Georgia Garcia <[email protected]>
apparmor: fix NULL pointer dereference in unpack_pdb
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()
John Johansen <[email protected]>
apparmor: fix refcount leak when updating the sk_ctx
John Johansen <[email protected]>
apparmor: fix race in unix socket mediation when peer_path is used
John Johansen <[email protected]>
apparmor: fix shadowing of plabel that prevents cache from being updated
Yuanhe Shu <[email protected]>
Revert "PCI/MSI: Unmap MSI-X region on error"
Shuvam Pandey <[email protected]>
PCI: dwc: Avoid dwc_pcie_rasdes_debugfs_deinit() NULL dereference when no RAS DES capability
Felix Gu <[email protected]>
phy: freescale: phy-fsl-imx8qm-lvds-phy: Fix missing pm_runtime_disable() on probe error path
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()
Konrad Dybcio <[email protected]>
dt-bindings: phy: sc8280xp-qmp-pcie: Disallow bifurcation register on Purwa
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: Fix metadata leak in perf_env__add_bpf_info() on duplicate insert
Arnaldo Carvalho de Melo <[email protected]>
perf bpf: Fix map data leak in bpf_metadata_create() on alloc failure
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()
Arnaldo Carvalho de Melo <[email protected]>
perf hwmon: Guard label read against empty or failed reads
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 hwmon: Fix parse_hwmon_filename() strlcpy buffer overflow
Arnaldo Carvalho de Melo <[email protected]>
perf hwmon: Use scnprintf() in hwmon_pmu__for_each_event()
Arnaldo Carvalho de Melo <[email protected]>
perf hwmon: Fix off-by-one null termination on sysfs reads
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
Jens Remus <[email protected]>
perf s390: Fix TEXTREL in Python extension by compiling as PIC
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
David E. Box <[email protected]>
platform/x86/intel/vsec: Restore BAR fallback for header walk
David E. Box <[email protected]>
platform/x86/intel/vsec: Return real error codes from registration path
David E. Box <[email protected]>
platform/x86/intel/vsec: Switch exported helpers from pci_dev to device
David E. Box <[email protected]>
platform/x86/intel/vsec: Decouple add/link helpers from PCI
Randy Dunlap <[email protected]>
platform/x86/intel/vsec: correct kernel-doc comments
Xi Pardee <[email protected]>
platform/x86:intel/pmc: Relocate lpm_req_guid to pmc_reg_map
Xi Pardee <[email protected]>
platform/x86:intel/pmc: Rename PMC index variable to pmc_idx
Xi Pardee <[email protected]>
platform/x86:intel/pmc: Add support for multiple DMU GUIDs
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
Biju Das <[email protected]>
pwm: rzg2l-gpt: Add missing newlines to dev_err_probe() messages
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
Hongling Zeng <[email protected]>
sunrpc: Fix error handling in rpc_sysfs_xprt_switch_add_xprt_store()
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
Junrui Luo <[email protected]>
mshv: add bounds check on vp_index in mshv_intercept_isr()
Jagadeesh Kona <[email protected]>
clk: qcom: camcc-x1e80100: Add support for camera QDSS debug clocks
Jagadeesh Kona <[email protected]>
dt-bindings: clock: qcom: Add X1P42100 camera clock controller
Arnaldo Carvalho de Melo <[email protected]>
perf tools: Fix int16_t truncation of max_cpu_num in set_max_cpu_num()
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()
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 sched: Cap max_cpu at MAX_CPUS in timehist sample processing
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
James Clark <[email protected]>
perf annotate: Fix crashes on empty annotate windows
Rui Qi <[email protected]>
perf: Fix off-by-one stack buffer overflow in kallsyms__parse()
Akhil R <[email protected]>
dt-bindings: dma: nvidia,tegra186-gpc-dma: Make reset optional
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
Athira Rajeev <[email protected]>
powerpc tools perf: Initialize error code in auxtrace_record_init function
Lad Prabhakar <[email protected]>
clk: renesas: rzg2l: Rename iterator in for_each_mod_clock() to avoid shadowing
Hongling Zeng <[email protected]>
gpib: cb7210: Fix region leak when request_irq fails
Adam Crosser <[email protected]>
gpib: fix double decrement of descriptor_busy in command_ioctl()
James Kim <[email protected]>
char: tlclk: fix use-after-free in tlclk_cleanup()
Dave Penkler <[email protected]>
gpib: Fix inappropriate ioctl error return
Ravi Bangoria <[email protected]>
perf test amd ibs: Fix incorrect kernel version check
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 inject: Fix itrace branch stack synthesis
Ian Rogers <[email protected]>
perf event: Fix size of synthesized sample with branch stacks
Namhyung Kim <[email protected]>
perf inject: Add --convert-callchain option
Michael Petlan <[email protected]>
perf build-id: Fix off-by-one bug when printing kernel/module build-id
Dan Carpenter <[email protected]>
PCI: dwc: Fix signedness bug in fault injection test code
Sergey Senozhatsky <[email protected]>
mailbox: mtk-adsp: fix UAF during device teardown
Conor Dooley <[email protected]>
mailbox: mpfs: fix check for syscon presence in mpfs_mbox_inbox_isr()
Jie Gan <[email protected]>
coresight: Fix source not disabled on idr_alloc_u32 failure
Bard Liao <[email protected]>
soundwire: intel_ace2x: release bpt_stream when close it
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
Luo Jie <[email protected]>
clk: qcom: cmnpll: Account for reference clock divider
Jie Gan <[email protected]>
coresight: fix missing error code when trace ID is invalid
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
James Clark <[email protected]>
coresight: ete: Always save state on power down
Leo Yan <[email protected]>
coresight: etm4x: Remove the state_needs_restore flag
Baoli.Zhang <[email protected]>
soundwire: fix bug in sdw_add_element_group_count found by syzkaller
Bard Liao <[email protected]>
soundwire: don't program SDW_SCP_BUSCLOCK_SCALE on a unattached Peripheral
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()
Stanley Chu <[email protected]>
i3c: master: svc: Fix missed IBI after false SLVSTART on NPCM845
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
Christian Brauner <[email protected]>
eventpoll: rename ep_remove_safe() back to ep_remove()
Yizhou Zhao <[email protected]>
net/9p: fix race condition on rdma->state in trans_rdma.c
Hongling Zeng <[email protected]>
9p: avoid returning ERR_PTR(0) from mkdir operations
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()
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fail DBR related page allocation UAPIs if the feature is disabled
Kalesh AP <[email protected]>
RDMA/bnxt_re: Move the UAPI methods to a dedicated file
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Avoid displaying the kernel pointer
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Free SRQ toggle page after firmware teardown
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
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
Kuniyuki Iwashima <[email protected]>
sockmap: Fix use-after-free in udp_bpf_recvmsg()
Eric Dumazet <[email protected]>
net: remove addr_len argument of recvmsg() handlers
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
Cen Zhang <[email protected]>
ALSA: seq: avoid stale FIFO cells during resize
Cen Zhang <[email protected]>
ALSA: seq: oss: Serialize readq reset state with q->lock
Runyu Xiao <[email protected]>
kcm: use WRITE_ONCE() when changing lower socket callbacks
Wayen.Yan <[email protected]>
net: airoha: Fix debugfs new-tuple display for IPv4 ROUTE entries
Wayen.Yan <[email protected]>
net: airoha: Fix register index for Tx-fwd counter configuration
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
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
Xu Kuohai <[email protected]>
bpf: Fix setting retval to -EPERM for cgroup hooks not returning errno
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
Victor Nogueira <[email protected]>
net/sched: sch_dualpi2: Add missing module alias
Zhi-Jun You <[email protected]>
net: ethernet: mtk_wed: fix loading WO firmware for MT7986
Eric Dumazet <[email protected]>
net: watchdog: fix refcount tracking races
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_dualpi2: Do not call qdisc_tree_reduce_backlog during peek before restoring qlen
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
Paolo Abeni <[email protected]>
virtio_net: do not allow tunnel csum offload for non GSO packets
Sechang Lim <[email protected]>
tcp: clear sock_ops cb flags before force-closing a child socket
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
Nicolin Chen <[email protected]>
iommu: Avoid copying the user array twice in the full-array copy helper
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()
Cássio Gabriel <[email protected]>
ALSA: usb-audio: qcom: Guard sideband endpoint removal
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
Arnd Bergmann <[email protected]>
ASoC: SOF: Intel: hda-sdw-bpt: select SND_SOF_SOF_HDA_SDW_BPT properly
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()
Jiajia Liu <[email protected]>
Bluetooth: hci_event: fix simultaneous discovery stuck in FINDING
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()
Andre Przywara <[email protected]>
arm64: dts: allwinner: a523: Add missing GPIO interrupt
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7581: fix misprint in gpio19 pinconf
Mikhail Kshevetskiy <[email protected]>
pinctrl: airoha: an7581: add missed gpio32 pin group
Christian Marangi <[email protected]>
pinctrl: airoha: generalize pins/group/function/confs handling
Andre Przywara <[email protected]>
pinctrl: sunxi: a523: Remove unneeded IRQ remuxing flag
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
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
Louis Scalbert <[email protected]>
bonding: 3ad: fix carrier when no usable slaves
Louis Scalbert <[email protected]>
bonding: 3ad: add lacp_strict configuration knob
Louis Scalbert <[email protected]>
netlink: specs: rt-link: missed broadcast-neigh
Louis Scalbert <[email protected]>
tools: missed broadcast_neigh if_link uapi header
Hongling Zeng <[email protected]>
ext4: fix ERR_PTR(0) in ext4_mkdir()
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 IRQ-to-ring mapping in interrupt handler
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
Jia Jia <[email protected]>
virtio: rtc: tear down old virtqueues before restore
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
Cássio Gabriel <[email protected]>
ASoC: sma1307: Fix uevent string leaks in fault worker
KhaiWenTan <[email protected]>
igc: skip RX timestamp header for frame preemption verification
Filipe Manana <[email protected]>
btrfs: fix deadlock cloning inline extent when using flushoncommit
Cen Zhang <[email protected]>
btrfs: annotate lockless read of defrag_bytes in should_nocow()
Johannes Thumshirn <[email protected]>
btrfs: zoned: always set max_active_zones for zoned devices
Matthew Wilcox (Oracle) <[email protected]>
Revert "btrfs: fix the file offset calculation inside btrfs_decompress_buf2page()"
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()
Jeff Layton <[email protected]>
vfs: add FS_USERNS_DELEGATABLE flag and set it for NFS
David Laight <[email protected]>
fbdev: sm501fb: Fix buffer errors in OF binding code
Wen Gong <[email protected]>
wifi: ath12k: enable IEEE80211_VHT_EXT_NSS_BW_CAPABLE when NSS ratio is reported
Sergio Paracuellos <[email protected]>
gpio: mt7621: fix interrupt banks mapping on gpio chips
Takashi Iwai <[email protected]>
ALSA: aloop: Drop superfluous break
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()
Dylan Eskew <[email protected]>
wifi: mt76: mt7996: limit work in set_bitrate_mask
Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7996: fix reading zeroed info->control.flags after mt76_tx_status_skb_add()
Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7996: Fix possible NULL pointer dereference in mt7996_mac_write_txwi_80211()
Lorenzo Bianconi <[email protected]>
wifi: mt76: mt7996: Fix possible token leak in mt7996_tx_prepare_skb()
Aviel Zohar <[email protected]>
wifi: mt76: mt7925: validate skb length in testmode query
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
Felix Fietkau <[email protected]>
wifi: mt76: mt7996: add missing max_remain_on_channel_duration
Rajat Gupta <[email protected]>
wifi: mt76: use kfree_rcu for offchannel link in mt76_put_vif_phy_link
Myeonghun Pak <[email protected]>
wifi: mt76: mt7925: clean up DMA on probe failure
Krzysztof Kozlowski <[email protected]>
ARM: configs: Drop duplicated CONFIG_EXT4_FS
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
Sneh Mankad <[email protected]>
pinctrl: qcom: Fix resolving register base address from device node
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
Aaron Ma <[email protected]>
ASoC: amd: acp-sdw-legacy: 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: Don't mangle the mr->pd inside the rereg callback
Jason Gunthorpe <[email protected]>
IB/mlx5: Pull the pdn out of the depths of the umr machinery
Jason Gunthorpe <[email protected]>
IB/mlx5: Remove unused mkc bits in mlx5r_umr_update_mr_page_shift()
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
Mark Harmstone <[email protected]>
btrfs: don't force DIO writes to be serialized
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
Sechang Lim <[email protected]>
bpf: Fix NULL pointer dereference in bpf_task_from_vpid()
Bartosz Golaszewski <[email protected]>
powerpc/8xx: implement get_direction() in cpm1
David Gow <[email protected]>
kunit:tool: Don't write to stdout when it should be disabled
Mykyta Yatsenko <[email protected]>
bpf: Fix NMI/tracepoint re-entry deadlock on lru locks
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
Leon Hwang <[email protected]>
bpf: Check tail zero of bpf_map_info
Kaitao Cheng <[email protected]>
bpf: Clear rb node linkage when freeing bpf_rb_root
Bernard Metzler <[email protected]>
RDMA/siw: Fix endpoint/socket association handling
Frieder Schrempf <[email protected]>
arm64: dts: imx8mp-kontron: Fix GPIO for display power switch
Alexander Stein <[email protected]>
arm64: dts: tqma8mpql-mba8mpxl: configure sai clock in audio codec as well
Josua Mayer <[email protected]>
arm64: dts: lx2162a-clearfog: use rev2 SoC dtsi
Richard Zhu <[email protected]>
arm64: dts: imx95: Correct PCIe outbound address space configuration
Frieder Schrempf <[email protected]>
arm64: dts: imx8mp-kontron: Reduce EERAM SPI clock frequency
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
Oliver Hartkopp <[email protected]>
ALSA: hda: fix Kconfig dependency of HD Audio PCI
Jason Gunthorpe <[email protected]>
IB/cm: Fix av cm device leak on an error path in cm_init_av_by_path()
Arnd Bergmann <[email protected]>
RDMA/hfi1: Open-code rvt_set_ibdev_name()
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
Junxiao Chang <[email protected]>
x86/cpu: Remove obsolete aperfmperf_get_khz() declaration
Cássio Gabriel <[email protected]>
ALSA: usb-audio: qcom: Initialize offload control return value
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()
Thomas Weißschuh <[email protected]>
lib: kunit_iov_iter: repeatedly call alloc_pages_bulk()
Zhang Cen <[email protected]>
ocfs2: rebase copied fsdlm LVB pointers in locking_state
Wandun Chen <[email protected]>
of: reserved_mem: avoid post-init UAF when alloc_reserved_mem_array() fails
Alex Deucher <[email protected]>
drm/amdkfd: always resume_all after suspend_all
Dan Williams <[email protected]>
cxl/fwctl: Fix __fortify_panic
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
Pranjal Shrivastava <[email protected]>
iommu/vt-d: Fix RB-tree corruption in probe error path
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
Li Chen <[email protected]>
ext4: fix fast commit wait/wake bit mapping on 64-bit
Karl Mehltretter <[email protected]>
lockdep/selftests: Restore sched_rt_mutex state on PREEMPT_RT
Karl Mehltretter <[email protected]>
lockdep/selftests: Restore migrate_disable() state on PREEMPT_RT
Al Viro <[email protected]>
configfs_lookup(): don't leave ->s_dentry dangling on failure
Inochi Amaoto <[email protected]>
riscv: dts: sophgo: sg2042: use hex for CPU unit address
Inochi Amaoto <[email protected]>
riscv: dts: sophgo: sg2044: use hex for CPU unit address
Alexander Potapenko <[email protected]>
lib/test_meminit: use && for bools
Frederic Weisbecker <[email protected]>
tick/sched: Fix TOCTOU in nohz idle time fetch
Daniel Borkmann <[email protected]>
bpf: Reject exclusive maps for bpf_map_elem iterators
Nathan Chancellor <[email protected]>
driver core: Use system_percpu_wq instead of system_wq
liuxixin <[email protected]>
nvme: fix FDP fdpcidx bounds check
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()
Daniel Borkmann <[email protected]>
libbpf: Skip max_entries override on signed loaders
Daniel Borkmann <[email protected]>
libbpf: Skip initial_value override on signed loaders
KP Singh <[email protected]>
libbpf: Reject non-exclusive metadata maps in the signed loader
Daniel Borkmann <[email protected]>
bpf: Reject exclusive maps as inner maps in map-in-map
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
Randy Dunlap <[email protected]>
x86/cpu: Keep the PROCESSOR_SELECT menu together
Yuho Choi <[email protected]>
ARM: imx31: Fix IIM mapping leak in revision check
Bart Van Assche <[email protected]>
ata: libata: Fix ata_exec_internal()
Wei Zhang <[email protected]>
wifi: ath12k: fix NULL deref in change_sta_links for unready link
Kwan Lai Chee Hou <[email protected]>
wifi: ath12k: fix incorrect HT/VHT/HE/EHT MCS reporting in monitor mode
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
Felix Gu <[email protected]>
spi: atmel: fix DMA channel and bounce buffer leaks
Zhang Yi <[email protected]>
ext4: fix LOGFLUSH shutdown ordering to allow ordered-mode data writeback
Daniel Borkmann <[email protected]>
libbpf: Skip endianness swap when loader generation failed
Daniel Borkmann <[email protected]>
libbpf: Skip hash computation when loader generation failed
Yuyang Huang <[email protected]>
selftests/bpf: add verification for BPF_PROG_QUERY attr size boundaries
Yuyang Huang <[email protected]>
bpf: fix BPF_PROG_QUERY OOB write and cgroup backward compat
Abd-Alrhman Masalkhi <[email protected]>
raid1: fix nr_pending leak in REQ_ATOMIC bad-block error path
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
Dmitry Baryshkov <[email protected]>
Revert "media: venus: hfi_platform: Correct supported codecs for sc7280"
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
Jiri Pirko <[email protected]>
RDMA/umem: Add ib_umem_is_contiguous() stub for !CONFIG_INFINIBAND_USER_MEM
Marek Vasut <[email protected]>
arm64: dts: st: Fix SAI addresses on stm32mp251
zhoumin <[email protected]>
EDAC/{skx_common,skx}: Fix UBSAN shift-out-of-bounds in skx_get_dimm_info
Qiuxu Zhuo <[email protected]>
EDAC/igen6: Fix call trace due to missing release()
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
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
Aleksander Jan Bajkowski <[email protected]>
crypto: inside-secure/eip93 - Add check for devm_request_threaded_irq
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
Brian Norris <[email protected]>
arm64: tegra: Add #{address,size}-cells to Chromium-based /firmware
Brian Norris <[email protected]>
ARM: tegra: Add #{address,size}-cells to Chromium-based /firmware
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
Tomas Glozar <[email protected]>
rtla/actions: Restore continue flag in actions_perform()
Wander Lairson Costa <[email protected]>
rtla: Introduce for_each_action() helper
Vasant Hegde <[email protected]>
iommu/amd: Fix premature break in init_iommu_one()
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
Mateusz Nowicki <[email protected]>
nvme-pci: fix out-of-bounds access in nvme_setup_descriptor_pools
Nilay Shroff <[email protected]>
nvme-multipath: fix flex array size in struct nvme_ns_head
Geliang Tang <[email protected]>
nvmet-tcp: check return value of nvmet_tcp_set_queue_sock
Geliang Tang <[email protected]>
nvmet-tcp: fix page fragment cache leak in error path
Jia He <[email protected]>
init/initramfs_test: wait_for_initramfs() before running
Charles Keepax <[email protected]>
pinctrl: cs42l43: Fix polarity on debounce
Charles Keepax <[email protected]>
pinctrl: cs42l43: Fix leaked pm reference on error path
Joey Lu <[email protected]>
pinctrl: nuvoton: ma35d1: fix MFP register offset and pin table
Florian Schmaus <[email protected]>
selftests: Fix Makefile target for nsfs
Zhang Cen <[email protected]>
ALSA: seq: midi: Serialize output teardown with event_input
Takashi Iwai <[email protected]>
ALSA: seq: oss: Fix UAF at handling events with embedded SysEx data
Cássio Gabriel <[email protected]>
ALSA: xen-front: Connect event channel after stream prepare
Cássio Gabriel <[email protected]>
ALSA: xen-front: Reset event channel state on stream clear
Miquel Raynal <[email protected]>
mtd: spi-nor: Drop duplicate Kconfig dependency
Miquel Raynal <[email protected]>
mtd: spi-nor: debugfs: Fix the flags list
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()
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()
Xianwei Zhao <[email protected]>
pinctrl: meson: amlogic-a4: fix gpio output glitch
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
Eliot Courtney <[email protected]>
gpu: nova-core: vbios: read BitToken using FromBytes
Alexandre Courbot <[email protected]>
gpu: nova-core: replace as with from conversions where possible
Eliot Courtney <[email protected]>
gpu: nova-core: vbios: avoid reading too far in read_more_at_offset
Eliot Courtney <[email protected]>
gpu: nova-core: vbios: use checked arithmetic for bios image range end
Eliot Courtney <[email protected]>
gpu: nova-core: vbios: stop scanning at BIOS_MAX_SCAN_LEN
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
Han Gao <[email protected]>
pinctrl: spacemit: fix NULL check in spacemit_pin_set_config
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
Aleksander Jan Bajkowski <[email protected]>
crypto: eip93 - fix reset ring register definition
Saravana Kannan <[email protected]>
of: dynamic: Fix overlayed devices not probing because of fw_devlink
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()
Conor Kotwasinski <[email protected]>
kernfs: fix suspicious RCU usage in kernfs_put()
Baokun Li <[email protected]>
writeback: drop now-unnecessary rcu_barrier() in cgroup_writeback_umount()
Ritesh Kumar <[email protected]>
arm64: dts: qcom: lemans: Add eDP ref clock for eDP PHYs
Pengpeng Hou <[email protected]>
tracing: Bound synthetic-field strings with seq_buf
Harshal Dev <[email protected]>
arm64: dts: qcom: sm8750: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: sm8650: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: sm8550: 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
Harshal Dev <[email protected]>
arm64: dts: qcom: monaco: Add power-domain and iface clk for ice node
Harshal Dev <[email protected]>
arm64: dts: qcom: lemans: 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
Hongling Zeng <[email protected]>
nilfs2: Fix return in nilfs_mkdir
Daniel Palmer <[email protected]>
tools/nolibc: getopt: Fix potential out of bounds access
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
Andre Przywara <[email protected]>
firmware: smccc: Fix Arm SMCCC SOC_ID name call
Aurelien Jarno <[email protected]>
riscv: dts: spacemit: set console baud rate on Milk-V Jupiter
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()
Sherry Sun <[email protected]>
arm64: dts: imx95-19x19-evk: Fix PCIe EP vpcie-supply
Sherry Sun <[email protected]>
arm64: dts: imx8qxp-mek: Remove unnecessary PCIe EP vpcie-supply
Sherry Sun <[email protected]>
arm64: dts: imx8dxl-evk: Remove unnecessary PCIe EP properties
Jamie Nguyen <[email protected]>
firmware: arm_ffa: Honor partition info descriptor size
Kevin Brodsky <[email protected]>
selftests/mm: Fix resv_sz when parsing arm64 signal frame
Bibek Kumar Patro <[email protected]>
iommu/arm-smmu-qcom: Fix fastrpc compatible string in ACTLR client match table
Paul Chaignon <[email protected]>
selftests/bpf: Fix test for refinement of single-value tnum
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
Prathamesh Deshpande <[email protected]>
RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
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
Yihang Li <[email protected]>
scsi: hisi_sas: Add slave_destroy interface for v3 hw
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()
Lin He <[email protected]>
drm/hisilicon/hibmc: fix no showing when no connectors connected
Lin He <[email protected]>
drm/hisilicon/hibmc: add updating link cap in DP detect()
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
Stefan Metzmacher <[email protected]>
uaccess: fix ignored_trailing logic in copy_struct_to_user()
Matt Bobrowski <[email protected]>
bpf: fix crash in bpf_[set|remove]_dentry_xattr for negative dentries
Luca Leonardo Scorcia <[email protected]>
soc: mediatek: mtk-mmsys: Restore MT8167 routing masks lost during merge
Sean Christopherson <[email protected]>
iommu/amd: Fix a stale comment about which legacy mode is user visible
Dmitry Baryshkov <[email protected]>
media: venus: scale MMCX power domain on SM8250
Dmitry Baryshkov <[email protected]>
media: iris: scale MMCX power domain on SM8250
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
Tycho Andersen (AMD) <[email protected]>
crypto: ccp - Reverse the cleanup order in psp_dev_destroy()
Di Shen <[email protected]>
OPP: Fix race between OPP addition and lookup
Zhan Xusheng <[email protected]>
alarmtimer: Remove stale return description from alarm_handle_timer()
Chris Brandt <[email protected]>
drm: renesas: rz-du: mipi_dsi: Fix return path on error
Kuniyuki Iwashima <[email protected]>
vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().
Peng Fan <[email protected]>
Revert "arm64: dts: imx8mp-kontron: Add support for reading SD_VSEL signal"
Peng Fan <[email protected]>
Revert "arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signal"
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
Brian Norris <[email protected]>
arm64: dts: rockchip: Add #{address,size}-cells to Chromium-based /firmware
Brian Norris <[email protected]>
ARM: dts: rockchip: Add #{address,size}-cells to Chromium-based /firmware
David Heidelberg <[email protected]>
drm/panel: Clean up S6E3HA2 config dependencies and fill help text
Alice Ryhl <[email protected]>
drm/gpuvm: take refcount on DRM device
Marek Vasut <[email protected]>
dt-bindings: vendor-prefixes: Add Displaytech Ltd.
Felix Gu <[email protected]>
pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path
Conor Dooley <[email protected]>
dts: spacemit: set console baud rate on bpif3
Masami Hiramatsu (Google) <[email protected]>
lib/vsprintf: Fix to check field_width and precision
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
Gabriele Monaco <[email protected]>
Documentation/rv: Replace stale website link
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
Chen-Yu Tsai <[email protected]>
pinctrl: mediatek: eint: Drop base from mtk_eint_chip_write_mask()
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: rtw89: add bounds check on firmware mac_id in link lookup
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
Chin-Yen Lee <[email protected]>
wifi: rtw88: fix wrong pci_get_drvdata type in AER handlers
Christos Longros <[email protected]>
wifi: rtw89: fix wrong pci_get_drvdata type in AER handlers
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
Krzysztof Kozlowski <[email protected]>
arm64: dts: qcom: ipq5424: Fix USB simple_bus_reg warnings
Diederik de Haas <[email protected]>
arm64: dts: rockchip: Fix gmac0 reset pin for NanoPi R5S
Quentin Schulz <[email protected]>
arm64: dts: rockchip: fix Ethernet PHY not found on PX30 Cobra
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
Nick Hu <[email protected]>
dt-bindings: timer: Remove sifive,fine-ctr-bits property
Matt Bobrowski <[email protected]>
selftests/bpf: Fix off-by-one in bpf_cpumask_populate related selftest
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
Matthew Brost <[email protected]>
drm/gpusvm: Reject VMAs with VM_IO or VM_PFNMAP when creating SVM ranges
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()
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove()
Cristian Ciocaltea <[email protected]>
drm/rockchip: dw_dp: Switch to drmm_kzalloc()
Max Zhen <[email protected]>
accel/amdxdna: Fix leak when pinning ubuf pages
Chen Ni <[email protected]>
clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()
Stafford Horne <[email protected]>
openrisc: mm: Fix section mismatch between map_page and __set_fixmap
Jiacheng Yu <[email protected]>
fbcon: Use correct type for vc_resize() return value
Ian Bridges <[email protected]>
fbcon: fix NULL pointer dereference for a console without vc_data
David Howells <[email protected]>
afs: Fix uncancelled rxrpc OOB message handler
David Howells <[email protected]>
afs: Fix further netns teardown to cancel the preallocation charger
Nan Li <[email protected]>
afs: handle CB.InitCallBackState3 requests without a server record
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 double unlock in rxrpc_recvmsg()
David Howells <[email protected]>
rxrpc: Fix leak of connection from OOB challenge
David Howells <[email protected]>
rxrpc: Fix the reception of a reply packet before data transmission
Wyatt Feng <[email protected]>
rxrpc: Fix ACKALL packet handling
David Howells <[email protected]>
rxrpc: Fix oob challenge leak in cleanup after notification failure
David Howells <[email protected]>
rxrpc: Fix rxrpc_rotate_tx_rotate() to check there's something to rotate
David Howells <[email protected]>
rxrpc: Fix potential infinite loop in rxrpc_recvmsg()
David Howells <[email protected]>
rxrpc: Fix leak of released call in recvmsg(MSG_PEEK)
David Howells <[email protected]>
rxrpc: Fix socket notification race
David Howells <[email protected]>
rxrpc: Fix UAF in rxgk_issue_challenge()
Hyunwoo Kim <[email protected]>
rxrpc: Don't move a peeked OOB message onto the pending queue
Jeffrey Altman <[email protected]>
rxrpc: rxrpc_verify_data ensure rx_dec_buffer alloc
Li Daming <[email protected]>
rxrpc: serialize kernel accept preallocation with socket teardown
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
Damien Laine <[email protected]>
ALSA: hda/realtek: Fix speakers on Legion Pro 7 16ARX8H with codec SSID 17aa:38a7
Xu Rao <[email protected]>
ALSA: hda: Fix cached processing coefficient verbs
Zhang Heng <[email protected]>
ALSA: hda: conexant: Remove mic bias threshold override
Eckhart Mohr <[email protected]>
ALSA: hda/realtek: Add quirk for TongFang X6xx45xU
Kuniyuki Iwashima <[email protected]>
af_unix: Drop all SCM attributes for SOCKMAP.
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
Rochan Avlur <[email protected]>
exfat: preserve benign secondary entries during rename and move
Daniel Borkmann <[email protected]>
selftests/bpf: Add tests for stale delta leaking through id reassignment
Daniel Borkmann <[email protected]>
selftests/bpf: Add tests for delta tracking when src_reg == dst_reg
Daniel Borkmann <[email protected]>
bpf: Clear delta when clearing reg id for non-{add,sub} ops
Daniel Borkmann <[email protected]>
selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation
Puranjay Mohan <[email protected]>
selftests/bpf: Add tests for improved linked register tracking
Puranjay Mohan <[email protected]>
selftests: bpf: Add test for multiple syncs from linked register
Sean Anderson <[email protected]>
media: uvcvideo: Fix deadlock if uvc_status_stop is called from async_ctrl.work
Eric Biggers <[email protected]>
crypto: sun4i-ss - Remove insecure and unused rng_alg
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
Michael Bommarito <[email protected]>
iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry
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
Kuniyuki Iwashima <[email protected]>
tcp: Add preempt_{disable,enable}_nested() in reqsk_queue_hash_req().
ChenXiaoSong <[email protected]>
smb/server: do not require delete access for non-replacing links
Roger Pau Monne <[email protected]>
nvme-pci: DMA unmap the correct regions in nvme_free_sgls
-------------
Diffstat:
Documentation/ABI/testing/sysfs-bus-i3c | 11 +
Documentation/admin-guide/pm/cpufreq.rst | 6 +-
Documentation/arch/arm64/cpu-hotplug.rst | 28 +-
.../bindings/clock/qcom,x1e80100-camcc.yaml | 1 +
.../bindings/dma/nvidia,tegra186-gpc-dma.yaml | 23 +-
.../media/allwinner,sun4i-a10-video-engine.yaml | 10 +
.../devicetree/bindings/net/microchip,lan8650.yaml | 2 +-
.../devicetree/bindings/net/renesas,ether.yaml | 3 +-
.../bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 13 +-
.../pinctrl/nvidia,tegra234-pinmux-aon.yaml | 4 +
.../bindings/pinctrl/nvidia,tegra234-pinmux.yaml | 4 +
.../bindings/regulator/mt6359-regulator.yaml | 43 --
.../devicetree/bindings/timer/sifive,clint.yaml | 16 -
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
Documentation/driver-api/nvdimm/btt.rst | 5 +-
Documentation/driver-api/pci/pci.rst | 3 +
Documentation/filesystems/proc.rst | 14 +-
Documentation/netlink/specs/handshake.yaml | 1 +
Documentation/netlink/specs/rt-link.yaml | 6 +
Documentation/networking/bonding.rst | 23 +
Documentation/trace/eprobetrace.rst | 4 +
Documentation/trace/rv/monitor_sched.rst | 7 +-
Makefile | 4 +-
arch/alpha/kernel/pci-sysfs.c | 13 +-
arch/arm/boot/dts/nvidia/tegra124-nyan.dtsi | 5 +
arch/arm/boot/dts/nvidia/tegra124-venice2.dts | 5 +
arch/arm/boot/dts/nxp/imx/imx6ul-var-som.dtsi | 4 -
arch/arm/boot/dts/rockchip/rk3288-veyron.dtsi | 5 +
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/axm55xx_defconfig | 1 -
arch/arm/configs/dove_defconfig | 1 -
arch/arm/configs/ep93xx_defconfig | 1 -
arch/arm/configs/mmp2_defconfig | 1 -
arch/arm/configs/multi_v7_defconfig | 4 +-
arch/arm/configs/mv78xx0_defconfig | 1 -
arch/arm/configs/sunxi_defconfig | 1 -
arch/arm/mach-imx/cpu-imx31.c | 9 +-
arch/arm/mach-imx/mm-imx3.c | 2 +
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 3 +-
.../boot/dts/freescale/fsl-lx2162a-clearfog.dts | 2 +-
arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 2 -
.../arm64/boot/dts/freescale/imx8mm-kontron-bl.dts | 10 +-
.../boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 7 +-
.../boot/dts/freescale/imx8mp-kontron-bl-osm-s.dts | 14 +-
.../boot/dts/freescale/imx8mp-kontron-osm-s.dtsi | 7 +-
.../dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts | 3 +
arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 1 -
arch/arm64/boot/dts/freescale/imx8ulp-evk.dts | 4 +-
arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 4 +-
arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts | 2 +-
arch/arm64/boot/dts/freescale/imx95.dtsi | 10 +-
arch/arm64/boot/dts/freescale/s32g3.dtsi | 2 +-
arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 2 +-
arch/arm64/boot/dts/nvidia/tegra132-norrin.dts | 5 +
arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 5 +
arch/arm64/boot/dts/nvidia/tegra234.dtsi | 8 +-
arch/arm64/boot/dts/qcom/ipq5424.dtsi | 4 +-
arch/arm64/boot/dts/qcom/lemans.dtsi | 18 +-
arch/arm64/boot/dts/qcom/qcs8300.dtsi | 6 +-
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/sm8550.dtsi | 6 +-
arch/arm64/boot/dts/qcom/sm8650.dtsi | 6 +-
arch/arm64/boot/dts/qcom/sm8750.dtsi | 6 +-
arch/arm64/boot/dts/rockchip/px30-cobra.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 2 +-
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 5 +
arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 2 +-
arch/arm64/boot/dts/rockchip/rk3568-nanopi-r5s.dts | 6 +-
arch/arm64/boot/dts/st/stm32mp251.dtsi | 8 +-
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 2 +
arch/arm64/include/asm/kvm_hyp.h | 1 +
arch/arm64/include/asm/kvm_nested.h | 10 +
arch/arm64/kernel/acpi.c | 2 +
arch/arm64/kernel/entry-fpsimd.S | 8 +-
arch/arm64/kernel/hw_breakpoint.c | 9 +
arch/arm64/kernel/smp.c | 28 +-
arch/arm64/kvm/arm.c | 2 +
arch/arm64/kvm/at.c | 35 +-
arch/arm64/kvm/emulate-nested.c | 1 +
arch/arm64/kvm/hyp/include/hyp/switch.h | 11 +-
arch/arm64/kvm/hyp/nvhe/hyp-main.c | 9 +
arch/arm64/kvm/hyp/pgtable.c | 3 +-
arch/arm64/kvm/nested.c | 222 ++++----
arch/arm64/kvm/vgic/vgic-its.c | 2 +
arch/arm64/kvm/vgic/vgic.c | 20 +-
arch/arm64/mm/mmu.c | 11 +-
arch/arm64/tools/sysreg | 2 +-
arch/loongarch/include/asm/kexec.h | 3 +-
arch/loongarch/include/asm/pgtable.h | 4 +
arch/loongarch/kvm/exit.c | 1 -
arch/loongarch/kvm/irqfd.c | 3 +-
arch/loongarch/kvm/vcpu.c | 11 +-
arch/loongarch/mm/pageattr.c | 2 +-
arch/loongarch/net/bpf_jit.c | 28 +-
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 | 17 +-
arch/mips/n64/init.c | 2 +-
arch/mips/ralink/mt7621.c | 2 +-
arch/mips/sgi-ip22/ip22-gio.c | 7 +-
arch/openrisc/include/asm/cacheflush.h | 4 +
arch/openrisc/kernel/jump_label.c | 2 +-
arch/openrisc/kernel/patching.c | 3 +
arch/openrisc/kernel/smp.c | 21 +
arch/openrisc/mm/cache.c | 16 +
arch/openrisc/mm/init.c | 2 +-
arch/powerpc/kernel/dt_cpu_ftrs.c | 9 +
arch/powerpc/kexec/core_64.c | 4 +-
arch/powerpc/perf/core-fsl-emb.c | 3 +-
arch/powerpc/platforms/8xx/cpm1.c | 26 +
arch/powerpc/platforms/cell/spufs/file.c | 6 +-
arch/powerpc/platforms/powernv/setup.c | 3 +-
arch/powerpc/platforms/pseries/Kconfig | 1 +
.../platforms/pseries/papr_platform_attributes.c | 8 +-
arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi | 236 ++++----
arch/riscv/boot/dts/sophgo/sg2044-cpus.dtsi | 236 ++++----
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 2 +-
arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts | 2 +-
arch/riscv/include/asm/cpu_ops.h | 2 +-
arch/riscv/kernel/asm-offsets.c | 4 +-
arch/riscv/kernel/cacheinfo.c | 2 +-
arch/riscv/kernel/cpu-hotplug.c | 4 +-
arch/riscv/kernel/cpu_ops_sbi.c | 11 +-
arch/riscv/kernel/entry.S | 8 +-
arch/riscv/kernel/machine_kexec.c | 3 +
arch/riscv/kernel/probes/rethook_trampoline.S | 3 +
arch/riscv/kernel/stacktrace.c | 2 +-
arch/riscv/kernel/vdso/Makefile | 6 +-
arch/s390/kernel/diag/diag310.c | 7 +-
arch/s390/kernel/perf_cpum_cf.c | 3 +
arch/s390/kernel/process.c | 2 +-
arch/s390/kvm/pci.c | 12 +-
arch/s390/mm/mmap.c | 2 +-
arch/sparc/kernel/led.c | 2 +-
arch/x86/Kconfig.cpu | 8 +-
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/kernel/cpu/cpu.h | 1 -
arch/x86/kernel/uprobes.c | 26 +-
arch/x86/kvm/irq.c | 4 +-
arch/x86/kvm/lapic.c | 8 +-
arch/x86/kvm/svm/sev.c | 6 +-
arch/x86/kvm/vmx/nested.c | 2 +
arch/x86/kvm/vmx/tdx.c | 12 +-
arch/x86/platform/olpc/olpc-xo15-sci.c | 1 +
arch/x86/video/video-common.c | 23 +-
block/blk.h | 13 +-
block/genhd.c | 4 -
block/ioctl.c | 2 +-
crypto/algif_skcipher.c | 75 +--
crypto/asymmetric_keys/verify_pefile.c | 2 +
crypto/ecrdsa.c | 2 +-
crypto/rng.c | 11 +
drivers/accel/amdxdna/aie2_ctx.c | 4 +-
drivers/accel/amdxdna/amdxdna_gem.c | 3 +-
drivers/accel/amdxdna/amdxdna_ubuf.c | 12 +-
drivers/accel/ivpu/ivpu_fw_log.c | 4 +
drivers/accel/ivpu/ivpu_job.c | 10 +-
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/riscv/rimt.c | 7 +-
drivers/acpi/thermal.c | 2 +-
drivers/amba/bus.c | 37 +-
drivers/android/binder.c | 18 +-
drivers/ata/libata-core.c | 23 +-
drivers/ata/libata-scsi.c | 7 +-
drivers/ata/pata_pxa.c | 1 +
drivers/ata/sata_gemini.c | 2 +-
drivers/base/core.c | 83 ++-
drivers/base/dd.c | 7 +-
drivers/base/firmware_loader/main.c | 71 ++-
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/mhi/host/pci_generic.c | 20 +-
drivers/bus/sunxi-rsb.c | 3 +
drivers/cdx/cdx.c | 40 +-
drivers/char/ipmi/ipmi_msghandler.c | 10 +-
drivers/char/tlclk.c | 4 +
drivers/char/tpm/eventlog/tpm1.c | 4 +-
drivers/char/tpm/tpm-dev.c | 2 +-
drivers/char/tpm/tpm2-cmd.c | 6 +-
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/clk/qcom/camcc-x1e80100.c | 64 +++
drivers/clk/qcom/ipq-cmn-pll.c | 11 +-
drivers/clk/renesas/rzg2l-cpg.c | 6 +-
drivers/clocksource/timer-sun5i.c | 3 +
drivers/cpufreq/cpufreq_conservative.c | 12 +-
drivers/cpufreq/intel_pstate.c | 6 +-
drivers/crypto/Kconfig | 1 -
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/atmel-sha204a.c | 16 +-
drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 4 +-
drivers/crypto/ccp/psp-dev.c | 12 +-
drivers/crypto/ccp/sev-dev.c | 10 +-
drivers/crypto/hisilicon/qm.c | 4 +-
drivers/crypto/inside-secure/eip93/eip93-main.c | 2 +
drivers/crypto/inside-secure/eip93/eip93-regs.h | 2 +-
.../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/crypto/xilinx/xilinx-trng.c | 75 +--
drivers/cxl/core/features.c | 2 +-
drivers/dax/kmem.c | 6 +
drivers/dibs/dibs_loopback.c | 5 +
drivers/dma-buf/dma-fence-unwrap.c | 3 +
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 | 140 +++--
drivers/edac/igen6_edac.c | 6 +
drivers/edac/skx_common.c | 3 +
drivers/firmware/arm_ffa/driver.c | 27 +-
drivers/firmware/arm_scmi/power.c | 6 +-
drivers/firmware/arm_scmi/sensors.c | 2 +-
drivers/firmware/smccc/soc_id.c | 2 +-
drivers/fpga/dfl.c | 2 +
drivers/fpga/microchip-spi.c | 3 +
drivers/gpio/gpio-davinci.c | 4 +-
drivers/gpio/gpio-dwapb.c | 116 ++--
drivers/gpio/gpio-f7188x.c | 6 +-
drivers/gpio/gpio-htc-egpio.c | 6 +-
drivers/gpio/gpio-mlxbf3.c | 3 +-
drivers/gpio/gpio-mt7621.c | 283 +++++++---
drivers/gpio/gpio-mvebu.c | 6 +-
drivers/gpio/gpio-palmas.c | 19 +
drivers/gpio/gpio-tegra.c | 18 +-
drivers/gpio/gpio-timberdale.c | 2 +-
drivers/gpio/gpiolib-acpi-core.c | 19 +-
drivers/gpio/gpiolib.c | 2 +-
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 +
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 +-
.../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_gpusvm.c | 5 +
drivers/gpu/drm/drm_gpuvm.c | 9 +-
drivers/gpu/drm/drm_syncobj.c | 10 +-
drivers/gpu/drm/hisilicon/hibmc/dp/dp_comm.h | 1 +
drivers/gpu/drm/hisilicon/hibmc/dp/dp_hw.h | 1 +
drivers/gpu/drm/hisilicon/hibmc/dp/dp_link.c | 2 +-
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 78 +--
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_dp.c | 35 +-
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 14 +
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 1 +
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 75 ++-
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/panel/Kconfig | 9 +-
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/renesas/rz-du/rzg2l_mipi_dsi.c | 12 +-
drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 7 +-
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/Makefile | 4 +-
drivers/gpu/drm/xe/tests/xe_pci.c | 1 -
drivers/gpu/drm/xe/xe_debugfs.c | 2 +-
drivers/gpu/drm/xe/xe_guc_relay.c | 13 +-
drivers/gpu/drm/xe/xe_hw_engine.c | 4 +-
drivers/gpu/drm/xe/xe_hwmon.c | 2 +-
drivers/gpu/drm/xe/xe_pt.c | 60 +-
drivers/gpu/drm/xe/xe_svm.h | 15 +-
drivers/gpu/drm/xe/xe_vram.c | 2 +-
drivers/gpu/drm/xe/xe_vsec.c | 7 +-
drivers/gpu/drm/xe/xe_vsec.h | 4 +-
drivers/gpu/host1x/bus.c | 62 +-
drivers/gpu/host1x/job.c | 10 +-
drivers/gpu/nova-core/falcon/hal/ga102.rs | 6 +-
drivers/gpu/nova-core/firmware.rs | 8 +-
drivers/gpu/nova-core/firmware/fwsec.rs | 4 +-
drivers/gpu/nova-core/vbios.rs | 108 ++--
drivers/hid/bpf/hid_bpf_dispatch.c | 5 +-
drivers/hid/hid-core.c | 7 +
drivers/hid/hid-logitech-hidpp.c | 1 -
drivers/hid/hid-picolcd_core.c | 3 +-
drivers/hid/hid-playstation.c | 12 +
drivers/hid/hid-wiimote-modules.c | 58 +-
drivers/hv/mshv_synic.c | 5 +
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 +-
drivers/hwtracing/coresight/coresight-core.c | 23 +-
.../hwtracing/coresight/coresight-cti-platform.c | 1 +
drivers/hwtracing/coresight/coresight-etm-perf.c | 5 +-
drivers/hwtracing/coresight/coresight-etm4x-core.c | 62 +-
drivers/hwtracing/coresight/coresight-etm4x.h | 2 -
drivers/hwtracing/coresight/coresight-priv.h | 2 +-
drivers/hwtracing/coresight/coresight-sysfs.c | 8 +-
drivers/i2c/busses/i2c-imx.c | 36 +-
drivers/i2c/busses/i2c-k1.c | 2 +-
drivers/i2c/busses/i2c-mlxbf.c | 4 +-
drivers/i2c/busses/i2c-mt65xx.c | 2 +-
drivers/i2c/i2c-core-of.c | 5 -
drivers/i3c/device.c | 46 +-
drivers/i3c/internals.h | 4 +
drivers/i3c/master.c | 316 +++++++++--
drivers/i3c/master/dw-i3c-master.c | 15 +-
drivers/i3c/master/dw-i3c-master.h | 2 -
drivers/i3c/master/i3c-master-cdns.c | 14 +-
drivers/i3c/master/mipi-i3c-hci/core.c | 39 +-
drivers/i3c/master/mipi-i3c-hci/dma.c | 6 +-
drivers/i3c/master/mipi-i3c-hci/ext_caps.c | 55 +-
drivers/i3c/master/mipi-i3c-hci/pio.c | 20 +-
drivers/i3c/master/svc-i3c-master.c | 30 +-
drivers/iio/accel/mma8452.c | 2 +
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/infiniband/core/cm.c | 13 +-
drivers/infiniband/core/counters.c | 2 +-
drivers/infiniband/hw/bnxt_re/Makefile | 2 +-
drivers/infiniband/hw/bnxt_re/ib_verbs.c | 312 +----------
drivers/infiniband/hw/bnxt_re/ib_verbs.h | 4 +
drivers/infiniband/hw/bnxt_re/main.c | 2 -
drivers/infiniband/hw/bnxt_re/uapi.c | 364 ++++++++++++
drivers/infiniband/hw/hfi1/init.c | 13 +-
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/mlx5_ib.h | 9 +
drivers/infiniband/hw/mlx5/mr.c | 29 +-
drivers/infiniband/hw/mlx5/odp.c | 12 +-
drivers/infiniband/hw/mlx5/qp.c | 13 +-
drivers/infiniband/hw/mlx5/restrack.c | 3 -
drivers/infiniband/hw/mlx5/umr.c | 93 ++-
drivers/infiniband/hw/mlx5/umr.h | 9 +-
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 | 3 +
drivers/iommu/amd/amd_iommu_types.h | 32 +-
drivers/iommu/amd/init.c | 140 +++--
drivers/iommu/amd/iommu.c | 2 +-
drivers/iommu/amd/ppr.c | 8 +-
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 2 +-
drivers/iommu/intel/iommu.c | 6 +-
drivers/iommu/intel/pasid.c | 4 +-
drivers/iommu/iommufd/driver.c | 13 +-
drivers/iommu/iommufd/eventq.c | 10 +-
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/mailbox-mpfs.c | 2 +-
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 | 12 +-
drivers/md/dm-ioctl.c | 4 +-
drivers/md/dm-log.c | 3 +
drivers/md/dm-pcache/dm_pcache.c | 8 +
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/md-bitmap.c | 13 +-
drivers/md/md-bitmap.h | 2 +-
drivers/md/md-llbitmap.c | 13 +-
drivers/md/md.c | 38 +-
drivers/md/md.h | 10 +-
drivers/md/raid0.c | 4 +-
drivers/md/raid1.c | 28 +-
drivers/md/raid10.c | 5 +-
drivers/md/raid5.c | 61 +-
.../media/platform/nxp/imx8-isi/imx8-isi-core.c | 18 +-
drivers/media/platform/qcom/camss/camss-vfe.c | 2 +-
.../platform/qcom/iris/iris_platform_sm8250.c | 2 +-
drivers/media/platform/qcom/iris/iris_probe.c | 7 +
drivers/media/platform/qcom/venus/core.c | 7 +-
drivers/media/platform/qcom/venus/core.h | 1 +
drivers/media/platform/qcom/venus/helpers.c | 4 +-
drivers/media/platform/qcom/venus/hfi_parser.c | 6 +-
drivers/media/platform/qcom/venus/hfi_platform.c | 24 -
drivers/media/platform/qcom/venus/hfi_platform.h | 2 -
.../media/platform/qcom/venus/hfi_platform_v4.c | 20 +-
.../media/platform/qcom/venus/hfi_platform_v6.c | 16 +-
drivers/media/platform/qcom/venus/pm_helpers.c | 8 +-
drivers/media/platform/rockchip/rga/rga-hw.c | 2 +-
drivers/media/platform/rockchip/rga/rga-hw.h | 2 +-
drivers/media/usb/uvc/uvc_status.c | 28 +-
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-esdhc-imx.c | 91 +--
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/debugfs.c | 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 | 27 +-
drivers/net/bonding/bond_main.c | 1 +
drivers/net/bonding/bond_netlink.c | 16 +
drivers/net/bonding/bond_options.c | 27 +
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/airoha/airoha_eth.c | 6 +-
drivers/net/ethernet/airoha/airoha_ppe.c | 3 +-
drivers/net/ethernet/airoha/airoha_ppe_debugfs.c | 2 -
drivers/net/ethernet/amazon/ena/ena_netdev.c | 23 +-
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 3 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 77 ++-
drivers/net/ethernet/broadcom/bnxt/bnxt.h | 19 +-
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 21 +-
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 23 +-
drivers/net/ethernet/cadence/macb_main.c | 29 +-
.../ethernet/cavium/liquidio/cn23xx_pf_device.c | 18 +-
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 8 -
.../ethernet/chelsio/inline_crypto/chtls/chtls.h | 2 +-
.../chelsio/inline_crypto/chtls/chtls_io.c | 8 +-
.../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/google/gve/gve_rx_dqo.c | 28 +-
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 31 +-
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 108 +++-
.../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 1 +
drivers/net/ethernet/ibm/emac/core.c | 13 +-
drivers/net/ethernet/intel/i40e/i40e_debug.h | 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 | 16 +-
drivers/net/ethernet/intel/ice/ice_vf_lib.c | 2 +-
drivers/net/ethernet/intel/idpf/virtchnl2.h | 12 +-
drivers/net/ethernet/intel/igc/igc_main.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 | 83 ++-
.../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 22 +-
.../net/ethernet/marvell/prestera/prestera_main.c | 2 +-
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/mlx5/core/en.h | 12 +
.../ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c | 37 +-
.../ethernet/mellanox/mlx5/core/en_accel/macsec.c | 47 +-
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 14 +-
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c | 9 +-
.../net/ethernet/mellanox/mlx5/core/ipoib/ipoib.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/lib/st.c | 1 +
drivers/net/ethernet/mellanox/mlx5/core/main.c | 12 +-
.../ethernet/mellanox/mlx5/core/steering/hws/bwc.c | 1 +
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +-
.../net/ethernet/mellanox/mlxsw/spectrum_router.c | 1 +
drivers/net/ethernet/meta/fbnic/fbnic_fw.c | 9 +-
drivers/net/ethernet/meta/fbnic/fbnic_txrx.c | 11 +-
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 +-
drivers/net/ethernet/oa_tc6.c | 14 +-
.../net/ethernet/pensando/ionic/ionic_ethtool.c | 11 +-
drivers/net/ethernet/qlogic/qede/qede_fp.c | 9 +-
.../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/sun/sungem.c | 13 +-
drivers/net/ethernet/sunplus/spl2sw_phy.c | 6 +-
drivers/net/ethernet/ti/icssg/icssg_common.c | 49 +-
drivers/net/ethernet/wangxun/libwx/wx_lib.c | 1 +
drivers/net/ethernet/wangxun/libwx/wx_type.h | 1 +
drivers/net/ieee802154/ca8210.c | 9 +-
drivers/net/macsec.c | 9 +-
drivers/net/mdio/Kconfig | 3 +-
drivers/net/ovpn/tcp.c | 2 +-
drivers/net/pfcp.c | 1 +
drivers/net/phy/realtek/realtek_main.c | 3 +-
drivers/net/phy/sfp.c | 1 +
drivers/net/pse-pd/pse_core.c | 6 +-
drivers/net/thunderbolt/main.c | 8 +-
drivers/net/usb/gl620a.c | 6 +-
drivers/net/usb/lan78xx.c | 55 +-
drivers/net/usb/net1080.c | 2 +-
drivers/net/veth.c | 2 +
drivers/net/virtio_net.c | 27 +-
drivers/net/vxlan/vxlan_core.c | 8 +-
drivers/net/wan/ixp4xx_hss.c | 4 +-
drivers/net/wireless/ath/ath12k/dp_mon.c | 6 +-
drivers/net/wireless/ath/ath12k/mac.c | 12 +-
drivers/net/wireless/ath/ath9k/xmit.c | 5 +
drivers/net/wireless/ath/wcn36xx/smd.c | 13 +
.../broadcom/brcm80211/brcmfmac/cyw/core.c | 6 +
drivers/net/wireless/marvell/libertas_tf/main.c | 2 +-
drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 +-
drivers/net/wireless/marvell/mwifiex/join.c | 1 -
drivers/net/wireless/mediatek/mt76/channel.c | 2 +-
drivers/net/wireless/mediatek/mt76/mac80211.c | 4 +-
drivers/net/wireless/mediatek/mt76/mt7615/init.c | 1 -
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 +-
.../net/wireless/mediatek/mt76/mt7925/testmode.c | 5 +
drivers/net/wireless/mediatek/mt76/mt792x_core.c | 4 +-
drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 35 +-
drivers/net/wireless/mediatek/mt76/mt7996/main.c | 9 +-
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 5 +-
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 3 +-
drivers/net/wireless/mediatek/mt76/tx.c | 2 +-
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c | 12 +-
drivers/net/wireless/realtek/rtw88/pci.c | 13 +-
drivers/net/wireless/realtek/rtw89/core.h | 3 +
drivers/net/wireless/realtek/rtw89/fw.c | 2 +-
drivers/net/wireless/realtek/rtw89/pci.c | 8 +-
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/apple.c | 12 +-
drivers/nvme/host/core.c | 4 +-
drivers/nvme/host/pci.c | 13 +-
drivers/nvme/target/core.c | 2 +-
drivers/nvme/target/fabrics-cmd-auth.c | 26 +-
drivers/nvme/target/rdma.c | 18 +-
drivers/nvme/target/tcp.c | 16 +-
drivers/of/cpu.c | 2 +-
drivers/of/dynamic.c | 1 -
drivers/of/of_reserved_mem.c | 28 +-
drivers/of/overlay.c | 15 +
drivers/of/platform.c | 5 -
drivers/opp/core.c | 5 +-
drivers/pci/Makefile | 2 +-
drivers/pci/controller/dwc/pci-imx6.c | 35 +-
drivers/pci/controller/dwc/pci-meson.c | 13 +-
.../pci/controller/dwc/pcie-designware-debugfs.c | 10 +-
drivers/pci/controller/dwc/pcie-qcom.c | 1 +
drivers/pci/controller/pci-loongson.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.c | 21 +-
drivers/pci/controller/pcie-rcar-host.c | 1 -
drivers/pci/endpoint/functions/pci-epf-ntb.c | 21 +-
drivers/pci/endpoint/functions/pci-epf-vntb.c | 9 +-
drivers/pci/iov.c | 15 +-
drivers/pci/msi/msi.c | 4 +-
drivers/pci/pci-sysfs.c | 17 +-
drivers/pci/pci.c | 148 -----
drivers/pci/pci.h | 10 +-
drivers/pci/rebar.c | 237 ++++++++
drivers/pci/rom.c | 149 ++++-
drivers/pci/setup-bus.c | 136 +++--
drivers/pci/setup-res.c | 78 ---
drivers/phy/freescale/phy-fsl-imx8qm-lvds-phy.c | 24 +-
drivers/phy/phy-can-transceiver.c | 3 +
drivers/pinctrl/cirrus/pinctrl-cs42l43.c | 6 +-
drivers/pinctrl/mediatek/mtk-eint.c | 6 +-
drivers/pinctrl/mediatek/pinctrl-airoha.c | 575 ++++++++++---------
drivers/pinctrl/mediatek/pinctrl-mt8167.c | 2 +-
drivers/pinctrl/mediatek/pinctrl-mt8516.c | 2 +-
drivers/pinctrl/meson/pinctrl-amlogic-a4.c | 15 +-
drivers/pinctrl/meson/pinctrl-meson.c | 2 +-
drivers/pinctrl/nuvoton/pinctrl-ma35.c | 3 +-
drivers/pinctrl/nuvoton/pinctrl-ma35d1.c | 470 +++++++++-------
drivers/pinctrl/qcom/tlmm-test.c | 19 +-
drivers/pinctrl/spacemit/pinctrl-k1.c | 2 +-
drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c | 1 -
drivers/pinctrl/sunxi/pinctrl-sun55i-a523.c | 1 -
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/intel/pmc/arl.c | 12 +-
drivers/platform/x86/intel/pmc/core.c | 145 ++---
drivers/platform/x86/intel/pmc/core.h | 10 +-
drivers/platform/x86/intel/pmc/lnl.c | 2 +-
drivers/platform/x86/intel/pmc/mtl.c | 9 +-
drivers/platform/x86/intel/pmc/ptl.c | 3 +-
drivers/platform/x86/intel/pmc/ssram_telemetry.c | 2 +-
drivers/platform/x86/intel/pmt/class.c | 8 +-
drivers/platform/x86/intel/pmt/class.h | 5 +-
drivers/platform/x86/intel/pmt/discovery.c | 4 +-
drivers/platform/x86/intel/pmt/telemetry.c | 13 +-
drivers/platform/x86/intel/pmt/telemetry.h | 12 +-
drivers/platform/x86/intel/sdsi.c | 5 +-
.../x86/intel/speed_select_if/isst_tpmi_core.c | 2 +-
drivers/platform/x86/intel/vsec.c | 84 ++-
drivers/platform/x86/intel/vsec_tpmi.c | 8 +-
drivers/platform/x86/xo15-ebook.c | 7 +-
drivers/pmdomain/imx/imx8m-blk-ctrl.c | 46 +-
drivers/power/sequencing/core.c | 9 +-
drivers/power/supply/bq257xx_charger.c | 7 +-
drivers/power/supply/charger-manager.c | 6 +-
drivers/power/supply/cpcap-battery.c | 11 +-
drivers/power/supply/max17042_battery.c | 3 +-
drivers/power/supply/power_supply_core.c | 11 +-
drivers/pwm/pwm-imx27.c | 8 +-
drivers/pwm/pwm-rzg2l-gpt.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-isl1208.c | 15 +-
drivers/rtc/rtc-mpfs.c | 2 +-
drivers/rtc/rtc-msc313.c | 4 +-
drivers/rtc/rtc-renesas-rtca3.c | 2 +-
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/hisi_sas/hisi_sas_v3_hw.c | 12 +-
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/mediatek/mt8167-mmsys.h | 11 +-
drivers/soc/ti/k3-ringacc.c | 4 +-
drivers/soc/xilinx/zynqmp_power.c | 4 +-
drivers/soundwire/generic_bandwidth_allocation.c | 57 +-
drivers/soundwire/intel_ace2x.c | 1 +
drivers/soundwire/stream.c | 7 +
drivers/spi/spi-atmel.c | 133 ++---
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/gpib/cb7210/cb7210.c | 1 +
drivers/staging/gpib/common/gpib_os.c | 4 +-
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/ufs_trace.h | 36 +-
drivers/ufs/core/ufshcd.c | 2 +-
drivers/usb/atm/ueagle-atm.c | 94 ++--
drivers/usb/dwc3/core.c | 20 +
drivers/usb/dwc3/core.h | 4 +
drivers/usb/dwc3/ulpi.c | 25 +
drivers/usb/gadget/function/f_fs.c | 89 ++-
drivers/usb/host/max3421-hcd.c | 8 +
drivers/vdpa/octeon_ep/octep_vdpa_main.c | 20 +-
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 | 10 +-
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/virtio/virtio_rtc_driver.c | 28 +-
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_inode.c | 28 +-
fs/9p/vfs_inode_dotl.c | 4 +-
fs/afs/callback.c | 7 +-
fs/afs/cell.c | 27 +-
fs/afs/cm_security.c | 3 +-
fs/afs/cmservice.c | 7 +-
fs/afs/dir.c | 40 +-
fs/afs/dynroot.c | 2 +-
fs/afs/fs_operation.c | 2 +-
fs/afs/inode.c | 2 +-
fs/afs/internal.h | 1 +
fs/afs/rxrpc.c | 16 +-
fs/afs/super.c | 5 +-
fs/afs/vl_list.c | 10 +-
fs/afs/volume.c | 2 +-
fs/bpf_fs_kfuncs.c | 10 +-
fs/btrfs/compression.c | 20 +-
fs/btrfs/direct-io.c | 69 ++-
fs/btrfs/extent-tree.c | 5 +-
fs/btrfs/extent_io.c | 72 ++-
fs/btrfs/inode.c | 14 +-
fs/btrfs/ordered-data.c | 41 +-
fs/btrfs/ordered-data.h | 8 +-
fs/btrfs/reflink.c | 101 ++--
fs/btrfs/super.c | 4 +-
fs/btrfs/zoned.c | 64 ++-
fs/configfs/dir.c | 57 +-
fs/dlm/midcomms.c | 4 +-
fs/efs/file.c | 21 +-
fs/eventpoll.c | 623 ++++++++++++++-------
fs/exfat/dir.c | 49 +-
fs/exfat/exfat_fs.h | 5 +-
fs/exfat/namei.c | 89 ++-
fs/ext2/file.c | 9 +-
fs/ext4/ext4.h | 20 +
fs/ext4/fast_commit.c | 50 +-
fs/ext4/inode.c | 3 +-
fs/ext4/ioctl.c | 12 +-
fs/ext4/namei.c | 2 +-
fs/fhandle.c | 2 +-
fs/fs-writeback.c | 5 -
fs/fuse/control.c | 7 +-
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/iomap/ioend.c | 8 +-
fs/jbd2/journal.c | 2 +
fs/kernfs/dir.c | 11 +-
fs/libfs.c | 13 +
fs/lockd/svcsubs.c | 4 +-
fs/minix/minix.h | 2 +-
fs/namei.c | 4 +
fs/netfs/write_issue.c | 18 +-
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/fs_context.c | 8 +-
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/namei.c | 2 +-
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 | 182 +++++-
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/page.c | 2 +-
fs/proc/proc_net.c | 2 +-
fs/proc/task_mmu.c | 61 +-
fs/resctrl/rdtgroup.c | 15 +-
fs/smb/client/Makefile | 5 +-
fs/smb/client/cifssmb.c | 5 +-
fs/smb/client/connect.c | 3 +
fs/smb/client/file.c | 1 +
fs/smb/client/inode.c | 30 +-
fs/smb/client/ioctl.c | 12 +-
fs/smb/client/misc.c | 8 +
fs/smb/client/{cifstransport.c => smb1transport.c} | 4 +-
fs/smb/client/smb2ops.c | 38 +-
fs/smb/server/Kconfig | 6 +-
fs/smb/server/auth.c | 398 +++----------
fs/smb/server/auth.h | 10 +-
fs/smb/server/connection.c | 101 +++-
fs/smb/server/connection.h | 6 +
fs/smb/server/crypto_ctx.c | 24 -
fs/smb/server/crypto_ctx.h | 15 +-
fs/smb/server/misc.c | 33 --
fs/smb/server/misc.h | 1 -
fs/smb/server/oplock.c | 13 +-
fs/smb/server/server.c | 16 +-
fs/smb/server/smb2pdu.c | 78 ++-
fs/smb/server/smb_common.h | 2 +-
fs/smb/server/smbacl.c | 7 +-
fs/smb/server/vfs.c | 60 +-
fs/smb/server/vfs_cache.c | 114 +++-
fs/smb/server/vfs_cache.h | 1 +
fs/super.c | 11 +-
fs/sysfs/file.c | 4 +
fs/udf/super.c | 2 +-
fs/xfs/libxfs/xfs_group.h | 9 +
fs/xfs/libxfs/xfs_rtgroup.h | 8 +
fs/xfs/xfs_iomap.c | 2 +-
fs/xfs/xfs_rtalloc.c | 8 +-
fs/xfs/xfs_zone_gc.c | 13 +-
fs/xfs/xfs_zone_space_resv.c | 8 +-
include/acpi/acpi_bus.h | 2 +
include/asm-generic/bitops/lock.h | 22 +-
include/dt-bindings/clock/qcom,x1e80100-camcc.h | 3 +
include/dt-bindings/power/fsl,imx93-power.h | 1 +
include/linux/amba/bus.h | 5 -
include/linux/arm-smccc.h | 5 +
include/linux/bpf-cgroup.h | 5 +-
include/linux/bpf.h | 4 +
include/linux/bpf_local_storage.h | 3 -
include/linux/bpf_lsm.h | 10 +
include/linux/cdx/cdx_bus.h | 4 -
include/linux/device.h | 5 +-
include/linux/dpll.h | 2 +
include/linux/firmware.h | 10 +
include/linux/fs.h | 3 +
include/linux/fwnode.h | 1 +
include/linux/host1x.h | 7 +
include/linux/hyperv.h | 5 -
include/linux/i3c/master.h | 25 +-
include/linux/ieee80211-eht.h | 12 +-
include/linux/inetdevice.h | 5 +
include/linux/intel_vsec.h | 30 +-
include/linux/iommu.h | 1 +
include/linux/netdevice.h | 4 +
include/linux/nfs_page.h | 1 +
include/linux/nfs_xdr.h | 1 -
include/linux/pci.h | 3 +-
include/linux/platform_data/mipi-i3c-hci.h | 15 +
include/linux/rpmsg.h | 4 -
include/linux/seqlock.h | 110 ++++
include/linux/sunrpc/clnt.h | 1 +
include/linux/sunrpc/xprt.h | 2 +
include/linux/uaccess.h | 2 +-
include/linux/vmalloc.h | 4 +-
include/net/addrconf.h | 10 +-
include/net/bluetooth/hci.h | 5 +-
include/net/bluetooth/l2cap.h | 10 +-
include/net/bond_options.h | 1 +
include/net/bonding.h | 1 +
include/net/fib_rules.h | 5 +
include/net/gue.h | 2 +-
include/net/inet_common.h | 3 +-
include/net/ip.h | 2 +-
include/net/ip_fib.h | 7 +-
include/net/ip_vs.h | 3 +-
include/net/ipv6.h | 6 +-
include/net/netfilter/nf_conntrack_extend.h | 12 -
include/net/netfilter/nf_flow_table.h | 6 +
include/net/netfilter/nf_queue.h | 1 +
include/net/netfilter/nft_meta.h | 2 +
include/net/ping.h | 5 +-
include/net/sctp/sctp.h | 3 +-
include/net/sock.h | 2 +-
include/net/tc_act/tc_pedit.h | 18 +-
include/net/tcp.h | 11 +-
include/net/xfrm.h | 15 +-
include/rdma/ib_umem.h | 4 +
include/rdma/rdma_vt.h | 20 -
include/uapi/linux/bpf.h | 2 +
include/uapi/linux/if_link.h | 1 +
init/initramfs_test.c | 17 +-
kernel/bpf/bpf_inode_storage.c | 9 +
kernel/bpf/bpf_lru_list.c | 165 +++---
kernel/bpf/bpf_lru_list.h | 25 +-
kernel/bpf/bpf_lsm.c | 23 +
kernel/bpf/cgroup.c | 168 +++---
kernel/bpf/core.c | 2 +-
kernel/bpf/devmap.c | 12 +
kernel/bpf/hashtab.c | 21 +-
kernel/bpf/helpers.c | 29 +-
kernel/bpf/inode.c | 13 +-
kernel/bpf/lpm_trie.c | 8 +-
kernel/bpf/map_in_map.c | 5 +-
kernel/bpf/map_iter.c | 4 +
kernel/bpf/syscall.c | 23 +-
kernel/bpf/verifier.c | 186 +++---
kernel/cgroup/cpuset.c | 7 +-
kernel/cpu.c | 20 +-
kernel/fork.c | 9 +-
kernel/kcov.c | 4 +-
kernel/locking/spinlock_rt.c | 27 +-
kernel/sched/core.c | 1 +
kernel/sched/cpufreq_schedutil.c | 1 +
kernel/sched/debug.c | 3 +
kernel/sched/fair.c | 23 +-
kernel/taskstats.c | 62 +-
kernel/time/alarmtimer.c | 2 -
kernel/time/posix-cpu-timers.c | 2 +-
kernel/time/tick-sched.c | 11 +-
kernel/time/time.c | 2 +-
kernel/trace/bpf_trace.c | 11 +-
kernel/trace/fprobe.c | 10 +
kernel/trace/ring_buffer.c | 3 +-
kernel/trace/trace.c | 2 +-
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 | 174 +++++-
kernel/trace/trace_probe.h | 7 +-
kernel/workqueue.c | 2 +-
lib/alloc_tag.c | 9 +-
lib/locking-selftest.c | 7 +-
lib/test_meminit.c | 2 +-
lib/tests/kunit_iov_iter.c | 12 +-
lib/vsprintf.c | 36 +-
mm/compaction.c | 7 +-
mm/damon/core.c | 53 +-
mm/damon/sysfs-schemes.c | 17 +-
mm/hugetlb.c | 7 +-
mm/memory_hotplug.c | 2 +-
mm/mm_init.c | 47 +-
mm/numa_emulation.c | 17 +-
net/9p/client.c | 2 +
net/9p/trans_rdma.c | 19 +-
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/mesh-interface.c | 17 +-
net/batman-adv/mesh-interface.h | 2 +
net/batman-adv/multicast_forw.c | 7 +-
net/batman-adv/routing.c | 3 +-
net/batman-adv/translation-table.c | 5 +-
net/bluetooth/6lowpan.c | 56 +-
net/bluetooth/eir.c | 8 +-
net/bluetooth/hci_codec.c | 2 +-
net/bluetooth/hci_core.c | 2 +
net/bluetooth/hci_event.c | 7 +
net/bluetooth/l2cap_core.c | 94 +++-
net/bluetooth/l2cap_sock.c | 103 ++--
net/bluetooth/mgmt.c | 2 +
net/bluetooth/msft.c | 2 +-
net/bluetooth/sco.c | 77 ++-
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/nft_meta_bridge.c | 23 +-
net/can/bcm.c | 127 ++++-
net/can/isotp.c | 298 +++++++---
net/core/dev.c | 3 +-
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/netdev-genl.c | 4 +-
net/core/sock.c | 7 +-
net/devlink/rate.c | 25 +-
net/handshake/genl.c | 2 +-
net/ieee802154/core.c | 49 +-
net/ieee802154/header_ops.c | 9 +-
net/ieee802154/ieee802154.h | 17 +
net/ieee802154/netlink.c | 36 +-
net/ieee802154/socket.c | 6 +-
net/ife/ife.c | 2 +-
net/ipv4/af_inet.c | 17 +-
net/ipv4/igmp.c | 63 ++-
net/ipv4/inet_connection_sock.c | 7 +
net/ipv4/ip_sockglue.c | 4 +-
net/ipv4/ip_vti.c | 3 +
net/ipv4/ipip.c | 3 +
net/ipv4/netfilter/nf_reject_ipv4.c | 2 +-
net/ipv4/ping.c | 9 +-
net/ipv4/raw.c | 6 +-
net/ipv4/tcp.c | 5 +-
net/ipv4/tcp_bpf.c | 17 +-
net/ipv4/tcp_ipv4.c | 4 +-
net/ipv4/tcp_output.c | 8 +-
net/ipv4/udp.c | 9 +-
net/ipv4/udp_bpf.c | 25 +-
net/ipv4/udp_impl.h | 3 +-
net/ipv4/udp_tunnel_nic.c | 2 +-
net/ipv6/addrconf.c | 55 +-
net/ipv6/af_inet6.c | 11 +-
net/ipv6/datagram.c | 9 +-
net/ipv6/ioam6_iptunnel.c | 8 +-
net/ipv6/ip6_fib.c | 17 +-
net/ipv6/ip6_gre.c | 6 +
net/ipv6/ip6_tunnel.c | 3 +
net/ipv6/ip6_vti.c | 3 +
net/ipv6/mcast.c | 40 +-
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/ping.c | 3 +-
net/ipv6/raw.c | 8 +-
net/ipv6/route.c | 9 +-
net/ipv6/seg6.c | 3 +
net/ipv6/sit.c | 3 +
net/ipv6/udp.c | 10 +-
net/ipv6/udp_impl.h | 3 +-
net/kcm/kcmsock.c | 8 +-
net/l2tp/l2tp_ip.c | 4 +-
net/l2tp/l2tp_ip6.c | 6 +-
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/mptcp/protocol.c | 4 +-
net/netfilter/Makefile | 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_flow_table_path.c | 276 +++++++++
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/nf_tables_api.c | 3 +
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_flow_offload.c | 259 ---------
net/netfilter/nft_lookup.c | 10 +-
net/netfilter/nft_meta.c | 5 +-
net/netfilter/nft_payload.c | 16 +-
net/netfilter/nft_set_pipapo.c | 34 +-
net/netfilter/nft_set_pipapo.h | 8 +
net/netfilter/nft_set_rbtree.c | 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/phonet/datagram.c | 4 +-
net/phonet/pep.c | 2 +-
net/psample/psample.c | 6 +-
net/qrtr/af_qrtr.c | 2 +-
net/rxrpc/ar-internal.h | 6 +-
net/rxrpc/call_accept.c | 25 +-
net/rxrpc/call_event.c | 5 +-
net/rxrpc/call_object.c | 2 +
net/rxrpc/conn_client.c | 2 +-
net/rxrpc/conn_event.c | 9 +-
net/rxrpc/input.c | 39 +-
net/rxrpc/oob.c | 12 +-
net/rxrpc/recvmsg.c | 23 +-
net/rxrpc/rxgk.c | 3 +-
net/rxrpc/sendmsg.c | 3 +-
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_dualpi2.c | 48 +-
net/sched/sch_fq_codel.c | 41 +-
net/sched/sch_generic.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/protocol.c | 3 +-
net/sctp/sm_make_chunk.c | 15 +-
net/sctp/sm_statefuns.c | 59 +-
net/sctp/socket.c | 50 +-
net/smc/smc_cdc.c | 15 +-
net/sunrpc/clnt.c | 19 +-
net/sunrpc/svc.c | 10 +
net/sunrpc/svcsock.c | 10 +
net/sunrpc/sysfs.c | 4 +-
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 | 9 +-
net/tls/tls.h | 2 +-
net/tls/tls_sw.c | 14 +-
net/unix/af_unix.c | 39 +-
net/unix/unix_bpf.c | 2 +-
net/vmw_vsock/af_vsock.c | 4 +-
net/vmw_vsock/vsock_bpf.c | 2 +-
net/wireless/nl80211.c | 2 +-
net/wireless/scan.c | 5 +-
net/xfrm/espintcp.c | 36 +-
net/xfrm/xfrm_interface_core.c | 3 +
net/xfrm/xfrm_nat_keepalive.c | 15 +-
net/xfrm/xfrm_policy.c | 27 +-
net/xfrm/xfrm_state.c | 26 +-
net/xfrm/xfrm_user.c | 20 +-
rust/kernel/alloc/kvec.rs | 4 +-
samples/damon/mtier.c | 2 +
samples/trace_events/trace-events-sample.c | 4 +
scripts/kconfig/conf.c | 6 +-
security/apparmor/af_unix.c | 65 ++-
security/apparmor/apparmorfs.c | 113 +++-
security/apparmor/domain.c | 58 +-
security/apparmor/file.c | 12 +-
security/apparmor/include/apparmorfs.h | 12 +
security/apparmor/label.c | 2 +-
security/apparmor/net.c | 1 +
security/apparmor/policy.c | 20 +-
security/apparmor/policy_unpack.c | 6 +-
security/apparmor/procattr.c | 2 +
security/bpf/hooks.c | 3 +
security/integrity/evm/evm_secfs.c | 16 +-
security/keys/keyring.c | 2 +-
security/landlock/fs.c | 14 +
security/landlock/fs.h | 10 +
security/landlock/net.c | 11 +-
security/landlock/task.c | 11 +
security/selinux/hooks.c | 80 ++-
sound/core/init.c | 11 +-
sound/core/seq/oss/seq_oss_event.c | 6 +-
sound/core/seq/oss/seq_oss_event.h | 3 +-
sound/core/seq/oss/seq_oss_ioctl.c | 5 +-
sound/core/seq/oss/seq_oss_midi.c | 6 +-
sound/core/seq/oss/seq_oss_midi.h | 2 +-
sound/core/seq/oss/seq_oss_readq.c | 77 ++-
sound/core/seq/oss/seq_oss_rw.c | 5 +-
sound/core/seq/seq_clientmgr.c | 33 +-
sound/core/seq/seq_fifo.c | 52 +-
sound/core/seq/seq_memory.c | 2 +-
sound/core/seq/seq_midi.c | 55 +-
sound/drivers/aloop.c | 1 -
sound/hda/codecs/conexant.c | 3 -
sound/hda/codecs/realtek/alc269.c | 2 +
sound/hda/codecs/side-codecs/tas2781_hda_i2c.c | 3 +
sound/hda/codecs/side-codecs/tas2781_hda_spi.c | 3 +
sound/hda/controllers/Kconfig | 2 +-
sound/hda/core/regmap.c | 4 +-
sound/soc/amd/acp/acp-sdw-legacy-mach.c | 7 +-
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/sma1307.c | 35 +-
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 | 23 +-
sound/soc/mediatek/mt8192/mt8192-afe-pcm.c | 21 +-
sound/soc/qcom/qdsp6/q6apm.c | 8 +
sound/soc/renesas/rcar/rsnd.h | 2 +-
sound/soc/sof/intel/Kconfig | 4 +-
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/fcp.c | 2 +
sound/usb/midi2.c | 5 +
sound/usb/mixer_scarlett2.c | 201 ++++++-
sound/usb/qcom/mixer_usb_offload.c | 2 +-
sound/usb/qcom/qc_audio_offload.c | 30 +-
sound/xen/xen_snd_front_alsa.c | 17 +-
sound/xen/xen_snd_front_evtchnl.c | 28 +-
sound/xen/xen_snd_front_evtchnl.h | 6 +-
tools/bpf/bpftool/cgroup.c | 14 +-
tools/bpf/bpftool/gen.c | 2 +-
tools/bpf/bpftool/net.c | 4 +-
tools/include/linux/args.h | 4 +
tools/include/nolibc/getopt.h | 2 +-
tools/include/uapi/linux/bpf.h | 2 +
tools/include/uapi/linux/if_link.h | 2 +
tools/lib/api/fs/fs.c | 19 +-
tools/lib/bpf/gen_loader.c | 81 ++-
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/Makefile.config | 1 +
tools/perf/arch/arm64/util/header.c | 1 -
tools/perf/arch/common.c | 4 +-
tools/perf/arch/powerpc/util/auxtrace.c | 6 +
tools/perf/arch/x86/tests/amd-ibs-period.c | 2 +-
tools/perf/bench/inject-buildid.c | 11 +-
tools/perf/builtin-annotate.c | 3 +-
tools/perf/builtin-buildid-cache.c | 12 +-
tools/perf/builtin-buildid-list.c | 4 +-
tools/perf/builtin-c2c.c | 24 +-
tools/perf/builtin-diff.c | 3 +-
tools/perf/builtin-inject.c | 304 +++++++++-
tools/perf/builtin-record.c | 1 +
tools/perf/builtin-report.c | 3 +-
tools/perf/builtin-sched.c | 148 +++--
tools/perf/builtin-stat.c | 50 +-
tools/perf/tests/code-reading.c | 7 +-
tools/perf/tests/dlfilter-test.c | 8 +-
tools/perf/tests/pe-file-parsing.c | 4 +-
tools/perf/tests/pmu-events.c | 24 +-
tools/perf/tests/sample-parsing.c | 5 +-
tools/perf/tests/sdt.c | 2 +-
tools/perf/ui/browser.c | 3 +
tools/perf/ui/browsers/annotate.c | 5 +-
tools/perf/util/arm-spe.c | 28 +-
tools/perf/util/bpf-event.c | 52 +-
tools/perf/util/bpf-event.h | 4 +-
tools/perf/util/bpf-utils.c | 16 +
tools/perf/util/build-id.c | 4 +-
tools/perf/util/cpumap.c | 49 +-
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 | 11 +-
tools/perf/util/disasm.c | 7 +-
tools/perf/util/dso.c | 46 +-
tools/perf/util/dsos.c | 4 +-
tools/perf/util/env.h | 14 +
tools/perf/util/event.c | 15 +-
tools/perf/util/header.c | 57 +-
tools/perf/util/hist.c | 7 +-
tools/perf/util/hwmon_pmu.c | 24 +-
tools/perf/util/intel-bts.c | 3 +-
.../util/intel-pt-decoder/intel-pt-insn-decoder.c | 11 +-
tools/perf/util/intel-pt.c | 35 +-
tools/perf/util/libbfd.c | 11 +-
tools/perf/util/libbfd.h | 5 +-
tools/perf/util/machine.c | 42 +-
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/svghelper.c | 10 +-
tools/perf/util/symbol-elf.c | 128 +++--
tools/perf/util/symbol-minimal.c | 29 +-
tools/perf/util/symbol.c | 24 +-
tools/perf/util/symbol.h | 2 +-
tools/perf/util/synthetic-events.c | 27 +-
tools/perf/util/synthetic-events.h | 6 +-
tools/perf/util/thread.c | 5 +
tools/power/x86/intel-speed-select/isst-daemon.c | 9 +-
tools/testing/cxl/test/cxl.c | 10 +-
tools/testing/cxl/test/mem.c | 6 +-
tools/testing/kunit/kunit_parser.py | 12 +-
tools/testing/selftests/Makefile | 2 +-
tools/testing/selftests/bpf/bpf_util.h | 45 +-
tools/testing/selftests/bpf/cgroup_helpers.c | 2 +-
.../selftests/bpf/prog_tests/bpf_attr_size.c | 69 +++
.../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/cpumask_success.c | 2 +-
.../testing/selftests/bpf/progs/test_tunnel_kern.c | 13 +-
.../testing/selftests/bpf/progs/verifier_bounds.c | 14 +-
.../selftests/bpf/progs/verifier_linked_scalars.c | 556 +++++++++++++++++-
tools/testing/selftests/bpf/progs/xdp_flowtable.c | 7 +-
tools/testing/selftests/bpf/vmtest.sh | 2 +-
tools/testing/selftests/drivers/net/hw/tso.py | 16 +-
.../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 +-
.../selftests/mm/hugetlb_reparenting_test.sh | 60 +-
tools/testing/selftests/mm/pkey-arm64.h | 3 +-
tools/testing/selftests/mm/split_huge_page_test.c | 27 +-
tools/testing/selftests/mm/uffd-stress.c | 5 +-
tools/testing/selftests/net/broadcast_ether_dst.sh | 2 +-
tools/testing/selftests/net/lib.sh | 25 +-
tools/testing/selftests/net/tcp_mmap.c | 4 +
tools/testing/selftests/net/tls.c | 8 +-
tools/testing/selftests/net/vlan_bridge_binding.sh | 2 +-
tools/testing/selftests/rseq/Makefile | 6 +-
tools/tracing/rtla/src/actions.c | 8 +-
tools/tracing/rtla/src/actions.h | 5 +
tools/virtio/vringh_test.c | 5 +
virt/kvm/kvm_main.c | 16 +-
1499 files changed, 19926 insertions(+), 10240 deletions(-)Greg Kroah-Hartman
maintainerPATCH 2/1611 smb/server: do not require delete access for non-replacing links
6.18-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
@@ -6572,16 +6572,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 4/1611 crypto: algif_skcipher - force synchronous processing
In reply to Greg Kroah-Hartman6.18-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 13/1611 selftests/bpf: Add a test cases for sync_linked_regs regarding zext propagation
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <[email protected]>
commit 4a04d13576fd69149b91672b5f1dc62eca272fa5 upstream.
Add multiple test cases for linked register tracking with alu32 ops:
- Add a test that checks sync_linked_regs() regarding reg->id (the linked
target register) for BPF_ADD_CONST32 rather than known_reg->id (the
branch register).- Add a test case for linked register tracking that exposes the cross-type
sync_linked_regs() bug. One register uses alu32 (w7 += 1, BPF_ADD_CONST32)
and another uses alu64 (r8 += 2, BPF_ADD_CONST64), both linked to the
same base register. - Add a test case that exercises regsafe() path pruning when two execution paths reach the same program point with linked registers carrying different ADD_CONST flags (BPF_ADD_CONST32 from alu32 vs BPF_ADD_CONST64 from alu64). This particular test passes with and without the fix since the pruning will fail due to different ranges, but it would still be useful to carry this one as a regression test for the unreachable div by zero.
With the fix applied all the tests pass:
# LDLIBS=-static PKG_CONFIG='pkg-config --static' ./vmtest.sh -- ./test_progs -t verifier_linked_scalars [...]
./test_progs -t verifier_linked_scalars
#602/1 verifier_linked_scalars/scalars: find linked scalars:OK #602/2 verifier_linked_scalars/sync_linked_regs_preserves_id:OK #602/3 verifier_linked_scalars/scalars_neg:OK #602/4 verifier_linked_scalars/scalars_neg_sub:OK #602/5 verifier_linked_scalars/scalars_neg_alu32_add:OK #602/6 verifier_linked_scalars/scalars_neg_alu32_sub:OK #602/7 verifier_linked_scalars/scalars_pos:OK #602/8 verifier_linked_scalars/scalars_sub_neg_imm:OK #602/9 verifier_linked_scalars/scalars_double_add:OK #602/10 verifier_linked_scalars/scalars_sync_delta_overflow:OK #602/11 verifier_linked_scalars/scalars_sync_delta_overflow_large_range:OK #602/12 verifier_linked_scalars/scalars_alu32_big_offset:OK #602/13 verifier_linked_scalars/scalars_alu32_basic:OK #602/14 verifier_linked_scalars/scalars_alu32_wrap:OK #602/15 verifier_linked_scalars/scalars_alu32_zext_linked_reg:OK #602/16 verifier_linked_scalars/scalars_alu32_alu64_cross_type:OK #602/17 verifier_linked_scalars/scalars_alu32_alu64_regsafe_pruning:OK #602/18 verifier_linked_scalars/alu32_negative_offset:OK #602/19 verifier_linked_scalars/spurious_precision_marks:OK #602 verifier_linked_scalars:OK
Summary: 1/19 PASSED, 0 SKIPPED, 0 FAILED
--- .../bpf/progs/verifier_linked_scalars.c | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+)
tools/testing/selftests/bpf/progs/verifier_linked_scalars.c +108 -0
@@ -348,6 +348,114 @@ l0_%=: \ : __clobber_all); } +/* +* Test that sync_linked_regs() checks reg->id (the linked target register) +* for BPF_ADD_CONST32 rather than known_reg->id (the branch register). +*/ +SEC("socket") +__success +__naked void scalars_alu32_zext_linked_reg (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w6 = w0; /* r6 in [0, 0xFFFFFFFF] */ \ +r7 = r6; /* linked: same id as r6 */ \ +w7 += 1; /* alu32: r7.id |= BPF_ADD_CONST32 */ \ +r8 = 0xFFFFffff ll; \ +if r6 < r8 goto l0_%=; \ +/* r6 in [0xFFFFFFFF, 0xFFFFFFFF] */ \ +/* sync_linked_regs: known_reg=r6, reg=r7 */ \ +/* CPU: w7 = (u32)(0xFFFFFFFF + 1) = 0, zext -> r7 = 0 */ \ +/* With fix: r7 64-bit = [0, 0] (zext applied) */ \ +/* Without fix: r7 64-bit = [0x100000000] (no zext) */ \ +r7 >>= 32; \ +if r7 == 0 goto l0_%=; \ +r0 /= 0; /* unreachable with fix */ \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* +* Test that sync_linked_regs() skips propagation when one register used +* alu32 (BPF_ADD_CONST32) and the other used alu64 (BPF_ADD_CONST64). +* The delta relationship doesn't hold across different ALU widths. +*/ +SEC("socket") +__failure __msg("div by zero") +__naked void scalars_alu32_alu64_cross_type(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w6 = w0; /* r6 in [0, 0xFFFFFFFF] */ \ +r7 = r6; /* linked: same id as r6 */ \ +w7 += 1; /* alu32: BPF_ADD_CONST32, delta = 1 */ \ +r8 = r6; /* linked: same id as r6 */ \ +r8 += 2; /* alu64: BPF_ADD_CONST64, delta = 2 */ \ +r9 = 0xFFFFffff ll; \ +if r7 < r9 goto l0_%=; \ +/* r7 = 0xFFFFFFFF */ \ +/* sync: known_reg=r7 (ADD_CONST32), reg=r8 (ADD_CONST64) */ \ +/* Without fix: r8 = zext(0xFFFFFFFF + 1) = 0 */ \ +/* With fix: r8 stays [2, 0x100000001] (r8 >= 2) */ \ +if r8 > 0 goto l1_%=; \ +goto l0_%=; \ +l1_%=: \ +r0 /= 0; /* div by zero */ \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* +* Test that regsafe() prevents pruning when two paths reach the same program +* point with linked registers carrying different ADD_CONST flags (one +* BPF_ADD_CONST32 from alu32, another BPF_ADD_CONST64 from alu64). +*/ +SEC("socket") +__failure __msg("div by zero") +__flag (BPF_F_TEST_STATE_FREQ) +__naked void scalars_alu32_alu64_regsafe_pruning(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w6 = w0; /* r6 in [0, 0xFFFFFFFF] */ \ +r7 = r6; /* linked: same id as r6 */ \ +/* Get another random value for the path branch */ \ +call %[bpf_get_prandom_u32]; \ +if r0 > 0 goto l_pathb_%=; \ +/* Path A: alu32 */ \ +w7 += 1; /* BPF_ADD_CONST32, delta = 1 */\ +goto l_merge_%=; \ +l_pathb_%=: \ +/* Path B: alu64 */ \ +r7 += 1; /* BPF_ADD_CONST64, delta = 1 */\ +l_merge_%=: \ +/* Merge point: regsafe() compares path B against cached path A. */ \ +/* Narrow r6 to trigger sync_linked_regs for r7 */ \ +r9 = 0xFFFFffff ll; \ +if r6 < r9 goto l0_%=; \ +/* r6 = 0xFFFFFFFF */ \ +/* sync: r7 = 0xFFFFFFFF + 1 = 0x100000000 */ \ +/* Path A: zext -> r7 = 0 */ \ +/* Path B: no zext -> r7 = 0x100000000 */ \ +r7 >>= 32; \ +if r7 == 0 goto l0_%=; \ +r0 /= 0; /* div by zero on path B */ \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + SEC("socket") __successvoid alu32_negative_offset (void )
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 14/1611 bpf: Clear delta when clearing reg id for non-{add,sub} ops
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <[email protected]>
commit 1b327732c84640c1e3da487eefe9d00cc9f2dd34 upstream.
When a non-{add,sub} alu op such as xor is performed on a scalar register that previously had a BPF_ADD_CONST delta, the else path in adjust_reg_min_max_vals() only clears dst_reg->id but leaves dst_reg->delta unchanged.
This stale delta can propagate via assign_scalar_id_before_mov() when the register is later used in a mov. It gets a fresh id but keeps the stale delta from the old (now-cleared) BPF_ADD_CONST. This stale delta can later propagate leading to a verifier-vs- runtime value mismatch.
The clear_id label already correctly clears both delta and id. Make the else path consistent by also zeroing the delta when id is cleared. More generally, this introduces a helper clear_scalar_id() which internally takes care of zeroing. There are various other locations in the verifier where only the id is cleared. By using the helper we catch all current and future locations.
[shung-hsi.yu: delta field was called off before commit 3d91c618aca4 ("bpf:
rename bpf_reg_state->off to bpf_reg_state->delta"), and clear_singular_ids() does not exists before commit b2a0aa3a8739 ("bpf: Clear singular ids for scalars in is_state_visited()")]
--- kernel/bpf/verifier.c | 50 ++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 24 deletions(-)
kernel/bpf/verifier.c +26 -24
@@ -5013,27 +5013,30 @@ static bool __is_pointer_value(bool allow_ptr_leaks,return reg->type !=SCALAR_VALUE ; } +static void clear_scalar_id (struct bpf_reg_state *reg) +{ + reg->id =0 ; + reg->off =0 ; +} +static void assign_scalar_id_before_mov (struct bpf_verifier_env *env,struct bpf_reg_state *src_reg) {if (src_reg->type !=SCALAR_VALUE )return ; - -if (src_reg->id &BPF_ADD_CONST ) { -/* -* The verifier is processing rX = rY insn and -* rY->id has special linked register already. -* Cleared it, since multiple rX += const are not supported. -*/ - src_reg->id =0 ; - src_reg->off =0 ; - } - +/* +* The verifier is processing rX = rY insn and +* rY->id has special linked register already. +* Cleared it, since multiple rX += const are not supported. +*/ +if (src_reg->id &BPF_ADD_CONST ) +clear_scalar_id (src_reg); +/* +* Ensure that src_reg has a valid ID that will be copied to +* dst_reg and then will be used by sync_linked_regs() to +* propagate min/max range. +*/ if (!src_reg->id && !tnum_is_const (src_reg->var_off)) -/* Ensure that src_reg has a valid ID that will be copied to -* dst_reg and then will be used by sync_linked_regs() to -* propagate min/max range. -*/ src_reg->id = ++env->id_gen; }
@@ -5466,7 +5469,7 @@ static int check_stack_read_fixed_off(struct bpf_verifier_env *env,* coerce_reg_to_size will adjust the boundaries. */ if (get_reg_width (reg) > size *BITS_PER_BYTE ) - state->regs[dst_regno].id =0 ; +clear_scalar_id (&state->regs[dst_regno]); }else {int spill_cnt =0 , zero_cnt =0 ;
@@ -15476,7 +15479,7 @@ static void scalar_byte_swap(struct bpf_reg_state *dst_reg, struct bpf_insn *ins* any existing ties and avoid incorrect bounds propagation. */ if (need_bswap || insn->imm ==16 || insn->imm ==32 ) - dst_reg->id =0 ; +clear_scalar_id (dst_reg);if (need_bswap) {if (insn->imm ==16 )
@@ -15845,8 +15848,7 @@ static int adjust_reg_min_max_vals(struct bpf_verifier_env *env,* we cannot accumulate another val into rx->off. */ clear_id: - dst_reg->off =0 ; - dst_reg->id =0 ; +clear_scalar_id (dst_reg); }else {if (alu32) dst_reg->id |=BPF_ADD_CONST32 ;
@@ -15859,7 +15861,7 @@ static int adjust_reg_min_max_vals(struct bpf_verifier_env *env,* Make sure ID is cleared otherwise dst_reg min/max could be * incorrectly propagated into other registers by sync_linked_regs() */ - dst_reg->id =0 ; +clear_scalar_id (dst_reg); }return 0 ; }
@@ -15990,7 +15992,7 @@ static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn)assign_scalar_id_before_mov (env, src_reg);copy_register_state (dst_reg, src_reg);if (!no_sext) - dst_reg->id =0 ; +clear_scalar_id (dst_reg);coerce_reg_to_size_sx (dst_reg, insn->off >>3 ); dst_reg->subreg_def =DEF_NOT_SUBREG ; }else {
@@ -16016,7 +16018,7 @@ static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn)* propagated into src_reg by sync_linked_regs() */ if (!is_src_reg_u32) - dst_reg->id =0 ; +clear_scalar_id (dst_reg); dst_reg->subreg_def = env->insn_idx +1 ; }else {/* case: W1 = (s8, s16)W2 */
@@ -16026,7 +16028,7 @@ static int check_alu_op(struct bpf_verifier_env *env, struct bpf_insn *insn)assign_scalar_id_before_mov (env, src_reg);copy_register_state (dst_reg, src_reg);if (!no_sext) - dst_reg->id =0 ; +clear_scalar_id (dst_reg); dst_reg->subreg_def = env->insn_idx +1 ;coerce_subreg_to_size_sx (dst_reg, insn->off >>3 ); }
@@ -16856,7 +16858,7 @@ static void __collect_linked_regs(struct linked_regs *reg_set, struct bpf_reg_st e->is_reg = is_reg; e->regno = spi_or_reg; }else { - reg->id =0 ; +clear_scalar_id (reg); } }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 15/1611 selftests/bpf: Add tests for delta tracking when src_reg == dst_reg
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <[email protected]>
commit ed2eecdc0c6613353bc1565e900d2b23237713da upstream.
Extend the verifier_linked_scalars BPF selftest with a rX += rX test such that the div-by-zero path is rejected in the fixed case.
# LDLIBS=-static PKG_CONFIG='pkg-config --static' ./vmtest.sh -- ./test_progs -t verifier_linked_scalars [...]
./test_progs -t verifier_linked_scalars
#612/1 verifier_linked_scalars/scalars: find linked scalars:OK #612/2 verifier_linked_scalars/sync_linked_regs_preserves_id:OK #612/3 verifier_linked_scalars/scalars_neg:OK #612/4 verifier_linked_scalars/scalars_neg_sub:OK #612/5 verifier_linked_scalars/scalars_neg_alu32_add:OK #612/6 verifier_linked_scalars/scalars_neg_alu32_sub:OK #612/7 verifier_linked_scalars/scalars_pos:OK #612/8 verifier_linked_scalars/scalars_sub_neg_imm:OK #612/9 verifier_linked_scalars/scalars_double_add:OK #612/10 verifier_linked_scalars/scalars_sync_delta_overflow:OK #612/11 verifier_linked_scalars/scalars_sync_delta_overflow_large_range:OK #612/12 verifier_linked_scalars/scalars_alu32_big_offset:OK #612/13 verifier_linked_scalars/scalars_alu32_basic:OK #612/14 verifier_linked_scalars/scalars_alu32_wrap:OK #612/15 verifier_linked_scalars/scalars_alu32_zext_linked_reg:OK #612/16 verifier_linked_scalars/scalars_alu32_alu64_cross_type:OK #612/17 verifier_linked_scalars/scalars_alu32_alu64_regsafe_pruning:OK #612/18 verifier_linked_scalars/alu32_negative_offset:OK #612/19 verifier_linked_scalars/spurious_precision_marks:OK #612/20 verifier_linked_scalars/scalars_self_add_clears_id:OK #612/21 verifier_linked_scalars/scalars_self_add_alu32_clears_id:OK #612 verifier_linked_scalars:OK
Summary: 1/21 PASSED, 0 SKIPPED, 0 FAILED
[shung-hsi.yu: missing context from commit 223ffb6a3d05 ("selftests/bpf: add reproducer for spurious precision propagation through calls").]
--- .../bpf/progs/verifier_linked_scalars.c | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+)
tools/testing/selftests/bpf/progs/verifier_linked_scalars.c +57 -0
@@ -471,4 +471,61 @@ void alu32_negative_offset(void)__sink (path[0 ]); } +/* +* Test that r += r (self-add, src_reg == dst_reg) clears the scalar ID +* so that sync_linked_regs() does not propagate an incorrect delta. +*/ +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_self_add_clears_id(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r6 = r0; /* r6 unknown, id A */ \ +r7 = r6; /* r7 linked to r6, id A */ \ +call %[bpf_get_prandom_u32]; \ +r8 = r0; /* r8 unknown, id B */ \ +r9 = r8; /* r9 linked to r8, id B */ \ +if r7 != 1 goto l_exit_%=; \ +/* r7 == 1; sync propagates: r6 = 1 (known, id A) */ \ +r6 += r6; /* r6 = 2; should clear id */ \ +if r7 == r9 goto l_exit_%=; \ +/* Bug: r6 synced to r7(1)+delta(2)=3; Fix: r6 = 2 */ \ +if r6 == 3 goto l_exit_%=; \ +r0 /= 0; \ +l_exit_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* Same as above but with alu32 such that w6 += w6 also clears id. */ +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_self_add_alu32_clears_id(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w6 = w0; \ +w7 = w6; \ +call %[bpf_get_prandom_u32]; \ +w8 = w0; \ +w9 = w8; \ +if w7 != 1 goto l_exit_%=; \ +w6 += w6; \ +if w7 == w9 goto l_exit_%=; \ +if w6 == 3 goto l_exit_%=; \ +r0 /= 0; \ +l_exit_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + char _license[] SEC("license") = "GPL";
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 16/1611 selftests/bpf: Add tests for stale delta leaking through id reassignment
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Daniel Borkmann <[email protected]>
commit cac16ce1e3786bd98cec0c108e3bc06ed3d3c6a9 upstream.
Extend the verifier_linked_scalars BPF selftest with a stale delta test such that the div-by-zero path is rejected in the fixed case.
# LDLIBS=-static PKG_CONFIG='pkg-config --static' ./vmtest.sh -- ./test_progs -t verifier_linked_scalars [...]
./test_progs -t verifier_linked_scalars
#612/1 verifier_linked_scalars/scalars: find linked scalars:OK #612/2 verifier_linked_scalars/sync_linked_regs_preserves_id:OK #612/3 verifier_linked_scalars/scalars_neg:OK #612/4 verifier_linked_scalars/scalars_neg_sub:OK #612/5 verifier_linked_scalars/scalars_neg_alu32_add:OK #612/6 verifier_linked_scalars/scalars_neg_alu32_sub:OK #612/7 verifier_linked_scalars/scalars_pos:OK #612/8 verifier_linked_scalars/scalars_sub_neg_imm:OK #612/9 verifier_linked_scalars/scalars_double_add:OK #612/10 verifier_linked_scalars/scalars_sync_delta_overflow:OK #612/11 verifier_linked_scalars/scalars_sync_delta_overflow_large_range:OK #612/12 verifier_linked_scalars/scalars_alu32_big_offset:OK #612/13 verifier_linked_scalars/scalars_alu32_basic:OK #612/14 verifier_linked_scalars/scalars_alu32_wrap:OK #612/15 verifier_linked_scalars/scalars_alu32_zext_linked_reg:OK #612/16 verifier_linked_scalars/scalars_alu32_alu64_cross_type:OK #612/17 verifier_linked_scalars/scalars_alu32_alu64_regsafe_pruning:OK #612/18 verifier_linked_scalars/alu32_negative_offset:OK #612/19 verifier_linked_scalars/spurious_precision_marks:OK #612/20 verifier_linked_scalars/scalars_self_add_clears_id:OK #612/21 verifier_linked_scalars/scalars_self_add_alu32_clears_id:OK #612/22 verifier_linked_scalars/scalars_stale_delta_from_cleared_id:OK #612/23 verifier_linked_scalars/scalars_stale_delta_from_cleared_id_alu32:OK #612 verifier_linked_scalars:OK
Summary: 1/23 PASSED, 0 SKIPPED, 0 FAILED
--- .../bpf/progs/verifier_linked_scalars.c | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+)
tools/testing/selftests/bpf/progs/verifier_linked_scalars.c +55 -0
@@ -528,4 +528,59 @@ l_exit_%=: \ : __clobber_all); } +/* +* Test that stale delta from a cleared BPF_ADD_CONST does not leak +* through assign_scalar_id_before_mov() into a new id, causing +* sync_linked_regs() to compute an incorrect offset. +*/ +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_stale_delta_from_cleared_id(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r6 = r0; /* r6 unknown, gets id A */ \ +r6 += 5; /* id A|ADD_CONST, delta 5 */ \ +r6 ^= 0; /* id cleared; delta stays 5 */ \ +r8 = r6; /* new id B, stale delta 5 */ \ +r8 += 3; /* id B|ADD_CONST, delta 3 */ \ +r9 = r6; /* id B, stale delta 5 */ \ +if r9 != 10 goto l_exit_%=; \ +/* Bug: r8 = 10+(3-5) = 8; Fix: r8 = 10+(3-0) = 13 */ \ +if r8 == 8 goto l_exit_%=; \ +r0 /= 0; \ +l_exit_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* Same as above but with alu32. */ +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_stale_delta_from_cleared_id_alu32(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w6 = w0; \ +w6 += 5; \ +w6 ^= 0; \ +w8 = w6; \ +w8 += 3; \ +w9 = w6; \ +if w9 != 10 goto l_exit_%=; \ +if w8 == 8 goto l_exit_%=; \ +r0 /= 0; \ +l_exit_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + char _license[] SEC("license") = "GPL";
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 17/1611 exfat: preserve benign secondary entries during rename and move
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rochan Avlur <[email protected]>
[ Upstream commit 942296784b2a9439651750c42f540bf2579b330f ]
Commit 8258ef28001a ("exfat: handle unreconized benign secondary entries") added cluster freeing for benign secondary entries inside exfat_remove_entries(). However, exfat_remove_entries() is also called from the rename and move paths (exfat_rename_file and exfat_move_file), where the old entry set is being relocated rather than deleted. This causes benign secondary entries such as vendor extension entries to be silently destroyed on rename or cross-directory move, violating the exFAT spec requirement (section 8.2) that implementations preserve unrecognized benign secondary entries.
Fix this by adding a free_benign parameter to exfat_remove_entries() so callers can suppress cluster freeing during relocation, and extending exfat_init_ext_entry() to copy trailing benign secondary entries from the old entry set into the new one internally. Also clean up the error paths to delete newly allocated entries on failure.
--- fs/exfat/dir.c | 49 ++++++++++++++++++++++--- fs/exfat/exfat_fs.h | 5 ++- fs/exfat/namei.c | 89 +++++++++++++++++++++++++++++++++++---------- 3 files changed, 116 insertions(+), 27 deletions(-)
fs/exfat/dir.c +44 -5
@@ -481,31 +481,70 @@ static void exfat_free_benign_secondary_clusters(struct inode *inode,exfat_free_cluster (inode, &dir); } +/* +* exfat_init_ext_entry - initialize extension entries in a directory entry set +* @es: target entry set +* @num_entries: number of entries excluding benign secondary entries +* @p_uniname: filename to store +* @old_es: optional source entry set with benign secondary entries, or NULL +* @num_extra: number of benign secondary entries to copy from @old_es +* +* Set up the file, stream extension, and filename entries in @es, optionally +* preserving @num_extra benign secondary entries from @old_es. @es and @old_es +* may refer to the same entry set; excess entries are marked as deleted. +*/ void exfat_init_ext_entry (struct exfat_entry_set_cache *es,int num_entries, -struct exfat_uni_name *p_uniname) +struct exfat_uni_name *p_uniname, +struct exfat_entry_set_cache *old_es,int num_extra) { -int i; +int i, src_start =0 , old_num;unsigned short *uniname = p_uniname->name;struct exfat_dentry *ep; +if (WARN_ON (num_extra <0 || (num_extra && (!old_es || + old_es->num_entries <ES_IDX_FIRST_FILENAME + num_extra)))) + num_extra =0 ; + +/* +* Save old entry count and source position before modifying +* es->num_entries, since old_es and es may point to the same +* entry set. +*/ + old_num = es->num_entries; +if (old_es && num_extra >0 ) + src_start = old_es->num_entries - num_extra; + + es->num_entries = num_entries + num_extra; ep =exfat_get_dentry_cached (es,ES_IDX_FILE ); - ep->dentry.file.num_ext = (unsigned char )(num_entries -1 ); + ep->dentry.file.num_ext = (unsigned char )(num_entries -1 + num_extra); ep =exfat_get_dentry_cached (es,ES_IDX_STREAM ); ep->dentry.stream.name_len = p_uniname->name_len; ep->dentry.stream.name_hash =cpu_to_le16 (p_uniname->name_hash); +if (old_es && num_extra >0 ) { +for (i =0 ; i < num_extra; i++) + *exfat_get_dentry_cached (es, num_entries + i) = + *exfat_get_dentry_cached (old_es, src_start + i); + } +for (i =ES_IDX_FIRST_FILENAME ; i < num_entries; i++) { ep =exfat_get_dentry_cached (es, i);exfat_init_name_entry (ep, uniname); uniname +=EXFAT_FILE_NAME_LEN ; } +/* Mark excess old entries as deleted (in-place shrink) */ +for (i = num_entries + num_extra; i < old_num; i++) { + ep =exfat_get_dentry_cached (es, i); +exfat_set_entry_type (ep,TYPE_DELETED ); + } +exfat_update_dir_chksum (es); }void exfat_remove_entries (struct inode *inode,struct exfat_entry_set_cache *es, -int order) +int order,bool free_benign) {int i;struct exfat_dentry *ep;
@@ -513,7 +552,7 @@ void exfat_remove_entries(struct inode *inode, struct exfat_entry_set_cache *es,for (i = order; i < es->num_entries; i++) { ep =exfat_get_dentry_cached (es, i); -if (exfat_get_entry_type (ep) &TYPE_BENIGN_SEC ) +if (free_benign && (exfat_get_entry_type (ep) &TYPE_BENIGN_SEC ))exfat_free_benign_secondary_clusters (inode, ep);exfat_set_entry_type (ep,TYPE_DELETED );
fs/exfat/exfat_fs.h +3 -2
@@ -496,9 +496,10 @@ void exfat_init_dir_entry(struct exfat_entry_set_cache *es, unsigned int type, unsigned int start_clu, unsigned long long size, struct timespec64 *ts);void exfat_init_ext_entry (struct exfat_entry_set_cache *es,int num_entries, -struct exfat_uni_name *p_uniname); +struct exfat_uni_name *p_uniname, +struct exfat_entry_set_cache *old_es,int num_extra);void exfat_remove_entries (struct inode *inode,struct exfat_entry_set_cache *es, -int order); +int order,bool free_benign);void exfat_update_dir_chksum (struct exfat_entry_set_cache *es);int exfat_calc_num_entries (struct exfat_uni_name *p_uniname); int exfat_find_dir_entry(struct super_block *sb, struct exfat_inode_info *ei,
fs/exfat/namei.c +69 -20
184 lines not on this page · raw message
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 18/1611 iommu/amd: Use maximum Event log buffer size when SNP is enabled on Family 0x19
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vasant Hegde <[email protected]>
[ Upstream commit 58c0ac6125d89bf6ec65a521eaeb52a0e8e20a9f ]
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.
--- drivers/iommu/amd/amd_iommu.h | 2 + drivers/iommu/amd/amd_iommu_types.h | 10 ++- drivers/iommu/amd/init.c | 110 +++++++++++++++++++--------- drivers/iommu/amd/iommu.c | 2 +- 4 files changed, 86 insertions(+), 38 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>
@@ -136,7 +137,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
@@ -249,8 +249,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 +76 -34
191 lines not on this page · raw message
drivers/iommu/amd/iommu.c +1 -1
@@ -992,7 +992,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 19/1611 iommu/amd: Use maximum PPR log buffer size when SNP is enabled on Family 0x19
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Vasant Hegde <[email protected]>
[ Upstream commit 1f44aab79bac31f459422dfb213e907bb386509c ]
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 | 8 +++++--- 4 files changed, 24 insertions(+), 9 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
@@ -257,11 +257,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
@@ -133,6 +133,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
@@ -3411,6 +3412,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 }
@@ -4071,7 +4082,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 +5 -3
@@ -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));
@@ -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 20/1611 af_unix: Drop all SCM attributes for SOCKMAP.
In reply to Greg Kroah-Hartman6.18-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
@@ -1985,16 +1985,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); }
@@ -2010,7 +2013,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; }
@@ -2087,6 +2090,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. */
@@ -2704,10 +2714,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); }
@@ -2905,6 +2921,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 21/1611 ALSA: hda/realtek: Add quirk for TongFang X6xx45xU
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eckhart Mohr <[email protected]>
commit d595255241e5fec0c94adeebf2565524398e37c5 upstream.
Fix microphone detection on built in headphone jack for some devices.
--- sound/hda/codecs/realtek/alc269.c | 1 + 1 file changed, 1 insertion(+)
sound/hda/codecs/realtek/alc269.c +1 -0
@@ -7550,6 +7550,7 @@ static const struct hda_quirk alc269_fixSND_PCI_QUIRK (0x1d05 ,0x300f ,"TongFang X6AR5xxY" ,ALC2XX_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x1d05 ,0x3019 ,"TongFang X6FR5xxY" ,ALC2XX_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x1d05 ,0x3031 ,"TongFang X6AR55xU" ,ALC2XX_FIXUP_HEADSET_MIC ), +SND_PCI_QUIRK (0x1d05 ,0x3034 ,"TongFang X6xx45xU" ,ALC2XX_FIXUP_HEADSET_MIC ),SND_PCI_QUIRK (0x1d17 ,0x3288 ,"Haier Boyue G42" ,ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS ),SND_PCI_QUIRK (0x1d72 ,0x1602 ,"RedmiBook" ,ALC255_FIXUP_XIAOMI_HEADSET_MIC ), SND_PCI_QUIRK(0x1d72, 0x1701, "XiaomiNotebook Pro", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE),
Greg Kroah-Hartman
maintainerPATCH 22/1611 ALSA: hda: conexant: Remove mic bias threshold override
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zhang Heng <[email protected]>
commit f52524da7084c1a54683ae9fbc73e93fff19dd64 upstream.
Remove the mic bias current comparator threshold override (NID 0x1c, verb 0x320, value 0x010) from Conexant codec driver.
This override was originally intended to support volume up/down controls on headsets with inline remote controls, but it causes microphone detection failures on some headsets with impedance less than 1k ohm.
After consulting with the vendor's engineers, it was confirmed that this setting is board-specific and should be handled by BIOS/firmware rather than the generic codec driver, especially since inline remote support is not currently implemented.
--- sound/hda/codecs/conexant.c | 3 --- 1 file changed, 3 deletions(-)
sound/hda/codecs/conexant.c +0 -3
@@ -168,9 +168,6 @@ static void cx_fixup_headset_recog(struc {unsigned int mic_present; -/* fix some headset type recognize fail issue, such as EDIFIER headset */ -/* set micbias output current comparator threshold from 66% to 55%. */ -snd_hda_codec_write (codec,0x1c ,0 ,0x320 ,0x010 );/* set OFF voltage for DFET from -1.2V to -0.8V, set headset micbias register * value adjustment trim from 2.2K ohms to 2.0K ohms. */
Greg Kroah-Hartman
maintainerPATCH 5/1611 KVM: arm64: Bound used_lrs when flushing the pKVM hyp vCPU
In reply to Greg Kroah-Hartman6.18-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
@@ -146,5 +146,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
@@ -2311,6 +2311,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)
@@ -139,6 +142,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 23/1611 ALSA: hda: Fix cached processing coefficient verbs
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Xu Rao <[email protected]>
commit f67be28fdf8b5d31ac1cc1152bb17250f9f8f513 upstream.
Intel HD Audio defines Coefficient Index and Processing Coefficient as separate audio widget controls in the Audio Widget Verb Definitions:
Coefficient Index selects the coefficient slot, while Processing Coefficient accesses the value at the selected slot.
hda_reg_read_coef() selects the slot with AC_VERB_SET_COEF_INDEX, but then uses AC_VERB_GET_COEF_INDEX for the value read. That reads back the selected index instead of the coefficient value. hda_reg_write_coef() has the same issue and builds the value write from AC_VERB_GET_COEF_INDEX instead of AC_VERB_SET_PROC_COEF.
This only affects the regmap coefficient cache path used by codecs that set codec->cache_coef. Direct coefficient helpers already use the normal SET_COEF_INDEX followed by GET_PROC_COEF or SET_PROC_COEF sequence, which is likely why this has not been noticed widely.
Use AC_VERB_GET_PROC_COEF for cached coefficient reads and AC_VERB_SET_PROC_COEF for cached coefficient writes.
--- sound/hda/core/regmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/hda/core/regmap.c +2 -2
@@ -214,7 +214,7 @@ static int hda_reg_read_coef(struct hdac err =snd_hdac_exec_verb (codec, verb,0 ,NULL );if (err <0 )return err; - verb = (reg & ~0xfffff ) | (AC_VERB_GET_COEF_INDEX <<8 ); + verb = (reg & ~0xfffff ) | (AC_VERB_GET_PROC_COEF <<8 );return snd_hdac_exec_verb (codec, verb,0 , val); }
@@ -232,7 +232,7 @@ static int hda_reg_write_coef(struct hda err =snd_hdac_exec_verb (codec, verb,0 ,NULL );if (err <0 )return err; - verb = (reg & ~0xfffff ) | (AC_VERB_GET_COEF_INDEX <<8 ) | + verb = (reg & ~0xfffff ) | (AC_VERB_SET_PROC_COEF <<8 ) | (val &0xffff );return snd_hdac_exec_verb (codec, verb,0 ,NULL ); }
Greg Kroah-Hartman
maintainerPATCH 24/1611 ALSA: hda/realtek: Fix speakers on Legion Pro 7 16ARX8H with codec SSID 17aa:38a7
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Damien Laine <[email protected]>
commit d35dfb6329accfe1cfa0b57e35214b5cbbe0f9ae upstream.
Some units of the Lenovo Legion Pro 7 16ARX8H (82WS) report codec subsystem ID 17aa:38a7 instead of 17aa:38a8. Since only 38a8 has a codec SSID quirk, these machines fall through to the PCI SSID match 17aa:386f (Legion Pro 7i 16IAX7) and get ALC287_FIXUP_CS35L41_I2C_2, which probes the Cirrus amplifiers of the Intel variant. The TI TAS2781 amplifier (ACPI TIAS2781:00) present on this AMD variant is never bound and the internal speakers remain silent.
Add a codec SSID quirk for 17aa:38a7 pointing to ALC287_FIXUP_TAS2781_I2C, mirroring the existing 38a8 entry.
Tested on a Legion Pro 7 16ARX8H (82WS, BIOS LPCN62WW): with the codec SSID overridden to 17aa:38a8 via the HDA patch loader, the TAS2781 amplifier binds and the internal speakers work.
--- sound/hda/codecs/realtek/alc269.c | 1 + 1 file changed, 1 insertion(+)
sound/hda/codecs/realtek/alc269.c +1 -0
@@ -7435,6 +7435,7 @@ static const struct hda_quirk alc269_fixHDA_CODEC_QUIRK (0x17aa ,0x386e ,"Legion Y9000X 2022 IAH7" ,ALC287_FIXUP_CS35L41_I2C_2 ),SND_PCI_QUIRK (0x17aa ,0x386e ,"Yoga Pro 7 14ARP8" ,ALC285_FIXUP_SPEAKER2_TO_DAC1 ),HDA_CODEC_QUIRK (0x17aa ,0x38a8 ,"Legion Pro 7 16ARX8H" ,ALC287_FIXUP_TAS2781_I2C ),/* this must match before PCI SSID 17aa:386f below */ +HDA_CODEC_QUIRK (0x17aa ,0x38a7 ,"Legion Pro 7 16ARX8H" ,ALC287_FIXUP_TAS2781_I2C ),/* this must match before PCI SSID 17aa:386f below */ SND_PCI_QUIRK (0x17aa ,0x386f ,"Legion Pro 7i 16IAX7" ,ALC287_FIXUP_CS35L41_I2C_2 ),SND_PCI_QUIRK (0x17aa ,0x3870 ,"Lenovo Yoga 7 14ARB7" ,ALC287_FIXUP_YOGA7_14ARB7_I2C ), SND_PCI_QUIRK(0x17aa, 0x3877, "Lenovo Legion 7 Slim 16ARHA7", ALC287_FIXUP_CS35L41_I2C_2),
Greg Kroah-Hartman
maintainerPATCH 25/1611 media: uvcvideo: Use hw timestaming if the clock buffer is full
In reply to Greg Kroah-Hartman6.18-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
@@ -834,15 +834,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 26/1611 media: uvcvideo: Avoid partial metadata buffers
In reply to Greg Kroah-Hartman6.18-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
@@ -1157,7 +1157,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;
@@ -1230,6 +1232,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 ; }/*
@@ -1432,7 +1436,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 ;
@@ -1549,7 +1553,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);
@@ -1598,7 +1602,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 27/1611 media: uvcvideo: Fix buffer sequence in frame gaps
In reply to Greg Kroah-Hartman6.18-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
@@ -1186,6 +1186,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);
@@ -1226,10 +1239,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 28/1611 media: uvcvideo: Fix dev_sof filtering in hw timestamp
In reply to Greg Kroah-Hartman6.18-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
@@ -583,16 +583,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 ]);/*
@@ -664,6 +655,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 29/1611 media: uvcvideo: Do not add clock samples with small sof delta
In reply to Greg Kroah-Hartman6.18-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
@@ -537,6 +537,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)
@@ -657,12 +666,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 30/1611 media: uvcvideo: Relax the constrains for interpolating the hw clock
In reply to Greg Kroah-Hartman6.18-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
@@ -494,6 +494,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 )
@@ -854,13 +861,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 31/1611 media: uvcvideo: Fix sequence number when no EOF
In reply to Greg Kroah-Hartman6.18-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
@@ -1197,6 +1197,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. */
@@ -1263,51 +1310,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 32/1611 dt-bindings: media: sun4i-a10-video-engine: Add interconnect properties
In reply to Greg Kroah-Hartman6.18-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 6/1611 iommu/vt-d: Clear Present bit before tearing down scalable-mode context entry
In reply to Greg Kroah-Hartman6.18-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
@@ -746,10 +746,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 33/1611 dt-bindings: power: imx93: Add MIPI PHY power domain
In reply to Greg Kroah-Hartman6.18-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 34/1611 serial: msm: Disable DMA for kernel console UART
In reply to Greg Kroah-Hartman6.18-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 35/1611 serial: max310x: implement gpio_chip::get_direction()
In reply to Greg Kroah-Hartman6.18-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
@@ -1212,6 +1212,17 @@ static int max310x_gpio_set(struct gpio_return 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);
@@ -1421,6 +1432,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 36/1611 serial: 8250_omap: clear rx_running on zero-length DMA completes
In reply to Greg Kroah-Hartman6.18-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
@@ -960,11 +960,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 37/1611 rxrpc: serialize kernel accept preallocation with socket teardown
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Li Daming <[email protected]>
commit dc175389b18c29a5303ee83169ec653adfae3e17 upstream.
rxrpc_kernel_charge_accept() reads rx->backlog without any socket/backlog synchronization and passes that raw pointer into rxrpc_service_prealloc_one(). A concurrent rxrpc_discard_prealloc() sets rx->backlog = NULL and frees the backlog rings, so a kernel preallocation worker can keep using a freed struct rxrpc_backlog while updating *_backlog_head/tail and array slots.
Serialize the state check and backlog lookup with the socket lock, and reject kernel preallocation once teardown has disabled listening or discarded the service backlog.
--- net/rxrpc/call_accept.c | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-)
net/rxrpc/call_accept.c +19 -6
@@ -471,13 +471,26 @@ int rxrpc_kernel_charge_accept(struct so unsigned long user_call_ID, gfp_t gfp, unsigned int debug_id) { - struct rxrpc_sock *rx = rxrpc_sk(sock->sk); -struct rxrpc_backlog *b = rx->backlog; + struct rxrpc_backlog *b; +struct rxrpc_sock *rx; +struct sock *sk; +int ret; -if (sock->sk->sk_state ==RXRPC_CLOSE ) -return -ESHUTDOWN ; + sk = sock->sk; + rx =rxrpc_sk (sk); -return rxrpc_service_prealloc_one (rx, b, notify_rx, user_call_ID, - gfp, debug_id); +lock_sock (sk); +if (sk->sk_state !=RXRPC_SERVER_LISTENING || !rx->backlog) { + ret = -ESHUTDOWN ; + goto out; + } + + b = rx->backlog; + ret =rxrpc_service_prealloc_one (rx, b, notify_rx, user_call_ID, + gfp, debug_id); + +out: +release_sock (sk); +return ret; }EXPORT_SYMBOL (rxrpc_kernel_charge_accept);
Greg Kroah-Hartman
maintainerPATCH 38/1611 rxrpc: rxrpc_verify_data ensure rx_dec_buffer alloc
In reply to Greg Kroah-Hartman6.18-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
@@ -161,7 +161,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 39/1611 rxrpc: Dont move a peeked OOB message onto the pending queue
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hyunwoo Kim <[email protected]>
commit 5801cff7d5d7b4e9d877dfb627b23eb63167f02c upstream.
rxrpc_recvmsg_oob() takes a received oob message off recvmsg_oobq and, if a response is needed, moves it onto the pending_oobq tree. However, only the unlink from recvmsg_oobq is guarded by MSG_PEEK; the move onto pending_oobq always runs.
As a result, reading a challenge with MSG_PEEK leaves the skb on recvmsg_oobq while also adding it to pending_oobq. Since struct sk_buff's rbnode shares storage with its next and prev pointers, rb_insert_color() overwrites the list linkage, and the skb, which holds a single reference, becomes reachable from both queues at once.
When the socket is closed both queues are drained in turn. While draining recvmsg_oobq, __skb_unlink() follows the next and prev pointers that rbnode has overwritten and writes to a bad address. Also, as the skb holds a single reference but is freed from each queue, both the skb and the connection reference it holds are released twice. This leads to memory corruption and to a use-after-free caused by the connection refcount underflow.
MSG_PEEK does not consume the message from the queue, so only unlink it from recvmsg_oobq and then move it onto pending_oobq or free it when the message is actually consumed.
--- net/rxrpc/recvmsg.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
net/rxrpc/recvmsg.c +6 -5
@@ -262,12 +262,13 @@ static int rxrpc_recvmsg_oob(struct socket *sock, struct msghdr *msg,break ; } -if (!(flags &MSG_PEEK )) +if (!(flags &MSG_PEEK )) {skb_unlink (skb, &rx->recvmsg_oobq); -if (need_response) -rxrpc_add_pending_oob (rx, skb); -else -rxrpc_free_skb (skb, rxrpc_skb_put_oob); +if (need_response) +rxrpc_add_pending_oob (rx, skb); +else +rxrpc_free_skb (skb, rxrpc_skb_put_oob); + }return ret; }
Signature · 1 line
2.55.0
Greg Kroah-Hartman
maintainerPATCH 40/1611 rxrpc: Fix UAF in rxgk_issue_challenge()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 107a4cb0d47e735830f852d83970d5c81f8e1e08 upstream.
Fix rxgk_issue_challenge() to free the page containing the challenge content after invoking the tracepoint as the whdr passed to the tracepoint points into the page just freed.
--- net/rxrpc/rxgk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/rxrpc/rxgk.c +2 -1
@@ -687,16 +687,17 @@ static int rxgk_issue_challenge(struct rxrpc_connection *conn) ret =do_udp_sendmsg (conn->local->socket, &msg, len);if (ret >0 )rxrpc_peer_mark_tx (conn->peer); -__free_page (page);if (ret <0 ) {trace_rxrpc_tx_fail (conn->debug_id, serial, ret, rxrpc_tx_point_rxgk_challenge); +__free_page (page);return -EAGAIN ; }trace_rxrpc_tx_packet (conn->debug_id, whdr, rxrpc_tx_point_rxgk_challenge); +__free_page (page);_leave (" = 0" );return 0 ; }
Signature · 1 line
2.55.0
Greg Kroah-Hartman
maintainerPATCH 41/1611 rxrpc: Fix socket notification race
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit e66f8f32f50116670dbbee5bc9e692cd2cd0c8f8 upstream.
There's a race between rxrpc_recvmsg() and rxrpc_notify_socket(), whereby the latter's attempt to avoid disabling interrupts and taking the socket's recvmsg_lock if the call is already queued may happen simultaneously with the former's discarding of a call that has nothing queued.
Fix this by removing the shortcut. Note that this only affects userspace's use of AF_RXRPC; the AFS filesystem driver doesn't use the socket queue.
--- net/rxrpc/recvmsg.c | 2 -- 1 file changed, 2 deletions(-)
net/rxrpc/recvmsg.c +0 -2
@@ -27,8 +27,6 @@ void rxrpc_notify_socket(struct rxrpc_ca_enter ("%d" , call->debug_id); -if (!list_empty (&call->recvmsg_link)) -return ;if (test_bit (RXRPC_CALL_RELEASED , &call->flags)) {rxrpc_see_call (call, rxrpc_call_see_notify_released);return ;
Greg Kroah-Hartman
maintainerPATCH 42/1611 rxrpc: Fix leak of released call in recvmsg(MSG_PEEK)
In reply to Greg Kroah-Hartman6.18-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
@@ -528,8 +528,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 7/1611 nvmet-tcp: check INIT_FAILED before nvmet_req_uninit in digest error path
In reply to Greg Kroah-Hartman6.18-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
@@ -1344,7 +1344,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 43/1611 rxrpc: Fix potential infinite loop in rxrpc_recvmsg()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 67a0332f442ef07713cd2d9c13d59db0f1c23648 upstream.
Fix the wait in rxrpc_recvmsg() also take check the oob queue.
--- net/rxrpc/recvmsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/rxrpc/recvmsg.c +2 -1
@@ -436,7 +436,8 @@ try_again:return -EAGAIN ; } -if (list_empty (&rx->recvmsg_q)) { +if (list_empty (&rx->recvmsg_q) && +skb_queue_empty_lockless (&rx->recvmsg_oobq)) { ret = -EWOULDBLOCK ;if (timeo ==0 ) { call =NULL ;
Greg Kroah-Hartman
maintainerPATCH 44/1611 rxrpc: Fix rxrpc_rotate_tx_rotate() to check theres something to rotate
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit a5462da5a349fc7f17ad5ebd899380260d03e7ed upstream.
Fix rxrpc_rotate_tx_rotate() to check that there's something in the transmission buffer to be rotated before it attempts to rotate anything.
--- net/rxrpc/input.c | 3 +++ 1 file changed, 3 insertions(+)
net/rxrpc/input.c +3 -0
@@ -236,6 +236,9 @@ static bool rxrpc_rotate_tx_window(struc call->acks_lowest_nak = to; } +if (after (seq, to)) +return false; +/* We may have a left over fully-consumed buffer at the front that we * couldn't drop before (rotate_and_keep below). */
Greg Kroah-Hartman
maintainerPATCH 45/1611 rxrpc: Fix oob challenge leak in cleanup after notification failure
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 092275882aec4a70ba55c3efb66fff947c81656a upstream.
Fix rxrpc_notify_socket_oob() to return an indication of failure in the event that it failed to queue a packet and fix rxrpc_post_challenge() to clean up the connection ref in such an event.
--- net/rxrpc/ar-internal.h | 4 ++-- net/rxrpc/conn_event.c | 9 +++++++-- net/rxrpc/oob.c | 7 +++++-- 3 files changed, 14 insertions(+), 6 deletions(-)
net/rxrpc/ar-internal.h +2 -2
@@ -1355,9 +1355,9 @@ static inline struct rxrpc_net *rxrpc_ne }/* -* out_of_band.c +* oob.c */ -void rxrpc_notify_socket_oob (struct rxrpc_call *call,struct sk_buff *skb); +bool rxrpc_notify_socket_oob (struct rxrpc_call *call,struct sk_buff *skb);void rxrpc_add_pending_oob (struct rxrpc_sock *rx,struct sk_buff *skb);int rxrpc_sendmsg_oob (struct rxrpc_sock *rx,struct msghdr *msg,size_t len);
net/rxrpc/conn_event.c +7 -2
@@ -436,7 +436,7 @@ static bool rxrpc_post_challenge(structstruct rxrpc_skb_priv *sp =rxrpc_skb (skb);struct rxrpc_call *call =NULL ;struct rxrpc_sock *rx; -bool respond = false; +bool respond = false, queued = false; sp->chall.conn =rxrpc_get_connection (conn, rxrpc_conn_get_challenge_input);
@@ -472,8 +472,13 @@ static bool rxrpc_post_challenge(struct }if (call) -rxrpc_notify_socket_oob (call, skb); + queued =rxrpc_notify_socket_oob (call, skb);rcu_read_unlock (); +if (call && !queued) { +rxrpc_put_connection (conn, rxrpc_conn_put_challenge_input); + sp->chall.conn =NULL ; +return false; + }if (!call)rxrpc_post_packet_to_conn (conn, skb);
net/rxrpc/oob.c +5 -2
@@ -32,11 +32,12 @@ struct rxrpc_oob_params {* Post an out-of-band message for attention by the socket or kernel service * associated with a reference call. */ -void rxrpc_notify_socket_oob (struct rxrpc_call *call,struct sk_buff *skb) +bool rxrpc_notify_socket_oob (struct rxrpc_call *call,struct sk_buff *skb) {struct rxrpc_skb_priv *sp =rxrpc_skb (skb);struct rxrpc_sock *rx;struct sock *sk; +bool queued = false;rcu_read_lock ();
@@ -49,6 +50,7 @@ void rxrpc_notify_socket_oob(struct rxrp skb->skb_mstamp_ns = rx->oob_id_counter++;rxrpc_get_skb (skb, rxrpc_skb_get_post_oob);skb_queue_tail (&rx->recvmsg_oobq, skb); + queued = true;trace_rxrpc_notify_socket (call->debug_id, sp->hdr.serial);if (rx->app_ops)
@@ -56,11 +58,12 @@ void rxrpc_notify_socket_oob(struct rxrp }spin_unlock_irq (&rx->recvmsg_lock); -if (!rx->app_ops && !sock_flag (sk,SOCK_DEAD )) +if (queued && !rx->app_ops && !sock_flag (sk,SOCK_DEAD )) sk->sk_data_ready (sk); }rcu_read_unlock (); +return queued; }/*
Greg Kroah-Hartman
maintainerPATCH 46/1611 rxrpc: Fix ACKALL packet handling
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Wyatt Feng <[email protected]>
commit 9b6ce594808580b2a19e6e1aa459ef56c0153ac1 upstream.
rxrpc_input_ackall() accepts ACKALL packets without checking whether the call is in a state that can legitimately have outstanding transmit buffers. A forged ACKALL can therefore reach a new service call in RXRPC_CALL_SERVER_RECV_REQUEST before any reply packets have been queued.
In that state call->tx_top is zero and call->tx_queue is NULL, so rxrpc_rotate_tx_window() dereferences a NULL txqueue and triggers a null-pointer dereference.
Fix the handling of ACKALL packets by the following means:
(1) Add two new call states: RXRPC_CALL_CLIENT_PRE_SEND which indicates that the client call is connected, but nothing has been transmitted as yet; and RXRPC_CALL_CLIENT_AWAIT_ACK, which indicates that everything has been transmitted at least once, but we're now waiting for the stuff remaining in the Tx buffer to be ACK'd (retransmissions may still happen).
The RXRPC_CALL_CLIENT_PRE_SEND state is set when the call is assigned a channel and transitions to RXRPC_CALL_CLIENT_SEND_REQUEST when the first packet is transmitted.
RXRPC_CALL_CLIENT_AWAIT_REPLY is then narrowed in scope to indicate that all Tx packets have been ACK'd and we're now waiting for the reply to be received.
(2) As per Wyatt Feng's original patch[1], the ACKALL handler then checks that the call state is one in which there might be stuff in the Tx buffer to ACK, but now this includes AWAIT_ACK rather than AWAIT_REPLY. ACKALL packets are ignored if received in the wrong state.
Note that unlike Wyatt Feng's patch, it's no longer necessary to check to see if the Tx buffer exists as this the state set now covers this.
(3) Make the ACKALL handler use call->tx_transmitted rather than call->tx_top as the former is explicitly the highest packet seq number transmitted, whereas the latter has a looser definition.
Thanks to Jeffrey Altman for a description of the history of the ACKALL packet[1].
--- net/rxrpc/ar-internal.h | 2 ++ net/rxrpc/call_event.c | 5 ++++- net/rxrpc/call_object.c | 2 ++ net/rxrpc/conn_client.c | 2 +- net/rxrpc/input.c | 23 +++++++++++++++++++---- net/rxrpc/sendmsg.c | 3 ++- 6 files changed, 30 insertions(+), 7 deletions(-)
net/rxrpc/ar-internal.h +2 -0
@@ -650,7 +650,9 @@ enum rxrpc_call_event {enum rxrpc_call_state {RXRPC_CALL_UNINITIALISED ,RXRPC_CALL_CLIENT_AWAIT_CONN ,/* - client waiting for connection to become available */ +RXRPC_CALL_CLIENT_PRE_SEND ,/* - client is connected, but hasn't sent anything yet */ RXRPC_CALL_CLIENT_SEND_REQUEST ,/* - client sending request phase */ +RXRPC_CALL_CLIENT_AWAIT_ACK ,/* - client awaiting ACKs of request */ RXRPC_CALL_CLIENT_AWAIT_REPLY ,/* - client awaiting reply */ RXRPC_CALL_CLIENT_RECV_REPLY ,/* - client receiving reply phase */ RXRPC_CALL_SERVER_PREALLOC ,/* - service preallocation */
net/rxrpc/call_event.c +4 -1
@@ -178,7 +178,7 @@ static void rxrpc_close_tx_phase(structswitch (__rxrpc_call_state (call)) {case RXRPC_CALL_CLIENT_SEND_REQUEST : -rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_AWAIT_REPLY ); +rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_AWAIT_ACK );break ;case RXRPC_CALL_SERVER_SEND_REPLY :rxrpc_set_call_state (call,RXRPC_CALL_SERVER_AWAIT_ACK );
@@ -244,6 +244,8 @@ static void rxrpc_transmit_fresh_data(stbreak ; }while (req.n < limit &&before (seq, send_top)); +if (__rxrpc_call_state (call) ==RXRPC_CALL_CLIENT_PRE_SEND ) +rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_SEND_REQUEST );if (txb->flags &RXRPC_LAST_PACKET ) {rxrpc_close_tx_phase (call); tq =NULL ;
@@ -267,6 +269,7 @@ void rxrpc_transmit_some_data(struct rxr fallthrough;case RXRPC_CALL_SERVER_SEND_REPLY : +case RXRPC_CALL_CLIENT_PRE_SEND :case RXRPC_CALL_CLIENT_SEND_REQUEST :if (!rxrpc_tx_window_space (call))return ;
net/rxrpc/call_object.c +2 -0
@@ -18,7 +18,9 @@const char *const rxrpc_call_states[NR__RXRPC_CALL_STATES ] = { [RXRPC_CALL_UNINITIALISED ] ="Uninit " , [RXRPC_CALL_CLIENT_AWAIT_CONN ] ="ClWtConn" , + [RXRPC_CALL_CLIENT_PRE_SEND ] ="ClPreSnd" , [RXRPC_CALL_CLIENT_SEND_REQUEST ] ="ClSndReq" , + [RXRPC_CALL_CLIENT_AWAIT_ACK ] ="ClAwtAck" , [RXRPC_CALL_CLIENT_AWAIT_REPLY ] ="ClAwtRpl" , [RXRPC_CALL_CLIENT_RECV_REPLY ] ="ClRcvRpl" , [RXRPC_CALL_SERVER_PREALLOC ] ="SvPrealc" ,
net/rxrpc/conn_client.c +1 -1
@@ -449,7 +449,7 @@ static void rxrpc_activate_one_channel(strace_rxrpc_connect_call (call); call->tx_last_sent =ktime_get_real ();rxrpc_start_call_timer (call); -rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_SEND_REQUEST ); +rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_PRE_SEND );wake_up (&call->waitq); }
net/rxrpc/input.c +19 -4
@@ -181,7 +181,8 @@ void rxrpc_congestion_degrade(struct rxrif (call->cong_ca_state !=RXRPC_CA_SLOW_START && call->cong_ca_state !=RXRPC_CA_CONGEST_AVOIDANCE )return ; -if (__rxrpc_call_state (call) ==RXRPC_CALL_CLIENT_AWAIT_REPLY ) +if (__rxrpc_call_state (call) ==RXRPC_CALL_CLIENT_AWAIT_ACK || +__rxrpc_call_state (call) ==RXRPC_CALL_CLIENT_AWAIT_REPLY )return ; rtt =ns_to_ktime (call->srtt_us * (NSEC_PER_USEC /8 ));
@@ -359,6 +360,7 @@ static void rxrpc_end_tx_phase(struct rxswitch (__rxrpc_call_state (call)) {case RXRPC_CALL_CLIENT_SEND_REQUEST : +case RXRPC_CALL_CLIENT_AWAIT_ACK :case RXRPC_CALL_CLIENT_AWAIT_REPLY :if (reply_begun) {rxrpc_set_call_state (call,RXRPC_CALL_CLIENT_RECV_REPLY );
@@ -697,6 +699,7 @@ static void rxrpc_input_data(struct rxrpswitch (__rxrpc_call_state (call)) {case RXRPC_CALL_CLIENT_SEND_REQUEST : +case RXRPC_CALL_CLIENT_AWAIT_ACK :case RXRPC_CALL_CLIENT_AWAIT_REPLY :/* Received data implicitly ACKs all of the request * packets we sent when we're acting as a client.
@@ -1157,10 +1160,12 @@ static void rxrpc_input_ack(struct rxrpcif (hard_ack +1 ==0 )return rxrpc_proto_abort (call,0 , rxrpc_eproto_ackr_zero); -/* Ignore ACKs unless we are or have just been transmitting. */ +/* Ignore ACKs unless we are transmitting or are waiting for +* acknowledgement of the packets we've just been transmitting. +*/ switch (__rxrpc_call_state (call)) {case RXRPC_CALL_CLIENT_SEND_REQUEST : -case RXRPC_CALL_CLIENT_AWAIT_REPLY : +case RXRPC_CALL_CLIENT_AWAIT_ACK :case RXRPC_CALL_SERVER_SEND_REPLY :case RXRPC_CALL_SERVER_AWAIT_ACK :break ;
@@ -1218,7 +1223,17 @@ static void rxrpc_input_ackall(struct rx {struct rxrpc_ack_summary summary = {0 }; -if (rxrpc_rotate_tx_window (call, call->tx_top, &summary)) +switch (__rxrpc_call_state (call)) { +case RXRPC_CALL_CLIENT_SEND_REQUEST : +case RXRPC_CALL_CLIENT_AWAIT_ACK : +case RXRPC_CALL_SERVER_SEND_REPLY : +case RXRPC_CALL_SERVER_AWAIT_ACK : +break ; +default : +return ; + } + +if (rxrpc_rotate_tx_window (call, call->tx_transmitted, &summary))rxrpc_end_tx_phase (call, false, rxrpc_eproto_unexpected_ackall); }
net/rxrpc/sendmsg.c +2 -1
@@ -366,7 +366,8 @@ reload:if (state >=RXRPC_CALL_COMPLETE ) goto maybe_error; ret = -EPROTO ; -if (state !=RXRPC_CALL_CLIENT_SEND_REQUEST && +if (state !=RXRPC_CALL_CLIENT_PRE_SEND && + state !=RXRPC_CALL_CLIENT_SEND_REQUEST && state !=RXRPC_CALL_SERVER_ACK_REQUEST && state !=RXRPC_CALL_SERVER_SEND_REPLY ) {/* Request phase complete for this client call */
Greg Kroah-Hartman
maintainerPATCH 47/1611 rxrpc: Fix the reception of a reply packet before data transmission
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit a58e33405acd2584e730c1da72635f822ada6b49 upstream.
Fix rxrpc_receiving_reply() to handle the reception of an apparent reply DATA packet before rxrpc has had a chance to send any request DATA packets on a client call by checking to see if the call has been exposed yet by sending the first packet.
Without this, rxrpc_rotate_tx_window() might oops.
Also fix rxrpc_rotate_tx_window() to handle the Tx queue being empty by changing the do...while loop into a while loop, just in case a call is abnormally terminated by an early reply before the last request packet is transmitted.
--- net/rxrpc/input.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)
net/rxrpc/input.c +10 -3
@@ -251,7 +251,7 @@ static bool rxrpc_rotate_tx_window(struc tq = call->tx_queue; } - do { +while (before_eq (seq, to)) {unsigned int ix = seq - call->tx_qbase;_debug ("tq=%x seq=%x i=%d f=%x" , tq->qbase, seq, ix, tq->bufs[ix]->flags);
@@ -321,8 +321,7 @@ static bool rxrpc_rotate_tx_window(strucbreak ; } } - - }while (before_eq (seq, to)); + }if (trace)trace_rxrpc_rack_update (call, summary);
@@ -397,6 +396,14 @@ static bool rxrpc_receiving_reply(structtrace_rxrpc_timer_can (call, rxrpc_timer_trace_delayed_ack); } +/* Deal with an apparent reply coming in before we've got the request +* queued or transmitted. +*/ +if (!test_bit (RXRPC_CALL_EXPOSED , &call->flags)) { +rxrpc_proto_abort (call, top, rxrpc_eproto_early_reply); +return false; + } +if (!test_bit (RXRPC_CALL_TX_LAST , &call->flags)) {if (!rxrpc_rotate_tx_window (call, top, &summary)) {rxrpc_proto_abort (call, top, rxrpc_eproto_early_reply);
Greg Kroah-Hartman
maintainerPATCH 8/1611 nvmet-tcp: Fix potential UAF when ddgst mismatch
In reply to Greg Kroah-Hartman6.18-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
@@ -1344,8 +1344,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 9/1611 crypto: sun4i-ss - Remove insecure and unused rng_alg
In reply to Greg Kroah-Hartman6.18-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 10/1611 media: uvcvideo: Fix deadlock if uvc_status_stop is called from async_ctrl.work
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sean Anderson <[email protected]>
[ Upstream commit 6d27f92c54ce28cfbd2a8a479a96d6f4a781b7d2 ]
If a UVC camera has an asynchronous control, uvc_status_stop may be called from async_ctrl.work:
uvc_ctrl_status_event_work()
uvc_ctrl_status_event()
uvc_ctrl_clear_handle()
uvc_pm_put()
uvc_status_put()
uvc_status_stop()
cancel_work_sync()This will cause a deadlock, since cancel_work_sync will wait for uvc_ctrl_status_event_work to complete before returning.
Fix this by returning early from uvc_status_stop if we are currently in the work function. flush_status now remains false until uvc_status_start is called again, ensuring that uvc_ctrl_status_event_work won't resubmit the URB.
--- drivers/media/usb/uvc/uvc_status.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-)
drivers/media/usb/uvc/uvc_status.c +19 -9
@@ -316,6 +316,16 @@ static int uvc_status_start(struct uvc_device *dev, gfp_t flags)if (!dev->int_urb)return 0 ; +/* +* If the previous uvc_status_stop() call was from the async work, +* the work may still be running. Wait for it to finish before we submit +* the urb. +*/ +flush_work (&dev->async_ctrl.work); + +/* Clear the flush status if we were previously stopped. */ +smp_store_release (&dev->flush_status, false); +return usb_submit_urb (dev->int_urb, flags); }
@@ -336,6 +346,15 @@ static void uvc_status_stop(struct uvc_device *dev)*/ smp_store_release (&dev->flush_status, true); +/* +* If we are called from the event work function, the URB is guaranteed +* to not be in flight as it has completed and has not been resubmitted. +* There's no need to cancel the work (which would deadlock), or to kill +* the URB. +*/ +if (current_work () == &w->work) +return ; +/* * Cancel any pending asynchronous work. If any status event was queued, * process it synchronously.
@@ -354,15 +373,6 @@ static void uvc_status_stop(struct uvc_device *dev)*/ if (cancel_work_sync (&w->work))uvc_ctrl_status_event (w->chain, w->ctrl, w->data); - -/* -* From this point, there are no events on the queue and the status URB -* is dead. No events will be queued until uvc_status_start() is called. -* The barrier is needed to make sure that flush_status is visible to -* uvc_ctrl_status_event_work() when uvc_status_start() will be called -* again. -*/ -smp_store_release (&dev->flush_status, false); }int uvc_status_resume (struct uvc_device *dev)
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 11/1611 selftests: bpf: Add test for multiple syncs from linked register
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Puranjay Mohan <[email protected]>
commit 086c99fbe45070d02851427eab5ae26fe7d0f3c0 upstream.
Before the last commit, sync_linked_regs() corrupted the register whose bounds are being updated by copying known_reg's id to it. The ids are the same in value but known_reg has the BPF_ADD_CONST flag which is wrongly copied to reg.
This later causes issues when creating new links to this reg. assign_scalar_id_before_mov() sees this BPF_ADD_CONST and gives a new id to this register and breaks the old links. This is exposed by the added selftest.
--- .../bpf/progs/verifier_linked_scalars.c | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+)
tools/testing/selftests/bpf/progs/verifier_linked_scalars.c +33 -0
@@ -31,4 +31,37 @@ l1: \ " ::: __clobber_all); } +/* +* Test that sync_linked_regs() preserves register IDs. +* +* The sync_linked_regs() function copies bounds from known_reg to linked +* registers. When doing so, it must preserve each register's original id +* to allow subsequent syncs from the same source to work correctly. +* +*/ +SEC("socket") +__success +__naked void sync_linked_regs_preserves_id (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; /* r0 in [0, 255] */ \ +r1 = r0; /* r0, r1 linked with id 1 */ \ +r1 += 4; /* r1 has id=1 and off=4 in [4, 259] */ \ +if r1 < 10 goto l0_%=; \ +/* r1 in [10, 259], r0 synced to [6, 255] */ \ +r2 = r0; /* r2 has id=1 and in [6, 255] */ \ +if r1 < 14 goto l0_%=; \ +/* r1 in [14, 259], r0 synced to [10, 255] */ \ +if r0 >= 10 goto l0_%=; \ +/* Never executed */ \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + char _license[] SEC("license") = "GPL";
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 12/1611 selftests/bpf: Add tests for improved linked register tracking
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Puranjay Mohan <[email protected]>
commit 47fcf4dc0a346dd0b873a679c547d6848bd85a37 upstream.
Add tests for linked register tracking with negative offsets, BPF_SUB, and alu32. These test for all edge cases like overflows, etc.
--- .../bpf/progs/verifier_linked_scalars.c | 303 +++++++++++++++++- 1 file changed, 301 insertions(+), 2 deletions(-)
tools/testing/selftests/bpf/progs/verifier_linked_scalars.c +301 -2
@@ -1,6 +1,7 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/bpf.h> +#include <limits.h> #include <bpf/bpf_helpers.h> #include "bpf_misc.h"
@@ -18,9 +19,9 @@ __naked void scalars(void) r4 = r1; \ w2 +=0x7FFFFFFF ; \ w4 +=0 ; \ - if r2 == 0 goto l1; \ + if r2 == 0 goto l0_%=; \ exit; \ -l1: \ +l0_%=: \ r4 >>=63 ; \ r3 =1 ; \ r3 -= r4; \
@@ -64,4 +65,302 @@ l0_%=: \ : __clobber_all); } +SEC("socket") +__success +__naked void scalars_neg (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r1 += -4; \ +if r1 s< 0 goto l0_%=; \ +if r0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* Same test but using BPF_SUB instead of BPF_ADD with negative immediate */ +SEC("socket") +__success +__naked void scalars_neg_sub (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r1 -= 4; \ +if r1 s< 0 goto l0_%=; \ +if r0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* alu32 with negative offset */ +SEC("socket") +__success +__naked void scalars_neg_alu32_add (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w0 &= 0xff; \ +w1 = w0; \ +w1 += -4; \ +if w1 s< 0 goto l0_%=; \ +if w0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* alu32 with negative offset using SUB */ +SEC("socket") +__success +__naked void scalars_neg_alu32_sub (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w0 &= 0xff; \ +w1 = w0; \ +w1 -= 4; \ +if w1 s< 0 goto l0_%=; \ +if w0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* Positive offset: r1 = r0 + 4, then if r1 >= 6, r0 >= 2, so r0 != 0 */ +SEC("socket") +__success +__naked void scalars_pos (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r1 += 4; \ +if r1 < 6 goto l0_%=; \ +if r0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* SUB with negative immediate: r1 -= -4 is equivalent to r1 += 4 */ +SEC("socket") +__success +__naked void scalars_sub_neg_imm (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r1 -= -4; \ +if r1 < 6 goto l0_%=; \ +if r0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* Double ADD clears the ID (can't accumulate offsets) */ +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_double_add(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r1 += 2; \ +r1 += 2; \ +if r1 < 6 goto l0_%=; \ +if r0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* +* Test that sync_linked_regs() correctly handles large offset differences. +* r1.off = S32_MIN, r2.off = 1, delta = S32_MIN - 1 requires 64-bit math. +*/ +SEC("socket") +__success +__naked void scalars_sync_delta_overflow (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r2 = r0; \ +r1 += %[s32_min]; \ +r2 += 1; \ +if r2 s< 100 goto l0_%=; \ +if r1 s< 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32), + [s32_min]"i"(INT_MIN) + : __clobber_all); +} + +/* +* Another large delta case: r1.off = S32_MAX, r2.off = -1. +* delta = S32_MAX - (-1) = S32_MAX + 1 requires 64-bit math. +*/ +SEC("socket") +__success +__naked void scalars_sync_delta_overflow_large_range (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r0 &= 0xff; \ +r1 = r0; \ +r2 = r0; \ +r1 += %[s32_max]; \ +r2 += -1; \ +if r2 s< 0 goto l0_%=; \ +if r1 s>= 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32), + [s32_max]"i"(INT_MAX) + : __clobber_all); +} + +/* +* Test linked scalar tracking with alu32 and large positive offset (0x7FFFFFFF). +* After w1 += 0x7FFFFFFF, w1 wraps to negative for any r0 >= 1. +* If w1 is signed-negative, then r0 >= 1, so r0 != 0. +*/ +SEC("socket") +__success +__naked void scalars_alu32_big_offset (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w0 &= 0xff; \ +w1 = w0; \ +w1 += 0x7FFFFFFF; \ +if w1 s>= 0 goto l0_%=; \ +if w0 != 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +SEC("socket") +__failure +__msg("div by zero") +__naked void scalars_alu32_basic(void) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +r1 = r0; \ +w1 += 1; \ +if r1 > 10 goto 1f; \ +r0 >>= 32; \ +if r0 == 0 goto 1f; \ +r0 /= 0; \ +1: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +/* +* Test alu32 linked register tracking with wrapping. +* R0 is bounded to [0xffffff00, 0xffffffff] (high 32-bit values) +* w1 += 0x100 causes R1 to wrap to [0, 0xff] +* +* After sync_linked_regs, if bounds are computed correctly: +* R0 should be [0x00000000_ffffff00, 0x00000000_ffffff80] +* R0 >> 32 == 0, so div by zero is unreachable +* +* If bounds are computed incorrectly (64-bit underflow): +* R0 becomes [0xffffffff_ffffff00, 0xffffffff_ffffff80] +* R0 >> 32 == 0xffffffff != 0, so div by zero is reachable +*/ +SEC("socket") +__success +__naked void scalars_alu32_wrap (void ) +{ + asmvolatile (" \ +call %[bpf_get_prandom_u32]; \ +w0 |= 0xffffff00; \ +r1 = r0; \ +w1 += 0x100; \ +if r1 > 0x80 goto l0_%=; \ +r2 = r0; \ +r2 >>= 32; \ +if r2 == 0 goto l0_%=; \ +r0 /= 0; \ +l0_%=: \ +r0 = 0; \ +exit; \ +" : + : __imm(bpf_get_prandom_u32) + : __clobber_all); +} + +SEC("socket") +__success +void alu32_negative_offset (void ) +{ +volatile char path[5 ]; +volatile int offset =bpf_get_prandom_u32 (); +int off = offset; + +if (off >=5 && off <10 ) + path[off -5 ] ='.' ; + +/* So compiler doesn't say: error: variable 'path' set but not used */ +__sink (path[0 ]); +} + char _license[] SEC("license") = "GPL";
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 3/1611 tcp: Add preempt_{disable,enable}_nested() in reqsk_queue_hash_req().
In reply to Greg Kroah-Hartman6.18-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
@@ -1163,6 +1163,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
@@ -1170,6 +1173,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 49/1611 rxrpc: Fix double unlock in rxrpc_recvmsg()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit a2f299b4d5510147fa8629a6aba2869bbcc88aea upstream.
Fix a double unlock in rxrpc_recvmsg() when dealing with OOB messages.
--- net/rxrpc/recvmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/rxrpc/recvmsg.c +1 -1
@@ -470,7 +470,7 @@ try_again:release_sock (&rx->sk);if (ret == -EAGAIN ) goto try_again; - goto error_no_call; + goto error_trace; }/* Find the next call and dequeue it if we're not just peeking. If we
Greg Kroah-Hartman
maintainerPATCH 58/1611 clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()
In reply to Greg Kroah-Hartman6.18-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
@@ -286,6 +286,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/1611 accel/amdxdna: Fix leak when pinning ubuf pages
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Max Zhen <[email protected]>
[ Upstream commit d946347edc4f0a7b846325323d77e936a4c90d0f ]
When pin_user_pages_fast() returns fewer pages than requested, the pages that were successfully pinned are not released, leading to a leak.
Fix this by unpinning any partially pinned pages before returning failure.
--- drivers/accel/amdxdna/amdxdna_ubuf.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/accel/amdxdna/amdxdna_ubuf.c +8 -4
@@ -205,13 +205,17 @@ struct dma_buf *amdxdna_get_ubuf(struct drm_device *dev, ret =pin_user_pages_fast (va_ent[i].vaddr, npages,FOLL_WRITE |FOLL_LONGTERM , &ubuf->pages[start]); -if (ret <0 || ret != npages) { - ret = -ENOMEM ; +if (ret >=0 ) { + start += ret; +if (ret != npages) { +XDNA_ERR (xdna,"Partially pinned pages %d/%u" , ret, npages); + ret = -ENOMEM ; + goto destroy_pages; + } + }else {XDNA_ERR (xdna,"Failed to pin pages ret %d" , ret); goto destroy_pages; } - - start += ret; } exp_info.ops = &amdxdna_ubuf_dmabuf_ops;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 60/1611 drm/rockchip: dw_dp: Switch to drmm_kzalloc()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cristian Ciocaltea <[email protected]>
[ Upstream commit ed9da8d23020352ad24c528db09b5acdd78b81fd ]
Driver makes use of drmm_encoder_init() to initialize the encoder and automatically handle the cleanup by registering drm_encoder_cleanup() with drmm_add_action().
However, the internal structure containing the encoder part gets allocated with devm_kzalloc(), which happens while component_bind_all() is being called from Rockchip DRM driver. The component framework further ensures it is deallocated as part of releasing all the resources claimed during bind, which is triggered from component_unbind_all().
When the reference to the DRM device gets eventually dropped via drm_dev_put() in rockchip_drm_unbind(), drmm_encoder_alloc_release() attempts to access the now released encoder structure, leading to use-after-free.
Ensure driver's internal structure is still reachable on encoder cleanup by switching from a device-managed allocation to a drm-managed one.
--- drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +2 -1
@@ -13,6 +13,7 @@#include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> #include <drm/drm_bridge_connector.h> +#include <drm/drm_managed.h> #include <drm/drm_of.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
@@ -82,7 +83,7 @@ static int dw_dp_rockchip_bind(struct device *dev, struct device *master, void *struct drm_connector *connector;int ret; - dp =devm_kzalloc (dev,sizeof (*dp),GFP_KERNEL ); + dp =drmm_kzalloc (drm_dev,sizeof (*dp),GFP_KERNEL );if (!dp)return -ENOMEM ;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 61/1611 drm/rockchip: dw_dp: Fix null-ptr-deref in dw_dp_remove()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cristian Ciocaltea <[email protected]>
[ Upstream commit 9456381d8b60bb7dd42f2f04afe5ee4ce6e0bc12 ]
Attempting to access driver data in the platform driver ->remove() callback may lead to a null pointer dereference since there is no guaranty that the component ->bind() callback invoking platform_set_drvdata() was executed.
A common scenario is when Rockchip DRM driver didn't manage to run component_bind_all() because of an (unrelated) error causing early return from rockchip_drm_bind().
Drop the unnecessary call to platform_get_drvdata() and, instead, reference the target device structure via platform_device.
--- drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +1 -3
@@ -130,9 +130,7 @@ static int dw_dp_probe(struct platform_device *pdev)static void dw_dp_remove (struct platform_device *pdev) { -struct rockchip_dw_dp *dp =platform_get_drvdata (pdev); - -component_del (dp->dev, &dw_dp_rockchip_component_ops); +component_del (&pdev->dev, &dw_dp_rockchip_component_ops); }static const struct of_device_id dw_dp_of_match[] = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 62/1611 drm/rockchip: Test for imported buffers with drm_gem_is_imported()
In reply to Greg Kroah-Hartman6.18-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 63/1611 drm/tidss: Drop extra drm_mode_config_reset() call
In reply to Greg Kroah-Hartman6.18-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
@@ -291,8 +291,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 64/1611 drm/gpusvm: Reject VMAs with VM_IO or VM_PFNMAP when creating SVM ranges
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthew Brost <[email protected]>
[ Upstream commit b82a225e57a334335a21462b75ee2223bc6efe6d ]
VMAs marked with VM_IO or VM_PFNMAP are not backed by struct page objects, which GPUSVM requires in order to operate correctly. In particular, get_pages() relies on hmm_range_fault() to resolve struct pages for the target range.
Attempting to create an SVM range on such VMAs results in repeated get_pages() failures and can lead to an infinite loop inside a driver’s page‑fault handler. Prevent this by rejecting ranges on VM_IO or VM_PFNMAP VMAs and returning -EIO.
--- drivers/gpu/drm/drm_gpusvm.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/drm_gpusvm.c +5 -0
@@ -944,6 +944,11 @@ drm_gpusvm_range_find_or_insert(struct drm_gpusvm *gpusvm, goto err_notifier_remove; } +if (vas->vm_flags & (VM_IO |VM_PFNMAP )) { + err = -EIO ; + goto err_notifier_remove; + } + range =drm_gpusvm_range_find (notifier, fault_addr, fault_addr +1 );if (range) goto out_mmunlock;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 65/1611 drm/gpuvm: Do not prepare NULL objects
In reply to Greg Kroah-Hartman6.18-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
@@ -1289,6 +1289,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 66/1611 drm/amdgpu: fix integer overflow in amdgpu_gem_align_pitch()
In reply to Greg Kroah-Hartman6.18-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>
@@ -1209,13 +1210,14 @@ int amdgpu_gem_list_handles_ioctl(struct drm_device *dev, void *data,return ret; } -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 :
@@ -1230,9 +1232,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,
@@ -1259,8 +1264,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 67/1611 drm/radeon: fix integer overflow in radeon_align_pitch()
In reply to Greg Kroah-Hartman6.18-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>
@@ -812,6 +813,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 :
@@ -826,9 +828,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,
@@ -842,8 +847,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 50/1611 afs: Fix netns teardown to cancel the preallocation charger
In reply to Greg Kroah-Hartman6.18-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
@@ -127,6 +127,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);
@@ -742,7 +743,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)
@@ -792,7 +793,8 @@ static void afs_rx_new_call(struct sockif (!call->server)trace_afs_cm_no_server (call,rxrpc_kernel_remote_srx (call->peer)); -queue_work (afs_wq, &net->charge_preallocation_work); +if (net->live) +queue_work (afs_wq, &net->charge_preallocation_work); }/*
Greg Kroah-Hartman
maintainerPATCH 68/1611 drm/radeon: fix memory leak in radeon_ring_restore() on lock failure
In reply to Greg Kroah-Hartman6.18-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 69/1611 libbpf: Report error when a negative kprobe offset is specified
In reply to Greg Kroah-Hartman6.18-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
@@ -11826,7 +11826,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;
@@ -11848,6 +11848,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 70/1611 selftests/bpf: Fix off-by-one in bpf_cpumask_populate related selftest
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matt Bobrowski <[email protected]>
[ Upstream commit 0aa6378695b8c67146130812f635f07c4898f171 ]
The test_populate test uses >= instead of > when checking if the runtime nr_cpus exceeds the bit capacity of a cpumask_t.
On a system where the physical CPU core count perfectly matches the CONFIG_NR_CPUS upper bound (e.g. nr_cpus = 512 and CONFIG_NR_CPUS = 512), the condition nr_cpus >= CPUMASK_TEST_MASKLEN * 8 evaluates to true (512 >= 512). This incorrectly causes the test to fail with an error value of 3.
A 512-bit cpumask_t provides enough bits (indices 0 through 511) to represent 512 CPUs. The subsequent bpf_for(i, 0, nr_cpus) loop iterates up to nr_cpus - 1 (511), which perfectly aligns with the maximum valid index of the bitmask.
Change the condition to nr_cpus > CPUMASK_TEST_MASKLEN * 8 to fix the false positive failure on these systems.
--- tools/testing/selftests/bpf/progs/cpumask_success.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/progs/cpumask_success.c +1 -1
@@ -866,7 +866,7 @@ int BPF_PROG(test_populate, struct task_struct *task, u64 clone_flags)* access NR_CPUS, the upper bound for nr_cpus, so we infer * it from the size of cpumask_t. */ -if (nr_cpus <0 || nr_cpus >=CPUMASK_TEST_MASKLEN *8 ) { +if (nr_cpus <0 || nr_cpus >CPUMASK_TEST_MASKLEN *8 ) { err =3 ; goto out; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 71/1611 dt-bindings: timer: Remove sifive,fine-ctr-bits property
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nick Hu <[email protected]>
[ Upstream commit 1ccca10755107bc8c649937d1ba69651d1ef9da2 ]
The counter width can be inferred from the compatible string, making the explicit "sifive,fine-ctr-bits" property redundant. Remove the property to simplify the bindings.
--- .../devicetree/bindings/timer/sifive,clint.yaml | 16 ---------------- 1 file changed, 16 deletions(-)
Documentation/devicetree/bindings/timer/sifive,clint.yaml +0 -16
@@ -69,22 +69,6 @@ properties: minItems: 1 maxItems: 4095 - sifive,fine-ctr-bits: - maximum: 15 - description: The width in bits of the fine counter. - -if: - properties: - compatible: - contains: - const: sifive,clint2 -then: - required: - - sifive,fine-ctr-bits -else: - properties: - sifive,fine-ctr-bits: false - additionalProperties: false required:
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 72/1611 drm/amd/pm: remove trailing semicolon from AMDGPU_PM_POLICY_ATTR macro
In reply to Greg Kroah-Hartman6.18-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
@@ -2463,12 +2463,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 73/1611 selftests/bpf: Use local type for flow_offload_tuple_rhash in xdp_flowtable
In reply to Greg Kroah-Hartman6.18-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 74/1611 selftests/bpf: Use local type for bpf_fou_encap in test_tunnel_kern
In reply to Greg Kroah-Hartman6.18-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 75/1611 Documentation: proc: fix section numbering in table of contents
In reply to Greg Kroah-Hartman6.18-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 76/1611 arm64: dts: rockchip: fix Ethernet PHY not found on PX30 Cobra
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Quentin Schulz <[email protected]>
[ Upstream commit 6598ed3586a4b1cc79423666e66b9861631a6c7e ]
When not passing the PHY ID with an ethernet-phy-idX.Y compatible property, the MDIO bus will attempt to auto-detect the PHY by reading its registers and then probing the appropriate driver. For this to work, the PHY needs to be in a working state.
Unfortunately, the net subsystem doesn't control the PHY reset GPIO when attempting to auto-detect the PHY. This means the PHY needs to be in a working state when entering the Linux kernel. This historically has been the case for this device, but only because the bootloader was taking care of initializing the Ethernet controller even when not using it. We're attempting to support the removal of the network stack in the bootloader, which means the Linux kernel will be entered with the PHY still in reset and now Ethernet doesn't work anymore.
The devices in the field only ever had a TI DP83825, so let's simply bypass the auto-detection mechanism entirely by passing the appropriate PHY IDs via the compatible.
--- arch/arm64/boot/dts/rockchip/px30-cobra.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/rockchip/px30-cobra.dtsi +1 -1
@@ -397,7 +397,7 @@ &io_domains { &mdio { dp83825: ethernet-phy@0 { - compatible = "ethernet-phy-ieee802.3-c22"; + compatible = "ethernet-phy-id2000.a140"; reg = <0x0>; pinctrl-names = "default"; pinctrl-0 = <&phy_rst>;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 77/1611 arm64: dts: rockchip: Fix gmac0 reset pin for NanoPi R5S
In reply to Greg Kroah-Hartman6.18-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
@@ -98,7 +98,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"; }; };
@@ -132,8 +132,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 51/1611 afs: fix NULL pointer dereference in afs_get_tree()
In reply to Greg Kroah-Hartman6.18-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
@@ -587,7 +587,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 78/1611 arm64: dts: qcom: ipq5424: Fix USB simple_bus_reg warnings
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Krzysztof Kozlowski <[email protected]>
[ Upstream commit 864fde494aa1dd26c68254661f2ce973e9f03832 ]
Correct the unit address of USB nodes in Qualcomm IPQ5424 SoC DTSI to fix W=1 DTC warnings:
ipq5424.dtsi:642.22-693.5: Warning (simple_bus_reg): /soc@0/usb2@1e00000: simple-bus unit address format error, expected "1ef8800" ipq5424.dtsi:733.22-786.5: Warning (simple_bus_reg): /soc@0/usb3@8a00000: simple-bus unit address format error, expected "8af8800"
--- arch/arm64/boot/dts/qcom/ipq5424.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/ipq5424.dtsi +2 -2
@@ -601,7 +601,7 @@ qusb_phy_1: phy@71000 { status = "disabled"; }; - usb2: usb2@1e00000 { + usb2: usb2@1ef8800 { compatible = "qcom,ipq5424-dwc3", "qcom,dwc3"; reg = <0 0x01ef8800 0 0x400>; #address-cells = <2>;
@@ -692,7 +692,7 @@ ssphy_0: phy@7d000 { status = "disabled"; }; - usb3: usb3@8a00000 { + usb3: usb3@8af8800 { compatible = "qcom,ipq5424-dwc3", "qcom,dwc3"; reg = <0 0x08af8800 0 0x400>;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 79/1611 arm64: dts: qcom: sc8180x: Fix phy simple_bus_reg warning
In reply to Greg Kroah-Hartman6.18-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
@@ -2632,7 +2632,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 80/1611 arm64: dts: qcom: sdm845-mezzanine: Fix camss ports unit_address_vs_reg warning
In reply to Greg Kroah-Hartman6.18-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 81/1611 wifi: cfg80211: fix grammar in MLO group key error message
In reply to Greg Kroah-Hartman6.18-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
@@ -4828,7 +4828,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 82/1611 arm64: tegra: Fix Tegra234 MGBE PTP clock
In reply to Greg Kroah-Hartman6.18-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
@@ -3602,7 +3602,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>,
@@ -3644,7 +3644,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>,
@@ -3686,7 +3686,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>,
@@ -3728,7 +3728,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 83/1611 dt-bindings: pinctrl: nvidia,tegra234: Add missing required block
In reply to Greg Kroah-Hartman6.18-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 84/1611 drm/amdkfd: Validate CRIU-restored IDs before idr_alloc
In reply to Greg Kroah-Hartman6.18-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
@@ -2315,6 +2315,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 85/1611 driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()
In reply to Greg Kroah-Hartman6.18-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
@@ -1037,9 +1037,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 86/1611 wifi: rtw89: fix wrong pci_get_drvdata type in AER handlers
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Christos Longros <[email protected]>
[ Upstream commit 7068c379cf9aa8afe4dce4d9d82390187aa9c4d0 ]
rtw89 stores an ieee80211_hw pointer via pci_set_drvdata() at probe time, but io_error_detected() and io_resume() retrieve it as a net_device pointer. This causes netif_device_detach/attach to operate on an ieee80211_hw struct, reading and writing at wrong offsets. The adjacent io_slot_reset() already does it correctly.
Use ieee80211_stop_queues/wake_queues instead, consistent with every other queue stop/start path in the driver.
Tested on RTL8852CE by calling the handlers from a test module before and after the fix.
--- drivers/net/wireless/realtek/rtw89/pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/realtek/rtw89/pci.c +4 -4
@@ -4605,9 +4605,9 @@ EXPORT_SYMBOL(rtw89_pm_ops);static pci_ers_result_t rtw89_pci_io_error_detected (struct pci_dev *pdev,pci_channel_state_t state) { -struct net_device *netdev =pci_get_drvdata (pdev); +struct ieee80211_hw *hw =pci_get_drvdata (pdev); -netif_device_detach (netdev); +ieee80211_stop_queues (hw);return PCI_ERS_RESULT_NEED_RESET ; }
@@ -4624,12 +4624,12 @@ static pci_ers_result_t rtw89_pci_io_slot_reset(struct pci_dev *pdev)static void rtw89_pci_io_resume (struct pci_dev *pdev) { -struct net_device *netdev =pci_get_drvdata (pdev); +struct ieee80211_hw *hw =pci_get_drvdata (pdev);/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 ); -netif_device_attach (netdev); +ieee80211_wake_queues (hw); }const struct pci_error_handlers rtw89_pci_err_handler = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 87/1611 wifi: rtw88: fix wrong pci_get_drvdata type in AER handlers
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chin-Yen Lee <[email protected]>
[ Upstream commit 706183dbef4a79d120d4e928f693bea50df496f8 ]
rtw88 stores an ieee80211_hw pointer via pci_set_drvdata() at probe time, but io_error_detected() and io_resume() retrieve it as a net_device pointer. This causes netif_device_detach/attach to operate on an ieee80211_hw struct, reading and writing at wrong offsets.
Use ieee80211_stop_queues/wake_queues instead, consistent with every other queue stop/start path in the driver.
--- drivers/net/wireless/realtek/rtw88/pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/net/wireless/realtek/rtw88/pci.c +4 -4
@@ -1710,9 +1710,9 @@ static void rtw_pci_napi_deinit(struct rtw_dev *rtwdev)static pci_ers_result_t rtw_pci_io_err_detected (struct pci_dev *pdev,pci_channel_state_t state) { -struct net_device *netdev =pci_get_drvdata (pdev); +struct ieee80211_hw *hw =pci_get_drvdata (pdev); -netif_device_detach (netdev); +ieee80211_stop_queues (hw);return PCI_ERS_RESULT_NEED_RESET ; }
@@ -1729,12 +1729,12 @@ static pci_ers_result_t rtw_pci_io_slot_reset(struct pci_dev *pdev)static void rtw_pci_io_resume (struct pci_dev *pdev) { -struct net_device *netdev =pci_get_drvdata (pdev); +struct ieee80211_hw *hw =pci_get_drvdata (pdev);/* ack any pending wake events, disable PME */ pci_enable_wake (pdev,PCI_D0 ,0 ); -netif_device_attach (netdev); +ieee80211_wake_queues (hw); }const struct pci_error_handlers rtw_pci_err_handler = {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 52/1611 afs: handle CB.InitCallBackState3 requests without a server record
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Nan Li <[email protected]>
commit f3cf725cd284b7912d5522babb44721bf38c8887 upstream.
The cache manager callback path now attaches the server record to an incoming call through the rxrpc peer's app data. That association is not guaranteed to exist for every callback request, and most callback handlers already tolerate that case.
Make CB.InitCallBackState3 follow the same pattern by checking whether a server record was attached before using it. If the peer is not mapped to a server record, trace the request and ignore it, matching the existing behaviour for other unmatched callback requests.
This keeps the callback handler consistent with the rest of the cache manager service and avoids depending on peer state that may not be available for a given request.
--- fs/afs/cmservice.c | 5 +++++ 1 file changed, 5 insertions(+)
fs/afs/cmservice.c +5 -0
@@ -365,6 +365,11 @@ static int afs_deliver_cb_init_call_backif (!afs_check_call_state (call,AFS_CALL_SV_REPLYING ))return afs_io_error (call, afs_io_error_cm_reply); +if (!call->server) { +trace_afs_cm_no_server_u (call, call->request); +return 0 ; + } +if (memcmp (call->request, &call->server->_uuid,sizeof (call->server->_uuid)) !=0 ) {pr_notice ("Callback UUID does not match fileserver UUID\n" );trace_afs_cm_no_server_u (call, call->request);
Greg Kroah-Hartman
maintainerPATCH 88/1611 wifi: rtw89: Correct data type for scan index to avoid infinite loop
In reply to Greg Kroah-Hartman6.18-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
@@ -7198,7 +7198,7 @@ static int rtw89_update_6ghz_rnr_chan_ax(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 89/1611 wifi: rtw88: fix OOB read from firmware RX descriptor exceeding DMA buffer
In reply to Greg Kroah-Hartman6.18-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 90/1611 wifi: rtw89: add bounds check on firmware mac_id in link lookup
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tristan Madani <[email protected]>
[ Upstream commit 6d88244bb129755acca696f9227200f4a2d106a6 ]
The mac_id field in RX descriptors is 8 bits wide (0-255), but assoc_link_on_macid[] has only RTW89_MAX_MAC_ID_NUM (128) entries. While the driver currently assigns mac_id values below 128, the descriptor value comes from firmware and is not validated before use as an array index. Add a defensive bounds check in rtw89_assoc_link_rcu_dereference() to guard against out-of-range firmware values.
--- drivers/net/wireless/realtek/rtw89/core.h | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/wireless/realtek/rtw89/core.h +3 -0
@@ -6254,6 +6254,9 @@ static inline void rtw89_assoc_link_clr(struct rtw89_sta_link *rtwsta_link)static inline struct rtw89_sta_link *rtw89_assoc_link_rcu_dereference (struct rtw89_dev *rtwdev,u8 macid) { +if (unlikely (macid >=RTW89_MAX_MAC_ID_NUM )) +return NULL ; +return rcu_dereference (rtwdev->assoc_link_on_macid[macid]); }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 91/1611 kconfig: fix potential NULL pointer dereference in conf_askvalue
In reply to Greg Kroah-Hartman6.18-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 92/1611 soc: xilinx: Shutdown and free rx mailbox channel
In reply to Greg Kroah-Hartman6.18-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 93/1611 pinctrl: mediatek: eint: Drop base from mtk_eint_chip_write_mask()
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chen-Yu Tsai <[email protected]>
[ Upstream commit 3ca99eed042620d12315e9272ed3ef260ca29877 ]
When support for multiple EINT base addresses was added in commit 3ef9f710efcb ("pinctrl: mediatek: Add EINT support for multiple addresses"), mtk_eint_chip_write_mask() was changed to write interrupt masks for all base addresses in one call. However the "base" parameter was left around and now causes sparse warnings:
mtk-eint.c:428:44: warning: incorrect type in argument 2 (different address spaces)
mtk-eint.c:428:44: expected void [noderef] __iomem *base
mtk-eint.c:428:44: got void [noderef] __iomem **base
mtk-eint.c:436:44: warning: incorrect type in argument 2 (different address spaces)
mtk-eint.c:436:44: expected void [noderef] __iomem *base
mtk-eint.c:436:44: got void [noderef] __iomem **baseSince the "base" parameter is no longer needed, just drop it.
--- drivers/pinctrl/mediatek/mtk-eint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/mediatek/mtk-eint.c +3 -3
@@ -241,7 +241,7 @@ static int mtk_eint_irq_set_wake(struct irq_data *d, unsigned int on) }static void mtk_eint_chip_write_mask (const struct mtk_eint *eint, -void __iomem *base,unsigned int **buf) +unsigned int **buf) {int inst, port, port_num;void __iomem *reg;
@@ -420,7 +420,7 @@ static void mtk_eint_irq_handler(struct irq_desc *desc)int mtk_eint_do_suspend (struct mtk_eint *eint) { -mtk_eint_chip_write_mask (eint, eint->base, eint->wake_mask); +mtk_eint_chip_write_mask (eint, eint->wake_mask);return 0 ; }
@@ -428,7 +428,7 @@ EXPORT_SYMBOL_GPL(mtk_eint_do_suspend);int mtk_eint_do_resume (struct mtk_eint *eint) { -mtk_eint_chip_write_mask (eint, eint->base, eint->cur_mask); +mtk_eint_chip_write_mask (eint, eint->cur_mask);return 0 ; }
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 94/1611 wifi: ath9k: fix OOB access from firmware tx status queue ID
In reply to Greg Kroah-Hartman6.18-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
@@ -2746,6 +2746,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 53/1611 afs: Fix further netns teardown to cancel the preallocation charger
In reply to Greg Kroah-Hartman6.18-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
@@ -128,8 +128,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 54/1611 afs: Fix uncancelled rxrpc OOB message handler
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit a4057e58b07005d0fe0491bdbf1868c1491909ee upstream.
Fix AFS to cancel its OOB message processing (typically to respond to security challenges). Also move OOB message processing to afs_wq so that it's also waited for and make the OOB handler just return if the net namespace is no longer live.
--- fs/afs/cm_security.c | 3 ++- fs/afs/rxrpc.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-)
fs/afs/cm_security.c +2 -1
@@ -101,7 +101,8 @@ void afs_process_oob_queue(struct work_sstruct sk_buff *oob;enum rxrpc_oob_type type; -while ((oob =rxrpc_kernel_dequeue_oob (net->socket, &type))) { +while (READ_ONCE (net->live) && + (oob =rxrpc_kernel_dequeue_oob (net->socket, &type))) {switch (type) {case RXRPC_OOB_CHALLENGE :afs_respond_to_challenge (oob);
fs/afs/rxrpc.c +4 -1
@@ -128,6 +128,7 @@ void afs_close_socket(struct afs_net *ne_enter ("" );cancel_work_sync (&net->charge_preallocation_work); +cancel_work_sync (&net->rx_oob_work);/* Future work items should now see ->live is false. */ kernel_listen (net->socket,0 );
@@ -148,6 +149,7 @@ void afs_close_socket(struct afs_net *nekernel_sock_shutdown (net->socket,SHUT_RDWR );flush_workqueue (afs_async_calls); +cancel_work_sync (&net->rx_oob_work); net->socket->sk->sk_user_data =NULL ;sock_release (net->socket);key_put (net->fs_cm_token_key);
@@ -989,5 +991,6 @@ static void afs_rx_notify_oob(struct soc {struct afs_net *net = sk->sk_user_data; -schedule_work (&net->rx_oob_work); +if (READ_ONCE (net->live)) +queue_work (afs_wq, &net->rx_oob_work); }
Greg Kroah-Hartman
maintainerPATCH 55/1611 fbcon: fix NULL pointer dereference for a console without vc_data
In reply to Greg Kroah-Hartman6.18-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
@@ -1205,6 +1205,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 )
@@ -1375,14 +1376,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 56/1611 fbcon: Use correct type for vc_resize() return value
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiacheng Yu <[email protected]>
commit 84202754fb1727dc3ee87f47104e4162ecc8ba3a upstream.
The return value of vc_resize() is int, but fbcon_set_disp() stores it in an unsigned long variable. While the !ret check happens to work correctly by coincidence (negative values become large positive values), the types should match. Use int instead.
Eliminates the following W=3 warning:
drivers/video/fbdev/core/fbcon.c: In function 'fbcon_set_disp':
drivers/video/fbdev/core/fbcon.c:1494:14: warning: implicit conversion from 'int' to 'unsigned long' [-Wconversion]
--- drivers/video/fbdev/core/fbcon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/fbdev/core/fbcon.c +1 -2
@@ -1371,8 +1371,7 @@ static void fbcon_set_disp(struct fb_infstruct vc_data **default_mode, *vc;struct vc_data *svc;struct fbcon_par *par = info->fbcon_par; -int rows, cols; -unsigned long ret =0 ; +int rows, cols, ret; p = &fb_display[unit];
Greg Kroah-Hartman
maintainerPATCH 57/1611 openrisc: mm: Fix section mismatch between map_page and __set_fixmap
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Stafford Horne <[email protected]>
[ Upstream commit 431400d49cac4bac944fc2d989921003314667ae ]
This warning was reported by the kernel test robot:
WARNING: modpost: vmlinux: section mismatch in reference: __set_fixmap+0x84 (section: .text.unlikely) -> map_page.isra.0 (section: .init.text)
With commit 4735037b5d9b ("openrisc: Add text patching API support") the __set_fixmap function was moved out of the .init.text section. However, the map_page helper that it uses was not moved. This was not noticed on gcc 15.1.0 where map_page gets inlined unlike [email protected] which uses gcc 10.5.0.
Fix this by also moving the map_page helper function out of the init section.
--- arch/openrisc/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/openrisc/mm/init.c +1 -1
@@ -202,7 +202,7 @@ void __init mem_init(void)return ; } -static int __init map_page (unsigned long va,phys_addr_t pa,pgprot_t prot) +static int map_page (unsigned long va,phys_addr_t pa,pgprot_t prot) {p4d_t *p4d;pud_t *pud;
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 48/1611 rxrpc: Fix leak of connection from OOB challenge
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Howells <[email protected]>
commit 4b28876e78fd60979afa91fd2ec6ad9cc8b7a6d0 upstream.
Fix leak of connection object from OOB challenge queue when response is provided by userspace.
--- net/rxrpc/oob.c | 5 +++++ 1 file changed, 5 insertions(+)
net/rxrpc/oob.c +5 -0
@@ -213,6 +213,11 @@ static int rxrpc_respond_to_oob(struct rbreak ; } +switch (skb->mark) { +case RXRPC_OOB_CHALLENGE : +rxrpc_put_connection (sp->chall.conn, rxrpc_conn_put_oob); +break ; + }rxrpc_free_skb (skb, rxrpc_skb_put_oob);return ret; }
Greg Kroah-Hartman
maintainerPATCH 96/1611 Documentation/rv: Replace stale website link
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Gabriele Monaco <[email protected]>
[ Upstream commit 49cbd359e4a7501e9d6694c072031d9ae6b2d1a5 ]
The sched monitor page was linking to Daniel's website which is now down. The main purpose of the link was to point to a source for the models from the original author and that can be found also in his published paper.
Replace the link with a reference to Daniel's "A thread synchronization model for the PREEMPT_RT Linux kernel" which can be found online and includes the models definitions as well as the work behind them (not the original patches but since they're based on a 5.0 kernel and are mostly included upstream, there's little value in keeping them in the docs).
Message-ID: <[email protected]>
--- Documentation/trace/rv/monitor_sched.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Documentation/trace/rv/monitor_sched.rst +5 -2
@@ -36,7 +36,7 @@ Specifications -------------- The specifications included in sched are currently a work in progress, adapting the ones -defined in by Daniel Bristot in [1]. +defined by Daniel Bristot in [1]_. Currently we included the following:
@@ -399,4 +399,7 @@ another special case that is currently not supported by the monitor. References ---------- -[1] - https://bristot.me/linux-task-model +.. [1] Daniel Bristot de Oliveira et al.: + `A thread synchronization model for the PREEMPT_RT Linux kernel + <https://www.iris.sssup.it/bitstream/11382/533630/1/Elsevier-JSA-2020.pdf>`_, + J. Syst. Archit., 2020.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 105/1611 dts: spacemit: set console baud rate on bpif3
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Conor Dooley <[email protected]>
[ Upstream commit 24c12ca43b12c104389d9a159207d0b25779d0af ]
Because the default console's baud rate is not set, defconfig kernels do not have any serial output on this platform. Set the baud rate to 115200, matching what is used by U-Boot etc on this platform.
--- arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts +1 -1
@@ -17,7 +17,7 @@ aliases { }; chosen { - stdout-path = "serial0"; + stdout-path = "serial0:115200n8"; }; leds {
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 106/1611 pinctrl: sunxi: fix regulator leak in sunxi_pmx_request() error path
In reply to Greg Kroah-Hartman6.18-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
@@ -896,7 +896,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 107/1611 dt-bindings: vendor-prefixes: Add Displaytech Ltd.
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Marek Vasut <[email protected]>
[ Upstream commit 42112cff8cb78ff6120983ba71bd14d52ce9dccd ]
Add "displaytech" vendor prefix for Displaytech Ltd. .
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -419,6 +419,8 @@ patternProperties: description: Diodes, Inc. "^dioo,.*": description: Dioo Microcircuit Co., Ltd + "^displaytech,.*": + description: Displaytech Ltd. "^djn,.*": description: Shenzhen DJN Optronics Technology Co., Ltd "^dlc,.*":
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 108/1611 drm/gpuvm: take refcount on DRM device
In reply to Greg Kroah-Hartman6.18-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/export.h>
@@ -1089,6 +1090,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);
@@ -1130,13 +1132,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 109/1611 drm/panel: Clean up S6E3HA2 config dependencies and fill help text
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Heidelberg <[email protected]>
[ Upstream commit 632a8aa96d0717aa92cb63e3939d09b896223b4c ]
As per the config name this Display IC features a DSI command-mode interface (or the command to switch to video mode is not known/documented) and does not use any of the video-mode helper utilities, hence should not select VIDEOMODE_HELPERS. In addition it uses devm_gpiod_get() and related functions from GPIOLIB.
--- drivers/gpu/drm/panel/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/gpu/drm/panel/Kconfig +8 -1
@@ -810,11 +810,18 @@ config DRM_PANEL_SAMSUNG_S6E3HA2 config DRM_PANEL_SAMSUNG_S6E3HA8 tristate "Samsung S6E3HA8 DSI video mode panel" + depends on GPIOLIB depends on OF depends on DRM_MIPI_DSI depends on BACKLIGHT_CLASS_DEVICE select DRM_DISPLAY_DSC_HELPER - select VIDEOMODE_HELPERS + help + Say Y or M here if you want to enable support for the + Samsung S6E3HA8 DDIC and connected MIPI DSI panel. + Currently supported panels: + + Samsung AMB577PX01 (found in the Samsung S9 smartphone) + config DRM_PANEL_SAMSUNG_S6E63J0X03 tristate "Samsung S6E63J0X03 DSI command mode panel"
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 110/1611 ARM: dts: rockchip: Add #{address,size}-cells to Chromium-based /firmware
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Brian Norris <[email protected]>
[ Upstream commit 98461edf564a35ee00a97a64f5463eaece586546 ]
Chromium/Depthcharge bootloaders may dynamically add a few device nodes to a system's DTB under a /firmware node. A typical DT looks something like the following:
/ {
firmware {
ranges;
coreboot {
compatible = "coreboot";
reg = <...>;
...;
};
};
};Notably, the /firmware node has an empty 'ranges', but does not have address/size-cells.
Commit 6e5773d52f4a ("of/address: Fix WARN when attempting translating non-translatable addresses") started requiring #address-cells for a device's parent if we want to use the reg resource in a device node. This leads to errors like the following:
[ 7.763870] coreboot_table firmware:coreboot: probe with driver coreboot_table failed with error -22
Add appropriate #{address,size}-cells to work around the problem.
Note that Google has also patched the Depthcharge bootloader source to add {address,size}-cells [1], but bootloader updates are typically delivered only via Google OS updates. Not all users install Google software updates, and even if they do, Google may not produce updated binaries for all/older devices.
[1] https://lore.kernel.org/all/[email protected]/
https://crrev.com/c/6051580 ("coreboot: Insert #address-cells and #size-cells for firmware node")
[On RK288-based Chromebooks there is no real other way than to load the
DTB together with its kernel when running a mainline kernel and as the whole line is EOL, there also won't be any updates to the bootloader that could fix that issue there.]
--- arch/arm/boot/dts/rockchip/rk3288-veyron.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/rockchip/rk3288-veyron.dtsi +5 -0
@@ -18,6 +18,11 @@ chosen { stdout-path = "serial2:115200n8"; }; + firmware { + #address-cells = <1>; + #size-cells = <1>; + }; + /* * The default coreboot on veyron devices ignores memory@0 nodes * and would instead create another memory node.
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 111/1611 arm64: dts: rockchip: Add #{address,size}-cells to Chromium-based /firmware
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Brian Norris <[email protected]>
[ Upstream commit 0b74f1a037672980c477bbe6b3848fb5341eb4f1 ]
Chromium/Depthcharge bootloaders may dynamically add a few device nodes to a system's DTB under a /firmware node. A typical DT looks something like the following:
## From a RK3399 Gru/Kevin Chromebook:
# find /sys/firmware/devicetree/base/firmware /sys/firmware/devicetree/base/firmware /sys/firmware/devicetree/base/firmware/coreboot /sys/firmware/devicetree/base/firmware/coreboot/ram-code /sys/firmware/devicetree/base/firmware/coreboot/compatible /sys/firmware/devicetree/base/firmware/coreboot/board-id /sys/firmware/devicetree/base/firmware/coreboot/reg /sys/firmware/devicetree/base/firmware/coreboot/name /sys/firmware/devicetree/base/firmware/chromeos /sys/firmware/devicetree/base/firmware/chromeos/readonly-firmware-version /sys/firmware/devicetree/base/firmware/chromeos/active-ec-firmware /sys/firmware/devicetree/base/firmware/chromeos/firmware-version /sys/firmware/devicetree/base/firmware/chromeos/nonvolatile-context-storage /sys/firmware/devicetree/base/firmware/chromeos/vboot-shared-data /sys/firmware/devicetree/base/firmware/chromeos/nonvolatile-context-size /sys/firmware/devicetree/base/firmware/chromeos/nonvolatile-context-offset /sys/firmware/devicetree/base/firmware/chromeos/hardware-id /sys/firmware/devicetree/base/firmware/chromeos/compatible /sys/firmware/devicetree/base/firmware/chromeos/firmware-type /sys/firmware/devicetree/base/firmware/chromeos/fmap-offset /sys/firmware/devicetree/base/firmware/chromeos/name /sys/firmware/devicetree/base/firmware/ranges /sys/firmware/devicetree/base/firmware/name
The /firmware node has an empty 'ranges', but does not have address/size-cells.
Commit 6e5773d52f4a ("of/address: Fix WARN when attempting translating non-translatable addresses") started requiring #address-cells for a device's parent if we want to use the reg resource in a device node. This leads to errors like the following:
[ 7.763870] coreboot_table firmware:coreboot: probe with driver coreboot_table failed with error -22
Add appropriate #{address,size}-cells to work around the problem.
Note that Google has also patched the Depthcharge bootloader source to add {address,size}-cells [1], but bootloader updates are typically delivered only via Google OS updates. Not all users install Google software updates, and even if they do, Google may not produce updated binaries for all/older devices.
[1] https://lore.kernel.org/all/[email protected]/
https://crrev.com/c/6051580 ("coreboot: Insert #address-cells and #size-cells for firmware node")
[On RK3399-based Chromebooks there is no real other way than to load the
DTB together with its kernel when running a mainline kernel and as the whole line is EOL, there also won't be any updates to the bootloader that could fix that issue there.]
--- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi +5 -0
@@ -18,6 +18,11 @@ chosen { stdout-path = "serial2:115200n8"; }; + firmware { + #address-cells = <2>; + #size-cells = <2>; + }; + /* * Power Tree *
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 112/1611 arm64: dts: rockchip: fix rk809 interrupt pin on rk3566-roc-pc
In reply to Greg Kroah-Hartman6.18-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 113/1611 arm64: dts: imx8x-colibri: Correct SODIMM PAD settings
In reply to Greg Kroah-Hartman6.18-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
@@ -604,12 +604,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 114/1611 Revert "arm64: dts: imx8mm-kontron: Add support for reading SD_VSEL signal"
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peng Fan <[email protected]>
[ Upstream commit aa907ee010e396c0c0d31d60495ace6e531ceec9 ]
This reverts commit 8472751c4d96b558d60d0f6aede6b24b64bcb3c9.
The board uses SDHC VSELECT to automatically switch between 1.8v and 3.3v. It does not use GPIO to control the PMIC SD_VSEL signal. The original commit intends to read back SD_VSEL value from GPIO, but it is wrong. When MUX is configured as SDHC VSELECT, it is impossible to read back the value from GPIO controller. Setting SION could only enable the input path for the mux function. It could not redirect the input to GPIO.
And value "0x40000d0" is wrong, SION is BIT30, not BIT26.
--- arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts | 10 +++------- .../arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi | 7 +++---- 2 files changed, 6 insertions(+), 11 deletions(-)
arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts +3 -7
@@ -254,10 +254,6 @@ &pwm2 { status = "okay"; }; -®_nvcc_sd { - sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; -}; - &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>;
@@ -466,7 +462,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x19 - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000d0 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xd0 >; };
@@ -479,7 +475,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x19 - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000d0 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xd0 >; };
@@ -492,7 +488,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x19 - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000d0 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xd0 >; }; };
arch/arm64/boot/dts/freescale/imx8mm-kontron-osm-s.dtsi +3 -4
@@ -342,7 +342,6 @@ reg_nvcc_sd: LDO5 { regulator-name = "NVCC_SD (LDO5)"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; - sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; }; }; };
@@ -795,7 +794,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 /* SDIO_A_D1 */ MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 /* SDIO_A_D2 */ MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 /* SDIO_A_D3 */ MX8MM_IOMUXC_SD2_WP_USDHC2_WP 0x400000d6 /* SDIO_A_WP */ - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000090 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x90 >; };
@@ -808,7 +807,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 /* SDIO_A_D1 */ MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 /* SDIO_A_D2 */ MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 /* SDIO_A_D3 */ MX8MM_IOMUXC_SD2_WP_USDHC2_WP 0x400000d6 /* SDIO_A_WP */ - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000090 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x90 >; };
@@ -821,7 +820,7 @@ MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 /* SDIO_A_D1 */ MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 /* SDIO_A_D2 */ MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 /* SDIO_A_D3 */ MX8MM_IOMUXC_SD2_WP_USDHC2_WP 0x400000d6 /* SDIO_A_WP */ - MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x40000090 + MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x90 >; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 97/1611 watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH
In reply to Greg Kroah-Hartman6.18-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 115/1611 Revert "arm64: dts: imx8mp-kontron: Add support for reading SD_VSEL signal"
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Peng Fan <[email protected]>
[ Upstream commit 22465a195af370ed6311be3adee479fb7c683685 ]
This reverts commit 39e4189d9d63a0b6fc15458ce0136e99ecdfb1b8.
The board uses SDHC VSELECT to automatically switch between 1.8v and 3.3v. It does not use GPIO to control the PMIC SD_VSEL signal. The original commit intends to read back SD_VSEL value from GPIO, but it is wrong. When MUX is configured as SDHC VSELECT, it is impossible to read back the value from GPIO controller. Setting SION could only enable the input path for the mux function. It could not redirect the input to GPIO.
--- arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-kontron-osm-s.dtsi +3 -4
@@ -311,7 +311,6 @@ reg_nvcc_sd: LDO5 { regulator-name = "NVCC_SD (LDO5)"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; - sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; }; }; };
@@ -815,7 +814,7 @@ MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 /* SDIO_A_D0 */ MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 /* SDIO_A_D1 */ MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 /* SDIO_A_D2 */ MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 /* SDIO_A_D3 */ - MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x400001d0 + MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x1d0 >; };
@@ -827,7 +826,7 @@ MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4 /* SDIO_A_D0 */ MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4 /* SDIO_A_D1 */ MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4 /* SDIO_A_D2 */ MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4 /* SDIO_A_D3 */ - MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x400001d0 + MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x1d0 >; };
@@ -839,7 +838,7 @@ MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d6 /* SDIO_A_D0 */ MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d6 /* SDIO_A_D1 */ MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d6 /* SDIO_A_D2 */ MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d6 /* SDIO_A_D3 */ - MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x400001d0 + MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT 0x1d0 >; };
Signature · 1 line
2.53.0
Greg Kroah-Hartman
maintainerPATCH 116/1611 vxlan: Fix potential null-ptr-deref in vxlan_gro_prepare_receive().
In reply to Greg Kroah-Hartman6.18-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
@@ -658,14 +658,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 117/1611 drm: renesas: rz-du: mipi_dsi: Fix return path on error
In reply to Greg Kroah-Hartman6.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Brandt <[email protected]>
[ Upstream commit 79e1afecfe1afbfd06f63bf7bbe854a88155b7bd ]
In case of error, we should unwind correctly.
Switching to using dmam_ instead of dma_ and moving the code earlier fixes the issue.
--- drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +5 -7
@@ -1002,6 +1002,11 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)return dev_err_probe (dsi->dev,PTR_ERR (dsi->prstc),"failed to get prst\n" ); + dsi->dcs_buf_virt =dmam_alloc_coherent (dsi->dev,RZG2L_DCS_BUF_SIZE , + &dsi->dcs_buf_phys,GFP_KERNEL ); +if (!dsi->dcs_buf_virt) +return -ENOMEM ; +platform_set_drvdata (pdev, dsi);pm_runtime_enable (dsi->dev);
@@ -1034,11 +1039,6 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)if (ret <0 ) goto err_pm_disable; - dsi->dcs_buf_virt =dma_alloc_coherent (dsi->host.dev,RZG2L_DCS_BUF_SIZE , - &dsi->dcs_buf_phys,GFP_KERNEL ); -if (!dsi->dcs_buf_virt) -return -ENOMEM ; -return 0 ; err_phy:
@@ -1053,8 +1053,6 @@ static void rzg2l_mipi_dsi_remove(struct platform_device *pdev) {struct rzg2l_mipi_dsi *dsi =platform_get_drvdata (pdev); -dma_free_coherent (dsi->host.dev,RZG2L_DCS_BUF_SIZE , dsi->dcs_buf_virt, - dsi->dcs_buf_phys);mipi_dsi_host_unregister (&dsi->host);pm_runtime_disable (&pdev->dev); }
Signature · 1 line
2.53.0