* [PATCH 6.1 0000/1059] 6.1.194-rc1 review
@ 2026-12-04 9:52 Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0001/1059] RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables Greg Kroah-Hartman
` (58 more replies)
0 siblings, 59 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, linux-kernel, torvalds, akpm, linux,
shuah, patches, lkft-triage, pavel, jonathanh, f.fainelli,
sudipm.mukherjee, rwarsow, conor, hargar, broonie, achill, sr
This is the start of the stable review cycle for the 6.1.194 release.
There are 1059 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 Sun, 06 Dec 2026 10:04:52 +0000.
Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v6.x/stable-review/patch-6.1.194-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.1.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Linux 6.1.194-rc1
Jakub Kicinski <kuba@kernel.org>
net: phylink: fix sphinx complaint about invalid literal
Jakub Kicinski <kuba@kernel.org>
eth: ixgbe: fix the wake condition
Jakub Kicinski <kuba@kernel.org>
eth: bnxt: fix the wake condition
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: intel_pstate: Use dedicated lock in set_power_ctl_ee_state()
Ruben Wauters <ruben.wauters@linux.dev>
drm/gud: fix potential divide error due to optimisation
Yaohan Li <shunsheng1218@gmail.com>
nvme: stop asynchronous event work before ANA teardown
Cooper Morgan <ext-github@cwooper.dev>
drm/amd/display: Saturate refresh rates in v1/v2 FreeSync infopackets
Christoph Hellwig <hch@lst.de>
direct-io: remove IOCB_NOWAIT support
Nathan Chancellor <nathan@kernel.org>
rcu/nocb: Avoid unsequenced accesses to jiffies in show_rcu_nocb_state()
Nathan Chancellor <nathan@kernel.org>
mptcp: Avoid unsequenced accesses to jiffies in mptcp_reset_tout_timer()
Chris J Arges <carges@cloudflare.com>
net: prevent receive header offset overflow during decapsulation
Carlos Bilbao <carlos.bilbao@kernel.org>
scsi: target: iscsi: reject invalid size Extended CDB AHS
Eric Biggers <ebiggers@kernel.org>
fscrypt: Initialize ->ci_master_key before publication
Shuai Liu <847807867@qq.com>
xfrm: interface: drop non-IP packets before pskb_inet_may_pull()
Zhao Gongyi <zhaogongyi@bytedance.com>
ext4: fix OOB memmove in ext4_xattr_set_entry
Guicai Ma <maguicai@kylinos.cn>
KEYS: Use kfree_sensitive() in keyctl_pkey_e_d_s()
Jarkko Sakkinen <jarkko@kernel.org>
KEYS: trusted: Update static calls before init
Sinan Turunc <enscrpt@pm.me>
KEYS: serialise key instantiation against keyctl_chown_key()
Guicai Ma <maguicai@kylinos.cn>
KEYS: Fix userspace buffer overflow in keyctl_pkey_e_d_s()
Henry Martin <bsdhenrymartin@gmail.com>
KEYS: Fix crash on big_key read
Jarkko Sakkinen <jarkko@kernel.org>
KEYS: Fix asym key overflow in keyctl_pkey_verify()
Takashi Iwai <tiwai@suse.de>
ALSA: oss: Fix deadlock at unregistering (again)
Suyuan Wang <stevewong@hust.edu.cn>
ALSA: fireworks: Abort the transaction on a bus reset
Suyuan Wang <stevewong@hust.edu.cn>
ALSA: firewire-lib: Abort the FCP transaction on a bus reset
Vasileios Almpanis <vasilisalmpanis@gmail.com>
usb: gadget: f_uac1_legacy: fix double close of the ALSA devices
Dave Airlie <airlied@redhat.com>
i915/vma: use kfree_rcu to make sure vma are freed after a rcu grace period
Xu Rao <raoxu@uniontech.com>
vhost/net: Fix receive queue test in busy poll
Kuniyuki Iwashima <kuniyu@google.com>
ipv6: Flush exception route while replacing nexthop.
Kuniyuki Iwashima <kuniyu@google.com>
ipv6: Remove FIB6_EXCEPTION_BUCKET_FLUSHED.
Kuniyuki Iwashima <kuniyu@google.com>
ipv6: Prevent rt6_insert_exception() for dying fib6_info.
Lance Yang <lance.yang@linux.dev>
khugepaged: fix readahead lock inversion in collapse_file()
Lingbo Kong <quic_lingbok@quicinc.com>
wifi: ath11k: modify the calculation of the average signal strength in station mode
Lingbo Kong <quic_lingbok@quicinc.com>
wifi: ath11k: fix ack signal strength calculation
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: codel: bound the dropping loop per dequeue call
Christoph Hellwig <hch@lst.de>
zram: return errors from read_from_bdev_sync
Christoph Hellwig <hch@lst.de>
zram: fix synchronous reads
Hyunwoo Kim <imv4bel@gmail.com>
rxrpc: Also unshare DATA/RESPONSE packets when paged frags are present
Hannes Reinecke <hare@kernel.org>
nvme-tcp: sanitize request list handling
NeilBrown <neilb@suse.de>
llist: add interface to check if a node is on a list.
Jaewon Jung <jaewon8868@gmail.com>
tracing: Avoid undefined shifts for zero histogram map size
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/filters: Check for missing operand after operator in parse_pred()
koraynilay <koray.fra@gmail.com>
smb: client: fix times assignments in cifs_posix_to_fattr()
koraynilay <koray.fra@gmail.com>
smb: client: fix negative timestamps being read from smb
Praneeth Balasubramanian <praneeth@ucsb.edu>
scsi: target: iscsi: Check for existing sessions only after authentication
Shao Mingyin <shao.mingyin@zte.com.cn>
scsi: target: Fix NULL pointer dereference in target_dev_alua_lu_gp_store()
Shao Mingyin <shao.mingyin@zte.com.cn>
scsi: target: Fix NULL pointer dereference in core_alua_do_port_transition()
Ciro Iriarte <ciro.iriarte+software@gmail.com>
scsi: target: core: Parse APTPL res_type and res_scope as hex
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet: zns: return the namespace lookup error for Identify
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet: use overflow-safe range checks in the file backend
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet: handle short reads and writes in the file backend
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet-tcp: only wait for in-capsule data for inline SGLs
Shao Mingyin <shao.mingyin@zte.com.cn>
nvmet-fc: reject duplicate queue IDs on Create Connection
Shao Mingyin <shao.mingyin@zte.com.cn>
nvme-tcp: require the R2T offset to match the data sent
Shao Mingyin <shao.mingyin@zte.com.cn>
nvme-loop: release the target request when SG setup fails
Shao Mingyin <shao.mingyin@zte.com.cn>
nvme-auth: use the parsed offset for the DH-CHAP key
Christian Schmidbauer <opensource@grische.xyz>
net: stmmac: honour Rx checksum errors in the AF_XDP zero-copy path
Christian Schmidbauer <opensource@grische.xyz>
net: stmmac: dwmac1000: don't discard frames with only a checksum error
Nathan Chancellor <nathan@kernel.org>
net: microchip: encx24j600: Avoid unsequenced accesses to jiffies in encx24j600_tx()
Anthony Pighin <anthony.pighin@nokia.com>
net: gianfar: clear the pending Rx skb when freeing the Rx ring
Svyatoslav Nikolenko <nsvatoslav515@gmail.com>
net: e1000: fix warning in iounmap on probe failure
Daniel Wade <danjwade95@gmail.com>
net: bridge: fix skb leak of reinjected link-local frames
Daejun Park <daejun7.park@samsung.com>
xfs: wait for direct I/O before swapping extents
Daejun Park <daejun7.park@samsung.com>
xfs: break layouts before swapping extents
Ding Feng <dingf3ng@gmail.com>
zonefs: ignore RLIMIT_FSIZE above LLONG_MAX in zonefs_write_check_limits()
Krystian Kaniewski <krystianmkaniewski@gmail.com>
xarray: fix index jumping backwards in xas_find()
Adrian Schlegel <me@adrianschlegel.com>
x86/mce: Do not treat cache hierarchy errors as memory errors
WeitaoWang-oc <WeitaoWang-oc@zhaoxin.com>
x86/apic/msi: Fix MSI interrupt affinity configuration
Zhao Feng <zhaofeng2@cmss.chinamobile.com>
watchdog: npcm: fix sleeping clock call in restart handler
Matt Turner <mattst88@gmail.com>
vgacon: Fall back to the dummy console if mapping VGA memory fails
Juan Agustin Niccolini <juanagusnicco@gmail.com>
tcp: Fix the SO_REUSEPORT bind cache admitting a conflicting socket
Sebastian Reichel <sebastian.reichel@collabora.com>
spi: Fix runtime PM imbalance on pump transfer message error
Yves Bieri <yves.bieri@theori.io>
sctp: do not free a new asoc peeled off while sendmsg slept
Cen Zhang <zzzccc427@gmail.com>
ocfs2: serialize inode journal access with shutdown
Cen Zhang <zzzccc427@gmail.com>
ocfs2: advance locking_state through the live cursor
Cen Zhang <zzzccc427@gmail.com>
ocfs2/dlmfs: keep the superblock alive during lock work
Karl Mehltretter <kmehltretter@gmail.com>
parisc: irq: Trace hardirq state in do_cpu_irq_mask()
Karl Mehltretter <kmehltretter@gmail.com>
parisc: Fix register corruption in 32-bit dynamic ftrace
Boyan Liu <yymhvert@gmail.com>
scsi: sd_zbc: Cap zone report count by buffer size
Shao Mingyin <shao.mingyin@zte.com.cn>
scsi: rdac: Keep the error status when controller lookup fails
Milan P. Gandhi <mgandhi@redhat.com>
scsi: mpi3mr: Validate reply frame size bounds
Jiale Yao <yaojiale02@163.com>
s390/dcssblk: Initialize device semaphore before sysfs registration
Gerald Schaefer <gerald.schaefer@linux.ibm.com>
s390/appldata: Fix error handling in appldata_generic_handler()
Bradley Morgan <brads@mainlining.org>
powerpc32/modules: Reserve a PLT entry for ftrace_regs_caller
Nathan Chancellor <nathan@kernel.org>
powerpc/xmon: Avoid unsequenced accesses to tsk in show_task()
Jiale Yao <yaojiale02@163.com>
powerpc/eeh: NUL-terminate force recovery input
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
RDMA/srpt: widen the indirect RDMA context counters
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
RDMA/srpt: reject zero-length buffer descriptors
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
RDMA/srpt: bound the indirect descriptor table to the IU
Deep Shah <deepshah146@gmail.com>
RDMA/siw: Fix use-after-free in siw_mem_id2obj()
Dezhen Lu <dezhen.lu@student.uni-tuebingen.de>
RDMA/mlx5: Fix DevX umem page size truncation for pages >= 4G
Nathan Chancellor <nathan@kernel.org>
qca_spi: Avoid unsequenced accesses to jiffies in qcaspi_netdev_tx_timeout()
Shrikanth Hegde <sshegde@linux.ibm.com>
PPC32: Fix hard_irq_disable to follow tracing and lockdep state
Jose Fernandez (Anthropic) <jose.fernandez@linux.dev>
mm/filemap: stop fault-around when the walk steps back
Aveline Noir <jm5905938@gmail.com>
mm/damon/core: reset watermark wait state on each iteration
Gautam Menghani <gautam@linux.ibm.com>
KVM: PPC: Book3S HV: XICS: Update irq_type for cleanup to work
Gautam Menghani <gautam@linux.ibm.com>
KVM: PPC: Book3S HV: XICS: Avoid NULL ptr deref in kvmppc_xive_cleanup_vcpu()
Gautam Menghani <gautam@linux.ibm.com>
KVM: PPC: Book3S HV: Take SRCU read lock around kvmppc_h_page_init() call
Gautam Menghani <gautam@linux.ibm.com>
KVM: PPC: Book3S HV: Ensure that calls to idr_alloc are synchronized
Amit Machhiwal <amachhiw@linux.ibm.com>
KVM: PPC: Book3S HV: Disable preemption around host-side HPT lock users
Axel Mierczuk <axel.mierczuk@1password.com>
ipvs: validate cport in received sync records
Zihan Xi <zihanx@nebusec.ai>
ipvs: reject FTP control ports as data ports
Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com>
ipvs: ftp: skip conntrack templates in ip_vs_ftp_out
Jaeyeong Lee <lee@jaeyeong.cc>
net/tls: serialize context removal in tls_device_down()
Joas Antonio dos Santos <joasantonio108@gmail.com>
mac802154: llsec: reject secured frames with security level 0
Henry Martin <bsdhenrymartin@gmail.com>
ip6mr: prevent info-leak in ip6mr_cache_report()
Juan Parrado <jparrado.1817@gmail.com>
Input: xpad - add support to Hori Real Arcade Pro 4
Yuan Yao <yaoyuan0329os@gmail.com>
Input: trackpoint - add new TP JYT_NDT device variant id 7
Liu Chao <liuc63@xiaopeng.com>
Input: goodix - reject a bak_ref length that cannot hold the checksum
Ivan Verbovoy <ivanverbovoy@gmail.com>
Input: da7280 - do not advertise FF_GAIN
Wentao Liang <vulab@iscas.ac.cn>
Input: cyapa - fix runtime PM leak in cyapa_update_rt_suspend_scanrate()
Ziheng Wei <zihengw03@163.com>
hwmon: (w83792d) Fix incorrect struct cast in show_temp1() and store_temp1()
Ziheng Wei <zihengw03@163.com>
hwmon: (w83791d) Fix incorrect struct cast in show_temp1() and store_temp1()
Wayne Ho <wayneho219@gmail.com>
hwmon: (sht3x) Fix overflow when writing alert limits
Guenter Roeck <linux@roeck-us.net>
hwmon: (nct6775) Fix tolerance bitmask when reading REG_FAN_MODE
Guenter Roeck <linux@roeck-us.net>
hwmon: (nct6775) Fix swapped temperature tolerance register writes
Ziheng Wei <zihengw03@163.com>
hwmon: (nct6775) Fix incorrect struct cast in beep callbacks
Rosen Penev <rosenp@gmail.com>
hwmon: (dell-smm) Reject out-of-range pwm values
Vítor Hugo Silva <vitorhg20080@gmail.com>
hwmon: (ads7871) Add error handle from spi_setup()
Xuanqiang Luo <luoxuanqiang@kylinos.cn>
iavf: fix ASQ command buffer leak on init failure
Sung Byeongchan <tjdqudcks0424@naver.com>
ieee802154: require CAP_NET_ADMIN for SIOCSIFADDR
Lianjie Wang <lian@is.s.u-tokyo.ac.jp>
gpio: virtio: compute the line names size in a size_t
Lianjie Wang <lian@is.s.u-tokyo.ac.jp>
gpio: virtio: bound the line names block by its configured size
Junyoung Jang <graypanda.inzag@gmail.com>
fuse: skip dcache instantiation for readdirplus names with embedded NUL
Miklos Szeredi <mszeredi@redhat.com>
fuse: limit name size in listxattr
Weiming Shi <bestswngs@gmail.com>
fbdev: vfb: Validate framebuffer geometry and memory size
Tim Douglas <me@timdoug.com>
fbdev: valkyriefb: keep the framebuffer mapping size fixed
Xue Haolin <xuehaolin@uniontech.com>
fbdev: sstfb: Error out if pixclock equals zero
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
fbdev: smscufx: keep the usb_device alive while ufx_data is in use
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
fbdev: smscufx: don't free registered framebuffer on probe error
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
fbdev: smscufx: allocate the size advertised in smem_len
Jianqiang Zou <jq.zou@outlook.com>
fbdev: radeonfb: reject a zero pixclock in radeonfb_check_var()
Tim Douglas <me@timdoug.com>
fbdev: macmodes: compare the pixel clock of each candidate mode
Steffen A. Mork <linux-dev@morknet.de>
fbdev: fm2fb: Fix iomem access
Aristeu Rozanski <aris@redhat.com>
EDAC/i5000: Fix slot number passed to determine_mtr()
Marek Szyprowski <m.szyprowski@samsung.com>
dma: swiotlb: Serialize restricted DMA pool initialization
Marek Szyprowski <m.szyprowski@samsung.com>
dma-coherent: serialize reserved memory pool initialization
Sumit Gupta <sumitg@nvidia.com>
cpufreq: CPPC: Set CPPC Enable register in cpu_init()
Xu Rao <raoxu@uniontech.com>
Bluetooth: MGMT: Fix runtime config status opcode
Joas Antonio dos Santos <joasantonio108@gmail.com>
Bluetooth: hci_qca: clear qca_memdump when discarding dump packets
Alex Kazinsky <a.kazinsky@ideco.ru>
blk-iocost: Fix overflow in donation weight calculation
Niklas Cassel <cassel@kernel.org>
ata: libata-scsi: fix the INC_512 bit test for SECURITY PROTOCOL IN/OUT
Chen Yuxi <chenyuxi19@huawei.com>
ASoC: wm8962: Fix broken headset button caused by wrong guard constant
yzddMr6 <yzddmr6@gmail.com>
ASoC: qcom: q6dsp-lpass-clocks: Set driver data before registering clocks
Julius Bairaktaris <julius@bairaktaris.de>
ASoC: qcom: q6asm-dai: reject compress rings larger than the DMA buffer
Vineet Gupta <vgupta@kernel.org>
ARC: io: work around GCC PR127718 in __raw_write{w,l}()
Ye Weihua <yeweihua4@huawei.com>
ALSA: pcm: oss: Restore params flag after failed reconfiguration
Zack Rusin <zack.rusin@broadcom.com>
drm/vmwgfx: validate command body sizes before parsing
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
drm/vmwgfx: return an error when a shared GB surface has no backup buffer
Zack Rusin <zack.rusin@broadcom.com>
drm/vmwgfx: log missing primary planes only once
Vladimir Popov <popov.nkv@gmail.com>
drm/vmwgfx: fix NULL pointer dereference in vmw_validation_bo_fence()
Aldo Ariel Panzardo <qwe.aldo@gmail.com>
drm/vmwgfx: do not hand the embedded sg_table to the PRIME core
Zack Rusin <zack.rusin@broadcom.com>
drm/vmwgfx: avoid underflow when stripping short GuestInfo replies
Maíra Canal <mcanal@igalia.com>
drm/vc4: Start shader code at varying offsets in its BO
Maíra Canal <mcanal@igalia.com>
drm/vc4: Fix off-by-one in the shader record BO handle check
Maíra Canal <mcanal@igalia.com>
drm/vc4: Clear the slice caches before resetting a stalled GPU
Maíra Canal <mcanal@igalia.com>
drm/vc4: Check for a validated shader before reading its thread mode
Perry Yuan <perry.yuan@amd.com>
drm/amdkfd: check CRIU SVM priv data bounds before allocating
Jiaming Fan <fan.jiaming@hotmail.com>
drm/amdgpu: only unregister the ATPX handler if we registered it
David Rosca <david.rosca@amd.com>
drm/amdgpu: Fix VCE buffer size check for DPB and input surface
Andrei Krautsou <an9949an@gmail.com>
drm/amdgpu: enable MGCG/FGCG/PERF_CLK for GC 11.0.2
Wang Jiang <jiangwang@kylinos.cn>
drm/amdgpu/gfx_v9_0: Add gfxoff quirk for Lenovo Picasso 318F
Joshua Horne <hornejd@etsu.edu>
drm/amd/pm: send smu8 sclk level indices, not the level mask
Jiaming Fan <fan.jiaming@hotmail.com>
drm/radeon: only unregister the ATPX handler if we registered it
Andrey Misiurov <amisiurov@cloudlinux.com>
drm/radeon: Bound GPIO I2C table entry count from VBIOS
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
drm/gud: avoid divide error in gud_stats_debugfs
Sechang Lim <rhkrqnwk98@gmail.com>
bpf, sockmap: Clear the redirect target after the stream parser runs
Rosen Penev <rosenp@gmail.com>
gpio: mvebu: validate ngpios before use
Sahaj Chaudhari <sahaj123.sc@gmail.com>
gpio: davinci: use controller-specific MMIO for BINTEN
Shravya KN <shravya.k-n@broadcom.com>
tg3: Fix heap overflow in unbuffered NVRAM write path
Pavan Chebbi <pavan.chebbi@broadcom.com>
tg3: Skip management FW version when APE firmware is not ready
Pavan Chebbi <pavan.chebbi@broadcom.com>
tg3: Don't fail probe if 31-bit coherent DMA mask is unsupported
Alexei Starovoitov <ast@kernel.org>
bpf, sockmap: Hold the psock of the work in sk_psock_backlog()
Alexei Starovoitov <ast@kernel.org>
bpf: Keep the MAC header in bpf_skb_change_tail()
Alexei Starovoitov <ast@kernel.org>
bpf: Fail loads from a network header that was not set
Alexei Starovoitov <ast@kernel.org>
bpf: Clear the data that bpf_msg_push_data() adds
Alexei Starovoitov <ast@kernel.org>
bpf: Require CAP_PERFMON for dumps of xlated insns
Altgelt, Max (Nextron) <max.altgelt@nextron-systems.com>
bpf: don't skip other information if xlated_prog_insns is skipped
Alexei Starovoitov <ast@kernel.org>
bpf: Fix reads past an enum in prints of BTF data
Alexei Starovoitov <ast@kernel.org>
bpf: Add the symbol of a prog before its id
Alexei Starovoitov <ast@kernel.org>
bpf: Do not allow bpf_d_path() by an id of another BTF
Kuniyuki Iwashima <kuniyu@google.com>
tcp: Don't clear saddr before ->put_port().
Nicolai Buchwitz <nb@tipi-net.de>
net: systemport: accumulate the DIM packet and byte counters
Nicolai Buchwitz <nb@tipi-net.de>
net: systemport: restart DIM from the default profile on start
Nicolai Buchwitz <nb@tipi-net.de>
net: bcmgenet: reset the Rx discard count with the ring
Nicolai Buchwitz <nb@tipi-net.de>
net: bcmgenet: accumulate the DIM packet and byte counters
Nicolai Buchwitz <nb@tipi-net.de>
net: bcmgenet: keep DIM from getting stuck after close or suspend
Zak Kemble <zakkemble@gmail.com>
net: bcmgenet: use napi_complete_done return value
Heng Qi <hengqi@linux.alibaba.com>
linux/dim: move useful macros to .h file
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: fix mirror port encoding on BCM5325 and BCM5365
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: use the correct override register 2 Gbps bit
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: fix the SRAB grant timeout check
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: initialize the jumbo frame size register offset
Andrea Parri <parri.andrea@gmail.com>
ftrace: Fix lost recursion records in ftrace_record_recursion()
Shihuang Liu <shlomojune6@gmail.com>
net: sock_reuseport: Check program type on the migration path
Christian Göttsche <cgzones@googlemail.com>
jbd2: set JBD2_LOADED under j_state_lock
Filipe Manana <fdmanana@suse.com>
btrfs: fix delayed inode count leak after failure to delete inode ref
Filipe Manana <fdmanana@suse.com>
btrfs: unfold transaction abort at __btrfs_update_delayed_inode()
Qu Wenruo <wqu@suse.com>
btrfs: do not utilize goto to implement delayed inode ref deletion
void0red <void0red@gmail.com>
btrfs: handle btrfs_del_item errors in __btrfs_update_delayed_inode
Arnav Kapoor <kapoorarnav43@gmail.com>
ASoC: SOF: control: reject out-of-range enum values
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ASoC: SOF: control: Extend the optionality of IPC ops to IPC as well
Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
ASoC: SOF: Add helper macro to be used to get an IPC ops
Stefan Ghetu <stefan.ghetu@nxp.com>
ASoC: fsl_easrc: fix context ownership on repeated hw_params
Stefan Ghetu <stefan.ghetu@nxp.com>
ASoC: fsl_asrc: fix pair ownership on repeated or failed hw_params
Binbin Deng <18983559317@163.com>
btrfs: wait for a grace period before freeing a new device
Filipe Manana <fdmanana@suse.com>
btrfs: send: fix invalid access to inline extents in clone_range()
Eric Dumazet <edumazet@kernel.org>
tun: flush uc and mc addresses in TUNSETLINK
Randy Dunlap <rdunlap@infradead.org>
chardev: GPIO common access methods: repair non-kernel-doc comment
Zhu Jun <zhujun2@cmss.chinamobile.com>
tools: gpio: Return success after monitoring requested events
Zhu Jun <zhujun2@cmss.chinamobile.com>
tools: gpio: Preserve device listing errors in lsgpio
Zhu Jun <zhujun2@cmss.chinamobile.com>
tools: gpio-hammer: Accept the maximum number of line offsets
Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
tools/bootconfig: Use the registered global tracing parameter names
Kai Vehmanen <kai.vehmanen@linux.intel.com>
ALSA: hda: intel: Release i915 power also when delayed probe fails
Uri Dar <udar@nvidia.com>
net/mlx5: E-Switch, skip vport change work for disabled vports
Han Gao <gaohan@iscas.ac.cn>
riscv: efi: Map runtime MMIO with device attributes
Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
net: qrtr: ns: keep notifying local servers after a failed send
Chris Lew <quic_clew@quicinc.com>
net: qrtr: ns: Ignore ENODEV failures in ns
Xiangwu Lai <laixiangwu@cmss.chinamobile.com>
scsi: ufs-mediatek: Restore the M-PHY power state when va09 disable fails
ChanWoo Lee <cw9316.lee@samsung.com>
scsi: ufs: ufs-mediatek: Remove unneeded code
Gal Pressman <gal@nvidia.com>
net/mlx5e: Release FIB event work flows before dropping RTNL
Imre Kaloz <kaloz@kernel.org>
net: marvell: prestera: disable port before changing its MAC mode
Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
net: prestera: update PCS driver to use neg_mode
Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
net: phylink: add PCS negotiation mode
Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
net: phylink: provide phylink_pcs_config() and phylink_pcs_link_up()
Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
net: sfp: add support for setting signalling rate
Jiayuan Chen <jiayuan.chen@linux.dev>
ipv6, calipso: fix data-race in calipso_cache_add() bucketsize check
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Fix potential ABBA deadlock at snd_pcm_action_nonatomic()
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Use guard() for locking
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Use CLASS() for fdget()/fdput()
Takashi Iwai <tiwai@suse.de>
ALSA: pcm: Use automatic cleanup of kfree()
Thomas de Gruijter <thomasdegruijter@pm.me>
Bluetooth: MSFT: Only enable the advertisement filter with monitors
Jiale Yao <yaojiale02@163.com>
usb: cdns3: report endpoint reset timeout
Eren Çakar <hey@erencakar.com>
HID: letsketch: skip string descriptors the firmware does not implement
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor-hub: Remove clients before stopping hardware
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor: custom: Register enable attribute after misc device
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor: custom: Serialize misc device reads
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor: custom: Fix state lifetime during removal
Chen Ni <nichen@iscas.ac.cn>
HID: hid-sensor-custom: Convert comma to semicolon
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
HID: hid-sensor-custom: Convert to platform remove callback returning void
Koichiro Den <den@valinux.co.jp>
dmaengine: rcar-dmac: Add missing dma_descriptor_unmap()
Zhang Shurong <zhang_shurong@foxmail.com>
dmaengine: rcar-dmac: Fix PM usage counter imbalance
SeungUk Nam <tmddnr49449@gmail.com>
dmaengine: idxd: Free the minor number when cdev setup fails
Xiangwu Lai <laixiangwu@cmss.chinamobile.com>
dmaengine: stm32-mdma: Fix runtime PM reference leak in pm_suspend
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: order the TX ring index accesses
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: publish the buffer address before OWN
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: unmap RX buffers on stop with their mapped size
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: unmap the buffer of a dropped RX frame
Rafał Miłecki <rafal@milecki.pl>
net: broadcom: bcm4908_enet: use build_skb()
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: release the TX ring on stop
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: drop a TX frame whose DMA mapping failed
Kordian Chmielewski <kudzo51@gmail.com>
net: bcm4908_enet: fix the TX ring wrap
Jakub Kicinski <kuba@kernel.org>
net: piggy back on the memory barrier in bql when waking queues
Jakub Kicinski <kuba@kernel.org>
bnxt: use new queue try_stop/try_wake macros
Jakub Kicinski <kuba@kernel.org>
ixgbe: use new queue try_stop/try_wake macros
Artemii Mashanov <ralerrdirsardx@gmail.com>
cxgb4: allocate the full ethtool filter location array
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor: custom: Disable sensor before hub close on removal
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor: custom: Set owner for misc device
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
HID: sensor-hub: Synchronize callback removal with raw events
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_core: Don't fail removing a monitor unknown to the controller
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: MSFT: Free the response of the monitor commands
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_core: Hold hdev->lock when removing advertisement monitors
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: MSFT: Protect the event prefix with hdev->lock
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: mgmt: Fix mesh transmission locking and lifetime
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: L2CAP: Don't use uninitialized EFS in l2cap_parse_conf_rsp()
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: mgmt: Reject zero multi advertising rotation duration
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: SMP: Don't create the BR/EDR channel while unregistered
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: SMP: Check smp_data before using SMP_DEV()
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_sync: Hold hdev->lock in hci_schedule_adv_instance_sync()
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_sync: Lock the lookup in hci_disable_ext_adv_instance_sync()
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: hci_core: Take req_sync lock in hci_power_on()
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: mgmt: Fix read_index_list() buffer overflow
Shawn Lin <shawn.lin@rock-chips.com>
phy: rockchip: snps-pcie3: Raise the SRAM init timeout
Michail Andreas Michalopoulos <mike.michalo@gmail.com>
ksmbd: sign the last response of a compound that ends early
Hongling Zeng <zenghongling@kylinos.cn>
phy: ti-pipe3: Fix clock leaks in init/exit error paths
Hongling Zeng <zenghongling@kylinos.cn>
phy: ti-pipe3: Fix EPROBE_DEFER handling for clock resources
Hongling Zeng <zenghongling@kylinos.cn>
phy: ti: pipe3: Fix clock resource leak on probe errors
Hongling Zeng <zenghongling@kylinos.cn>
phy: ti-pipe3: Fix ignored clock enable return value in init
Felix Gu <ustc.gu@gmail.com>
phy: ingenic: fix unbalanced regulator disable in exit
Sasha Levin <sashal@kernel.org>
selftests: drivers/s390x: Select uvdevice tests using the target architecture
Colton Lewis <coltonlewis@google.com>
irqchip/gic-v4: Use a separate lockdep class for vPE doorbell IRQs
Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
reset: scmi: Set the device for the reset controller
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v4: Unwind what its_alloc_vcpu_irqs() allocated on failure
Fuad Tabba <fuad.tabba@linux.dev>
irqchip/gic-v4: Clear the domain and fwnode pointers after freeing them
Myeonghun Pak <mhun512@gmail.com>
memory: tegra: Shut down Tegra210 EMC timers before teardown
Oleg Keri <okerixx@gmail.com>
soundwire: qcom: disable the interrupt before gating the clock
Sudeep Holla <sudeep.holla@kernel.org>
firmware: arm_scmi: Unregister notifier on enable failure
Zhengping Jiang <jiangzp@google.com>
HID: vivaldi: avoid redundant feature report reads per usage
Shashikirana H K <shashikiranah@chromium.org>
HID: vivaldi: Extract feature report value directly in vivaldi_feature_mapping()
Julian Braha <julianbraha@gmail.com>
firmware: smccc: Provide stubs for HAVE_ARM_SMCCC_DISCOVERY=n
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Revert "wifi: ath10k: Stop unanswered temperature reads"
Julian Anastasov <ja@ssi.bg>
ipvs: honor the overload state and do not enter it forever
Julian Anastasov <ja@ssi.bg>
ipvs: read flags and seqs in master atomically
Boyuan Zhang <boyuan.zhang@amd.com>
drm/amdgpu/vcn4: avoid rereading IB param length
Antoniu Miclaus <antoniu.miclaus@analog.com>
iio: frequency: admv1013: fix NULL pointer dereference on str
Christopher Hoover <ch@murgatroid.com>
iio: humidity: hid-sensor-humidity: Use per-instance callbacks
Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
iio: imu: inv_icm42600: fix parsing of all FIFO frames for odr change
Josef Bacik <josef@toxicpanda.com>
w1: w1_therm: lock the list of slaves for the bulk read
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
usb: dwc3: xilinx: re-assert resets on ZynqMP init error paths
Sean Anderson <sean.anderson@linux.dev>
usb: dwc3: Always deassert xilinx resets
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Wait for End Transfer completion on ep disable
Ihor Urazov <z0rc3r@gmail.com>
usb: typec: ucsi: acpi: Assume UCSI 1.0 on HP ZBook 8 G2i 14
Josef Bacik <josef@toxicpanda.com>
serial: rda: free the interrupt on shutdown
Thomas Gleixner <tglx@linutronix.de>
serial: rda: Use port lock wrappers
Pei Xiao <xiaopei01@kylinos.cn>
usb: dwc3: gadget: Fix use-after-free in dwc3_gadget_free_endpoints due to race condition
wuyuehong <wuyuehong@cmss.chinamobile.com>
dm snapshot: fix discard_granularity unit in snapshot_io_hints
Weijiang Zhou <weijiang.zhou@unisoc.com>
dm-verity: don't restart or panic on errors during system shutdown
Daejun Park <daejun7.park@samsung.com>
ovl: bump the impure dir version when linking a file with origin
Amir Goldstein <amir73il@gmail.com>
ovl: do not read the flags of a put upper dentry in lookup
Takashi Iwai <tiwai@suse.de>
Revert "ALSA: hda/realtek: Fix silent speaker on Higole F9B"
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: PM: Avoid initializing power management for absent devices
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Issue no-op Start Transfer only for stream endpoints
Elson Serrao <elson.serrao@oss.qualcomm.com>
usb: dwc3: clear forceRM when issuing EndTransfer
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Reinitiate stream for all host NoStream behavior
Christopher Hoover <ch@murgatroid.com>
iio: temperature: hid-sensor-temperature: Use per-instance callbacks
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
ovl: reject different lower idmaps on the same fs
Daejun Park <daejun7.park@samsung.com>
dm: fail a REQ_PREFLUSH bio with data when its preflush fails
Ming-Hung Tsai <mtsai@redhat.com>
dm: fix use-after-free when dm_get_device() widens the open mode
Kirtikumar Anandrao Ramchandani <kirtiar15502@gmail.com>
dm cache: validate the discard block size before narrowing
liuyong <pkfxxxing@gmail.com>
smb: client: validate descriptor headers before query result allocation
Krystian Kaniewski <krystianmkaniewski@gmail.com>
usb: gadget: u_serial: pin ports while TTYs are installed
Josef Bacik <josef@toxicpanda.com>
misc: vmw_vmci: wait for callbacks in event unsubscribe
Uladzislau Rezki (Sony) <urezki@gmail.com>
misc: vmw_vmci: Rename kvfree_rcu() to kvfree_rcu_mightsleep()
Joseph Qi <joseph.qi@linux.alibaba.com>
smb: client: skip NULL channel in __cifs_put_smb_ses()
Sasha Levin <sashal@kernel.org>
selftests: net: reuseport_bpf_numa: include stdbool.h
Andrey Skvortsov <andrej.skvortzov@gmail.com>
Bluetooth: btrtl: fix out of bounds memory access
Andrey Skvortsov <andrej.skvortzov@gmail.com>
Bluetooth: hci_h5: Add ability to allocate memory for private data
Karl Mehltretter <kmehltretter@gmail.com>
mtd: core: avoid double-free of OTP NVMEM device
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
gpio: mvebu: fix sleeping-while-atomic in mvebu_gpio_level_irq_mask()
Rosen Penev <rosenp@gmail.com>
gpio: mvebu: name regmaps to fix debugfs collisions
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/probes: Reject array count on non-dereference string sources
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: drain link readers before stopping removed links
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/probes: Fix user-space dereference string array store type
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211_hwsim: ignore non-generic netlink releases
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/probes: Enable newly appended probe when target event is enabled
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/probes: Check enabled and busy state before unlinking sibling probes
Ian Bridges <icb@fastmail.org>
ksmbd: skip metadata-only opens in sharing checks
Seiji Nishikawa <snishika@redhat.com>
sched/core: Do not touch SMT siblings that have not joined the core yet
Andrea Parri <parri.andrea@gmail.com>
sched/uclamp: Reject clamp values above SCHED_CAPACITY_SCALE
Stefan Haberland <sth@linux.ibm.com>
s390/dasd: Re-initialize RCD buffer with "V1.0" before every start
Andrea Parri <parri.andrea@gmail.com>
sched/deadline: Fix spurious -EPERM for migration-disabled tasks
Anton Lundin <glance@ac2.se>
hwmon: (nct6775) Handle dual use registers
Zhao Feng <zhaofeng2@cmss.chinamobile.com>
watchdog: npcm: fix clock prepare leak when setting timeout on a running watchdog
Chen Ni <nichen@iscas.ac.cn>
watchdog: npcm: Remove unnecessary NULL check before clk_prepare_enable/clk_disable_unprepare
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Fix updates of cached resolved frequency and index
Vishwaroop A <va@nvidia.com>
spi: tegra210-quad: Track DMA mapping state
Tim Menninger <tmenninger@everpuredata.com>
pNFS: avoid repeatedly cancelling I/O for the same lseg
Hyunjung Ko <hj351016@gmail.com>
tpm: flush timeout work outside buffer_mutex to avoid deadlock
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Improve suspend-resume synchronization
Cheng Yongkang <teel4res@gmail.com>
fs/splice: clamp an over-reported write_iter result
Zihan Xi <zihanx@nebusec.ai>
netfilter: nf_dup: preserve guard across NFQUEUE reinjection
Joas Antonio dos Santos <joasantonio108@gmail.com>
gtp: free the skb after handling an echo response
Yingjie Wang <x-professor@outlook.com>
tcp: free saved_syn after an RCU grace period
Jerome Mohm <jrmmhm.kernel@eldare.de>
vsock/virtio: clear vqs[] to avoid a UAF on a failed PM restore
Shashank Mohan Jain <jain.sm@gmail.com>
errseq: don't let errseq_check_and_advance() hide later errors
Zijun Hu <quic_zijuhu@quicinc.com>
errseq: eliminate special limitation for macro MAX_ERRNO
Ian Ray <ian.ray@gehealthcare.com>
mmc: sdhci-esdhc-imx: map unsupported driver type to Type B
Anfernee Cao <anferneemelokc5@gmail.com>
mmc: sunxi: fix clock and runtime PM leaks on probe failure
Runyu Xiao <runyu.xiao@seu.edu.cn>
mmc: omap: synchronize clock timer before disabling fclk
Yuansheng Yang <0xbeac@gmail.com>
KEYS: Protect pkey method checks against type removal
Mohammed EL Kadiri <med08elkadiri@gmail.com>
keys: keyctl_pkey: replace BUG with return -EOPNOTSUPP
Masami Hiramatsu (Google) <mhiramat@kernel.org>
kprobes: Switch ftrace ops when adding probe with post_handler
Masami Hiramatsu (Google) <mhiramat@kernel.org>
kprobes: Validate re-registration earlier in register_kretprobe()
Masami Hiramatsu (Google) <mhiramat@kernel.org>
kprobes: Fix error return and slot leak in __register_kprobe()
Masami Hiramatsu (Google) <mhiramat@kernel.org>
kprobes: Adopt guard() and scoped_guard()
David Carlier <devnexen@gmail.com>
tracing/eprobe: Install the trigger for every instance that enables the eprobe
Chuang Wang <nashuiliang@gmail.com>
tracing/eprobe: Iterate trace_eprobe directly
Andrew Davison <andy@dvsn.net>
ALSA: hda: Fix [codec] ID matching in patch files for IDs with bit 31 set
Olivier Louvignes <olivier@mgcrea.io>
mmc: jz4740: Remove the host before resetting the controller
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: imu: inv_mpu6050: fix swapped accel and gyro startup times
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: proximity: sx9500: ignore event config writes that don't change state
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: common: scmi_sensors: fix truncating 64-bit divisions
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: proximity: sx9360: fix sampling frequency write and available range
Kuniyuki Iwashima <kuniyu@google.com>
ipv6: Remove IPV6_ADDRFORM.
Kuniyuki Iwashima <kuniyu@google.com>
tcp: Set unhashed_state in inet_twsk_hashdance_schedule().
Kuniyuki Iwashima <kuniyu@google.com>
tcp: Do not allow buggy transitions between ehash and lhash2.
Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
tools/bootconfig: Close only opened braces in compact output
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Bluetooth: btusb: fix use-after-free in force_poll_sync
Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
serial: sh-sci: Check that the DMA cookie is valid
Salman Alghamdi <me@cipherat.com>
staging: rtl8723bs: rtw_mlme: add bounds checks before ie_length subtraction
Felix Fietkau <nbd@nbd.name>
wifi: mt76: mt7915: clear wcid mask under mutex after RCU pointer clear
Mark Bundschuh <mkbund@amazon.com>
dm: fix infinite loop in dm_blk_do_report_zones()
Ian Abbott <abbotti@mev.co.uk>
comedi: comedi_bond: Fix leak of opened device references
Wahid Khan <wahidzk0091@gmail.com>
ksmbd: refuse to read a handle that is not open for reading
Jiwoo Kim <arpe1618@gmail.com>
ksmbd: pin parent dentries in SMB2 CREATE ACL path
Andrea Parri <parri.andrea@gmail.com>
sched/core: Fix cpuset_mutex double unlock in __sched_setscheduler()
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
crypto: caam - reject overlong RSA CRT parameters
Zhao Li <enderaoelyther@gmail.com>
Bluetooth: L2CAP: Only accept LE responses to outstanding requests
Phat Dinh <phatdt1116@gmail.com>
perf/core: Do not resurrect cpuctx->cgrp after last cgroup event exit
Eric Dumazet <edumazet@kernel.org>
net: wait for in-flight device unregistrations before netns dismantle
Eric Dumazet <edumazet@kernel.org>
net: gro: do not undo remote checksum offload on merged packets
Hyunwoo Kim <imv4bel@gmail.com>
tcp: do not coalesce segments after FIN
Tim Menninger <tmenninger@everpuredata.com>
xprtrdma: serialize unmap_sync with xprt_disconnect
Jiabin Deng <dengjiabin2023@gmail.com>
net/mlx5e: SHAMPO, Disable end padding when relaxed ordering is supported
Avihai Horon <avihaih@nvidia.com>
RDMA/mlx5: Remove pcie_relaxed_ordering_enabled() check for RO write
Vlastimil Babka (SUSE) <vbabka@kernel.org>
mm/page_alloc: remove the zone_spans_pfn() check from get_pfnblock_bitmap_bitidx()
Gregory Price (Meta) <gourry@gourry.net>
mm/page_alloc: don't undo another isolation in alloc_contig_range
Gregory Price (Meta) <gourry@gourry.net>
mm/mempolicy: read the zoneref slot once in mempolicy_slab_node()
Gregory Price (Meta) <gourry@gourry.net>
mm/page_alloc: retry alloc_contig_pages() when the zonelist is rebuilt
Gregory Price (Meta) <gourry@gourry.net>
mm/hugetlb: retry the pool walk when the zonelist is rebuilt
Gregory Price (Meta) <gourry@gourry.net>
mm/page_alloc: retry allocations that raced with a zonelist rebuild
Gregory Price (Meta) <gourry@gourry.net>
mm/page_alloc: snapshot the preferred zone against shrink rebuilds
Josef Bacik <josef@toxicpanda.com>
mm, page_alloc: pass zone pointer to trace_reclaim_retry_zone
Wei Yang <richard.weiyang@gmail.com>
mm: improve code consistency with zonelist_* helper functions
Filipe Manana <fdmanana@suse.com>
btrfs: fix xattr replace when multiple xattrs are packed in the same item
Krystian Kaniewski <krystianmkaniewski@gmail.com>
Bluetooth: hci_sysfs: Fix NULL pointer dereference in device_del()
Yuya Kusakabe <yuya.kusakabe@gmail.com>
net: ipv6: keep room for the mac header in dst_dev_overhead()
Pauli Virtanen <pav@iki.fi>
Bluetooth: L2CAP: hold l2cap_conn::lock in l2cap_connect_cfm()
Shaurya Rane <ssrane_b23@ee.vjti.ac.in>
Bluetooth: L2CAP: Fix use-after-free in l2cap_unregister_user
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: L2CAP: Fix corrupted list in hci_chan_del
Eduardo Mucelli Rezende Oliveira <edumucelli@gmail.com>
bootconfig: Trim unquoted values at end of file
Su Hui <suhui@nfschina.com>
fs/stat.c: avoid harmless garbage value problem in vfs_statx_path()
Sandipan Das <sandipan.das@amd.com>
perf/x86/amd/uncore: Avoid PMU registration if counters are unavailable
Luiz Capitulino (Red Hat) <luiz.capitulino@linux.dev>
powerpc/watchdog: disable watchdog when watchdog_thresh=0
Hyunwoo Kim <imv4bel@gmail.com>
tcp: fix NULL pointer dereference when restarting a Fast Open listener
Mani Tofigh <mt4022@columbia.edu>
nvme: fix deadlock on nvme_subsystems_lock in nvme_init_subsystem()
Henry Martin <bsdhenrymartin@gmail.com>
sctp: fix skb_over_panic when adding addresses with a pending delete of another family
Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com>
fou: reserve headroom before pushing the encap header
Karl Mehltretter <kmehltretter@gmail.com>
iio: trigger: Return an error when the trigger has no free irq
Changyul Lee <lcy8047@gmail.com>
iio: trigger: free the trigger ID after device_del()
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: proximity: sx9324: fix out-of-bounds read of scan period table
Shashank Mohan Jain <jain.sm@gmail.com>
iio: magnetometer: mmc35240: leave cache-only mode before the cache sync
Alexander Sarmanow <as@discnull.de>
iio: light: vcnl4035: Fix reversed ALS mode bit
Jan Remes <jan.remes@mycroftmind.com>
iio: light: tsl2591: don't divide by zero
Jiale Yao <yaojiale02@163.com>
iio: imu: kmx61: reject duplicate event disable
Arnav Kapoor <kapoorarnav43@gmail.com>
iio: imu: inv_mpu6050: fix magnetometer scale of Y and Z axes
Vidhu Sarwal <vidhu.linux@gmail.com>
iio: humidity: am2315: fix negative temperature decoding
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
iio: hid-sensors: fix fractional part for unit exponents -7 and -8
Maximilian Czirr <maxx-cz@web.de>
iio: hid-sensor: Fix scale for magnetic north heading
Jiale Yao <yaojiale02@163.com>
iio: gyro: bmg160: reject duplicate event disable
Baek Kyu, Kim <pocj8ur4in@gmail.com>
iio: dac: mcp4725: Update the cached DAC value only on success
Nikhil Gautam <nikhilgtr@gmail.com>
iio: atlas-ezo: Fix humidity channel read support
Andrea Amer <and.amer@gmail.com>
iio: afe: rescale: expose offset if rescaler or source has one
Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
iio: accel: kxsd9: Fix potential use-after-free on removal
Billy Tsai <billy_tsai@aspeedtech.com>
dt-bindings: iio: adc: Add syscon property for multi-SCU SoCs
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: serialise MCR accesses
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: fix potential use-after-free on disconnect
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: fix potential fifo corruption
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: move initial termios update to open()
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: fix potential NULL-deref at open
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: fix potential close() use-after-free
Johan Hovold <johan@kernel.org>
USB: serial: io_edgeport: fix NULL-deref on early status
Johan Hovold <johan@kernel.org>
USB: serial: upd78f0730: fix NULL-deref on hangup
Tristan Madani <tristan@talencesecurity.com>
USB: serial: sierra: validate URB length in instat callback
Hui Peng <benquike@gmail.com>
USB: serial: garmin_gps: validate packet data length in nat_receive()
Josef Bacik <josef@toxicpanda.com>
w1: w1_therm: leave the slaves of other families alone
Josef Bacik <josef@toxicpanda.com>
w1: use the bus mutex for the "rw" file
Josef Bacik <josef@toxicpanda.com>
w1: remove the master's files before taking its locks
Josef Bacik <josef@toxicpanda.com>
w1: netlink: drop the slave after the bus is unlocked
Josef Bacik <josef@toxicpanda.com>
w1: ds28e04: use the bus mutex to talk on the bus
Josef Bacik <josef@toxicpanda.com>
w1: ds2805: use the bus mutex to talk on the bus
Josef Bacik <josef@toxicpanda.com>
w1: ds2482: set the strong pull-up with its byte
Josef Bacik <josef@toxicpanda.com>
w1: don't hold list_mutex while a slave is torn down
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
usb: dwc3: xilinx: fix system suspend and resume PHY handling
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Track a timed out End Transfer
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Reset endpoint flags on controller start
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Reject requests to a disabled endpoint
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Recover from End Transfer timeout
Thinh Nguyen <Thinh.Nguyen@synopsys.com>
usb: dwc3: gadget: Clear delayed stop on End Transfer completion
Brian Ellis <brianellis@gotenna.com>
usb: gadget: u_serial: fix NULL deref in gs_close() after failed open
Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>
usb: gadget: f_ncm: restart the TX timer if the TX freelist is empty
Sonali Pradhan <sonalipradhan@google.com>
usb: gadget: f_midi: fix UAF race during IN request handling
Yu Zhang <yuz08559@gmail.com>
usb: gadget: f_mass_storage: take filesem in nofua store to fix backing-file UAF
Uttkarsh Aggarwal <uttkarsh.aggarwal@oss.qualcomm.com>
usb: typec: ucsi: Set ucsi->connector before enabling notifications
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
usb: usbtest: prevent divide by zero in simple_io() with zero length
Olivier Kaloudoff <olivier.kaloudoff@gmail.com>
usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
Josef Bacik <josef@toxicpanda.com>
USB: serial: oti6858: fix the teardown order in close
Johan Hovold <johan@kernel.org>
USB: serial: garmin_gps: fix deadlock on reset request
Rishabh Jain <rishabh.jain1198@gmail.com>
usb: pci-quirks: always assert xHCI OS ownership
Jiri Slaby (SUSE) <jirislaby@kernel.org>
tty: fix misapplied compat_ptr() in tty_compat_ioctl()
Josef Bacik <josef@toxicpanda.com>
serial: samsung: put the previous baud clock
Josef Bacik <josef@toxicpanda.com>
serial: samsung: don't leak the tty on an RX IRQ
Josef Bacik <josef@toxicpanda.com>
serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud
Jiale Yao <yaojiale02@163.com>
misc: ibmvmc: initialize HMC state before device registration
Guangshuo Li <lgs201920130244@gmail.com>
misc: bcm-vk: fix DMA allocation memory leak
Josef Bacik <josef@toxicpanda.com>
iio: hid-sensors: fix a division by zero
Josef Bacik <josef@toxicpanda.com>
iio: addac: ad74413r: fix the values of set_multiple
Josef Bacik <josef@toxicpanda.com>
comedi: vmk80xx: report failed transfers of the K8061
Josef Bacik <josef@toxicpanda.com>
comedi: ni_tio: Fix overflow of the clock period
Josef Bacik <josef@toxicpanda.com>
comedi: ni_660x: don't poll without a DMA channel
Josef Bacik <josef@toxicpanda.com>
comedi: addi_apci_1500: fix clearing of the gate enable
Chris Mason <mason@kernel.org>
vt: serialise the producers of the flip buffer
Mikulas Patocka <mpatocka@redhat.com>
dm-thin: fix parsing of feature arguments
Mikulas Patocka <mpatocka@redhat.com>
dm-thin: fix leak if __set_snapshot_details fails
Jay Vadayath <jay@artiphishell.com>
dm-raid: bound array_position before indexing failed_devices
Mikulas Patocka <mpatocka@redhat.com>
dm-integrity: don't attempt to commit journal on disabled device
Sinan Polat <sinan86polat@gmail.com>
dm-integrity: don't recalculate with HMAC because of a dirty bitmap
Josef Schlehofer <pepe.schlehofer@gmail.com>
dm-crypt: defer async write submission to write thread
Mikulas Patocka <mpatocka@redhat.com>
dm-cache: fix ending a cursor that never began
Mikulas Patocka <mpatocka@redhat.com>
dm-cache: fix NULL pointer dereference on open failure
Kyrylo Biryuk <illofspeed@gmail.com>
dm zoned: do not reclaim a random zone into another random zone
Kyrylo Biryuk <illofspeed@gmail.com>
dm zoned: back off when reclaim cannot make progress
Chen Cheng <chencheng@fnnas.com>
dm snapshot: fix discard writing into the next COW chunk
Mikulas Patocka <mpatocka@redhat.com>
dm persistent data: don't leak bufio buffer if find_leaf fails
Mikulas Patocka <mpatocka@redhat.com>
dm persistent data: don't ignore writeback errors
Mikulas Patocka <mpatocka@redhat.com>
dm persistent data: test return value of node_copy
Mikulas Patocka <mpatocka@redhat.com>
dm-sysfs: fix misbehavior if kobject_init_and_add fails
Yingjie Wang <1075151112@qq.com>
dm thin: avoid wrapping no_space_timeout
Yingjie Wang <x-professor@outlook.com>
dm mpath: cap queue_if_no_path_timeout_secs
shao.mingyin@zte.com.cn <shao.mingyin@zte.com.cn>
dm mpath: fix buffer overflow in parse_hw_handler()
Zhao Feng <zhaofeng2@cmss.chinamobile.com>
dm crypt: fix use of uninitialized percpu_counter in ctr error path
Edward Adam Davis <eadavis@sina.com>
dm cache: reject kcopyd client destory if it setup failed
shao.mingyin@zte.com.cn <shao.mingyin@zte.com.cn>
dm log userspace: drop the device reference on error
Joseph Qi <joseph.qi@linux.alibaba.com>
smb: client: hold the inode across cifs_oplock_break()
Paulo Alcantara <pc@manguebit.org>
smb: client: flush deferred handles of other names before a hard link open
Paulo Alcantara <pc@manguebit.org>
smb: client: don't block dying tasks waiting for writeback on close
Yifan Zhang <yfzhang23@stu.pku.edu.cn>
smb: client: bound invalid NTLMSSP signature diagnostic
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
gpio: sodaville: fix use-after-free bug when registering the irqchip
Cunhao Lu <1579567540@qq.com>
gpio: rockchip: Fix debounce arithmetic for GPIO v2
Guangshuo Li <lgs201920130244@gmail.com>
gpio: brcmstb: fix UAF after IRQ domain setup failure
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: bound pending OCB station allocations
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: bound pending IBSS station allocations
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: recheck the OCB station limit before insertion
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: recheck the IBSS station limit before insertion
Zhao Li <enderaoelyther@gmail.com>
wifi: mac80211: recheck injected headers after removing FCS
Wahid Khan <wahidzk0091@gmail.com>
wifi: cfg80211: don't truncate the merged MBSSID profile length
Zhao Li <enderaoelyther@gmail.com>
wifi: cfg80211: release rejected nontransmitted BSS reference
Mehmet Fide <mehmet.fide@screeningeagle.com>
wifi: ath9k_htc: do not start ANI before the first channel is set
Masami Hiramatsu (Google) <mhiramat@kernel.org>
tracing/eprobe: Fix 1-byte signed field fetch in get_event_field()
Weiming Shi <bestswngs@gmail.com>
sctp: reset stored flag for each association
Tim Budding <tim.budding@gmail.com>
sctp: report the partially delivered MID in PARTIAL_DELIVERY_ABORTED
Tim Budding <tim.budding@gmail.com>
sctp: fix I-FORWARD-TSN handling of fragments on other streams
Andrey Misiurov <andrey.misyrov@gmail.com>
sctp: fix ASCONF address change on single-homed hosts
Kyle Zeng <kylebot@openai.com>
sctp: avoid requeueing pending control chunks
Tim Budding <tim.budding@gmail.com>
sctp: abort unordered partial delivery when its message is skipped
Stefan Haberland <sth@linux.ibm.com>
s390/dasd: Don't trust userspace-supplied result field in format check
Stefan Haberland <sth@linux.ibm.com>
s390/dasd: Fix wrong free and refcount leak in build_check_tcw error path
Stanislav Aleksandrov <lightofmysoul@gmail.com>
hwmon: (max31760) Report 0 RPM before the first fan speed measurement
Stanislav Aleksandrov <lightofmysoul@gmail.com>
hwmon: (max31760) Leave standby mode at probe
Stanislav Aleksandrov <lightofmysoul@gmail.com>
hwmon: (max31760) Fix the local temperature limit registers
Sudeep Holla <sudeep.holla@kernel.org>
hwmon: (scmi) Check channel config allocation
Pablo Mazzini <pmazzini@gmail.com>
hwmon: (sy7636a) fix negative temperatures
Rupesh Majhi <zoone.rupert@gmail.com>
hwmon: (aht10) Fix update_interval overflow on 64-bit
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
xen/pvcalls: destroy the per-socket workqueue on release
Yehyeong Lee <yhlee@isslab.korea.ac.kr>
xen/pvcalls: unwind pvcalls_new_active_socket() step by step
Andrey Misiurov <andrey.misyrov@gmail.com>
xen/gntdev: fix deadlock between map ioctl and mmap
Dave Hansen <dave.hansen@linux.intel.com>
x86/mm: Ensure write visibility during LDT installation
Guanglei Zhu <zhugl3@xiaopeng.com>
tpm: eventlog: check the payload size before reading tag events
Takashi Iwai <tiwai@suse.de>
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path
Hungyu Lin <dennylin0707@gmail.com>
timekeeping: Read getboottime64() offsets under the sequence counter
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
software node: only let the owner release a managed node
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: Cache post-resolution target frequency in __resolve_freq()
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
cpufreq: intel_pstate: Clear last written P-state value on suspend
Li RongQing <lirongqing@baidu.com>
cpufreq: acpi-cpufreq: fix P-state index mismatch in extract_io()
Zhao Gongyi <zhaogongyi@bytedance.com>
arm64: ptrace: don't warn on missing siginfo in a group-stop
Cheng Yongkang <teel4res@gmail.com>
fs/proc: fix the write length returned by proc_sys_call_handler()
HyeongJun An <sammiee5311@gmail.com>
fs/adfs: bound directory entry name length in adfs_fplus_getnext()
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
crypto: essiv - fix use-after-free in AEAD path
Zhao Li <enderaoelyther@gmail.com>
Bluetooth: L2CAP: Keep recvmsg from resuming a closed channel
YuanZhe Liu <25031212351@stu.xidian.edu.cn>
Bluetooth: hci_qca: fix use-after-free in ibs debugfs files
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
PM: runtime: Update last_busy in rpm_resume() for active devices
Joas Antonio dos Santos <joasantonio108@gmail.com>
openvswitch: advance by the real header length in get_ipv6_ext_hdrs()
Tim Menninger <tmenninger@everpuredata.com>
NFSv4: Prevent indefinite waits for out-of-order OPEN stateids
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: act_ife: require a full Ethernet header on egress
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: act_ife: encode configured zero metadata values
Jamal Hadi Salim <jhs@mojatatu.com>
net/sched: sch_teql: reject qdiscs from another network namespace
Cen Zhang (Microsoft) <cenzhang@linux.microsoft.com>
netfilter: xt_recent: do not call remove_proc_entry() under recent_lock
Erni Sri Satya Vennela <ernis@linux.microsoft.com>
hv_netvsc: Stop PPI parsing on invalid metadata
Chengfeng Ye <nicoyip.dev@gmail.com>
ipvs: fix protocol data lifetime during namespace teardown
Chengfeng Ye <nicoyip.dev@gmail.com>
ipvs: Defer application parent freeing until after RCU readers
Yingjie Wang <1075151112@qq.com>
ipv6: reject routes without an inet6_dev
Xia Yan <yanxia@cmss.chinamobile.com>
ipv6: fix cached route reuse for control messages
Daniël Trujillo <datrujillo@nvidia.com>
ipv4: fib_trie: prevent speculative out-of-bounds child access
Kyle Zeng <kylebot@openai.com>
ipv4: keep XFRM headers out of corked skb lengths
Kyle Zeng <kylebot@openai.com>
mptcp: reject DATA_ACKs against a reversed send interval
Zixuan Chai <petalzu987@gmail.com>
seg6: validate state in netfilter continuations
Rishikesh Jethwani <rjethwani@purestorage.com>
tls: only install push_pending_record for a TX context
Hungyu Lin <dennylin0707@gmail.com>
tsacct: Keep task begin times stable across suspend
Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
net: mana: report RX checksum offload for IPv6
Jens Axboe <axboe@kernel.dk>
net: leave O_NONBLOCK to the sendmsg and recvmsg syscalls
Tapio Reijonen <tapio.reijonen@vaisala.com>
net: dsa: microchip: initialize the IRQ access mutex
Jun Yang <junvyyang@tencent.com>
net: bridge: use one headroom snapshot for ND replies
Kyle Zeng <kylebot@openai.com>
net/rds: Do not unpin a page after a failed atomic pin
Davidlohr Bueso <dave@stgolabs.net>
mctp: accept MSG_CMSG_COMPAT in recvmsg
Kyle Zeng <kylebot@openai.com>
macsec: reject frames that decapsulate into runt Ethernet frames
Edward Adam Davis <eadavis@qq.com>
ext4: avoid infinite loops caused by residual data
Jean-Paul Sergent <jpsergent@gmail.com>
net: dst_metadata: fix memcmp overread in skb_metadata_dst_cmp
Gregory Price (Meta) <gourry@gourry.net>
mm/page_alloc: detect zonelist rebuilds from memory hot-add
Josef Bacik <josef@toxicpanda.com>
mm/page_alloc: keep the pagesets of an empty zone
Josef Bacik <josef@toxicpanda.com>
mm/memory_hotplug: resize zones under their seqlock
Gregory Price (Meta) <gourry@gourry.net>
mm/mmzone: read the zoneref slot once in zonelist_zone()
Christian Brauner <brauner@kernel.org>
aio: don't let exit_aio() return before complete() is done
Mani Tofigh <mt4022@columbia.edu>
eventpoll: wake the next waiter when a woken waiter is killed
Igor Velkov <iav@iav.lv>
mmc: meson-gx: name the limit of the CMD_CFG timeout field
Igor Velkov <iav@iav.lv>
mmc: meson-gx: report the longest busy wait the controller can do
Igor Velkov <iav@iav.lv>
mmc: meson-gx: honour the busy timeout for R1b commands
Igor Velkov <iav@iav.lv>
mmc: meson-gx: report busy from DAT0 alone
Anfernee Cao <anferneemelokc5@gmail.com>
mmc: mmci: fix DMA channel leak when mmc_add_host() fails
Steven Rostedt <rostedt@goodmis.org>
tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc
Gichoon Han <gichoon.han@samsung.com>
ALSA: usb-audio: Drop capture packets with bogus actual_length
Sergei Nizovtsev <snizovtsev@cloudlinux.com>
ALSA: caiaq: Kill EP1 URB before unregistering the input device
Zhiqi Zhang <zhiqizhangg@gmail.com>
bootconfig: Allow keys with the maximum supported depth
Jarkko Sakkinen <jarkko@kernel.org>
KEYS: Verify the key identity in __key_unlink_begin
Jarkko Sakkinen <jarkko@kernel.org>
KEYS: Reject descriptions larger than KEY_MAX_DESC_SIZE
Yishai Hadas <yishaih@nvidia.com>
RDMA/vmw_pvrdma: Pin QP and SRQ rings writable to match device DMA write access
Eric Dumazet <edumazet@kernel.org>
tun: clear stale skb->protocol of NAPI frags skbs
Pauli Virtanen <pav@iki.fi>
Bluetooth: L2CAP: take chan->lock for l2cap_chan_add/ready/del
Brian Norris <briannorris@chromium.org>
PM: runtime: Only queue an idle check for RPM-linked suppliers (part 2)
Shakeel Butt <shakeel.butt@linux.dev>
kernfs: avoid READ_ONCE() on a kgid_t in kernfs_new_node()
John Johansen <john.johansen@canonical.com>
apparmor: advertise that sctp is being mediated
John Johansen <john.johansen@canonical.com>
apparmor: fix check SCTP bind, and connect permission checks
Kyle Zeng <kylebot@openai.com>
tcp: avoid double destroy in tcp_abort() of an unaccepted child
Jakub Kicinski <kuba@kernel.org>
eth: bnxt: don't leak buffers when XDP agg buffer allocation fails
Jérémy Jean <Jeremy.Jean@oss.cyber.gouv.fr>
apparmor: check connect permission for SCTP
Maxime Bélair <maxime.belair@canonical.com>
apparmor: convert duplicated dfa transitions to match_char()
Maxime Bélair <maxime.belair@canonical.com>
apparmor: fix table_size() integer overflow on 32 bit
Kunhai Dai <daikunhai@didiglobal.com>
blk-iocost: publish hweights as one atomic value
Josef Bacik <josef@toxicpanda.com>
drbd: stop the start_resync timer of a dying device
Josef Bacik <josef@toxicpanda.com>
blk-mq: exit the hctxs of a queue under tag_list_lock
Dominik Maier <dmnk@google.com>
xattr: always invoke cap_convert_nscap() for security.capability writes
Linkui Xiao <xiaolinkui@kylinos.cn>
net: bridge: netlink: do not clear the vlan info dump error
Chuck Lever <cel@kernel.org>
tls: Honor O_NONBLOCK in tls_sw_splice_read()
Josef Bacik <josef@toxicpanda.com>
blk-throttle: make blkio.reset_stats reset I/O counts
Josef Bacik <josef@toxicpanda.com>
blk-throttle: pass the I/O counts of a dead group on
Josef Bacik <josef@toxicpanda.com>
blk-iolatency: flush enable_work after going offline
Josef Bacik <josef@toxicpanda.com>
blk-cgroup: don't free a blkg with its punt work queued
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: return complete and aligned stream information
Rishikesh Jethwani <rjethwani@purestorage.com>
tls: keep TX and RX hardware offload on the same device
Fernando Fernandez Mancera <fmancera@suse.de>
devlink: region: fix snapshot id leak on kernel-allocated ids
Allison Henderson <achender@kernel.org>
net/rds: do not fail init when CONFIG_SYSCTL=n
Paolo Abeni <pabeni@redhat.com>
gtp: hold RCU in gtp_genl_send_echo_req()
Tal Zussman <tz2294@columbia.edu>
ceph: wait for pending fscache write in write_folio_nounlock()
Dimitris Charisis <dchar@cslab.ece.ntua.gr>
maple_tree: fix maple_range_64 crashes in RCU mode
Pooyan Azad <pooyan.azadparvar@gmail.com>
zram: fix short reads from block_state
Willem de Bruijn <willemb@google.com>
virtio-net: fix frag overflow in big packets receive
Sasha Levin <sashal@kernel.org>
selftests/proc: proc-pid-vm: fix unused variable warning on non-x86
Namjae Jeon <linkinjeon@kernel.org>
ksmbd: disconnect on invalid encryption transform flags
Henry Hu <huhai@kylinos.cn>
ksmbd: report IPv4 and IPv6 addresses independently in iface query
Henry Hu <huhai@kylinos.cn>
ksmbd: fix iface_list use-after-free during server reset
Ovidiu Panait <ovidiu.panait.rb@renesas.com>
net: stmmac: Track the TX DMA threshold per queue
Eric Dumazet <edumazet@kernel.org>
ip6mr: clear skb->cb[] in reg_vif_xmit()
Rosen Penev <rosenp@gmail.com>
net: phy: marvell: keep WOL_EIE across interrupt reconfiguration
James Hilliard <james.hilliard1@gmail.com>
xsk: freeze deferred pool teardown without blocking unregister
Yongzhao Chen <yongzhao.derek@gmail.com>
net: phy: qca83xx: read resolved QCA8337 link status
Serhat Kumral <serhatkumral1@gmail.com>
RDMA/mlx5: Validate priority in STEERING_ANCHOR_CREATE handler
Cen Zhang <zzzccc427@gmail.com>
ALSA: aloop: Keep shared timer callbacks alive through close
Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
pNFS/flexfiles: make pg_init retry loops killable
Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
nfsv4/pnfs: use the MDS authflavor for data server connections
Cen Zhang <zzzccc427@gmail.com>
ALSA: jack: Pin the module while debugfs files are open
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
netfilter: flowtable: reset transport header after nf_flow_encap_pop()
Adrian Ambrozewicz <aambrozewicz@nvidia.com>
gpiolib: clear the event clock flags when a line is released
Woojin Ji <random6.xyz@gmail.com>
bpf: Zero-extend the index in inlined bpf_get_func_arg()
Josef Bacik <josef@toxicpanda.com>
bpf, cpumap: Hold the device of frames in the queue
Josef Bacik <josef@toxicpanda.com>
bpf: Keep the symbols of a program until it has ended
Alexei Starovoitov <ast@kernel.org>
bpf: Don't let an extension reach further into the context than its target
Alexei Starovoitov <ast@kernel.org>
bpf: Don't take an extension for a writable raw tracepoint program
Josef Bacik <josef@toxicpanda.com>
bpf: Assume no bounds for a writable tp with tail calls
Josef Bacik <josef@toxicpanda.com>
bpf: Assume no bounds for buffers behind a tail call
Josef Bacik <josef@toxicpanda.com>
bpf: Read the probe of a perf event under event_mutex
Josef Bacik <josef@toxicpanda.com>
bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit
Josef Bacik <josef@toxicpanda.com>
bpf: Reject sleepable programs for task_vma iterator
Josef Bacik <josef@toxicpanda.com>
bpf: Use the frame mem type in devmap egress XDP
Yuan Chen <chenyuan@kylinos.cn>
bpf: Claim the per-CPU send_signal irq_work before filling it
Tal Zussman <tz2294@columbia.edu>
btrfs: update the inode item when removing a free space inode
Tal Zussman <tz2294@columbia.edu>
btrfs: drop the extent maps of the written part of a failed ordered extent
Viktor Menshin <ripeeerr@gmail.com>
ALSA: hda/realtek: Fix hiss/crackle on Lenovo Xiaoxin 14 GT (17aa:3912)
Ju Nan <junan76@163.com>
pinctrl: stm32: Fix the unit of the hwspinlock timeout
Eric Dumazet <edumazet@kernel.org>
tcp: use the echoed source route in cookie_v4_check()
Theodor Arsenij Larionov Trichkine <theodorlarionov@gmail.com>
net: use the full socket in sk_mc_loop()
Haotian Zhang <vulab@iscas.ac.cn>
ASoC: rockchip: fix device node reference leak in rk3288_hdmi_analog
Cezary Rojewski <cezary.rojewski@intel.com>
ASoC: Intel: avs: Unprepare a stream when recovery occurs
Myeonghun Pak <mhun512@gmail.com>
ASoC: rt5645: Shut down the button timer on removal
Honggang LI <honggangli@163.com>
RDMA/rxe: Fix out-of-range unsigned-to-signed conversion for RDMA message in 2GiB size
Sahaj Chaudhari <sahaj123.sc@gmail.com>
spi: omap2-mcspi: handle DMA setup failures
Zhu Ling <zhuling2709@phytium.com.cn>
irqchip/gic: Fix UBSAN shift-out-of-bounds in GIC helpers
Pengpeng Hou <hppiscas@163.com>
irqchip/mst-intc: Validate the DT interrupt range
David Howells <dhowells@redhat.com>
rxrpc: Fix sendmsg length
Jiayuan Chen <jiayuan.chen@linux.dev>
veth: clear rx queue hint in veth_xmit
Kevin Dewald <kevin@simpleble.org>
Bluetooth: hci_event: Fix LE link drop on remote features command status
Pauli Virtanen <pav@iki.fi>
Bluetooth: hci_sync: fix mesh adv timeout units
Chris Lu <chris.lu@mediatek.com>
Bluetooth: btmtk: Validate the firmware layout before parsing it
Karl Mehltretter <kmehltretter@gmail.com>
ARM: 9486/1: set !LPAE MAX_PHYSMEM_BITS to 32 and remove supersection mappings
Namhyung Kim <namhyung@kernel.org>
perf symbol: Add missing symsrc__destroy() for libbfd
Namhyung Kim <namhyung@kernel.org>
perf symbol: Fix symbol loading from libbfd
Abel Vesa <abel.vesa@oss.qualcomm.com>
clk: qcom: mmcc-msm8960: Configure PLL15 only on APQ8064
Weiming Shi <bestswngs@gmail.com>
fs/ntfs3: do not mark frame pages uptodate on read error
Yonatan Nachum <ynachum@amazon.com>
RDMA/efa: Fix race between admin command timeout and completion
Cen Zhang <zzzccc427@gmail.com>
ALSA: rawmidi: Drain input work before freeing the runtime
Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
platform/x86/amd/pmc: clear devm-managed pointers on remove to prevent stale reuse
Ali Ahmet Memiş <aliamemis@disroot.org>
ALSA: hda: intel: Don't free card in the probe work
Filipe Manana <fdmanana@suse.com>
btrfs: defrag: fix check to see if next extent can be defragged too
Filipe Manana <fdmanana@suse.com>
btrfs: fix off-by-one end offset check in report_setget_bounds()
Filipe Manana <fdmanana@suse.com>
btrfs: fix incomplete iteration over fs state when logging messages
Guanghui Yang <3497809730@qq.com>
btrfs: roll back sprout setup after device add failure
Adrián Larumbe <adrian.larumbe@collabora.com>
drm/panfrost: Fix PM refcnt and autosuspend issues at device probe/remove
Ali Ahmet Memiş <aliamemis@disroot.org>
ALSA: control_led: Fix deadlock between sysfs writes and card disconnect
Kees Cook <kees@kernel.org>
seq_buf: Do not print an empty line from an overflowed seq_buf_do_printk()
Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
mailbox: arm_mhu_db: Remove redundant mbox_controller_unregister() on probe failure
Anup Vishwakarma <anup.vishwakarma@oss.qualcomm.com>
mailbox: qcom-ipcc: Remove redundant mbox_controller_unregister() on probe failure
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Preserve the LCPA I/O address space
Jacob Moroni <jmoroni@google.com>
RDMA/core: Clear driver_udata before destroying objects in rdma_core
Quanye Yang <quanyeyang@proton.me>
RDMA/rtrs-clt: Fix recv repost to satisfy ib_drain_rq
Tony Luck <tony.luck@intel.com>
fs/resctrl: Ensure default group reports tasks on monitor-only systems
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: fix mbssid/rnr allocation in beacon data
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: limit injected HT/VHT MCSes
Johannes Berg <johannes.berg@intel.com>
wifi: nl80211: reject zero RNR/MBSSID elements
Haotian Zhang <vulab@iscas.ac.cn>
cpufreq: qcom-cpufreq-hw: fix device node refcount leak in phandle parsing
Takashi Iwai <tiwai@suse.de>
ALSA: hda: Don't free card at probe error in vga_switcheroo handler
Takashi Iwai <tiwai@suse.de>
ALSA: hda: Use linked list for jack table
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
net: stmmac: fix TX coalesce race and div-by-zero in XDP/legacy path
Dmitry Morgun <d.morgun@ispras.ru>
fs/ntfs3: check return values in indx_delete_entry()
Melissa Wen <mwen@igalia.com>
drm/amd/display: copy function name into dcn_fpu trace event
Melissa Wen <mwen@igalia.com>
drm/amd/display: declare amdgpu_dm_atomic_state_template as an event class
Ryan Leung <untilscour@protonmail.com>
wifi: mt76: fix wcid->pktid corruption in mt76_wcid_cleanup()
Devin Wittmayer <lucid_duck@justthetip.ca>
wifi: mt76: mt7921: check drv_pmctrl return in the PCIe reset path
Felix Fietkau <nbd@nbd.name>
wifi: mt76: mt7915: guard firmware memory dump write on disabled memdump
Felix Fietkau <nbd@nbd.name>
wifi: mt76: mt7915: unregister thermal cooling device on hwmon failure
Andrei Vagin <avagin@google.com>
proc: report SIGEV_NONE in /proc/pid/timers if target task has died
Eric Dumazet <edumazet@kernel.org>
ipv4: reserve one IP ID per segment for UDP GSO packets
Mike Snitzer <snitzer@kernel.org>
pNFS/flexfiles: don't reset to MDS for v4 error when previous layout forbid it
Mike Snitzer <snitzer@kernel.org>
pNFS/flexfiles: don't read through MDS when previous layout forbid it
Mike Snitzer <snitzer@kernel.org>
pNFS/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS over the mdsthreshold hint
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate memcpy configuration
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate fixed physical channel indexes
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix V4B event group mapping
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix event group bounds
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix logical channel bounds check
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Reject direction changes after allocation
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Validate DMA specifier length
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix LCLA allocation order
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix failed start cleanup
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Recover coalesced cyclic callbacks
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix cyclic transfer residue
Linus Walleij <linusw@kernel.org>
dmaengine: ste_dma40: Fix physical cyclic capability
Qing Ming <a0yami@mailbox.org>
dlm: validate node weights before building member array
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drm/msm/a5xx: don't read the GPMU registers on GPUs without a GPMU
Guangshuo Li <lgs201920130244@gmail.com>
spi: bcm63xx-hsspi: Disable runtime PM on remove
Guangshuo Li <lgs201920130244@gmail.com>
spi: fsl: unmap immr_spi_cs on remove
Nicolin Chen <nicolinc@nvidia.com>
iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Advance the write pointer over the data written
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Do not write a partial physical block to a zoned device
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Report the residual of a write
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Enforce physical block alignment of zoned writes
Niklas Cassel <cassel@kernel.org>
scsi: scsi_debug: Avoid 32-bit overflow in WRITE SCATTERED offsets
Yuan Chen <chenyuan@kylinos.cn>
bpf: Roll back freplace link state when bpf_arch_text_poke() fails
Mostafa Saleh <smostafa@google.com>
iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs
Yuya Kusakabe <yuya.kusakabe@gmail.com>
seg6: fix HMAC validation when an extension header precedes the SRH
Hangbin Liu <liuhangbin@gmail.com>
ipv6: sr: restruct ifdefines
Andrea Mayer <andrea.mayer@uniroma2.it>
seg6: factor out End lookup nexthop processing to a dedicated function
Liu Dalin <liudalin@kylinsec.com.cn>
rtc: ftrtc010: use devm clock APIs to fix use-after-disable in remove
Takashi Iwai <tiwai@suse.de>
ALSA: usb-audio: Fix UAC2 mixer unit request handling
Abdifatah Suruur <suruurism@gmail.com>
vfio/fsl-mc: prevent read-only region mappings from becoming writable
Abdifatah Suruur <suruurism@gmail.com>
vfio/platform: prevent read-only region mappings from becoming writable
Jiale Yao <yaojiale02@163.com>
RDMA/mlx4: Do not allow the user to write to the clock page
Venkat Rao Bagalkote <venkat88@linux.ibm.com>
powerpc/interrupt: Use early_radix_enabled() in NMI real-mode guard
Ian Rogers <irogers@google.com>
perf build: Clean libperf-gtk.so in 'make clean'
Ian Rogers <irogers@google.com>
perf test code-reading: Fix duplicate kernel maps and machine leak
bui duc phuc <phucduc.bui@gmail.com>
ASoC: mediatek: mt8192: Propagate errors in I2S DAI DAPM event handlers
Yishai Hadas <yishaih@nvidia.com>
RDMA/mlx5: Set QP event handler before firmware QPC insertion
Phil Sutter <phil@nwl.cc>
netfilter: nfnetlink: Fix for interrupted hook dumps
Shashank Mohan Jain <jain.sm@gmail.com>
bitmap: bitmap_parselist(): don't wrap around on a huge group size
Shashank Mohan Jain <jain.sm@gmail.com>
bitmap: bitmap_parselist(): reject trailing characters after group size
Shashank Mohan Jain <jain.sm@gmail.com>
bitmap: bitmap_parse(): reject non-hex character before 8 digits
Danish Khateeb <danishkhateeb03@gmail.com>
tools/nolibc: fix FD_SET(), FD_CLR() and FD_ISSET() on 64-bit
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
ARM: dts: qcom: msm8974: add MDSS reset
Andrei Vagin <avagin@google.com>
x86/fpu: Fix potential underflow in xstate_calculate_size()
Paul Sajna <sajattack@postmarketos.org>
arm64: dts: qcom: sdm845-lg: fix sdcard pinctrl nodes
Sudeep Holla <sudeep.holla@kernel.org>
ACPI: PCC: Free channel on OpRegion deactivation
Yibo Tan <lhfff@tju.edu.cn>
sysctl: unregister tables before freeing bitmap
Hao Sun <sunhao.th@gmail.com>
bpf: Fix uninit read for helper mem args on partially spilled slots
Shrikanth Hegde <sshegde@linux.ibm.com>
powerpc/ftrace: Don't restore r13 during ftrace_regs_caller
Hao Sun <sunhao.th@gmail.com>
bpf: Fix uninit read for non-fetch atomics on partially spilled slots
Puranjay Mohan <puranjay@kernel.org>
bpf: Look at frame 0 when telling async callback entries apart
Hui Su <sh_def@163.com>
bpftool: Fix CPU IDs in per-CPU map output
Yuan Chen <chenyuan@kylinos.cn>
bpf: Keep target extended until its last freplace link detaches
Myeonghun Pak <mhun512@gmail.com>
serial: sh-sci: Unregister UART on sysfs setup failure
Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
serial: txx9: Drop noop probe function and dangerous remove callback
Ahsan Atta <ahsan.atta@intel.com>
crypto: qat - hold cfg->lock when accessing config sections
Kim Wooseok <5mghybrid@khu.ac.kr>
wifi: rtl8xxxu: preserve RX requests across recoverable transfer errors
Kim Wooseok <5mghybrid@khu.ac.kr>
wifi: rtl8xxxu: unwind incomplete receive startup
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/gup: honour FOLL_PIN in NOMMU __get_user_pages_locked()
Adrian Hunter <adrian.hunter@intel.com>
i3c: mipi-i3c-hci: Process multiple IBIs per interrupt
Leon Hwang <leon.hwang@linux.dev>
bpftool: Compute map size of light skeletons at runtime
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
interconnect: qcom: use 64-bit SMD RPM bus votes
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
interconnect: qcom: icc-rpm: Handle icc_link_create() failures
Ahsan Atta <ahsan.atta@intel.com>
crypto: qat - fix active_devs leak on crypto alg registration failure
Shakeel Butt <shakeel.butt@linux.dev>
kernfs: don't repeat or skip an entry when readdir resumes
Zizhi Wo <wozizhi@huawei.com>
md/raid5: reject a per-device size smaller than one chunk
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: rt1015: make control calibration failures observable
Alison Schofield <alison.schofield@intel.com>
cxl/port: Bound switch decoder target array access by nr_targets
Alison Schofield <alison.schofield@intel.com>
cxl/hdm: Restore commit_end when decoder enumeration fails
Alison Schofield <alison.schofield@intel.com>
cxl/hdm: Make switch decoder target parsing endian-safe
Alison Schofield <alison.schofield@intel.com>
cxl/hdm: Reject switch decoder interleave ways that overflow targets
Takahiro Kuwano <takahiro.kuwano@infineon.com>
mtd: spi-nor: spansion: Remove s25fs256s0
Baolin Liu <liubaolin@kylinos.cn>
fs/ntfs3: update ctime only on successful setxattr
Mahe Tardy <mahe.tardy@gmail.com>
libbpf: fix log level propagation for light skeleton loaders
Pengpeng Hou <hppiscas@163.com>
clk: s2mps11: Propagate OF provider registration failures
André Draszik <andre.draszik@linaro.org>
clk: s2mps11: initialise clk_hw_onecell_data::num before accessing ::hws[] in probe()
Karl Mehltretter <kmehltretter@gmail.com>
clk: mediatek: reset: Fix device registration kernel-doc
Brian Norris <briannorris@chromium.org>
PM: runtime: Only queue an idle check for RPM-linked suppliers
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: glue: Rearrange acpi_bind_one() to avoid breakage
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: glue: Carry out companion lookup under bus_type_sem
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: glue: Rework the success message in acpi_device_notify()
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
ACPI: glue: Reduce debug noise from acpi_device_notify()
Linmao Li <lilinmao@kylinos.cn>
crypto: mxs-dcp - handle zero-length skcipher requests
Thomas Huth <thuth@redhat.com>
crypto: inside-secure - Zeroize temporary arrays on stack with sensitive data
Eric Dumazet <edumazet@google.com>
sit: charge ip_tunnel_prl_entry allocations to memcg
Roland Dreier <rolanddreier@rivian.com>
firmware: arm_scmi: Protect xfer->async_done with xfer->lock
Shakeel Butt <shakeel.butt@linux.dev>
kernfs: fix up the unlocked attribute reads on the creation paths
Golla Nagendra <nagendra.golla@amd.com>
dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failure
Golla Nagendra <nagendra.golla@amd.com>
dmaengine: zynqmp_dma: Fix PM rollback on sw_desc_pool alloc failure
Pengpeng Hou <pengpeng@iscas.ac.cn>
ASoC: sta32x: make power restoration transactional
Leon Romanovsky <leon@kernel.org>
RDMA/irdma: Preserve fast-registration IOVA on 32-bit
Marcel Hofmann <marcel.hofmann@ingenics-digital.com>
remoteproc: imx_rproc: Allow mappings ending at region boundary
Dave Jiang <dave.jiang@intel.com>
ACPI: APEI: GHES: Validate memory error section length before payload access
Johannes Berg <johannes.berg@intel.com>
wifi: mac80211: fix IEEE80211_TX_CTL_REQ_TX_STATUS mixup
Miaoqing Pan <miaoqing.pan@oss.qualcomm.com>
wifi: ath11k: fix NULL dereference in ahb remove when QMI init incomplete
Chengchang Tang <tangchengchang@huawei.com>
RDMA/hns: Fix missing CQE when UD QP use different SL
Jingbo Xu <jefflexu@linux.alibaba.com>
fuse: don't bump attr_version for async direct read completion
Davidlohr Bueso <dave@stgolabs.net>
cxl/test: Map mock device nodes to an online node
Arnaldo Carvalho de Melo <acme@redhat.com>
perf jitdump: Free event in jit_repipe_code_move()
Tapio Reijonen <tapio.reijonen@vaisala.com>
gpio: pcf857x: implement get_direction()
Darren Carreras <carrerasdarren@gmail.com>
libbpf: Avoid overflow in BTF.ext bounds check
Eric Dumazet <edumazet@kernel.org>
inet: frags: bound the wmem charge of the socket completing a reassembly
Karl Mehltretter <kmehltretter@gmail.com>
ocfs2/cluster: hold a reference on the heartbeat thread
Marc Zyngier <maz@kernel.org>
KVM: arm64: vgic: Stop the target vcpu when disabling LPIs
Hui Su <sh_def@163.com>
perf evsel: Restrict incremental open error unwind
Matthias Goergens <matthias.goergens@gmail.com>
udf: check the unallocated space table when it is loaded
Yilin Zhang <yilinzhang@moonshot.ai>
mptcp: do not use Fast Open on MP_JOIN subflows
Josef Bacik <josef@toxicpanda.com>
mm/userfaultfd: wake all waiters on unregister
Cunhao Lu <1579567540@qq.com>
can: skb: make echo skb freeing safe in any IRQ context
Daejun Park <daejun7.park@samsung.com>
xfs: refuse a pNFS LAYOUTCOMMIT of a range without blocks
Amir Goldstein <amir73il@gmail.com>
fs: don't fail __d_obtain_alias() for unlinked inodes
Georgia Garcia <georgia.garcia@canonical.com>
apparmor: fix profile leak when a policy load fails
Sinan Turunc <enscrpt@pm.me>
ALSA: ua101: Bound packet copies by the PCM buffer size
Josef Bacik <josef@toxicpanda.com>
mm/hugetlb: don't clear the resv_map of a VMA whose lock is held
Stanley Jhu <stanleyjhu@google.com>
scsi: ufs: bsg: Complete the job on error
Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
hwmon: (coretemp) Return -ENODATA for invalid temperature readings
Nanzhe Zhao <zhaonanzhe@xiaomi.com>
f2fs: read i_size once in f2fs_vm_page_mkwrite
Martin Fuzzey <martin.fuzzey@flowbird.group>
serial: sc16is7xx: fix data corruption due to unexpected xon/xoff
Ridong Chen <chenridong@xiaomi.com>
mm/page_counter: avoid integer overflow in effective_protection()
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
mm/page_counter: move calculating protection values to page_counter
Haifeng Xu <haifeng.xu@shopee.com>
mm/memcontrol: fix typo in comment
Jiayuan Chen <jiayuan.chen@linux.dev>
mm/memcontrol: fix data-race on reading jiffies_64
Guangshuo Li <lgs201920130244@gmail.com>
crypto: omap-des - fix crypto engine cleanup
Balakrishnan Sambath <balakrishnan.s@microchip.com>
media: microchip-isc: disable histogram and flush AWB work on teardown
Amir Goldstein <amir73il@gmail.com>
fs: make sure to call fsnotify_inoderemove() only once when inode is dead
Sean Christopherson <seanjc@google.com>
KVM: VMX: Formally define KVM's "0xdead" exit reason used for failed VM-Enter
Sean Christopherson <seanjc@google.com>
x86/cpuid: Mark CPUID function 0x23 as being indexed
David Howells <dhowells@redhat.com>
rxrpc: Fix lack of short-send handling in rxrpc_kernel_send_data()
Abdifatah Suruur <suruurism@gmail.com>
smb: client: reject short SESSION_SETUP responses
Diego Oliva <diego@bynar.io>
smb: client: reject FIND data areas that run past the received response
Paulo Alcantara <pc@manguebit.org>
smb: client: reclaim credits for decrypted reads with no matching mid
Vernon Yang <yanglincheng@kylinos.cn>
mm: khugepaged: fix folio is used after pte_unmap_unlock()
Fan Wu <fanwu01@zju.edu.cn>
media: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers
Josef Bacik <josef@toxicpanda.com>
mm/hugetlb: fix use-after-free of a new anon folio
Aamir Ahmed <elb12345@hotmail.co.uk>
ksmbd: deny access for an empty DACL instead of granting the request
Mario Peter <mario.peter@leica-geosystems.com>
driver core: take parent lock in async device attach
Johan Hovold <johan@kernel.org>
driver core: take parent lock on deferred probe
Christian Brauner <brauner@kernel.org>
coredump: prevent TIF_NOTIFY_SIGNAL from interrupting coredumps
Christian Brauner <brauner@kernel.org>
ptrace: refuse to change the signal mask of a user worker
Mike Christie <michael.christie@oracle.com>
fork/vm: Move common PF_IO_WORKER behavior to new flag
Mike Christie <michael.christie@oracle.com>
kernel: Make io_thread and kthread bit fields
Jan Beulich <jbeulich@suse.com>
Xen/gnttab: improve error handling in gnttab_dma_{alloc,free}_pages()
Jude Gyimah <jude.gyimah87@gmail.com>
ALSA: aw2-alsa: select SND_PCM
Guixiong Wei <weiguixiong@bytedance.com>
KEYS: do not let an unmatched key decide the search result
Manuel Ebner <manuelebnerli@mailbox.org>
docs, kprobes: Fix bracket
Wenwen Fu <wenwfu@qti.qualcomm.com>
tracing: skip boot kprobe setup when no events were requested
Jiahao Xu <xujiahao@cmss.chinamobile.com>
net: usb: cdc_ncm: don't underflow the NDP room check
Wenbo Sun <sunwenbo@cmss.chinamobile.com>
amt: use ipv6_hdr() in amt_mldv1_leave_handler()
Kuniyuki Iwashima <kuniyu@google.com>
tcp: Pass req->rsk_listener to inet_csk_reqsk_queue_drop() in tcp_check_req().
Junyoung Jang <graypanda.inzag@gmail.com>
igmp: use the joined device when leaving a multicast group
Ofri Zangi <ofriz@xsightlabs.com>
tls: fix async encryption race on weakly ordered architectures
Kalpesh Solanki <skalpesh942@gmail.com>
tun: disallow setting IEEE 802.15.4 and 6LoWPAN link types via TUNSETLINK
Avi Weiss <thnkslprpt@gmail.com>
net: ena: avoid RX copybreak for multi-descriptor packets
Breno Leitao <leitao@debian.org>
net: ena: Keep the RX buffer mapped if skb allocation fails
Omar Ramadan <omar@blockcast.net>
amt: tear down every amt device on an unregistering lower
LiangCheng Wang <zaq14760@gmail.com>
ASoC: max98090: keep the MIC boost across mic input power-up
Kavitha Daula <kavi@edera.dev>
xen/grant-table: annotate on-stack work in gnttab_unmap_refs_sync()
Pengpeng Hou <hppiscas@163.com>
drm/bridge: sii902x: validate I2S data lane values
Kyle Zeng <kylebot@openai.com>
udp: check frag_list IP family before using skb_segment_list()
Anandu Padinhare <Anandu.Padinhare@electrifex.com>
net: stmmac: count XDP_PASS frames in rx_packets on the XSK zero-copy path
Eric Dumazet <edumazet@kernel.org>
net: gro: compare skb->protocol in gro_list_prepare()
Eric Dumazet <edumazet@google.com>
net: gro: no longer use skb_vlan_tag_present()
Eric Dumazet <edumazet@google.com>
net: remove skb->vlan_present
Eric Dumazet <edumazet@kernel.org>
udp: do not use a cross-family sk_rx_dst in early demux
Eric Dumazet <edumazet@kernel.org>
fou: gue: check IP version of held packets for direct IP encapsulation
Yuho Choi <oss.patchbox@gmail.com>
ptp: kvm: x86: Leak clock_pair page if changing its encryption fails
Chase Hiltz <me@chasehil.tz>
ipv4: route: don't blackhole in-use routes when retiring fnhe routes
Umang Pokhriyal <umangpokhriyall@gmail.com>
tun: delete the flow entries of the moved queue on detach
Eric Dumazet <edumazet@kernel.org>
bonding: fix slave_cnt leak on XDP enslave failure
Kyle Zeng <kylebot@openai.com>
ipvlan: make outbound skb headers writable
Kyle Zeng <kylebot@openai.com>
net: require a full socket in sock_confirm_neigh()
Kyle Zeng <kylebot@openai.com>
net: protect negative destination advice with RCU
Mark Bloch <mbloch@nvidia.com>
net/mlx5: Lag, free steering resources on LAG destroy failure
Li RongQing <lirongqing@baidu.com>
team: fix promisc/allmulti leak in team_port_add error path
Nikola Z. Ivanov <zlatistiv@gmail.com>
team: Add matching error label for failed action
Yaroslav Dudkov <aroslavdudkov622@gmail.com>
ipv6: ignore link state in gateway check
Kuniyuki Iwashima <kuniyu@google.com>
af_unix: Remove gc_in_progress check in unix_peek_fpl().
Avi Weiss <thnkslprpt@gmail.com>
SUNRPC: Balance queue accounting when relocating a task
Avi Weiss <thnkslprpt@gmail.com>
SUNRPC: Balance switch queue length on transport removal
Avi Weiss <thnkslprpt@gmail.com>
SUNRPC: preserve timeout policy when cloning clients
Avi Weiss <thnkslprpt@gmail.com>
SUNRPC: wake poll waiters when an empty pipe is unlinked
Avi Weiss <thnkslprpt@gmail.com>
NFS: restore directory index when resuming readdir
Anna Schumaker <Anna.Schumaker@Netapp.com>
NFS: Convert the readdir array-of-pages into an array-of-folios
Fabio M. De Francesco <fmdefrancesco@gmail.com>
fs/nfs: Replace kmap_atomic() with kmap_local_page() in dir.c
Avi Weiss <thnkslprpt@gmail.com>
NFS: Fix inverted cross-directory rename check
Avi Weiss <thnkslprpt@gmail.com>
NFSv4.1: retain MDS I/O until both thresholds are met
Dmitry Torokhov <dmitry.torokhov@gmail.com>
gpiolib: of: return -ENOENT from of_gpio_count() stub
Yifan Zhang <yfzhang23@stu.pku.edu.cn>
tracing/probes: bound symstr stores to reserved length
Niklas Cassel <cassel@kernel.org>
ata: libata-scsi: fix MODE SELECT field pointer for block descriptor length
Niklas Cassel <cassel@kernel.org>
ata: libata-scsi: reject MODE SELECT mode pages with a wrong SPF bit
Niklas Cassel <cassel@kernel.org>
ata: libata-scsi: fix MODE SELECT handling of data after the mode page
Alexei Starovoitov <ast@kernel.org>
ipv6: Check the Home Address option again before its address is used
Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
ipv6: ICMPV6: Use swap() instead of open coding it
Eric Dumazet <edumazet@kernel.org>
calipso: do not charge request socket options to the listener
Prathamesh Deshpande <prathameshdeshpande7@gmail.com>
net/mlx5e: IPoIB, Fix QPN lookup race
Kyle Pepper <cochcoder@proton.me>
Bluetooth: reject invalid LE supervision timeout relationships
Christian Loehle <christian.loehle@arm.com>
cpufreq: Serialize global boost updates
Christian Loehle <christian.loehle@arm.com>
cpufreq: Preserve global boost state on failed updates
Lifeng Zheng <zhenglifeng1@huawei.com>
cpufreq: Return -EOPNOTSUPP if no policy supports boost
Viresh Kumar <viresh.kumar@linaro.org>
cpufreq: Force sync policy boost with global boost on sysfs update
Sandipan Das <sandipan.das@amd.com>
perf/x86/amd/uncore: Avoid context migration from non-owners
Sandipan Das <sandipan.das@amd.com>
perf/x86/amd/uncore: Move discovery and registration
Peter Zijlstra <peterz@infradead.org>
locking/osq: Fix unlink queue corruption
Peter Zijlstra <peterz@infradead.org>
locking/osq: Switch osq_wait_next()/atomic_cmpxchg() ordering
David Laight <David.Laight@ACULAB.COM>
locking/osq_lock: Clarify osq_wait_next() calling convention
Eric Dumazet <edumazet@kernel.org>
tcp: bound snd_cwnd_clamp to TCP_MAX_SND_CWND
Hui Su <sh_def@163.com>
sched/pelt: Fix u32 truncation of the PELT period count
Hungyu Lin <dennylin0707@gmail.com>
vfs: preserve subsecond timestamps at filesystem time limits
Florian Fainelli <f.fainelli@gmail.com>
MIPS: SB1250: Validate and update IRQ affinity
Florian Fainelli <f.fainelli@gmail.com>
MIPS: Alchemy: Save the Ethernet address before reusing PROM memory
Rosen Penev <rosenp@gmail.com>
MIPS: Avoid dead code/data elimination when using recordmcount
Eric Dumazet <edumazet@kernel.org>
tcp: ipv6: free ireq->ipv6_opt after an RCU grace period
Florian Westphal <fw@strlen.de>
netfilter: nat: zero newrange before filling it in
Pablo Neira Ayuso <pablo@netfilter.org>
netfilter: nf_tables: fix memleak when rule deletion fails with hardware offload
Joas Antonio dos Santos <joasantonio108@gmail.com>
netfilter: nf_conntrack_sip: fix OOB read in ct_sip_parse_transport()
Fernando Fernandez Mancera <fmancera@suse.de>
netfilter: x_tables: check target name before accessing verdict
Laveesh Bansal <laveeshb@laveeshbansal.com>
netfilter: bridge: use DEBUG_NET_WARN_ON_ONCE in nf_ct_bridge_refrag()
Cheng Yongkang <teel4res@gmail.com>
net: bridge: disable MRP ports before the FDB flush in del_nbp()
Kyle Zeng <kylebot@openai.com>
ip6mr: Serialize multicast router socket ownership
Timur Stukan <timur.stukan.linux@gmail.com>
bonding: 3ad: don't set BOND_LINK_FAIL on a slave that is not up
Colton Pawielski <colton.pawielski@gmail.com>
net: 8139cp: keep Rx masked while NAPI is scheduled
Michał Kopeć <michal.kopec@3mdeb.com>
ALSA: hda/core: Stop capability walk on empty capability header
Frederic Konrad <fkonrad@amd.com>
spi: cadence-quadspi: Fix race between DMA completion and transfer start
Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Bluetooth: Fix not updating of hdev->commands[] after reset
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: restore the NSP IMP port 2 Gbps mode
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: Force flow control for BCM5301X CPU port(s)
Florian Fainelli <florian.fainelli@broadcom.com>
net: ethernet: bgmac: preserve forced 2.5 Gbps link speed
Zhao Li <enderaoelyther@gmail.com>
Bluetooth: L2CAP: Clear request identifiers on incoming LE connections
Zijun Hu <zijun.hu@oss.qualcomm.com>
Bluetooth: hci_conn: Fix SCO/eSCO Transport_Unit_Size for HCI data path
Richard Fitzgerald <rf@opensource.cirrus.com>
ASoC: wm_adsp: Prevent negative string length in wm_adsp_control_add()
Sasha Levin <sashal@kernel.org>
ACPI: scan: Do not hold physical_node_lock across device_offline() and device_online()
Sasha Levin <sashal@kernel.org>
ACPI: scan: Print the offline failure message in acpi_bus_offline()
Richard Fitzgerald <rf@opensource.cirrus.com>
firmware: cs_dsp: Fix memory leak on cs_dsp_power_up() error path
Mario Limonciello <mario.limonciello@amd.com>
drm/amd/pm: track BACO state in the SMU v11 ArmD3 sequence
Kuniyuki Iwashima <kuniyu@google.com>
ipv4: Call rt_add_uncached_list() if !do_cache in ip_route_input_slow().
Zhou Minqiang <zhouminqiang2@huawei.com>
PM: runtime: Fix check_flush_dependency warning from pm_runtime_remove
Avi Weiss <thnkslprpt@gmail.com>
net: skbuff: reject zero MPLS TTL before decrementing
Guillaume Nault <gnault@redhat.com>
tcp: Fix dup-ack detection on non-SACK bidirectional data transfer.
Chris Mason <mason@kernel.org>
nvmet-rdma: disconnect a queue on device removal
Bjorn Helgaas <bhelgaas@google.com>
nvme: fix various comment typos
Chris Mason <mason@kernel.org>
nvmet-rdma: queue the release work under the mutex
Chris Mason <mason@kernel.org>
nvmet-rdma: take a device off the list last
Josef Bacik <josef@toxicpanda.com>
nvmet-tcp: limit the connections accepted per work run
Chris Mason <mason@kernel.org>
nvmet-rdma: disconnect only established queues
Alexander Goodkind <alex@goodkind.io>
net: ethernet: mediatek: preserve sibling PPE bindings
Florian Fainelli <florian.fainelli@broadcom.com>
net: dsa: b53: Enable IGMP and MLD control packet CPU copies
Kyle Zeng <kylebot@openai.com>
tcp: wait for TIME_WAIT teardown before freeing per-netns ehash
Niklas Cassel <cassel@kernel.org>
null_blk: don't finish zones to set them read-only or offline
Niklas Cassel <cassel@kernel.org>
null_blk: fix opening closed zones at the active zone limit
Nguyen Dinh Phi <phind.uet@gmail.com>
vsock: reject negative tv_usec in SO_VM_SOCKETS_CONNECT_TIMEOUT
Zizhi Wo <wozizhi@huawei.com>
block: partitions: reject GPT entries with starting_lba > ending_lba
Linfeng Sun <linfeng.sun.dev@gmail.com>
vhost: reject backend enable without a kick file
Linfeng Sun <linfeng.sun.dev@gmail.com>
vhost-scsi: reject delayed virtqueue setup
Linfeng Sun <linfeng.sun.dev@gmail.com>
vhost-scsi: validate event queue descriptor direction
Eric Dumazet <edumazet@kernel.org>
soreuseport: annotate data-races around reuse->socks[] and num_socks
Yifan Zhang <yfzhang23@stu.pku.edu.cn>
ksmbd: require NUL-terminated EA names
Aaditya Kansal <aadityakansal390@gmail.com>
ksmbd: implement error handling for STATUS_INFO_LENGTH_MISMATCH in smb server
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: hci_core: Initialize advertising RPA work only once
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: hci_sync: Copy the resolving-list IRK under RCU
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: hci_core: Keep link-key filtering inside RCU
Tobias Wilken <tooangel@tooangel.de>
Bluetooth: MGMT: Return RFKILLED for Set Powered on a blocked controller
Shuai Zhang <shuai.zhang@oss.qualcomm.com>
Bluetooth: mgmt: reply to cancelled mgmt commands instead of silently dropping
Cen Zhang <zzzccc427@gmail.com>
Bluetooth: hci_sync: Protect resolving-list lookups
Kevin Dewald <kevin@simpleble.org>
Bluetooth: hci_event: Clear explicit connect state on LE connection
Catherine L <catherine.l@intel.com>
Bluetooth: btintel: fix buffer over-read in fw payload
Binbin Deng <18983559317@163.com>
Bluetooth: hci_core: Initialize LTK before publication
Binbin Deng <18983559317@163.com>
Bluetooth: hci_core: Initialize link key before publication
Binbin Deng <18983559317@163.com>
Bluetooth: hci_core: Initialize IRK before publication
Jerome Brunet <jbrunet@baylibre.com>
ASoC: meson: axg-fifo: request the irq with the clock enabled
Bryam Vargas <hexlabsecurity@proton.me>
net/iucv: take a private, writable frame before rewriting it in place
Guangshuo Li <liguangshuo@mail.sdu.edu.cn>
gpio: mpc8xxx: Fix potential use-after-free of IRQ domain
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
gpio: mpc8xxx: use a helper variable to store the address of pdev->dev
Martyn Welch <martyn.welch@collabora.com>
gpio: mpc8xxx: Add wake on GPIO support
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
gpio: mpc8xxx: Convert to platform remove callback returning void
Daniel Machon <daniel.machon@microchip.com>
net: sparx5/lan969x: release the in-flight slot of a stale TX skb
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
regulator: qcom_spmi: don't take a sleeping lock in the SAW IPI
Rob Herring (Arm) <robh@kernel.org>
regulator: qcom_spmi: Drop unnecessary of_find_property() call
Yuho Choi <oss.patchbox@gmail.com>
virtio_blk: Reset device on probe error paths after DRIVER_OK
Linfeng Sun <linfeng.sun.dev@gmail.com>
vhost: reject invalid IOTLB update permissions
Xiang Mei <xmei5@asu.edu>
vdpa: fix double free of the reply skb in vdpa_nl_cmd_dev_config_get_doit()
Jia Jia <physicalmtea@gmail.com>
vhost-scsi: preserve event ordering
Alex Austin <alex.austin@amd.com>
sfc: ptp: avoid racing PPS timestamp updates
Alex Austin <alex.austin@amd.com>
sfc: ptp: serialize host and MC synchronization transactions
Alex Austin <alex.austin@amd.com>
sfc: ptp: drop the stale frequency reset in efx_ptp_start()
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
net: stmmac: copy XDP metadata in AF_XDP zero-copy RX
Lorenzo Bianconi <lorenzo.bianconi@oss.qualcomm.com>
net: stmmac: drop split frames on AF_XDP zero-copy RX
Furong Xu <0x1207@gmail.com>
net: stmmac: Set dma_sync_size to zero for discarded frames
Eric Dumazet <edumazet@kernel.org>
tcp: do not let tcp_collapse() drive sk_forward_alloc negative
Yuqiang Sun <izaiahsun@gmail.com>
bpf: lwt: Free the skb when bpf_xmit() fails to expand the headroom
Rosen Penev <rosenp@gmail.com>
spi: acpi: only look up the IRQ of confirmed SPI devices
Alban Bedel <alban.bedel@lht.dlh.de>
spi: Fix ACPI SPI resources using relative path
Chris Mason <mason@kernel.org>
bpf: Check the offset in bpf_skb_generic_{push,pop}()
Chris Mason <mason@kernel.org>
bpf: Move the transport header with the moved headers
Alexei Starovoitov <ast@kernel.org>
bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol
Alexei Starovoitov <ast@kernel.org>
bpf: Reset skb->cb after an lwt prog pushes an IP header
Guillaume Nault <gnault@redhat.com>
ipv4: Convert ip_route_input_noref() to dscp_t.
Ido Schimmel <idosch@nvidia.com>
ipv4: Unmask upper DSCP bits in input route lookup
Alexei Starovoitov <ast@kernel.org>
bpf: Don't leave a stale MAC header in bpf_lwt_push_ip_encap()
Chris Mason <mason@kernel.org>
bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
Alexei Starovoitov <ast@kernel.org>
bpf: Don't look for the SRH again in the End.BPF helpers
Chris Mason <mason@kernel.org>
bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh()
Chris Mason <mason@kernel.org>
bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6
Alexei Starovoitov <ast@kernel.org>
bpf: Don't let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS
Hongjian Dai <daihongjian@kylinsec.com.cn>
spi: pic32-sqi: fail transfer when the BD ring is exhausted
Tung Nguyen <tung.quang.nguyen@est.tech>
tipc: reject attaching bearer of different media to the same occupied device
Jia Jia <physicalmtea@gmail.com>
scsi: target: Validate REGISTER AND MOVE TransportID length
James Hilliard <james.hilliard1@gmail.com>
ptp: vclock: serialize extended samples with counter updates
James Hilliard <james.hilliard1@gmail.com>
ptp: vclock: propagate physical clock sampling errors
Jeongjun Park <aha310510@gmail.com>
ptp: prevent possible ABBA deadlock in ptp_clock_freerun()
James Hilliard <james.hilliard1@gmail.com>
ptp: unwind partially completed virtual clock creation
James Hilliard <james.hilliard1@gmail.com>
ptp: drain virtual clock sysfs operations before unregistering children
Thomas Fourier <fourier.thomas@gmail.com>
btrfs: zoned: fix double free of bitmaps on clone failure
Filipe Manana <fdmanana@suse.com>
btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing
guolingxing <guolingxing@tju.edu.cn>
btrfs: verity: propagate orphan insertion errors when enabling verity
Avi Weiss <thnkslprpt@gmail.com>
gpio: omap: Propagate runtime PM failures in probe and request
Andrea Mayer <andrea.mayer@uniroma2.it>
seg6: fix transport header for inner IPv4 with IP options
Filippo Falezza <effeffe99@gmail.com>
wifi: ath10k: Stop unanswered temperature reads
Matthew Whitehead <tedheadster@gmail.com>
scsi: aha1542: Remove unneeded scsi_dma_unmap() call
Imre Kaloz <kaloz@kernel.org>
scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts
Mehmet Fide <mehmet.fide@screeningeagle.com>
wifi: ath9k_htc: start ANI when an AP interface begins to beacon
Deepanshu Kartikey <kartikey406@gmail.com>
batman-adv: avoid WARN_ON for orig_ifinfo allocation failure
Shubham Antil <shubham@octane.security>
xfrm: zero-initialise km_event in the replay-notify path
Haobin Wu <853555@gmail.com>
9p: skip intermediate directory entry name copy in p9dirent_read()
Eric Van Hensbergen <ericvh@kernel.org>
fs/9p: rework qid2ino logic
Eric Van Hensbergen <ericvh@kernel.org>
fs/9p: switch vfsmount to use v9fs_get_new_inode
Feng Ning <feng@innora.ai>
staging: media: atomisp: use array3_size() for overflow-safe allocation
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Input: destroy force-feedback device on input unregistration
Cheng Yongkang <teel4res@gmail.com>
io_uring/rsrc: keep the old file when a file update fails
Yang Xiuwei <yangxiuwei@kylinos.cn>
io_uring/rw: fail soft links on IOPOLL short or error IO
Yang Xiuwei <yangxiuwei@kylinos.cn>
io_uring: fail soft links on negative IOU_COMPLETE results
Jens Axboe <axboe@kernel.dk>
io_uring: enable toggle of iowait usage when waiting on CQEs
Hui Peng <benquike@gmail.com>
udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat()
Jan Kara <jack@suse.cz>
udf: validate VAT inode size for old VAT format
Lance Yang <lance.yang@linux.dev>
mm/ksm: fix userfaultfd protection during merge and unmerge
David Hildenbrand <david@redhat.com>
mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHARE
David Hildenbrand <david@redhat.com>
mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITE
Chris Mason <clm@meta.com>
SUNRPC: svcauth_gss: enforce krb5 token minimum length
Sasha Levin <sashal@kernel.org>
Revert "SUNRPC: Convert unwrap_priv_data() to use xdr_stream"
Sasha Levin <sashal@kernel.org>
Revert "SUNRPC: svcauth_gss: enforce krb5 token minimum length"
Zizhi Wo <wozizhi@huawei.com>
fs: aio: reject partial mremap to avoid Null-pointer-dereference error
Pengpeng Hou <hppiscas@163.com>
irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
Johannes Weiner <hannes@cmpxchg.org>
mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES
Sasha Levin <sashal@kernel.org>
bpf: Drop inet_conn_established from lsm sleepable hooks
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
drm/amdgpu: Check cs flags.
Chris Mason <mason@kernel.org>
mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
Pablo Neira Ayuso <pablo@netfilter.org>
netfilter: nft_ct: move custom expectation support to helper
Florian Westphal <fw@strlen.de>
netfilter: nft_ct: expectation timeouts are passed in milliseconds
Cheng Xu <chengyou@linux.alibaba.com>
RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables
-------------
Diffstat:
.../bindings/iio/adc/aspeed,ast2600-adc.yaml | 17 +
Documentation/hwmon/coretemp.rst | 3 +
Documentation/networking/rxrpc.rst | 8 +-
Documentation/networking/tls-offload.rst | 16 +-
Documentation/trace/boottime-trace.rst | 8 +-
Documentation/trace/kprobes.rst | 2 +-
Makefile | 4 +-
arch/arc/include/asm/io.h | 13 +-
arch/arm/boot/dts/qcom-msm8974.dtsi | 3 +
arch/arm/include/asm/domain.h | 17 -
arch/arm/include/asm/memory.h | 4 +-
arch/arm/include/asm/pgtable-2level-hwdef.h | 1 -
arch/arm/include/asm/pgtable-2level.h | 7 -
arch/arm/include/asm/sparsemem.h | 4 +
arch/arm/kernel/efi.c | 14 +
arch/arm/mm/Kconfig | 7 -
arch/arm/mm/ioremap.c | 53 +-
arch/arm/mm/mmu.c | 76 +--
arch/arm64/boot/dts/qcom/sdm845-lg-common.dtsi | 13 +-
arch/arm64/kernel/ptrace.c | 8 +-
arch/arm64/kvm/vgic/vgic-mmio-v3.c | 10 +
arch/mips/Kconfig | 2 +-
arch/mips/alchemy/common/prom.c | 23 +-
arch/mips/sibyte/sb1250/irq.c | 3 +
arch/parisc/kernel/entry.S | 4 -
arch/parisc/kernel/ftrace.c | 2 +-
arch/parisc/kernel/irq.c | 4 +-
arch/powerpc/include/asm/hw_irq.h | 2 +-
arch/powerpc/include/asm/interrupt.h | 5 +-
arch/powerpc/kernel/eeh.c | 6 +-
arch/powerpc/kernel/module_32.c | 3 +
arch/powerpc/kernel/trace/ftrace_mprofile.S | 6 +
arch/powerpc/kernel/watchdog.c | 3 +
arch/powerpc/kvm/book3s_64_mmu_hv.c | 33 +-
arch/powerpc/kvm/book3s_hv.c | 2 +
arch/powerpc/kvm/book3s_hv_nested.c | 34 +-
arch/powerpc/kvm/book3s_xive.c | 5 +-
arch/powerpc/xmon/xmon.c | 3 +-
arch/riscv/kernel/efi.c | 2 +-
arch/s390/appldata/appldata_base.c | 12 +-
arch/sparc/net/bpf_jit_comp_32.c | 10 +-
arch/x86/events/amd/uncore.c | 570 +++++++++++++--------
arch/x86/include/asm/cpuid.h | 1 +
arch/x86/include/asm/vmx.h | 8 +
arch/x86/kernel/apic/msi.c | 2 +-
arch/x86/kernel/cpu/mce/core.c | 18 +-
arch/x86/kernel/cpu/resctrl/rdtgroup.c | 3 +-
arch/x86/kernel/fpu/xstate.c | 8 +-
arch/x86/kernel/ldt.c | 12 +-
arch/x86/kvm/vmx/vmx.c | 4 +-
block/blk-cgroup.c | 14 +-
block/blk-cgroup.h | 6 +-
block/blk-iocost.c | 112 +++-
block/blk-iolatency.c | 3 +-
block/blk-mq.c | 10 +-
block/blk-throttle.c | 18 +
block/partitions/efi.c | 1 +
crypto/essiv.c | 2 +-
drivers/acpi/acpi_pcc.c | 13 +
drivers/acpi/apei/ghes.c | 41 ++
drivers/acpi/device_pm.c | 23 +-
drivers/acpi/glue.c | 140 +++--
drivers/acpi/scan.c | 108 +++-
drivers/ata/libata-scsi.c | 31 +-
drivers/base/base.h | 1 +
drivers/base/bus.c | 28 +-
drivers/base/dd.c | 86 ++--
drivers/base/power/runtime.c | 14 +-
drivers/base/swnode.c | 7 +-
drivers/block/drbd/drbd_main.c | 1 +
drivers/block/null_blk/zoned.c | 48 +-
drivers/block/virtio_blk.c | 1 +
drivers/block/zram/zram_drv.c | 144 +++---
drivers/bluetooth/btintel.c | 24 +-
drivers/bluetooth/btmtk.c | 74 ++-
drivers/bluetooth/btusb.c | 10 +-
drivers/bluetooth/hci_h5.c | 5 +-
drivers/bluetooth/hci_qca.c | 6 +
drivers/bluetooth/hci_serdev.c | 9 +-
drivers/bluetooth/hci_uart.h | 12 +-
drivers/char/tpm/eventlog/acpi.c | 4 +-
drivers/char/tpm/eventlog/tpm1.c | 7 +
drivers/char/tpm/tpm-dev-common.c | 12 +-
drivers/clk/clk-s2mps11.c | 15 +-
drivers/clk/mediatek/reset.h | 6 +-
drivers/clk/qcom/mmcc-msm8960.c | 3 +-
drivers/comedi/drivers/addi_apci_1500.c | 2 +-
drivers/comedi/drivers/comedi_bond.c | 24 +-
drivers/comedi/drivers/ni_660x.c | 3 +-
drivers/comedi/drivers/ni_tio.c | 2 +-
drivers/comedi/drivers/vmk80xx.c | 25 +-
drivers/cpufreq/acpi-cpufreq.c | 9 +-
drivers/cpufreq/cppc_cpufreq.c | 14 +-
drivers/cpufreq/cpufreq.c | 147 ++++--
drivers/cpufreq/intel_pstate.c | 40 +-
drivers/cpufreq/qcom-cpufreq-hw.c | 3 +
drivers/crypto/caam/caampkc.c | 75 ++-
drivers/crypto/inside-secure/safexcel_hash.c | 3 +
drivers/crypto/mxs-dcp.c | 3 +
drivers/crypto/omap-des.c | 2 +
drivers/crypto/qat/qat_common/adf_cfg.c | 49 +-
drivers/crypto/qat/qat_common/adf_init.c | 25 +-
drivers/crypto/qat/qat_common/qat_algs.c | 15 +-
drivers/crypto/qat/qat_common/qat_asym_algs.c | 26 +-
drivers/cxl/core/hdm.c | 57 ++-
drivers/cxl/core/port.c | 22 +-
drivers/cxl/cxl.h | 2 +
drivers/dma/idxd/cdev.c | 1 +
drivers/dma/sh/rcar-dmac.c | 4 +-
drivers/dma/ste_dma40.c | 367 ++++++++++---
drivers/dma/ste_dma40_ll.c | 8 +-
drivers/dma/ste_dma40_ll.h | 4 +-
drivers/dma/stm32-mdma.c | 1 +
drivers/dma/xilinx/zynqmp_dma.c | 19 +-
drivers/edac/i5000_edac.c | 4 +-
drivers/firmware/arm_scmi/common.h | 22 +
drivers/firmware/arm_scmi/driver.c | 34 +-
drivers/firmware/arm_scmi/notify.c | 4 +-
drivers/firmware/arm_scmi/protocols.h | 9 +-
drivers/firmware/cirrus/cs_dsp.c | 6 +
drivers/gpio/gpio-brcmstb.c | 1 +
drivers/gpio/gpio-davinci.c | 4 +-
drivers/gpio/gpio-mpc8xxx.c | 97 ++--
drivers/gpio/gpio-mvebu.c | 24 +-
drivers/gpio/gpio-omap.c | 13 +-
drivers/gpio/gpio-pcf857x.c | 15 +-
drivers/gpio/gpio-rockchip.c | 15 +-
drivers/gpio/gpio-sodaville.c | 9 +-
drivers/gpio/gpio-virtio.c | 13 +-
drivers/gpio/gpiolib-of.h | 2 +-
drivers/gpio/gpiolib.c | 2 +
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 13 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 33 +-
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 7 +-
drivers/gpu/drm/amd/amdgpu/soc21.c | 3 +
drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 15 +-
drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 7 +-
.../drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h | 62 ++-
.../drm/amd/display/modules/freesync/freesync.c | 12 +-
.../gpu/drm/amd/pm/powerplay/hwmgr/smu8_hwmgr.c | 14 +-
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 20 +-
drivers/gpu/drm/bridge/sii902x.c | 8 +-
drivers/gpu/drm/gud/gud_drv.c | 13 +-
drivers/gpu/drm/i915/i915_vma.c | 2 +-
drivers/gpu/drm/i915/i915_vma_types.h | 3 +
drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 49 +-
drivers/gpu/drm/panfrost/panfrost_drv.c | 11 +
drivers/gpu/drm/radeon/radeon_atombios.c | 22 +-
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 13 +-
drivers/gpu/drm/vc4/vc4_bo.c | 43 +-
drivers/gpu/drm/vc4/vc4_drv.h | 15 +-
drivers/gpu/drm/vc4/vc4_gem.c | 20 +-
drivers/gpu/drm/vc4/vc4_validate.c | 15 +-
drivers/gpu/drm/vc4/vc4_validate_shaders.c | 7 +-
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 200 ++++++++
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c | 11 +-
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 5 +-
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 4 +
drivers/gpu/drm/vmwgfx/vmwgfx_validation.h | 13 +-
drivers/hid/hid-letsketch.c | 21 +-
drivers/hid/hid-sensor-custom.c | 133 +++--
drivers/hid/hid-sensor-hub.c | 27 +-
drivers/hid/hid-vivaldi-common.c | 91 ++--
drivers/hwmon/ads7871.c | 4 +-
drivers/hwmon/aht10.c | 2 +-
drivers/hwmon/coretemp.c | 20 +-
drivers/hwmon/dell-smm-hwmon.c | 3 +
drivers/hwmon/max31760.c | 12 +-
drivers/hwmon/nct6775-core.c | 16 +-
drivers/hwmon/scmi-hwmon.c | 12 +-
drivers/hwmon/sht3x.c | 4 +-
drivers/hwmon/sy7636a-hwmon.c | 2 +-
drivers/hwmon/w83791d.c | 4 +-
drivers/hwmon/w83792d.c | 4 +-
drivers/i3c/master/mipi-i3c-hci/dma.c | 40 +-
drivers/iio/accel/kxsd9.c | 2 +-
drivers/iio/addac/ad74413r.c | 2 +-
drivers/iio/afe/iio-rescale.c | 3 +-
drivers/iio/chemical/atlas-ezo-sensor.c | 3 -
.../iio/common/hid-sensors/hid-sensor-attributes.c | 14 +-
drivers/iio/common/scmi_sensors/scmi_iio.c | 27 +-
drivers/iio/dac/mcp4725.c | 2 +
drivers/iio/frequency/admv1013.c | 10 +-
drivers/iio/gyro/bmg160_core.c | 2 +-
drivers/iio/humidity/am2315.c | 12 +-
drivers/iio/humidity/hid-sensor-humidity.c | 14 +-
drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 24 +-
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 77 ++-
drivers/iio/imu/kmx61.c | 2 +-
drivers/iio/industrialio-trigger.c | 4 +-
drivers/iio/light/tsl2591.c | 32 +-
drivers/iio/light/vcnl4035.c | 4 +-
drivers/iio/magnetometer/mmc35240.c | 3 +-
drivers/iio/proximity/sx9324.c | 13 +-
drivers/iio/proximity/sx9360.c | 30 +-
drivers/iio/proximity/sx9500.c | 6 +
drivers/iio/temperature/hid-sensor-temperature.c | 14 +-
drivers/infiniband/core/rdma_core.c | 2 +
drivers/infiniband/hw/efa/efa_com.c | 28 +-
drivers/infiniband/hw/erdma/erdma_main.c | 4 +-
drivers/infiniband/hw/erdma/erdma_verbs.c | 16 +-
drivers/infiniband/hw/hns/hns_roce_device.h | 1 +
drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 15 +-
drivers/infiniband/hw/irdma/ctrl.c | 6 +-
drivers/infiniband/hw/irdma/type.h | 4 +-
drivers/infiniband/hw/irdma/verbs.c | 3 +-
drivers/infiniband/hw/mlx4/main.c | 4 +
drivers/infiniband/hw/mlx5/devx.c | 6 +-
drivers/infiniband/hw/mlx5/fs.c | 3 +
drivers/infiniband/hw/mlx5/mr.c | 6 +-
drivers/infiniband/hw/mlx5/qp.c | 22 +-
drivers/infiniband/hw/mlx5/qpc.c | 10 +
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c | 6 +-
drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 3 +-
drivers/infiniband/sw/rxe/rxe_loc.h | 4 +-
drivers/infiniband/sw/rxe/rxe_mr.c | 8 +-
drivers/infiniband/sw/rxe/rxe_net.c | 2 +-
drivers/infiniband/sw/rxe/rxe_resp.c | 17 +-
drivers/infiniband/sw/siw/siw.h | 1 +
drivers/infiniband/sw/siw/siw_mem.c | 2 +-
drivers/infiniband/ulp/rtrs/rtrs-clt.c | 45 +-
drivers/infiniband/ulp/srpt/ib_srpt.c | 21 +-
drivers/infiniband/ulp/srpt/ib_srpt.h | 4 +-
drivers/input/ff-core.c | 2 +-
drivers/input/input.c | 2 +
drivers/input/joystick/xpad.c | 1 +
drivers/input/misc/da7280.c | 1 -
drivers/input/mouse/cyapa.c | 4 +-
drivers/input/mouse/trackpoint.c | 2 +
drivers/input/mouse/trackpoint.h | 1 +
drivers/input/touchscreen/goodix_fwupload.c | 4 +-
drivers/interconnect/qcom/icc-rpm.c | 7 +-
drivers/interconnect/qcom/smd-rpm.c | 8 +-
drivers/interconnect/qcom/smd-rpm.h | 2 +-
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 16 +-
drivers/irqchip/irq-gic-common.c | 2 +-
drivers/irqchip/irq-gic-v3.c | 4 +-
drivers/irqchip/irq-gic-v4.c | 39 +-
drivers/irqchip/irq-gic.c | 4 +-
drivers/irqchip/irq-mst-intc.c | 3 +
drivers/irqchip/irq-sifive-plic.c | 2 +-
drivers/mailbox/arm_mhu_db.c | 1 -
drivers/mailbox/qcom-ipcc.c | 5 +-
drivers/md/dm-cache-metadata.c | 4 +-
drivers/md/dm-cache-target.c | 15 +-
drivers/md/dm-crypt.c | 17 +-
drivers/md/dm-integrity.c | 30 +-
drivers/md/dm-ioctl.c | 2 +-
drivers/md/dm-log-userspace-base.c | 6 +-
drivers/md/dm-mpath.c | 6 +-
drivers/md/dm-raid.c | 3 +-
drivers/md/dm-snap.c | 14 +-
drivers/md/dm-sysfs.c | 17 +-
drivers/md/dm-table.c | 145 +++---
drivers/md/dm-thin-metadata.c | 5 +-
drivers/md/dm-thin.c | 6 +-
drivers/md/dm-verity-target.c | 27 +-
drivers/md/dm-zone.c | 2 +
drivers/md/dm-zoned-reclaim.c | 18 +-
drivers/md/dm.c | 4 +-
drivers/md/dm.h | 18 +-
drivers/md/persistent-data/dm-btree-remove.c | 13 +-
drivers/md/persistent-data/dm-btree.c | 8 +-
drivers/md/persistent-data/dm-space-map-common.c | 9 +-
drivers/md/raid5.c | 7 +
drivers/media/platform/atmel/atmel-isc-base.c | 15 +-
drivers/media/platform/marvell/mcam-core.c | 14 +-
drivers/memory/tegra/tegra210-emc-core.c | 16 +-
drivers/misc/bcm-vk/bcm_vk_sg.c | 43 +-
drivers/misc/ibmvmc.c | 16 +-
drivers/misc/vmw_vmci/vmci_context.c | 2 +-
drivers/misc/vmw_vmci/vmci_event.c | 7 +-
drivers/mmc/host/jz4740_mmc.c | 5 +-
drivers/mmc/host/meson-gx-mmc.c | 26 +-
drivers/mmc/host/mmci.c | 4 +-
drivers/mmc/host/omap.c | 4 +-
drivers/mmc/host/sdhci-esdhc-imx.c | 17 +
drivers/mmc/host/sunxi-mmc.c | 18 +-
drivers/mtd/mtdcore.c | 1 +
drivers/mtd/spi-nor/spansion.c | 4 -
drivers/net/amt.c | 61 +--
drivers/net/bonding/bond_main.c | 24 +-
drivers/net/can/dev/skb.c | 6 +-
drivers/net/dsa/b53/b53_common.c | 112 +++-
drivers/net/dsa/b53/b53_priv.h | 1 +
drivers/net/dsa/b53/b53_regs.h | 18 +
drivers/net/dsa/b53/b53_srab.c | 2 +-
drivers/net/dsa/bcm_sf2.c | 5 +
drivers/net/dsa/microchip/ksz_common.c | 1 +
drivers/net/ethernet/amazon/ena/ena_netdev.c | 13 +-
drivers/net/ethernet/broadcom/bcm4908_enet.c | 195 +++++--
drivers/net/ethernet/broadcom/bcmsysport.c | 20 +-
drivers/net/ethernet/broadcom/bgmac-platform.c | 3 +-
drivers/net/ethernet/broadcom/bgmac.c | 8 +-
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 59 +--
drivers/net/ethernet/broadcom/genet/bcmgenet.c | 21 +-
drivers/net/ethernet/broadcom/tg3.c | 43 +-
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 4 +-
drivers/net/ethernet/freescale/gianfar.c | 1 +
drivers/net/ethernet/intel/e1000/e1000_main.c | 3 +-
drivers/net/ethernet/intel/iavf/iavf_adminq.c | 1 +
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 42 +-
.../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 2 +-
.../net/ethernet/marvell/prestera/prestera_main.c | 28 +-
drivers/net/ethernet/mediatek/mtk_ppe.c | 5 +-
.../net/ethernet/mellanox/mlx5/core/en/params.c | 8 +-
.../ethernet/mellanox/mlx5/core/en/tc_tun_encap.c | 2 +-
.../net/ethernet/mellanox/mlx5/core/en_common.c | 2 +-
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 3 +-
.../net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h | 2 +-
.../ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c | 26 +-
drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c | 3 +-
drivers/net/ethernet/microchip/encx24j600.c | 3 +-
drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c | 10 +-
drivers/net/ethernet/microsoft/mana/mana_en.c | 7 +-
drivers/net/ethernet/qualcomm/qca_spi.c | 4 +-
drivers/net/ethernet/realtek/8139cp.c | 8 +-
drivers/net/ethernet/sfc/ptp.c | 108 ++--
drivers/net/ethernet/stmicro/stmmac/enh_desc.c | 10 +-
drivers/net/ethernet/stmicro/stmmac/norm_desc.c | 2 +-
drivers/net/ethernet/stmicro/stmmac/stmmac.h | 1 +
.../net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 11 +-
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 110 ++--
drivers/net/gtp.c | 66 ++-
drivers/net/hyperv/rndis_filter.c | 6 +-
drivers/net/ipvlan/ipvlan_core.c | 6 +-
drivers/net/ipvlan/ipvlan_l3s.c | 6 +-
drivers/net/macsec.c | 15 +-
drivers/net/phy/at803x.c | 54 ++
drivers/net/phy/marvell.c | 97 +++-
drivers/net/phy/phylink.c | 100 +++-
drivers/net/phy/sfp-bus.c | 20 +
drivers/net/phy/sfp.c | 5 +
drivers/net/phy/sfp.h | 1 +
drivers/net/team/team.c | 12 +-
drivers/net/tun.c | 21 +-
drivers/net/usb/cdc_ncm.c | 4 +-
drivers/net/veth.c | 4 +
drivers/net/virtio_net.c | 12 +-
drivers/net/wireless/ath/ath11k/ahb.c | 5 +-
drivers/net/wireless/ath/ath11k/dp_tx.c | 16 +-
drivers/net/wireless/ath/ath11k/dp_tx.h | 2 +-
drivers/net/wireless/ath/ath11k/hal_tx.h | 4 +-
drivers/net/wireless/ath/ath11k/mac.c | 7 +-
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 8 +-
drivers/net/wireless/mac80211_hwsim.c | 2 +-
drivers/net/wireless/mediatek/mt76/mt76.h | 3 +-
.../net/wireless/mediatek/mt76/mt7915/coredump.c | 7 +-
drivers/net/wireless/mediatek/mt76/mt7915/init.c | 4 +-
drivers/net/wireless/mediatek/mt76/mt7915/main.c | 2 +-
.../net/wireless/mediatek/mt76/mt7921/pci_mac.c | 4 +-
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 2 +-
.../net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 140 ++---
drivers/nvme/common/auth.c | 6 +-
drivers/nvme/host/core.c | 12 +
drivers/nvme/host/fc.c | 4 +-
drivers/nvme/host/multipath.c | 7 +
drivers/nvme/host/tcp.c | 19 +-
drivers/nvme/target/fc.c | 19 +-
drivers/nvme/target/io-cmd-file.c | 47 +-
drivers/nvme/target/loop.c | 1 +
drivers/nvme/target/rdma.c | 57 ++-
drivers/nvme/target/tcp.c | 50 +-
drivers/nvme/target/zns.c | 3 +-
drivers/phy/ingenic/phy-ingenic-usb.c | 1 -
drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 9 +-
drivers/phy/ti/phy-ti-pipe3.c | 63 ++-
drivers/pinctrl/stm32/pinctrl-stm32.c | 12 +-
drivers/platform/x86/amd/pmc.c | 4 +
drivers/ptp/ptp_clock.c | 5 +
drivers/ptp/ptp_kvm_x86.c | 7 +-
drivers/ptp/ptp_private.h | 12 +-
drivers/ptp/ptp_sysfs.c | 18 +-
drivers/ptp/ptp_vclock.c | 128 +++--
drivers/regulator/Kconfig | 1 +
drivers/regulator/qcom_spmi-regulator.c | 35 +-
drivers/remoteproc/imx_rproc.c | 18 +-
drivers/reset/reset-scmi.c | 1 +
drivers/rtc/rtc-ftrtc010.c | 69 +--
drivers/s390/block/dasd.c | 1 +
drivers/s390/block/dasd_eckd.c | 55 +-
drivers/s390/block/dasd_int.h | 15 +
drivers/s390/block/dasd_ioctl.c | 4 +-
drivers/s390/block/dcssblk.c | 3 +-
drivers/scsi/aha1542.c | 2 -
drivers/scsi/aic7xxx/aic7xxx_core.c | 2 +-
drivers/scsi/device_handler/scsi_dh_rdac.c | 6 +-
drivers/scsi/mpi3mr/mpi3mr.h | 1 +
drivers/scsi/mpi3mr/mpi3mr_fw.c | 18 +
drivers/scsi/scsi_debug.c | 74 ++-
drivers/scsi/sd_zbc.c | 9 +-
drivers/soundwire/qcom.c | 2 +
drivers/spi/spi-bcm63xx-hsspi.c | 1 +
drivers/spi/spi-cadence-quadspi.c | 4 +-
drivers/spi/spi-fsl-spi.c | 8 +
drivers/spi/spi-omap2-mcspi.c | 240 ++++++---
drivers/spi/spi-pic32-sqi.c | 3 +-
drivers/spi/spi-tegra210-quad.c | 31 +-
drivers/spi/spi.c | 44 +-
.../staging/media/atomisp/pci/sh_css_param_dvs.c | 11 +-
.../media/atomisp/pci/sh_css_param_shading.c | 4 +-
drivers/staging/media/atomisp/pci/sh_css_params.c | 35 +-
drivers/staging/rtl8723bs/core/rtw_mlme.c | 14 +-
drivers/target/iscsi/iscsi_target.c | 22 +-
drivers/target/iscsi/iscsi_target_nego.c | 6 +-
drivers/target/target_core_alua.c | 7 +
drivers/target/target_core_configfs.c | 16 +-
drivers/target/target_core_pr.c | 9 +-
drivers/tty/serial/8250/8250_lpss.c | 3 +
drivers/tty/serial/rda-uart.c | 36 +-
drivers/tty/serial/samsung_tty.c | 8 +-
drivers/tty/serial/sc16is7xx.c | 2 +-
drivers/tty/serial/serial_txx9.c | 56 +-
drivers/tty/serial/sh-sci.c | 10 +-
drivers/tty/tty_io.c | 3 +-
drivers/tty/vt/keyboard.c | 6 +
drivers/tty/vt/vt.c | 2 +
drivers/ufs/core/ufs_bsg.c | 7 +-
drivers/ufs/host/ufs-mediatek.c | 12 +-
drivers/usb/cdns3/cdns3-gadget.c | 6 +-
drivers/usb/dwc3/core.h | 7 +-
drivers/usb/dwc3/dwc3-xilinx.c | 146 +++---
drivers/usb/dwc3/ep0.c | 4 +-
drivers/usb/dwc3/gadget.c | 283 ++++++----
drivers/usb/gadget/function/f_mass_storage.c | 8 +-
drivers/usb/gadget/function/f_midi.c | 4 +
drivers/usb/gadget/function/f_ncm.c | 7 +-
drivers/usb/gadget/function/f_uac1_legacy.c | 8 +-
drivers/usb/gadget/function/storage_common.c | 7 +-
drivers/usb/gadget/function/storage_common.h | 3 +-
drivers/usb/gadget/function/u_serial.c | 170 ++++--
drivers/usb/gadget/function/u_uac1_legacy.c | 17 +-
drivers/usb/host/pci-quirks.c | 13 +-
drivers/usb/misc/usbtest.c | 3 +
drivers/usb/serial/garmin_gps.c | 31 +-
drivers/usb/serial/io_edgeport.c | 141 +++--
drivers/usb/serial/oti6858.c | 16 +-
drivers/usb/serial/sierra.c | 18 +-
drivers/usb/serial/upd78f0730.c | 13 +-
drivers/usb/storage/uas-detect.h | 8 +-
drivers/usb/typec/ucsi/ucsi.c | 10 +-
drivers/usb/typec/ucsi/ucsi.h | 1 +
drivers/usb/typec/ucsi/ucsi_acpi.c | 33 ++
drivers/vdpa/vdpa.c | 7 +-
drivers/vfio/fsl-mc/vfio_fsl_mc.c | 10 +-
drivers/vfio/platform/vfio_platform_common.c | 10 +-
drivers/vhost/net.c | 2 +-
drivers/vhost/scsi.c | 27 +-
drivers/vhost/test.c | 4 +
drivers/vhost/vhost.c | 3 +-
drivers/video/console/vgacon.c | 2 +
drivers/video/fbdev/aty/radeon_base.c | 3 +
drivers/video/fbdev/fm2fb.c | 2 +-
drivers/video/fbdev/macmodes.c | 2 +-
drivers/video/fbdev/smscufx.c | 26 +-
drivers/video/fbdev/sstfb.c | 3 +
drivers/video/fbdev/valkyriefb.c | 3 +-
drivers/video/fbdev/vfb.c | 18 +-
drivers/w1/masters/ds2482.c | 36 +-
drivers/w1/slaves/w1_ds2805.c | 8 +-
drivers/w1/slaves/w1_ds28e04.c | 18 +-
drivers/w1/slaves/w1_therm.c | 45 +-
drivers/w1/w1.c | 21 +-
drivers/w1/w1_int.c | 8 +-
drivers/w1/w1_netlink.c | 8 +-
drivers/watchdog/npcm_wdt.c | 35 +-
drivers/xen/gntdev.c | 8 +-
drivers/xen/grant-table.c | 37 +-
drivers/xen/pvcalls-back.c | 26 +-
fs/9p/v9fs_vfs.h | 7 +-
fs/9p/vfs_dir.c | 10 +-
fs/9p/vfs_inode.c | 26 +-
fs/9p/vfs_inode_dotl.c | 6 +-
fs/9p/vfs_super.c | 29 +-
fs/adfs/dir_fplus.c | 2 +
fs/afs/rxrpc.c | 8 +-
fs/aio.c | 7 +-
fs/btrfs/block-group.c | 6 +-
fs/btrfs/delayed-inode.c | 71 +--
fs/btrfs/free-space-cache.c | 10 +
fs/btrfs/inode.c | 12 +-
fs/btrfs/ioctl.c | 2 +-
fs/btrfs/scrub.c | 8 +-
fs/btrfs/send.c | 27 +-
fs/btrfs/struct-funcs.c | 2 +-
fs/btrfs/super.c | 5 +-
fs/btrfs/verity.c | 2 +-
fs/btrfs/volumes.c | 38 ++
fs/btrfs/xattr.c | 9 +
fs/btrfs/zoned.c | 5 +
fs/ceph/addr.c | 12 +
fs/coredump.c | 4 +
fs/crypto/keysetup.c | 14 +-
fs/dcache.c | 16 +-
fs/direct-io.c | 15 +-
fs/dlm/config.c | 9 +-
fs/dlm/member.c | 17 +-
fs/eventpoll.c | 11 +-
fs/ext4/extents.c | 8 +-
fs/ext4/inline.c | 6 +
fs/ext4/xattr.c | 12 +
fs/f2fs/file.c | 14 +-
fs/fuse/file.c | 2 +-
fs/fuse/readdir.c | 2 +
fs/fuse/xattr.c | 2 +-
fs/inode.c | 3 +-
fs/jbd2/journal.c | 3 +
fs/kernfs/dir.c | 52 +-
fs/kernfs/symlink.c | 17 +-
fs/nfs/dir.c | 159 +++---
fs/nfs/flexfilelayout/flexfilelayout.c | 92 +++-
fs/nfs/flexfilelayout/flexfilelayout.h | 1 +
fs/nfs/internal.h | 30 ++
fs/nfs/nfs4client.c | 7 +-
fs/nfs/nfs4proc.c | 5 +-
fs/nfs/pnfs.c | 14 +-
fs/ntfs3/frecord.c | 9 +-
fs/ntfs3/index.c | 10 +
fs/ntfs3/xattr.c | 6 +-
fs/ocfs2/cluster/heartbeat.c | 16 +-
fs/ocfs2/dlmfs/userdlm.c | 12 +-
fs/ocfs2/dlmglue.c | 19 +-
fs/ocfs2/inode.c | 17 +-
fs/ocfs2/journal.c | 30 +-
fs/ocfs2/journal.h | 17 +-
fs/ocfs2/ocfs2.h | 1 +
fs/ocfs2/super.c | 1 +
fs/overlayfs/dir.c | 17 +-
fs/overlayfs/namei.c | 11 +-
fs/overlayfs/ovl_entry.h | 2 +
fs/overlayfs/super.c | 22 +
fs/proc/base.c | 10 +-
fs/proc/proc_sysctl.c | 5 +-
fs/smb/client/cifsacl.h | 14 -
fs/smb/client/cifsproto.h | 1 +
fs/smb/client/cifssmb.c | 29 +-
fs/smb/client/connect.c | 6 +-
fs/smb/client/file.c | 44 +-
fs/smb/client/netmisc.c | 3 +-
fs/smb/client/readdir.c | 3 +-
fs/smb/client/sess.c | 4 +-
fs/smb/client/smb2misc.c | 16 +
fs/smb/client/smb2ops.c | 6 +-
fs/smb/client/smb2pdu.c | 29 +-
fs/smb/server/smb2pdu.c | 436 ++++++++++------
fs/smb/server/smb_common.c | 34 +-
fs/smb/server/smb_common.h | 5 +
fs/smb/server/smbacl.c | 37 +-
fs/smb/server/transport_tcp.c | 7 +-
fs/smb/server/vfs.c | 4 +
fs/smb/server/vfs_cache.h | 2 +
fs/splice.c | 6 +
fs/stat.c | 3 +
fs/udf/super.c | 99 +++-
fs/userfaultfd.c | 22 +-
fs/xattr.c | 2 +-
fs/xfs/xfs_aops.c | 2 +-
fs/xfs/xfs_bmap_util.c | 11 +-
fs/xfs/xfs_file.c | 2 +-
fs/xfs/xfs_iomap.c | 20 +-
fs/xfs/xfs_iomap.h | 3 +-
fs/xfs/xfs_pnfs.c | 9 +-
fs/zonefs/file.c | 9 +-
include/acpi/acpi_bus.h | 1 +
include/linux/arm-smccc.h | 7 +
include/linux/bpf.h | 8 +-
include/linux/can/dev.h | 2 +-
include/linux/can/skb.h | 4 +-
include/linux/cpufreq.h | 3 +
include/linux/dim.h | 7 +
include/linux/filter.h | 9 +
include/linux/if_vlan.h | 9 +-
include/linux/key.h | 3 +
include/linux/llist.h | 42 ++
include/linux/mmzone.h | 7 +-
include/linux/netdevice.h | 7 +-
include/linux/nsc_gpio.h | 2 +-
include/linux/page_counter.h | 4 +
include/linux/phylink.h | 104 +++-
include/linux/sched.h | 2 +-
include/linux/sched/task.h | 5 +-
include/linux/sfp.h | 6 +
include/linux/skbuff.h | 19 +-
include/linux/sunrpc/xdr.h | 1 +
include/linux/tcp.h | 6 +-
include/net/9p/client.h | 2 +-
include/net/af_rxrpc.h | 3 +-
include/net/bluetooth/hci_core.h | 14 +-
include/net/bluetooth/l2cap.h | 6 +-
include/net/codel.h | 5 +
include/net/codel_impl.h | 16 +-
include/net/dropreason.h | 6 +
include/net/dst.h | 3 +-
include/net/dst_metadata.h | 2 +
include/net/gro.h | 8 +-
include/net/inet_connection_sock.h | 1 +
include/net/inet_hashtables.h | 2 +
include/net/ip_vs.h | 2 +-
include/net/netdev_queues.h | 39 +-
include/net/netfilter/nf_conntrack_helper.h | 1 +
include/net/netfilter/nf_queue.h | 1 +
include/net/netns/netfilter.h | 1 +
include/net/request_sock.h | 7 +-
include/net/route.h | 7 +-
include/net/seg6.h | 7 +
include/net/seg6_hmac.h | 10 +-
include/net/sock.h | 24 +-
include/net/tcp.h | 9 +
include/net/xsk_buff_pool.h | 3 +
include/scsi/scsi_proto.h | 3 +
include/sound/hda_codec.h | 6 +-
include/trace/events/huge_memory.h | 6 +-
include/trace/events/iocost.h | 7 +-
include/trace/events/oom.h | 8 +-
include/uapi/linux/io_uring.h | 2 +
io_uring/io_uring.c | 23 +-
io_uring/rsrc.c | 26 +-
io_uring/rw.c | 1 +
kernel/bpf/arraymap.c | 2 +-
kernel/bpf/bpf_iter.c | 17 +-
kernel/bpf/bpf_lsm.c | 4 -
kernel/bpf/btf.c | 26 +-
kernel/bpf/core.c | 52 +-
kernel/bpf/cpumap.c | 22 +-
kernel/bpf/devmap.c | 1 +
kernel/bpf/preload/iterators/iterators.lskel.h | 6 +-
kernel/bpf/syscall.c | 49 +-
kernel/bpf/task_iter.c | 6 +-
kernel/bpf/trampoline.c | 19 +-
kernel/bpf/verifier.c | 38 +-
kernel/dma/coherent.c | 11 +-
kernel/dma/swiotlb.c | 9 +-
kernel/events/core.c | 7 +-
kernel/fork.c | 3 +
kernel/kprobes.c | 328 ++++++------
kernel/locking/osq_lock.c | 81 ++-
kernel/ptrace.c | 6 +
kernel/rcu/tree_nocb.h | 6 +-
kernel/sched/core.c | 18 +-
kernel/sched/core_sched.c | 3 +-
kernel/sched/pelt.c | 2 +-
kernel/sched/sched.h | 19 +
kernel/time/timekeeping.c | 8 +-
kernel/trace/bpf_trace.c | 24 +-
kernel/trace/trace_eprobe.c | 96 ++--
kernel/trace/trace_events_filter.c | 5 +
kernel/trace/trace_events_hist.c | 5 +
kernel/trace/trace_kprobe.c | 11 +-
kernel/trace/trace_probe.c | 16 +-
kernel/trace/trace_probe_tmpl.h | 14 +-
kernel/trace/trace_recursion_record.c | 17 +-
kernel/trace/trace_uprobe.c | 79 ++-
kernel/tsacct.c | 10 +-
lib/bitmap.c | 24 +-
lib/bootconfig.c | 7 +-
lib/dim/net_dim.c | 6 -
lib/errseq.c | 42 +-
lib/maple_tree.c | 45 +-
lib/seq_buf.c | 2 +-
lib/test_bpf.c | 1 -
lib/test_sysctl.c | 2 +-
lib/test_xarray.c | 70 +++
lib/xarray.c | 8 +-
mm/damon/core.c | 5 +-
mm/filemap.c | 7 +
mm/gup.c | 12 +-
mm/hugetlb.c | 21 +-
mm/internal.h | 30 +-
mm/khugepaged.c | 58 ++-
mm/ksm.c | 39 +-
mm/memcontrol.c | 160 +-----
mm/memory_hotplug.c | 44 +-
mm/mempolicy.c | 6 +-
mm/mmzone.c | 2 +-
mm/mremap.c | 7 +
mm/page_alloc.c | 118 +++--
mm/page_counter.c | 182 +++++++
mm/vmscan.c | 4 +-
net/9p/protocol.c | 12 +-
net/batman-adv/bat_iv_ogm.c | 2 +-
net/bluetooth/hci_conn.c | 23 +-
net/bluetooth/hci_core.c | 48 +-
net/bluetooth/hci_event.c | 42 +-
net/bluetooth/hci_sync.c | 69 ++-
net/bluetooth/hci_sysfs.c | 17 +-
net/bluetooth/l2cap_core.c | 259 +++++-----
net/bluetooth/l2cap_sock.c | 18 +-
net/bluetooth/mgmt.c | 331 +++++++++---
net/bluetooth/mgmt_config.c | 10 +-
net/bluetooth/mgmt_util.c | 23 +-
net/bluetooth/msft.c | 107 ++--
net/bluetooth/smp.c | 26 +-
net/bridge/br_arp_nd_proxy.c | 6 +-
net/bridge/br_if.c | 6 +-
net/bridge/br_input.c | 18 +-
net/bridge/br_netlink.c | 2 +-
net/bridge/netfilter/nf_conntrack_bridge.c | 2 +-
net/core/dev.c | 44 +-
net/core/filter.c | 136 +++--
net/core/gro.c | 12 +-
net/core/lwt_bpf.c | 60 ++-
net/core/skbuff.c | 2 +-
net/core/skmsg.c | 4 +-
net/core/sock.c | 5 +-
net/core/sock_reuseport.c | 33 +-
net/devlink/leftover.c | 5 +
net/ieee802154/socket.c | 4 +
net/ipv4/af_inet.c | 5 +-
net/ipv4/fib_trie.c | 14 +-
net/ipv4/fou_core.c | 31 +-
net/ipv4/igmp.c | 2 +
net/ipv4/inet_connection_sock.c | 38 +-
net/ipv4/inet_fragment.c | 61 ++-
net/ipv4/inet_hashtables.c | 11 +
net/ipv4/inet_timewait_sock.c | 6 +-
net/ipv4/ip_fragment.c | 17 +-
net/ipv4/ip_input.c | 8 +-
net/ipv4/ip_output.c | 23 +-
net/ipv4/ip_tunnel.c | 6 +-
net/ipv4/netfilter/arp_tables.c | 5 +-
net/ipv4/netfilter/ip_tables.c | 5 +-
net/ipv4/route.c | 31 +-
net/ipv4/syncookies.c | 12 +-
net/ipv4/tcp.c | 16 +-
net/ipv4/tcp_input.c | 16 +-
net/ipv4/tcp_ipv4.c | 23 +-
net/ipv4/tcp_metrics.c | 3 +-
net/ipv4/tcp_minisocks.c | 2 +-
net/ipv4/udp.c | 5 +-
net/ipv4/udp_offload.c | 9 +-
net/ipv4/xfrm4_input.c | 2 +-
net/ipv4/xfrm4_protocol.c | 2 +-
net/ipv6/af_inet6.c | 8 +-
net/ipv6/calipso.c | 17 +-
net/ipv6/exthdrs.c | 7 +-
net/ipv6/exthdrs_core.c | 7 +-
net/ipv6/icmp.c | 10 +-
net/ipv6/ip6_fib.c | 16 +-
net/ipv6/ip6_input.c | 4 +
net/ipv6/ip6_output.c | 13 +-
net/ipv6/ip6mr.c | 45 +-
net/ipv6/ipv6_sockglue.c | 108 ----
net/ipv6/mip6.c | 9 +-
net/ipv6/netfilter/ip6_tables.c | 5 +-
net/ipv6/netfilter/nf_conntrack_reasm.c | 14 +-
net/ipv6/reassembly.c | 14 +-
net/ipv6/route.c | 66 +--
net/ipv6/seg6.c | 35 +-
net/ipv6/seg6_hmac.c | 5 +-
net/ipv6/seg6_iptunnel.c | 46 +-
net/ipv6/seg6_local.c | 144 +++++-
net/ipv6/sit.c | 2 +-
net/ipv6/tcp_ipv6.c | 2 +-
net/ipv6/udp.c | 5 +-
net/iucv/af_iucv.c | 9 +
net/mac80211/cfg.c | 53 +-
net/mac80211/ibss.c | 23 +-
net/mac80211/ieee80211_i.h | 3 +
net/mac80211/link.c | 8 +-
net/mac80211/ocb.c | 23 +-
net/mac80211/tx.c | 44 +-
net/mac802154/llsec.c | 2 +
net/mctp/af_mctp.c | 2 +-
net/mptcp/options.c | 12 +-
net/mptcp/protocol.c | 3 +-
net/mptcp/subflow.c | 7 +
net/netfilter/core.c | 17 +-
net/netfilter/ipvs/ip_vs_app.c | 2 +-
net/netfilter/ipvs/ip_vs_conn.c | 4 +-
net/netfilter/ipvs/ip_vs_core.c | 12 +-
net/netfilter/ipvs/ip_vs_ctl.c | 30 +-
net/netfilter/ipvs/ip_vs_ftp.c | 20 +-
net/netfilter/ipvs/ip_vs_lblc.c | 8 +-
net/netfilter/ipvs/ip_vs_lblcr.c | 13 +-
net/netfilter/ipvs/ip_vs_sync.c | 42 +-
net/netfilter/nf_conntrack_helper.c | 20 +-
net/netfilter/nf_conntrack_sip.c | 4 +-
net/netfilter/nf_flow_table_ip.c | 2 +
net/netfilter/nf_nat_masquerade.c | 4 +-
net/netfilter/nf_queue.c | 13 +-
net/netfilter/nf_tables_api.c | 21 +-
net/netfilter/nf_tables_offload.c | 3 +
net/netfilter/nfnetlink_hook.c | 19 +-
net/netfilter/nft_ct.c | 119 ++++-
net/netfilter/xt_NETMAP.c | 4 +-
net/netfilter/xt_recent.c | 7 +-
net/openvswitch/flow.c | 19 +-
net/qrtr/ns.c | 34 +-
net/rds/ib_sysctl.c | 2 +-
net/rds/rdma.c | 5 +-
net/rds/sysctl.c | 2 +-
net/rds/tcp.c | 2 +-
net/rxrpc/input.c | 20 +-
net/rxrpc/sendmsg.c | 79 +--
net/sched/act_ife.c | 13 +-
net/sched/sch_teql.c | 9 +-
net/sctp/sm_make_chunk.c | 43 +-
net/sctp/sm_statefuns.c | 16 +-
net/sctp/socket.c | 14 +-
net/sctp/stream.c | 2 +
net/sctp/stream_interleave.c | 38 +-
net/socket.c | 11 +-
net/sunrpc/auth_gss/svcauth_gss.c | 62 ++-
net/sunrpc/clnt.c | 5 +-
net/sunrpc/rpc_pipe.c | 1 +
net/sunrpc/xdr.c | 7 +
net/sunrpc/xprtrdma/frwr_ops.c | 89 ++--
net/sunrpc/xprtrdma/transport.c | 2 +
net/sunrpc/xprtrdma/verbs.c | 16 +-
net/sunrpc/xprtrdma/xprt_rdma.h | 10 +-
net/tipc/bearer.c | 33 ++
net/tls/tls_device.c | 34 +-
net/tls/tls_sw.c | 25 +-
net/unix/garbage.c | 3 -
net/vmw_vsock/af_vsock.c | 3 +-
net/vmw_vsock/virtio_transport.c | 16 +-
net/wireless/nl80211.c | 9 +-
net/wireless/scan.c | 3 +-
net/xdp/xsk.c | 5 +
net/xdp/xsk_buff_pool.c | 39 +-
net/xfrm/xfrm_interface_core.c | 8 +
net/xfrm/xfrm_replay.c | 6 +-
security/apparmor/include/match.h | 11 +-
security/apparmor/include/policy.h | 20 +
security/apparmor/lsm.c | 19 +
security/apparmor/match.c | 54 +-
security/apparmor/net.c | 1 +
security/apparmor/policy.c | 3 +
security/apparmor/policy_unpack.c | 4 +-
security/keys/big_key.c | 16 +-
security/keys/key.c | 14 +-
security/keys/keyctl.c | 2 -
security/keys/keyctl_pkey.c | 124 +++--
security/keys/keyring.c | 25 +-
security/keys/request_key.c | 14 +-
security/keys/trusted-keys/trusted_core.c | 15 +-
sound/core/control_led.c | 62 ++-
sound/core/jack.c | 6 +
sound/core/oss/pcm_oss.c | 4 +-
sound/core/pcm.c | 94 ++--
sound/core/pcm_compat.c | 29 +-
sound/core/pcm_memory.c | 30 +-
sound/core/pcm_native.c | 228 ++++-----
sound/core/rawmidi.c | 3 +
sound/core/sound_oss.c | 35 +-
sound/drivers/aloop.c | 12 +-
sound/firewire/fcp.c | 5 +-
sound/firewire/fireworks/fireworks_transaction.c | 4 +-
sound/hda/hdac_controller.c | 10 +-
sound/pci/Kconfig | 1 +
sound/pci/hda/hda_codec.c | 1 -
sound/pci/hda/hda_intel.c | 30 +-
sound/pci/hda/hda_jack.c | 79 +--
sound/pci/hda/hda_jack.h | 1 +
sound/pci/hda/hda_sysfs.c | 5 +-
sound/pci/hda/patch_realtek.c | 32 +-
sound/soc/codecs/max98090.c | 22 +-
sound/soc/codecs/rt1015.c | 81 ++-
sound/soc/codecs/rt5645.c | 7 +-
sound/soc/codecs/sta32x.c | 101 +++-
sound/soc/codecs/wm8962.c | 2 +-
sound/soc/codecs/wm_adsp.c | 10 +
sound/soc/fsl/fsl_asrc.c | 22 +
sound/soc/fsl/fsl_easrc.c | 10 +
sound/soc/intel/avs/pcm.c | 2 +
sound/soc/mediatek/mt8192/mt8192-dai-i2s.c | 20 +-
sound/soc/meson/axg-fifo.c | 30 +-
sound/soc/qcom/qdsp6/q6asm-dai.c | 3 +
sound/soc/qcom/qdsp6/q6dsp-lpass-clocks.c | 14 +-
sound/soc/rockchip/rk3288_hdmi_analog.c | 38 +-
sound/soc/sof/control.c | 49 +-
sound/soc/sof/intel/hda-codec.c | 4 +-
sound/soc/sof/sof-priv.h | 4 +
sound/usb/caiaq/device.c | 11 +-
sound/usb/misc/ua101.c | 29 +-
sound/usb/mixer.c | 23 +
sound/usb/mixer.h | 2 +
sound/usb/pcm.c | 6 +
tools/bootconfig/main.c | 29 +-
tools/bootconfig/samples/exp-good-mixed-kv1.bconf | 7 +
tools/bootconfig/samples/good-mixed-kv1.bconf | 5 +
tools/bootconfig/scripts/bconf2ftrace.sh | 21 +-
tools/bootconfig/scripts/ftrace2bconf.sh | 5 +-
tools/bootconfig/test-bootconfig.sh | 24 +
tools/bpf/bpftool/common.c | 40 ++
tools/bpf/bpftool/gen.c | 26 +-
tools/bpf/bpftool/main.h | 1 +
tools/bpf/bpftool/map.c | 93 ++--
tools/cgroup/iocost_monitor.py | 7 +-
tools/gpio/gpio-event-mon.c | 4 +-
tools/gpio/gpio-hammer.c | 4 +-
tools/gpio/lsgpio.c | 3 +-
tools/include/nolibc/types.h | 6 +-
tools/lib/bpf/btf.c | 14 +-
tools/lib/bpf/libbpf.c | 3 +-
tools/lib/bpf/skel_internal.h | 37 +-
tools/perf/Makefile.perf | 2 +-
tools/perf/tests/code-reading.c | 16 +-
tools/perf/tests/pe-file-parsing.c | 2 +-
tools/perf/util/evsel.c | 2 +-
tools/perf/util/jitdump.c | 5 +-
tools/perf/util/symbol.c | 9 +-
tools/testing/cxl/test/cxl.c | 4 +-
.../selftests/drivers/s390x/uvdevice/Makefile | 19 +-
.../ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc | 2 +-
.../tcp_bidir_fast_retransmit_nosack.pkt | 42 ++
tools/testing/selftests/net/reuseport_bpf_numa.c | 1 +
tools/testing/selftests/proc/proc-pid-vm.c | 2 -
910 files changed, 13377 insertions(+), 6339 deletions(-)
^ permalink raw reply [flat|nested] 60+ messages in thread
* [PATCH 6.1 0001/1059] RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0002/1059] netfilter: nft_ct: expectation timeouts are passed in milliseconds Greg Kroah-Hartman
` (57 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Cheng Xu, Leon Romanovsky,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cheng Xu <chengyou@linux.alibaba.com>
[ Upstream commit 00baeade709fb66da647e8327e8398bb532e30f7 ]
Locked QP and CQ lookups from EQ interrupts can deadlock with
create-path XArray updates. If an interrupt arrives while the create
path holds the plain xa_lock, the lookup spins forever trying to
acquire the same lock.
Use IRQ-safe XArray helpers for all QP and CQ create-path updates,
including the GSI QP store and error paths. Initialize both arrays with
XA_FLAGS_LOCK_IRQ so sleeping allocations preserve interrupt state.
[ The GSI QP create path is not present in 6.1.y, so omit that hunk. ]
Fixes: 98df2aee1459 ("RDMA/erdma: Hold CQ references when processing EQ events")
Fixes: a52eeff32024 ("RDMA/erdma: Hold QP references for AE and CM processing")
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://patch.msgid.link/20260828030344.88021-1-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/infiniband/hw/erdma/erdma_main.c | 4 ++--
drivers/infiniband/hw/erdma/erdma_verbs.c | 16 ++++++++--------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/infiniband/hw/erdma/erdma_main.c b/drivers/infiniband/hw/erdma/erdma_main.c
index 49d9319217414..ca93686b03784 100644
--- a/drivers/infiniband/hw/erdma/erdma_main.c
+++ b/drivers/infiniband/hw/erdma/erdma_main.c
@@ -500,8 +500,8 @@ static int erdma_ib_device_add(struct pci_dev *pdev)
INIT_LIST_HEAD(&dev->cep_list);
spin_lock_init(&dev->lock);
- xa_init_flags(&dev->qp_xa, XA_FLAGS_ALLOC1);
- xa_init_flags(&dev->cq_xa, XA_FLAGS_ALLOC1);
+ xa_init_flags(&dev->qp_xa, XA_FLAGS_ALLOC1 | XA_FLAGS_LOCK_IRQ);
+ xa_init_flags(&dev->cq_xa, XA_FLAGS_ALLOC1 | XA_FLAGS_LOCK_IRQ);
dev->next_alloc_cqn = 1;
dev->next_alloc_qpn = 1;
diff --git a/drivers/infiniband/hw/erdma/erdma_verbs.c b/drivers/infiniband/hw/erdma/erdma_verbs.c
index 2ddc56335b9a6..b848828287d19 100644
--- a/drivers/infiniband/hw/erdma/erdma_verbs.c
+++ b/drivers/infiniband/hw/erdma/erdma_verbs.c
@@ -693,9 +693,9 @@ int erdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attrs,
kref_init(&qp->ref);
init_completion(&qp->safe_free);
- ret = xa_alloc_cyclic(&dev->qp_xa, &qp->ibqp.qp_num, qp,
- XA_LIMIT(1, dev->attrs.max_qp - 1),
- &dev->next_alloc_qpn, GFP_KERNEL);
+ ret = xa_alloc_cyclic_irq(&dev->qp_xa, &qp->ibqp.qp_num, qp,
+ XA_LIMIT(1, dev->attrs.max_qp - 1),
+ &dev->next_alloc_qpn, GFP_KERNEL);
if (ret < 0) {
ret = -ENOMEM;
goto err_out;
@@ -750,7 +750,7 @@ int erdma_create_qp(struct ib_qp *ibqp, struct ib_qp_init_attr *attrs,
else
free_kernel_qp(qp);
err_out_xa:
- xa_erase(&dev->qp_xa, QP_ID(qp));
+ xa_erase_irq(&dev->qp_xa, QP_ID(qp));
err_out:
return ret;
}
@@ -1433,9 +1433,9 @@ int erdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
refcount_set(&cq->refcount, 1);
init_completion(&cq->free);
- ret = xa_alloc_cyclic(&dev->cq_xa, &cq->cqn, cq,
- XA_LIMIT(1, dev->attrs.max_cq - 1),
- &dev->next_alloc_cqn, GFP_KERNEL);
+ ret = xa_alloc_cyclic_irq(&dev->cq_xa, &cq->cqn, cq,
+ XA_LIMIT(1, dev->attrs.max_cq - 1),
+ &dev->next_alloc_cqn, GFP_KERNEL);
if (ret < 0)
return ret;
@@ -1482,7 +1482,7 @@ int erdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr,
}
err_out_xa:
- xa_erase(&dev->cq_xa, cq->cqn);
+ xa_erase_irq(&dev->cq_xa, cq->cqn);
return ret;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0002/1059] netfilter: nft_ct: expectation timeouts are passed in milliseconds
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0001/1059] RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0003/1059] netfilter: nft_ct: move custom expectation support to helper Greg Kroah-Hartman
` (56 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Florian Westphal, Pablo Neira Ayuso,
Mark Bundschuh, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Florian Westphal <fw@strlen.de>
[ Upstream commit 6fb421bd07f156cdf0cdede062d31f1c21def326 ]
Userspace passes '5000' in case user asks for 5 seconds.
Allowing for sub-second expectation lifetimes makes sense to me. so
fix up the kernel side instead of munging nft to send a value rounded
up to next second.
Also note that this violates nft convention of passing integers in
network byte order, but we can't change this anymore.
Fixes: 857b46027d6f ("netfilter: nft_ct: add ct expectations support")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Stable-dep-of: 3679da4ad8be ("netfilter: nft_ct: move custom expectation support to helper")
Signed-off-by: Mark Bundschuh <mkbund@amazon.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/netfilter/nft_ct.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index f789c6c8f146b..fbe83e879654e 100644
--- a/net/netfilter/nft_ct.c
+++ b/net/netfilter/nft_ct.c
@@ -1229,11 +1229,23 @@ struct nft_ct_expect_obj {
u32 timeout;
};
+static int nft_ct_expect_timeout_get(const struct nlattr *attr, u32 *val)
+{
+ unsigned long jiffies_val = msecs_to_jiffies(nla_get_u32(attr));
+
+ if (jiffies_val > UINT_MAX)
+ return -ERANGE;
+
+ *val = jiffies_val;
+ return 0;
+}
+
static int nft_ct_expect_obj_init(const struct nft_ctx *ctx,
const struct nlattr * const tb[],
struct nft_object *obj)
{
struct nft_ct_expect_obj *priv = nft_obj_data(obj);
+ int err;
if (!tb[NFTA_CT_EXPECT_L4PROTO] ||
!tb[NFTA_CT_EXPECT_DPORT] ||
@@ -1269,8 +1281,11 @@ static int nft_ct_expect_obj_init(const struct nft_ctx *ctx,
return -EOPNOTSUPP;
}
+ err = nft_ct_expect_timeout_get(tb[NFTA_CT_EXPECT_TIMEOUT], &priv->timeout);
+ if (err)
+ return err;
+
priv->dport = nla_get_be16(tb[NFTA_CT_EXPECT_DPORT]);
- priv->timeout = nla_get_u32(tb[NFTA_CT_EXPECT_TIMEOUT]);
priv->size = nla_get_u8(tb[NFTA_CT_EXPECT_SIZE]);
return nf_ct_netns_get(ctx->net, ctx->family);
@@ -1290,7 +1305,7 @@ static int nft_ct_expect_obj_dump(struct sk_buff *skb,
if (nla_put_be16(skb, NFTA_CT_EXPECT_L3PROTO, htons(priv->l3num)) ||
nla_put_u8(skb, NFTA_CT_EXPECT_L4PROTO, priv->l4proto) ||
nla_put_be16(skb, NFTA_CT_EXPECT_DPORT, priv->dport) ||
- nla_put_u32(skb, NFTA_CT_EXPECT_TIMEOUT, priv->timeout) ||
+ nla_put_u32(skb, NFTA_CT_EXPECT_TIMEOUT, jiffies_to_msecs(priv->timeout)) ||
nla_put_u8(skb, NFTA_CT_EXPECT_SIZE, priv->size))
return -1;
@@ -1340,7 +1355,7 @@ static void nft_ct_expect_obj_eval(struct nft_object *obj,
&ct->tuplehash[!dir].tuple.src.u3,
&ct->tuplehash[!dir].tuple.dst.u3,
priv->l4proto, NULL, &priv->dport);
- exp->timeout += priv->timeout * HZ;
+ exp->timeout += priv->timeout;
if (nf_ct_expect_related(exp, 0) != 0)
regs->verdict.code = NF_DROP;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0003/1059] netfilter: nft_ct: move custom expectation support to helper
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0001/1059] RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0002/1059] netfilter: nft_ct: expectation timeouts are passed in milliseconds Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0004/1059] mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs Greg Kroah-Hartman
` (55 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jaeyeong Lee, Pablo Neira Ayuso,
Mark Bundschuh, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pablo Neira Ayuso <pablo@netfilter.org>
[ Upstream commit 3679da4ad8be84cddaf40bc307fef1fe13e051ff ]
Originally, the ct expectation support called nf_ct_helper_ext_add() for
confirmed conntracks, which is invalid, triggering a splat. This was
fixed by commit 1710eb913bdc ("netfilter: nft_ct: skip expectations for
confirmed conntrack") which restricted it to unconfirmed conntracks.
However, early insertion of expectations into the expectations list when
the conntrack is unconfirmed leads to stale entries pointing to the
wrong hlist_head through .pprev due to ct extension reallocation.
Commit 7c9664351980 ("netfilter: move nat hlist_head to nf_conn") moved
the nat hlist_head to nf_conn for this reason:
1. ...
2. When reallocation of extension area occurs we need to fixup the
bysource hash head via hlist_replace_rcu.
I'd rather not increase the size of the struct nf_conn for this feature
has very limited scope: only one expectation can be created at a time
given expect_clash() will make nf_ct_expect_related() reports EBUSY.
For this reason, relax nf_ct_expect_related() not to drop packets in
case expectation creation fails, therefore, expectation creation becomes
best effort.
To address this issue, add an internal ct helper and attach it to the
conntrack entry to streamline the custom ct expectation support with
existing ct helpers.
Expose a new nf_conntrack_helper_release() function to release the
internal helper that is allocated and attached to the conntrack entry to
create the custom expectations. The nft_ct module removal always waits
for rcu grace period, then the NULL helper callback is observed after
this.
This patch also restricts the creation of expectations to different
helpers other than this custom helper that is created for this type of
expectations.
Fixes: 857b46027d6f ("netfilter: nft_ct: add ct expectations support")
Reported-by: Jaeyeong Lee <iostreampy@proton.me>
Link: https://patch.msgid.link/20260715144755.00ea7dfcd9f@proton.me
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
[ - ac46f3f35b6e ("netfilter: nf_conntrack_helper: add refcounting from
datapath") is not backported because it reworks helper lifetime
around a datapath ct_refcnt in 9 files, so one static nft_ct_expect
helper is unhelped at nft_ct module exit.
- d4beefc90a66 ("netfilter: nft_ct: support expectation creation for
natted flows") is not backported because it adds expectation support
for NATed flows, so the moved expectation code has no NAT
follow-master part.
- Context differs due to commit: 6031487d4e27 ]
Signed-off-by: Mark Bundschuh <mkbund@amazon.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
include/net/netfilter/nf_conntrack_helper.h | 1 +
net/netfilter/nf_conntrack_helper.c | 20 ++--
net/netfilter/nft_ct.c | 100 +++++++++++++++-----
3 files changed, 89 insertions(+), 32 deletions(-)
diff --git a/include/net/netfilter/nf_conntrack_helper.h b/include/net/netfilter/nf_conntrack_helper.h
index 2435039434ea9..9340029739476 100644
--- a/include/net/netfilter/nf_conntrack_helper.h
+++ b/include/net/netfilter/nf_conntrack_helper.h
@@ -105,6 +105,7 @@ void nf_ct_helper_init(struct nf_conntrack_helper *helper,
int nf_conntrack_helper_register(struct nf_conntrack_helper *);
void nf_conntrack_helper_unregister(struct nf_conntrack_helper *);
+void nf_conntrack_helper_release(struct nf_conntrack_helper *);
int nf_conntrack_helpers_register(struct nf_conntrack_helper *, unsigned int);
void nf_conntrack_helpers_unregister(struct nf_conntrack_helper *,
diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c
index b16a45856bdcc..6be6588b572e6 100644
--- a/net/netfilter/nf_conntrack_helper.c
+++ b/net/netfilter/nf_conntrack_helper.c
@@ -428,6 +428,18 @@ static bool expect_iter_me(struct nf_conntrack_expect *exp, void *data)
return this == me;
}
+void nf_conntrack_helper_release(struct nf_conntrack_helper *me)
+{
+ nf_ct_expect_iterate_destroy(expect_iter_me, me);
+ nf_ct_iterate_destroy(unhelp, me);
+
+ /* nf_ct_iterate_destroy() does an unconditional synchronize_rcu() as
+ * last step, this ensures rcu readers of exp->helper are done.
+ * No need for another synchronize_rcu() here.
+ */
+}
+EXPORT_SYMBOL_GPL(nf_conntrack_helper_release);
+
void nf_conntrack_helper_unregister(struct nf_conntrack_helper *me)
{
mutex_lock(&nf_ct_helper_mutex);
@@ -440,13 +452,7 @@ void nf_conntrack_helper_unregister(struct nf_conntrack_helper *me)
*/
synchronize_rcu();
- nf_ct_expect_iterate_destroy(expect_iter_me, me);
- nf_ct_iterate_destroy(unhelp, me);
-
- /* nf_ct_iterate_destroy() does an unconditional synchronize_rcu() as
- * last step, this ensures rcu readers of exp->helper are done.
- * No need for another synchronize_rcu() here.
- */
+ nf_conntrack_helper_release(me);
}
EXPORT_SYMBOL_GPL(nf_conntrack_helper_unregister);
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c
index fbe83e879654e..87630eb0a9f47 100644
--- a/net/netfilter/nft_ct.c
+++ b/net/netfilter/nft_ct.c
@@ -1240,6 +1240,65 @@ static int nft_ct_expect_timeout_get(const struct nlattr *attr, u32 *val)
return 0;
}
+struct nft_ct_expect_data {
+ struct nft_ct_expect_obj obj;
+ enum ip_conntrack_dir dir;
+};
+
+static int ct_expect_help(struct sk_buff *skb, unsigned int protoff,
+ struct nf_conn *ct, enum ip_conntrack_info ctinfo)
+{
+ enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo);
+ struct nft_ct_expect_data *expect_data;
+ struct nf_conntrack_expect *exp;
+ int ret = NF_ACCEPT;
+ u16 l3num;
+
+ if (nf_ct_is_confirmed(ct))
+ return NF_ACCEPT;
+
+ expect_data = nfct_help_data(ct);
+ if (!expect_data)
+ return NF_ACCEPT;
+
+ if (expect_data->dir != dir)
+ return NF_ACCEPT;
+
+ exp = nf_ct_expect_alloc(ct);
+ if (!exp)
+ return NF_DROP;
+
+ if (expect_data->obj.l3num == NFPROTO_INET)
+ l3num = nf_ct_l3num(ct);
+ else
+ l3num = expect_data->obj.l3num;
+
+ nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, l3num,
+ &ct->tuplehash[!dir].tuple.src.u3,
+ &ct->tuplehash[!dir].tuple.dst.u3,
+ expect_data->obj.l4proto, NULL, &expect_data->obj.dport);
+ exp->timeout += expect_data->obj.timeout;
+
+ if (nf_ct_expect_related(exp, 0) != 0)
+ ret = NF_ACCEPT;
+
+ nf_ct_expect_put(exp);
+
+ return ret;
+}
+
+static const struct nf_conntrack_expect_policy nft_ct_expect_helper_policy = {
+ .max_expected = NF_CT_EXPECT_MAX_CNT,
+};
+
+/* No need to register this helper, this is internal. */
+static struct nf_conntrack_helper nft_ct_expect_helper = {
+ .name = "nft_ct_expect",
+ .me = THIS_MODULE,
+ .expect_policy = &nft_ct_expect_helper_policy,
+ .help = ct_expect_help,
+};
+
static int nft_ct_expect_obj_init(const struct nft_ctx *ctx,
const struct nlattr * const tb[],
struct nft_object *obj)
@@ -1247,6 +1306,8 @@ static int nft_ct_expect_obj_init(const struct nft_ctx *ctx,
struct nft_ct_expect_obj *priv = nft_obj_data(obj);
int err;
+ NF_CT_HELPER_BUILD_BUG_ON(sizeof(struct nft_ct_expect_data));
+
if (!tb[NFTA_CT_EXPECT_L4PROTO] ||
!tb[NFTA_CT_EXPECT_DPORT] ||
!tb[NFTA_CT_EXPECT_TIMEOUT] ||
@@ -1292,7 +1353,7 @@ static int nft_ct_expect_obj_init(const struct nft_ctx *ctx,
}
static void nft_ct_expect_obj_destroy(const struct nft_ctx *ctx,
- struct nft_object *obj)
+ struct nft_object *obj)
{
nf_ct_netns_put(ctx->net, ctx->family);
}
@@ -1317,11 +1378,9 @@ static void nft_ct_expect_obj_eval(struct nft_object *obj,
const struct nft_pktinfo *pkt)
{
const struct nft_ct_expect_obj *priv = nft_obj_data(obj);
- struct nf_conntrack_expect *exp;
+ struct nft_ct_expect_data *expect_data;
enum ip_conntrack_info ctinfo;
struct nf_conn_help *help;
- enum ip_conntrack_dir dir;
- u16 l3num = priv->l3num;
struct nf_conn *ct;
ct = nf_ct_get(pkt->skb, &ctinfo);
@@ -1329,38 +1388,28 @@ static void nft_ct_expect_obj_eval(struct nft_object *obj,
regs->verdict.code = NFT_BREAK;
return;
}
- dir = CTINFO2DIR(ctinfo);
help = nfct_help(ct);
- if (!help)
- help = nf_ct_helper_ext_add(ct, GFP_ATOMIC);
- if (!help) {
- regs->verdict.code = NF_DROP;
- return;
- }
-
- if (help->expecting[NF_CT_EXPECT_CLASS_DEFAULT] >= priv->size) {
+ if (help) {
regs->verdict.code = NFT_BREAK;
return;
}
- if (l3num == NFPROTO_INET)
- l3num = nf_ct_l3num(ct);
- exp = nf_ct_expect_alloc(ct);
- if (exp == NULL) {
+ help = nf_ct_helper_ext_add(ct, GFP_ATOMIC);
+ if (!help) {
regs->verdict.code = NF_DROP;
return;
}
- nf_ct_expect_init(exp, NF_CT_EXPECT_CLASS_DEFAULT, l3num,
- &ct->tuplehash[!dir].tuple.src.u3,
- &ct->tuplehash[!dir].tuple.dst.u3,
- priv->l4proto, NULL, &priv->dport);
- exp->timeout += priv->timeout;
- if (nf_ct_expect_related(exp, 0) != 0)
- regs->verdict.code = NF_DROP;
+ expect_data = nfct_help_data(ct);
+ if (!expect_data) {
+ regs->verdict.code = NFT_BREAK;
+ return;
+ }
+ expect_data->obj = *priv;
+ expect_data->dir = CTINFO2DIR(ctinfo);
- nf_ct_expect_put(exp);
+ rcu_assign_pointer(help->helper, &nft_ct_expect_helper);
}
static const struct nla_policy nft_ct_expect_policy[NFTA_CT_EXPECT_MAX + 1] = {
@@ -1440,6 +1489,7 @@ static void __exit nft_ct_module_exit(void)
nft_unregister_obj(&nft_ct_helper_obj_type);
nft_unregister_expr(&nft_notrack_type);
nft_unregister_expr(&nft_ct_type);
+ nf_conntrack_helper_release(&nft_ct_expect_helper);
}
module_init(nft_ct_module_init);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0004/1059] mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (2 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0003/1059] netfilter: nft_ct: move custom expectation support to helper Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0005/1059] drm/amdgpu: Check cs flags Greg Kroah-Hartman
` (54 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Pedro Falcato,
Gregory Price (Meta), Muhammad Usama Anjum, Lance Yang,
Baolin Wang, David Hildenbrand (Arm), Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit fe2817e3d5ea347214342c9a5cd8bcbff20c0574 ]
try_collapse_pte_mapped_thp() clears PTEs without transferring their dirty
bits to the folio. A shmem read fault can map a clean folio writable, so
a later store only dirties the PTE. Losing that dirty bit allows reclaim
to discard modified data.
The assumption that regular files are read-only is also obsolete since
commit 1b6444331bebb ("mm/khugepaged: enable clean pagecache folio collapse
for writable files"). In any case, transferring PTE dirty bits to the folio
when removing mappings (and while the folio is still mapped) is the right
thing to do.
Use get_and_clear_ptes() to collect the dirty bits and mark the folio
dirty before unmapping it. Update the comment.
This was reproduced with shmem using MADV_COLLAPSE followed by
MADV_PAGEOUT.
Fix generated by an LLM and sent by Chris Mason in private.
Fixes: 27e1f8273113 ("khugepaged: enable collapse pmd for pte-mapped THP")
Fixes: 1b6444331bebb ("mm/khugepaged: enable clean pagecache folio collapse for writable files")
Cc: stable@vger.kernel.org
Signed-off-by: Chris Mason <mason@kernel.org>
[ david: adjust comment; simplify description; cover file-thp as well ]
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Reviewed-by: Gregory Price (Meta) <gourry@gourry.net>
Tested-by: Gregory Price (Meta) <gourry@gourry.net>
Tested-by: Muhammad Usama Anjum <usama.anjum@arm.com>
Link: https://patch.msgid.link/20261031-fixes_core-v3-17-d6437171ecc3@kernel.org
Reviewed-by: Lance Yang <lance.yang@linux.dev>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: David Hildenbrand (Arm) <david@kernel.org>
[ sashal: adapted batched PTE and folio handling to the existing per-PTE loop using ptep_get_and_clear() and set_page_dirty() ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/khugepaged.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mm/khugepaged.c b/mm/khugepaged.c
index c9ee735a2b1d9..ba41de673bc15 100644
--- a/mm/khugepaged.c
+++ b/mm/khugepaged.c
@@ -1562,12 +1562,16 @@ int collapse_pte_mapped_thp(struct mm_struct *mm, unsigned long addr,
for (i = 0, addr = haddr, pte = start_pte;
i < HPAGE_PMD_NR; i++, addr += PAGE_SIZE, pte++) {
struct page *page;
+ pte_t ptent;
if (pte_none(*pte))
continue;
page = vm_normal_page(vma, addr, *pte);
if (WARN_ON_ONCE(page && is_zone_device_page(page)))
goto abort;
+ ptent = ptep_get_and_clear(mm, addr, pte);
+ if (pte_dirty(ptent))
+ set_page_dirty(hpage);
page_remove_rmap(page, vma, false);
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0005/1059] drm/amdgpu: Check cs flags.
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (3 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0004/1059] mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0006/1059] bpf: Drop inet_conn_established from lsm sleepable hooks Greg Kroah-Hartman
` (53 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Bas Nieuwenhuizen, Faith Ekstrand,
Alex Deucher, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
[ Upstream commit f5ea64f9fcd921bc4e2307a262e19450b8a58524 ]
Had no validation before. libdrm_amdgpu memsets this, even
for the raw/raw2 functions.
We have a lot of functions touching the ioctl struct, no
strong opinion on where this is placed, but I thought
early would be good.
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4d01e15e76358f60ef6734462d2b6d9972b9dfbc)
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
index 710bf84e2ab48..d086c2a2329db 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
@@ -202,6 +202,9 @@ static int amdgpu_cs_pass1(struct amdgpu_cs_parser *p,
int ret;
int i;
+ if (cs->in.flags)
+ return -EINVAL;
+
chunk_array = memdup_array_user(u64_to_user_ptr(cs->in.chunks),
cs->in.num_chunks,
sizeof(uint64_t));
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0006/1059] bpf: Drop inet_conn_established from lsm sleepable hooks
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (4 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0005/1059] drm/amdgpu: Check cs flags Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0007/1059] mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES Greg Kroah-Hartman
` (52 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, BoBppy, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
The backport of commit beaf0e96b1da ("bpf: Drop task_to_inode and
inet_conn_established from lsm sleepable hooks") to this tree removed
only bpf_lsm_task_to_inode from sleepable_lsm_hooks.
bpf_lsm_inet_conn_established is still listed there, although the hook
is called from softirq context and cannot be used by sleepable LSM
programs.
Remove it too, which completes the backport.
Fixes: f0fc2a982817 ("bpf: Drop task_to_inode and inet_conn_established from lsm sleepable hooks")
Reported-by: BoBppy <inkxiao12@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
kernel/bpf/bpf_lsm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/kernel/bpf/bpf_lsm.c b/kernel/bpf/bpf_lsm.c
index f26faa9a35db1..6fcf1e02a9d38 100644
--- a/kernel/bpf/bpf_lsm.c
+++ b/kernel/bpf/bpf_lsm.c
@@ -305,10 +305,6 @@ BTF_ID(func, bpf_lsm_file_lock)
BTF_ID(func, bpf_lsm_file_open)
BTF_ID(func, bpf_lsm_file_receive)
-#ifdef CONFIG_SECURITY_NETWORK
-BTF_ID(func, bpf_lsm_inet_conn_established)
-#endif /* CONFIG_SECURITY_NETWORK */
-
BTF_ID(func, bpf_lsm_inode_create)
BTF_ID(func, bpf_lsm_inode_free_security)
BTF_ID(func, bpf_lsm_inode_getattr)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0007/1059] mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (5 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0006/1059] bpf: Drop inet_conn_established from lsm sleepable hooks Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0008/1059] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask Greg Kroah-Hartman
` (51 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Johannes Weiner, Andrew Morton,
Balbir Singh, Vlastimil Babka (SUSE), Matthew Wilcox (Oracle),
Salvatore Dipietro, Christoph Hellwig, Dave Chinner, Matt Fleming,
Mel Gorman, Michal Hocko, Suren Baghdasaryan, Brendan Jackman,
Zi Yan, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Johannes Weiner <hannes@cmpxchg.org>
[ Upstream commit fe21f930d1e64d121191673076fc4ebe79fc82d5 ]
1ebbb21811b7 ("mm/page_alloc: explicitly define how __GFP_HIGH
non-blocking allocations accesses reserves") stopped handing out reserve
access for ALLOC_NON_BLOCK on its own: the extra 25% below the min
watermark is now only granted on top of ALLOC_MIN_RESERVE. But the flag
was left in ALLOC_RESERVES, which produces something odd:
With the ALLOC_RESERVES match, __zone_watermark_unusable_free() doesn't
subtract the free highatomic pages for them. So in the slowpath, they get
to consume regular blocks below the min watermark by the number of free
highatomic pages. The highatomic reserve is capped at 1% of the zone,
which on any decently sized machine is a multiple of the min watermark:
GFP_NOWAIT can drain regular memory to zero.
The user-visible result is brutal hiccups during bursts of GFP_NOWAIT
allocations under memory pressure. This was found in review and
reproduced with a synthetic burst, not observed in production, but the
sequence of events is a realistic one: On a 32G box with an anonymous
working set, swap, and a filled 290M highatomic reserve, a GFP_NOWAIT
burst drove regular free memory in the 28G Normal zone (min=60M) to 28M,
0.8M and 0.6M in three runs. Swapout failed to allocate its swap table,
reclaim scanned 13M pages to reclaim 200k, page faults stalled for tens to
hundreds of milliseconds. The machine survives it, but not by design:
direct reclaimers eventually fail and start unreserving highatomic blocks,
until the allocation succeeds or the reserve is gone and the OOM killer
runs. That reserve exists for high-order atomic allocations; here it is
destroyed to bail out a GFP_NOWAIT consumer that was never entitled to the
memory.
Remove ALLOC_NON_BLOCK from ALLOC_RESERVES. With that, the GFP_NOWAIT
burst is stopped short at the min watermark. No direct reclaim, no
stalls, no failed allocations, and the highatomic reserve stays intact for
the requests it exists for.
__zone_watermark_ok() is unaffected, since everything it keys on
ALLOC_NON_BLOCK is already nested under ALLOC_MIN_RESERVE. Update the
flag comments accordingly: ALLOC_NON_BLOCK just means the caller can't
block; the reserve math belongs with ALLOC_MIN_RESERVE.
GFP_ATOMIC order-0 requests have a milder version of the same problem.
Through ALLOC_MIN_RESERVE they also count the free highatomic pages in
their watermark check, but rmqueue_buddy() serves them regular pages first
and only falls back to the reserve once those are gone. They can still
push regular free memory to 37.5% of min minus the free highatomic pages
before the reserve is touched. Unlike GFP_NOWAIT they are entitled to the
reserve, so this needs the watermark check and the freelist order reworked
together, and is left to a separate patch.
Link: https://lore.kernel.org/20261028171719.2043421-3-hannes@cmpxchg.org
Fixes: 1ebbb21811b7 ("mm/page_alloc: explicitly define how __GFP_HIGH non-blocking allocations accesses reserves")
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Balbir Singh <balbirs@nvidia.com>
Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Salvatore Dipietro <dipiets@amazon.it>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <dgc@kernel.org>
Cc: Matt Fleming <matt@readmodwrite.com>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Brendan Jackman <brendan.jackman@linux.dev>
Cc: Zi Yan <ziy@nvidia.com>
Cc: <stable@vger.kernel.org>
[ sashal: Moved ALLOC_* flag edits from the nonexistent mm/page_alloc.h to mm/internal.h, with hunk context adjusted for the missing ALLOC_NO_CODETAG flag. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/internal.h | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/mm/internal.h b/mm/internal.h
index 92051c970ac1c..a94aae7f6c8df 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -776,12 +776,11 @@ unsigned int reclaim_clean_pages_from_list(struct zone *zone,
#define ALLOC_OOM ALLOC_NO_WATERMARKS
#endif
-#define ALLOC_NON_BLOCK 0x10 /* Caller cannot block. Allow access
- * to 25% of the min watermark or
- * 62.5% if __GFP_HIGH is set.
- */
+#define ALLOC_NON_BLOCK 0x10 /* Caller cannot block. */
#define ALLOC_MIN_RESERVE 0x20 /* __GFP_HIGH set. Allow access to 50%
- * of the min watermark.
+ * of the min watermark, or 62.5% if
+ * the caller cannot block either
+ * (ALLOC_NON_BLOCK).
*/
#define ALLOC_CPUSET 0x40 /* check for correct cpuset */
#define ALLOC_CMA 0x80 /* allow allocations from CMA areas */
@@ -794,7 +793,7 @@ unsigned int reclaim_clean_pages_from_list(struct zone *zone,
#define ALLOC_KSWAPD 0x800 /* allow waking of kswapd, __GFP_KSWAPD_RECLAIM set */
/* Flags that allow allocations below the min watermark. */
-#define ALLOC_RESERVES (ALLOC_NON_BLOCK|ALLOC_MIN_RESERVE|ALLOC_HIGHATOMIC|ALLOC_OOM)
+#define ALLOC_RESERVES (ALLOC_MIN_RESERVE|ALLOC_HIGHATOMIC|ALLOC_OOM)
/* Flags that mean GFP_ATOMIC */
#define ALLOC_MASK_ATOMIC (ALLOC_NON_BLOCK|ALLOC_MIN_RESERVE)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0008/1059] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (6 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0007/1059] mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0009/1059] fs: aio: reject partial mremap to avoid Null-pointer-dereference error Greg Kroah-Hartman
` (50 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Pengpeng Hou, Thomas Gleixner,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Pengpeng Hou <hppiscas@163.com>
[ Upstream commit 0f214e5bbee59d5952d3c061fd65ed9a1e175981 ]
__plic_toggle() builds a 32-bit interrupt enable mask using a signed
integer literal. A valid interrupt selecting bit 31 evaluates 1 << 31,
which shifts a signed int into its sign bit.
Use BIT(), matching the equivalent mask construction in plic_irq_eoi().
The resulting mask remains representable in u32 on both RV32 and RV64.
The issue was found by our static-analysis tool.
Fixes: 8237f8bc4f6e ("irqchip: add a SiFive PLIC driver")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Assisted-by: gpt 5
Link: https://patch.msgid.link/caplitmus-rv.v2.plic.87a8fc444de44e109889ba28703c76f3@163.com
[ sashal: Context lines adapted to the older __plic_toggle() signature and direct register write, applying only the 1 << (hwirq % 32) to BIT(hwirq % 32) change. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/irqchip/irq-sifive-plic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c
index fb1dae22ab17f..396fb37abf611 100644
--- a/drivers/irqchip/irq-sifive-plic.c
+++ b/drivers/irqchip/irq-sifive-plic.c
@@ -89,7 +89,7 @@ static int plic_irq_set_type(struct irq_data *d, unsigned int type);
static void __plic_toggle(void __iomem *enable_base, int hwirq, int enable)
{
u32 __iomem *reg = enable_base + (hwirq / 32) * sizeof(u32);
- u32 hwirq_mask = 1 << (hwirq % 32);
+ u32 hwirq_mask = BIT(hwirq % 32);
if (enable)
writel(readl(reg) | hwirq_mask, reg);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0009/1059] fs: aio: reject partial mremap to avoid Null-pointer-dereference error
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (7 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0008/1059] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0010/1059] Revert "SUNRPC: svcauth_gss: enforce krb5 token minimum length" Greg Kroah-Hartman
` (49 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Zizhi Wo, Jan Kara,
Christian Brauner, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Zizhi Wo <wozizhi@huawei.com>
[ Upstream commit 3adf7ae18bf42601246031002287c103a27df307 ]
[BUG]
Recently, our internal syzkaller testing uncovered a null pointer
dereference issue:
BUG: kernel NULL pointer dereference, address: 0000000000000000
...
[ 51.111664] filemap_read_folio+0x25/0xe0
[ 51.112410] filemap_fault+0xad7/0x1250
[ 51.113112] __do_fault+0x4b/0x460
[ 51.113699] do_pte_missing+0x5bc/0x1db0
[ 51.114250] ? __pte_offset_map+0x23/0x170
[ 51.114822] __handle_mm_fault+0x9f8/0x1680
...
Crash analysis showed the file involved was an AIO ring file. The
phenomenon triggered is the same as the issue described in [1].
[CAUSE]
Consider the following scenario: userspace sets up an AIO context via
io_setup(), which creates a VMA covering the entire ring buffer. Then
userspace calls mremap() with the AIO ring address as the source, a smaller
old_len (less than the full ring size), MREMAP_MAYMOVE set, and without
MREMAP_DONTUNMAP. The kernel will relocate the requested portion to a new
destination address.
During this move, __split_vma() splits the original AIO ring VMA. The
requested portion is unmapped from the source and re-established at the
destination, while the remainder stays at the original source address as
an orphan VMA. The aio_ring_mremap() callback fires on the new destination
VMA, updating ctx->mmap_base to the destination address. But the callback
is unaware that only a partial region was moved and that an orphan VMA
still exists at the source:
source(AIO):
+-------------------+---------------------+
| moved to dest | orphan VMA (AIO) |
+-------------------+---------------------+
A A+partial_len A+ctx->mmap_size
dest:
+-------------------+
| moved VMA (AIO) |
+-------------------+
B B+partial_len
Later, io_destroy() calls vm_munmap(ctx->mmap_base, ctx->mmap_size), which
unmaps the destination. This not only fails to unmap the orphan VMA at the
source, but also overshoots the destination VMA and may unmap unrelated
mappings adjacent to it! After put_aio_ring_file() calls truncate_setsize()
to remove all pages from the pagecache, any subsequent access to the orphan
VMA triggers filemap_fault(), which calls a_ops->read_folio(). Since aio
does not implement read_folio, this results in a NULL pointer dereference.
[FIX]
Note that expanding mremap (new_len > old_len) is already rejected because
AIO ring VMAs are created with VM_DONTEXPAND. The only problematic case is
a partial move where "old_len == new_len" but both are smaller than the
full ring size.
Fix this by checking in aio_ring_mremap() that the new VMA covers the
entire ring. This ensures the AIO ring is always moved as a whole,
preventing orphan VMAs and the subsequent crash.
[1]: https://lore.kernel.org/all/20260413010814.548568-1-wozizhi@huawei.com/
Signed-off-by: Zizhi Wo <wozizhi@huaweicloud.com>
Link: https://patch.msgid.link/20260418060634.3713620-1-wozizhi@huaweicloud.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/aio.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/aio.c b/fs/aio.c
index 3c3770d8e2637..535757e11f67f 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -369,7 +369,8 @@ static int aio_ring_mremap(struct vm_area_struct *vma)
ctx = rcu_dereference(table->table[i]);
if (ctx && ctx->aio_ring_file == file) {
- if (!atomic_read(&ctx->dead)) {
+ if (!atomic_read(&ctx->dead) &&
+ (ctx->mmap_size == (vma->vm_end - vma->vm_start))) {
ctx->user_id = ctx->mmap_base = vma->vm_start;
res = 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0010/1059] Revert "SUNRPC: svcauth_gss: enforce krb5 token minimum length"
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (8 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0009/1059] fs: aio: reject partial mremap to avoid Null-pointer-dereference error Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0011/1059] Revert "SUNRPC: Convert unwrap_priv_data() to use xdr_stream" Greg Kroah-Hartman
` (48 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
This reverts commit 2188232509f1559cb8fcb0c9a4b1e04317fa0f15.
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/sunrpc/auth_gss/svcauth_gss.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 5ae15e3b40094..3d417548dc508 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -1009,8 +1009,6 @@ svcauth_gss_unwrap_priv(struct svc_rqst *rqstp, u32 seq, struct gss_ctx *ctx)
}
if (len > xdr_stream_remaining(xdr))
goto unwrap_failed;
- if (len <= GSS_KRB5_TOK_HDR_LEN)
- goto unwrap_failed;
offset = xdr_stream_pos(xdr);
saved_len = buf->len;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0011/1059] Revert "SUNRPC: Convert unwrap_priv_data() to use xdr_stream"
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (9 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0010/1059] Revert "SUNRPC: svcauth_gss: enforce krb5 token minimum length" Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0012/1059] SUNRPC: svcauth_gss: enforce krb5 token minimum length Greg Kroah-Hartman
` (47 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
This reverts commit 82cf21374fb7ee55b37be9afb6704ba0eeffb236.
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
include/linux/sunrpc/xdr.h | 1 +
net/sunrpc/auth_gss/svcauth_gss.c | 64 +++++++++++++++++++++----------
net/sunrpc/xdr.c | 7 ++++
3 files changed, 51 insertions(+), 21 deletions(-)
diff --git a/include/linux/sunrpc/xdr.h b/include/linux/sunrpc/xdr.h
index f7e2850c8638f..f84e2a1358e17 100644
--- a/include/linux/sunrpc/xdr.h
+++ b/include/linux/sunrpc/xdr.h
@@ -188,6 +188,7 @@ xdr_adjust_iovec(struct kvec *iov, __be32 *p)
/*
* XDR buffer helper functions
*/
+extern void xdr_shift_buf(struct xdr_buf *, size_t);
extern void xdr_buf_from_iov(const struct kvec *, struct xdr_buf *);
extern int xdr_buf_subsegment(const struct xdr_buf *, struct xdr_buf *, unsigned int, unsigned int);
extern void xdr_buf_trim(struct xdr_buf *, unsigned int);
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 3d417548dc508..64fba16d8afc1 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -978,6 +978,17 @@ total_buf_len(struct xdr_buf *buf)
return buf->head[0].iov_len + buf->page_len + buf->tail[0].iov_len;
}
+static void
+fix_priv_head(struct xdr_buf *buf, int pad)
+{
+ if (buf->page_len == 0) {
+ /* We need to adjust head and buf->len in tandem in this
+ * case to make svc_defer() work--it finds the original
+ * buffer start using buf->len - buf->head[0].iov_len. */
+ buf->head[0].iov_len -= pad;
+ }
+}
+
/*
* RFC 2203, Section 5.3.2.3
*
@@ -990,37 +1001,49 @@ total_buf_len(struct xdr_buf *buf)
* proc_req_arg_t arg;
* };
*/
-static noinline_for_stack int
-svcauth_gss_unwrap_priv(struct svc_rqst *rqstp, u32 seq, struct gss_ctx *ctx)
+static int
+svcauth_gss_unwrap_priv(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq,
+ struct gss_ctx *ctx)
{
- struct xdr_stream *xdr = &rqstp->rq_arg_stream;
- u32 len, maj_stat, seq_num, offset;
- struct xdr_buf *buf = xdr->buf;
- unsigned int saved_len;
+ u32 len, seq_num, maj_stat;
+ int pad, remaining_len, offset;
clear_bit(RQ_SPLICE_OK, &rqstp->rq_flags);
- if (xdr_stream_decode_u32(xdr, &len) < 0)
- goto unwrap_failed;
+ len = svc_getnl(&buf->head[0]);
if (rqstp->rq_deferred) {
/* Already decrypted last time through! The sequence number
* check at out_seq is unnecessary but harmless: */
goto out_seq;
}
- if (len > xdr_stream_remaining(xdr))
+ /* buf->len is the number of bytes from the original start of the
+ * request to the end, where head[0].iov_len is just the bytes
+ * not yet read from the head, so these two values are different: */
+ remaining_len = total_buf_len(buf);
+ if (len > remaining_len)
goto unwrap_failed;
- offset = xdr_stream_pos(xdr);
-
- saved_len = buf->len;
- maj_stat = gss_unwrap(ctx, offset, offset + len, buf);
+ pad = remaining_len - len;
+ buf->len -= pad;
+ fix_priv_head(buf, pad);
+
+ maj_stat = gss_unwrap(ctx, 0, len, buf);
+ pad = len - buf->len;
+ /* The upper layers assume the buffer is aligned on 4-byte boundaries.
+ * In the krb5p case, at least, the data ends up offset, so we need to
+ * move it around. */
+ /* XXX: This is very inefficient. It would be better to either do
+ * this while we encrypt, or maybe in the receive code, if we can peak
+ * ahead and work out the service and mechanism there. */
+ offset = xdr_pad_size(buf->head[0].iov_len);
+ if (offset) {
+ buf->buflen = RPCSVC_MAXPAYLOAD;
+ xdr_shift_buf(buf, offset);
+ fix_priv_head(buf, pad);
+ }
if (maj_stat != GSS_S_COMPLETE)
goto bad_unwrap;
- xdr->nwords -= XDR_QUADLEN(saved_len - buf->len);
-
out_seq:
- /* gss_unwrap() decrypted the sequence number. */
- if (xdr_stream_decode_u32(xdr, &seq_num) < 0)
- goto unwrap_failed;
+ seq_num = svc_getnl(&buf->head[0]);
if (seq_num != seq)
goto bad_seqno;
return 0;
@@ -1656,9 +1679,8 @@ svcauth_gss_accept(struct svc_rqst *rqstp)
/* placeholders for length and seq. number: */
svc_putnl(resv, 0);
svc_putnl(resv, 0);
- svcxdr_init_decode(rqstp);
- if (svcauth_gss_unwrap_priv(rqstp, gc->gc_seq,
- rsci->mechctx))
+ if (svcauth_gss_unwrap_priv(rqstp, &rqstp->rq_arg,
+ gc->gc_seq, rsci->mechctx))
goto garbage_args;
rqstp->rq_auth_slack = RPC_MAX_AUTH_SIZE * 2;
break;
diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index 7c4e966a6aad2..612b1a5572ebc 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -863,6 +863,13 @@ static unsigned int xdr_shrink_pagelen(struct xdr_buf *buf, unsigned int len)
return shift;
}
+void
+xdr_shift_buf(struct xdr_buf *buf, size_t len)
+{
+ xdr_shrink_bufhead(buf, buf->head->iov_len - len);
+}
+EXPORT_SYMBOL_GPL(xdr_shift_buf);
+
/**
* xdr_stream_pos - Return the current offset from the start of the xdr_stream
* @xdr: pointer to struct xdr_stream
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0012/1059] SUNRPC: svcauth_gss: enforce krb5 token minimum length
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (10 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0011/1059] Revert "SUNRPC: Convert unwrap_priv_data() to use xdr_stream" Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0013/1059] mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITE Greg Kroah-Hartman
` (46 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Jeff Layton,
Chuck Lever, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <clm@meta.com>
[ Upstream commit a919c5c88769cf8fb3ec071e6078d830bf512489 ]
svcauth_gss_unwrap_priv() validates only an upper bound on the
wire-supplied opaque length before handing the buffer to
gss_unwrap():
if (len > xdr_stream_remaining(xdr))
goto unwrap_failed;
offset = xdr_stream_pos(xdr);
...
maj_stat = gss_unwrap(ctx, offset, offset + len, buf);
The wire value `len` flows unchanged as the upper bound into the
krb5 unwrap path, so a len in [0, 16] passes this check and is
handed to gss_unwrap(). For a krb5 v2 context that lands in
gss_krb5_unwrap_v2(), which reads the 16-byte RFC 4121 token
header fields at ptr+4 and ptr+6 and then calls rotate_left()
before any integrity check. With a sub-header length the header
reads run past the token, and _rotate_left()'s `shift %= buf->len`
path can divide by zero when buf->len has been driven to zero by
the truncated token. A header-only token (len == 16) is equally
invalid: with a non-zero RRC field and the opaque blob ending at
the XDR buffer boundary, rotate_left() builds a zero-length
subbuffer, reaching the same division.
Reject the token at the server entry point before it reaches the
krb5 unwrap core. A valid sealed RFC 4121 token must contain
the 16-byte header plus at least some encrypted payload.
Fix by adding a minimum-length check immediately after the
existing upper-bound check:
if (len <= GSS_KRB5_TOK_HDR_LEN)
goto unwrap_failed;
Fixes: 7c9fdcfb1b64 ("[PATCH] knfsd: svcrpc: gss: server-side implementation of rpcsec_gss privacy")
Cc: stable@vger.kernel.org
Assisted-by: kres (claude-opus-4-7)
Signed-off-by: Chris Mason <clm@meta.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Link: https://patch.msgid.link/20260524010213.557424-2-cel@kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
[ sashal: Kept the older pre-xdr_stream code and inserted the two-line len <= GSS_KRB5_TOK_HDR_LEN check after the existing len > remaining_len check, since upstream's xdr_stream context lines don't exist. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/sunrpc/auth_gss/svcauth_gss.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index 64fba16d8afc1..cc92e28c1a27d 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -1022,6 +1022,8 @@ svcauth_gss_unwrap_priv(struct svc_rqst *rqstp, struct xdr_buf *buf, u32 seq,
remaining_len = total_buf_len(buf);
if (len > remaining_len)
goto unwrap_failed;
+ if (len <= GSS_KRB5_TOK_HDR_LEN)
+ goto unwrap_failed;
pad = remaining_len - len;
buf->len -= pad;
fix_priv_head(buf, pad);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0013/1059] mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITE
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (11 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0012/1059] SUNRPC: svcauth_gss: enforce krb5 token minimum length Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0014/1059] mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHARE Greg Kroah-Hartman
` (45 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, David Hildenbrand, Peter Xu,
Andrea Arcangeli, Hugh Dickins, Jason Gunthorpe, John Hubbard,
Matthew Wilcox (Oracle), Shuah Khan, Vlastimil Babka,
Andrew Morton, Lance Yang, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand <david@redhat.com>
[ Upstream commit 58f595c6659198e1ad0ed431a408ddd79b21e579 ]
Now that GUP no longer requires VM_FAULT_WRITE, break_ksm() is the sole
remaining user of VM_FAULT_WRITE. As we also want to stop triggering a
fake write fault and instead use FAULT_FLAG_UNSHARE -- similar to
GUP-triggered unsharing when taking a R/O pin on a shared anonymous page
(including KSM pages), let's stop relying on VM_FAULT_WRITE.
Let's rework break_ksm() to not rely on the return value of
handle_mm_fault() anymore to figure out whether COW-breaking was
successful. Simply perform another follow_page() lookup to verify the
result.
While this makes break_ksm() slightly less efficient, we can simplify
handle_mm_fault() a little and easily switch to FAULT_FLAG_UNSHARE without
introducing similar KSM-specific behavior for FAULT_FLAG_UNSHARE.
In my setup (AMD Ryzen 9 3900X), running the KSM selftest to test unmerge
performance on 2 GiB (taskset 0x8 ./ksm_tests -D -s 2048), this results in
a performance degradation of ~4% -- 5% (old: ~5250 MiB/s, new: ~5010
MiB/s).
I don't think that we particularly care about that performance drop when
unmerging. If it ever turns out to be an actual performance issue, we can
think about a better alternative for FAULT_FLAG_UNSHARE -- let's just keep
it simple for now.
Link: https://lkml.kernel.org/r/20221021101141.84170-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/ksm.c | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/mm/ksm.c b/mm/ksm.c
index 22b991218f403..b35485868d5b8 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -442,26 +442,27 @@ static int break_ksm(struct vm_area_struct *vma, unsigned long addr)
vm_fault_t ret = 0;
do {
+ bool ksm_page = false;
+
cond_resched();
page = follow_page(vma, addr,
FOLL_GET | FOLL_MIGRATION | FOLL_REMOTE);
if (IS_ERR_OR_NULL(page))
break;
if (PageKsm(page))
- ret = handle_mm_fault(vma, addr,
- FAULT_FLAG_WRITE | FAULT_FLAG_REMOTE,
- NULL);
- else
- ret = VM_FAULT_WRITE;
+ ksm_page = true;
put_page(page);
- } while (!(ret & (VM_FAULT_WRITE | VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV | VM_FAULT_OOM)));
+
+ if (!ksm_page)
+ return 0;
+ ret = handle_mm_fault(vma, addr,
+ FAULT_FLAG_WRITE | FAULT_FLAG_REMOTE,
+ NULL);
+ } while (!(ret & (VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV | VM_FAULT_OOM)));
/*
- * We must loop because handle_mm_fault() may back out if there's
- * any difficulty e.g. if pte accessed bit gets updated concurrently.
- *
- * VM_FAULT_WRITE is what we have been hoping for: it indicates that
- * COW has been broken, even if the vma does not permit VM_WRITE;
- * but note that a concurrent fault might break PageKsm for us.
+ * We must loop until we no longer find a KSM page because
+ * handle_mm_fault() may back out if there's any difficulty e.g. if
+ * pte accessed bit gets updated concurrently.
*
* VM_FAULT_SIGBUS could occur if we race with truncation of the
* backing file, which also invalidates anonymous pages: that's
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0014/1059] mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHARE
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (12 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0013/1059] mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITE Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0015/1059] mm/ksm: fix userfaultfd protection during merge and unmerge Greg Kroah-Hartman
` (44 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, David Hildenbrand, Peter Xu,
Andrea Arcangeli, Hugh Dickins, Jason Gunthorpe, John Hubbard,
Matthew Wilcox (Oracle), Shuah Khan, Vlastimil Babka,
Andrew Morton, Lance Yang, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: David Hildenbrand <david@redhat.com>
[ Upstream commit 6cce3314b928b2db7d5f48171e18314226551c3f ]
Let's stop breaking COW via a fake write fault and let's use
FAULT_FLAG_UNSHARE instead. This avoids any wrong side effects of the
fake write fault, such as mapping the PTE writable and marking the pte
dirty/softdirty.
Consequently, we will no longer trigger a fake write fault and break COW
without any such side-effects.
Also, this fixes KSM interaction with userfaultfd-wp: when we have a KSM
page that's write-protected by userfaultfd, break_ksm()->handle_mm_fault()
will fail with VM_FAULT_SIGBUS and will simply return in break_ksm() with
0 instead of actually breaking COW.
For now, the KSM unmerge tests can trigger that:
$ sudo ./ksm_functional_tests
TAP version 13
1..3
# [RUN] test_unmerge
ok 1 Pages were unmerged
# [RUN] test_unmerge_discarded
ok 2 Pages were unmerged
# [RUN] test_unmerge_uffd_wp
not ok 3 Pages were unmerged
Bail out! 1 out of 3 tests failed
# Planned tests != run tests (2 != 3)
# Totals: pass:2 fail:1 xfail:0 xpass:0 skip:0 error:0
The warning in dmesg also indicates this wrong handling:
[ 230.096368] FAULT_FLAG_ALLOW_RETRY missing 881
[ 230.100822] CPU: 1 PID: 1643 Comm: ksm-uffd-wp [...]
[ 230.110124] Hardware name: [...]
[ 230.117775] Call Trace:
[ 230.120227] <TASK>
[ 230.122334] dump_stack_lvl+0x44/0x5c
[ 230.126010] handle_userfault.cold+0x14/0x19
[ 230.130281] ? tlb_finish_mmu+0x65/0x170
[ 230.134207] ? uffd_wp_range+0x65/0xa0
[ 230.137959] ? _raw_spin_unlock+0x15/0x30
[ 230.141972] ? do_wp_page+0x50/0x590
[ 230.145551] __handle_mm_fault+0x9f5/0xf50
[ 230.149652] ? mmput+0x1f/0x40
[ 230.152712] handle_mm_fault+0xb9/0x2a0
[ 230.156550] break_ksm+0x141/0x180
[ 230.159964] unmerge_ksm_pages+0x60/0x90
[ 230.163890] ksm_madvise+0x3c/0xb0
[ 230.167295] do_madvise.part.0+0x10c/0xeb0
[ 230.171396] ? do_syscall_64+0x67/0x80
[ 230.175157] __x64_sys_madvise+0x5a/0x70
[ 230.179082] do_syscall_64+0x58/0x80
[ 230.182661] ? do_syscall_64+0x67/0x80
[ 230.186413] entry_SYSCALL_64_after_hwframe+0x63/0xcd
This is primarily a fix for KSM+userfaultfd-wp, however, the fake write
fault was always questionable. As this fix is not easy to backport and
it's not very critical, let's not cc stable.
Link: https://lkml.kernel.org/r/20221021101141.84170-6-david@redhat.com
Fixes: 529b930b87d9 ("userfaultfd: wp: hook userfault handler to write protection fault")
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/ksm.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/mm/ksm.c b/mm/ksm.c
index b35485868d5b8..99147df91a69c 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -422,17 +422,15 @@ static inline bool ksm_test_exit(struct mm_struct *mm)
}
/*
- * We use break_ksm to break COW on a ksm page: it's a stripped down
+ * We use break_ksm to break COW on a ksm page by triggering unsharing,
+ * such that the ksm page will get replaced by an exclusive anonymous page.
*
- * if (get_user_pages(addr, 1, FOLL_WRITE, &page, NULL) == 1)
- * put_page(page);
- *
- * but taking great care only to touch a ksm page, in a VM_MERGEABLE vma,
+ * We take great care only to touch a ksm page, in a VM_MERGEABLE vma,
* in case the application has unmapped and remapped mm,addr meanwhile.
* Could a ksm page appear anywhere else? Actually yes, in a VM_PFNMAP
* mmap of /dev/mem, where we would not want to touch it.
*
- * FAULT_FLAG/FOLL_REMOTE are because we do this outside the context
+ * FAULT_FLAG_REMOTE/FOLL_REMOTE are because we do this outside the context
* of the process that owns 'vma'. We also do not want to enforce
* protection keys here anyway.
*/
@@ -456,7 +454,7 @@ static int break_ksm(struct vm_area_struct *vma, unsigned long addr)
if (!ksm_page)
return 0;
ret = handle_mm_fault(vma, addr,
- FAULT_FLAG_WRITE | FAULT_FLAG_REMOTE,
+ FAULT_FLAG_UNSHARE | FAULT_FLAG_REMOTE,
NULL);
} while (!(ret & (VM_FAULT_SIGBUS | VM_FAULT_SIGSEGV | VM_FAULT_OOM)));
/*
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0015/1059] mm/ksm: fix userfaultfd protection during merge and unmerge
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (13 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0014/1059] mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHARE Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0016/1059] udf: validate VAT inode size for old VAT format Greg Kroah-Hartman
` (43 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Samarth Narang, Lance Yang,
Andrew Morton, Lorenzo Stoakes (ARM), Kiryl Shutsemau (Meta),
David Hildenbrand (Arm), Mel Gorman, Chengming Zhou,
Liam R. Howlett, Vlastimil Babka, Mike Rapoport,
Suren Baghdasaryan, Michal Hocko, Jérôme Glisse,
Andrea Arcangeli, Peter Xu, Bobby Powers, Brian Geffon,
Denis Plotnikov, Doug Gilbert, Hugh Dickins, Johannes Weiner,
Martin Cracauer, Marty McFadden, Maya Gokhale, Pavel Emelyanov,
Rik van Riel, Shaohua Li, James Houghton, Jonathan Corbet,
Paolo Bonzini, Sean Christopherson, SJ Park, Zi Yan,
Mohammed EL Kadiri, Sasha Levin, Xu Xin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Lance Yang <lance.yang@linux.dev>
[ Upstream commit 990d6c2194a938a19a8cf94c6cfd75171345089b ]
KSM loses userfaultfd protection when replace_page() builds a new PTE from
vma->vm_page_prot. Dropping its uffd bit lets a subsequent write go
through ordinary COW instead of userfaultfd write protection handling.
For RWP, a merged page also becomes readable without faulting.
Keeping the uffd bit and restoring PAGE_NONE fixes merging, but we also
have to handle unmerging. An existing KSM page can be protected with RWP
before MADV_UNMERGEABLE, so unmerging already needs fixing independently
of preserving RWP during merging.
Unsharing replaces a shared page with a private one and should leave
userfaultfd protection in place, as do_wp_page() already does for write
protection. Currently, an unshare fault reaches do_uffd_rwp() before it
can proceed to do_wp_page().
- With synchronous RWP, handle_userfault() returns VM_FAULT_SIGBUS.
break_ksm() then reports success with a KSM page still merged.
- With asynchronous RWP, protection is cleared before unsharing.
Preserve the uffd bit when merging, and restore PAGE_NONE for RWP. Let
FAULT_FLAG_UNSHARE skip RWP fault handling and keep PAGE_NONE on each
private copy as well. Unsharing can then complete with RWP still armed
for a subsequent access.
Link: https://lore.kernel.org/20261026130054.91461-1-lance.yang@linux.dev
Link: https://lore.kernel.org/all/20261019010934.697895-1-samarth.colleges@gmail.com/
Link: https://lore.kernel.org/all/20261020055518.36087-1-lance.yang@linux.dev/
Fixes: 63b2d4174c4a ("userfaultfd: wp: add the writeprotect API to userfaultfd ioctl")
Fixes: 2d427bb01639 ("mm/userfaultfd: add RWP fault delivery and expose UFFDIO_REGISTER_MODE_RWP")
Signed-off-by: Samarth Narang <samarth.colleges@gmail.com>
Signed-off-by: Lance Yang <lance.yang@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Co-developed-by: Samarth Narang <samarth.colleges@gmail.com>
Acked-by: Lorenzo Stoakes (ARM) <ljs@kernel.org>
Reviewed-by: Kiryl Shutsemau (Meta) <kas@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Xu Xin <xu.xin@linux.dev>"
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Liam R. Howlett <liam@infradead.org>
Cc: Vlastimil Babka <vbabka@kernel.org>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Jérôme Glisse <jglisse@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Bobby Powers <bobbypowers@gmail.com>
Cc: Brian Geffon <bgeffon@google.com>
Cc: Denis Plotnikov <dplotnikov@virtuozzo.com>
Cc: Doug Gilbert <dgilbert@interlog.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Martin Cracauer <cracauer@cons.org>
Cc: Marty McFadden <mcfadden8@llnl.gov>
Cc: Maya Gokhale <gokhale2@llnl.gov>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Shaohua Li <shli@fb.com>
Cc: James Houghton <jthoughton@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: SJ Park <sj@kernel.org>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Mohammed EL Kadiri <med08elkadiri@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/ksm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mm/ksm.c b/mm/ksm.c
index 99147df91a69c..6b38684ce4552 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -1182,6 +1182,10 @@ static int replace_page(struct vm_area_struct *vma, struct page *page,
if (pte_soft_dirty(orig_pte))
newpte = pte_mksoft_dirty(newpte);
+ /* Preserve uffd-wp when replacing the page. */
+ if (pte_uffd_wp(orig_pte))
+ newpte = pte_mkuffd_wp(newpte);
+
flush_cache_page(vma, addr, pte_pfn(*ptep));
/*
* No need to notify as we are replacing a read only page with another
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0016/1059] udf: validate VAT inode size for old VAT format
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (14 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0015/1059] mm/ksm: fix userfaultfd protection during merge and unmerge Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0017/1059] udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat() Greg Kroah-Hartman
` (42 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Jan Kara, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Kara <jack@suse.cz>
[ Upstream commit 5163e6ee1ea744d412fe516235bfd9cab15141dc ]
Validate VAT inode is large enough to contain at least the header for
pre-2.00 UDF media format.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/udf/super.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/udf/super.c b/fs/udf/super.c
index f924a814874b3..7dfa6f97e146d 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -1216,6 +1216,11 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
if (map->s_partition_type == UDF_VIRTUAL_MAP15) {
map->s_type_specific.s_virtual.s_start_offset = 0;
+ if (sbi->s_vat_inode->i_size < 36) {
+ udf_err(sb, "Too short VAT inode size %lld\n",
+ sbi->s_vat_inode->i_size);
+ return -EFSCORRUPTED;
+ }
map->s_type_specific.s_virtual.s_num_entries =
(sbi->s_vat_inode->i_size - 36) >> 2;
} else if (map->s_partition_type == UDF_VIRTUAL_MAP20) {
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0017/1059] udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (15 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0016/1059] udf: validate VAT inode size for old VAT format Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0018/1059] io_uring: enable toggle of iowait usage when waiting on CQEs Greg Kroah-Hartman
` (41 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Hui Peng, Jan Kara, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hui Peng <benquike@gmail.com>
[ Upstream commit 49f771d14578733a350c45e34e1bc6ad14f56952 ]
In udf_load_vat() (fs/udf/super.c), validate that vat20->lengthHeader is
at least sizeof(struct virtualAllocationTable20) and does not exceed the
mapped buffer or VAT inode size so computing the VAT table pointer and
entry count cannot underflow or read out of bounds.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://patch.msgid.link/20260919222600.3793513-1-benquike@gmail.com
Signed-off-by: Hui Peng <benquike@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/udf/super.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 7dfa6f97e146d..16a213542582a 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -1225,6 +1225,12 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
(sbi->s_vat_inode->i_size - 36) >> 2;
} else if (map->s_partition_type == UDF_VIRTUAL_MAP20) {
vati = UDF_I(sbi->s_vat_inode);
+ if (sbi->s_vat_inode->i_size <
+ sizeof(struct virtualAllocationTable20)) {
+ udf_err(sb, "Too short VAT inode size %lld\n",
+ sbi->s_vat_inode->i_size);
+ return -EFSCORRUPTED;
+ }
if (vati->i_alloc_type != ICBTAG_FLAG_AD_IN_ICB) {
pos = udf_block_map(sbi->s_vat_inode, 0);
bh = sb_bread(sb, pos);
@@ -1238,8 +1244,12 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
map->s_type_specific.s_virtual.s_start_offset =
le16_to_cpu(vat20->lengthHeader);
- if (map->s_type_specific.s_virtual.s_start_offset
- > sbi->s_vat_inode->i_size) {
+ if (map->s_type_specific.s_virtual.s_start_offset <
+ sizeof(struct virtualAllocationTable20) ||
+ map->s_type_specific.s_virtual.s_start_offset >
+ sb->s_blocksize ||
+ map->s_type_specific.s_virtual.s_start_offset >
+ sbi->s_vat_inode->i_size) {
udf_err(sb, "Corrupted VAT header length %u (VAT inode size %lld)\n",
map->s_type_specific.s_virtual.s_start_offset,
sbi->s_vat_inode->i_size);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0018/1059] io_uring: enable toggle of iowait usage when waiting on CQEs
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (16 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0017/1059] udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat() Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0019/1059] io_uring: fail soft links on negative IOU_COMPLETE results Greg Kroah-Hartman
` (40 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Jens Axboe, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jens Axboe <axboe@kernel.dk>
Commit 07754bfd9aee59063f8549f6e4d455eae636ecc7 upstream.
By default, io_uring marks a waiting task as being in iowait, if it's
sleeping waiting on events and there are pending requests. This isn't
necessarily always useful, and may be confusing on non-storage setups
where iowait isn't expected. It can also cause extra power usage, by
preventing the CPU from entering lower sleep states.
This adds a new enter flag, IORING_ENTER_NO_IOWAIT. If set, then
io_uring will not account the sleeping task as being in iowait. If the
kernel supports this feature, then it will be marked by having the
IORING_FEAT_NO_IOWAIT feature flag set.
As the kernel currently does not support separating the iowait
accounting and CPU frequency boosting, the IORING_ENTER_NO_IOWAIT
controls both of these at the same time. In the future, if those do end
up being split, then it'd be possible to control them separately.
However, it seems more likely that the kernel will decouple iowait and
CPU frequency boosting anyway.
[ 6.1: no struct ext_arg here. Pass the enter flags to io_cqring_wait()
and keep the setting in struct io_wait_queue. Flag bits match
upstream. ]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
include/uapi/linux/io_uring.h | 2 ++
io_uring/io_uring.c | 15 +++++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index aeed98cb5c1c8..f49ac2a5afa45 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -434,6 +434,7 @@ struct io_cqring_offsets {
#define IORING_ENTER_SQ_WAIT (1U << 2)
#define IORING_ENTER_EXT_ARG (1U << 3)
#define IORING_ENTER_REGISTERED_RING (1U << 4)
+#define IORING_ENTER_NO_IOWAIT (1U << 7)
/*
* Passed in for io_uring_setup(2). Copied back with updated info on success
@@ -467,6 +468,7 @@ struct io_uring_params {
#define IORING_FEAT_RSRC_TAGS (1U << 10)
#define IORING_FEAT_CQE_SKIP (1U << 11)
#define IORING_FEAT_LINKED_FILE (1U << 12)
+#define IORING_FEAT_NO_IOWAIT (1U << 17)
/*
* io_uring_register(2) opcodes and arguments
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 866c6ad29e4c9..c59fbe6905de9 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -2354,6 +2354,7 @@ struct io_wait_queue {
struct io_ring_ctx *ctx;
unsigned cq_tail;
unsigned nr_timeouts;
+ bool iowait;
};
static inline bool io_has_work(struct io_ring_ctx *ctx)
@@ -2439,7 +2440,7 @@ static inline int io_cqring_wait_schedule(struct io_ring_ctx *ctx,
* to be important for low QD IO.
*/
io_wait = current->in_iowait;
- if (current_pending_io())
+ if (iowq->iowait && current_pending_io())
current->in_iowait = 1;
ret = 1;
if (!schedule_hrtimeout(timeout, HRTIMER_MODE_ABS))
@@ -2452,7 +2453,7 @@ static inline int io_cqring_wait_schedule(struct io_ring_ctx *ctx,
* Wait until events become available, if we don't already have some. The
* application must reap them itself, as they reside on the shared cq ring.
*/
-static int io_cqring_wait(struct io_ring_ctx *ctx, int min_events,
+static int io_cqring_wait(struct io_ring_ctx *ctx, int min_events, u32 flags,
const sigset_t __user *sig, size_t sigsz,
struct __kernel_timespec __user *uts)
{
@@ -2501,6 +2502,7 @@ static int io_cqring_wait(struct io_ring_ctx *ctx, int min_events,
iowq.wq.private = current;
INIT_LIST_HEAD(&iowq.wq.entry);
iowq.ctx = ctx;
+ iowq.iowait = !(flags & IORING_ENTER_NO_IOWAIT);
iowq.nr_timeouts = atomic_read(&ctx->cq_timeouts);
iowq.cq_tail = READ_ONCE(ctx->rings->cq.head) + min_events;
@@ -3427,7 +3429,8 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
if (unlikely(flags & ~(IORING_ENTER_GETEVENTS | IORING_ENTER_SQ_WAKEUP |
IORING_ENTER_SQ_WAIT | IORING_ENTER_EXT_ARG |
- IORING_ENTER_REGISTERED_RING)))
+ IORING_ENTER_REGISTERED_RING |
+ IORING_ENTER_NO_IOWAIT)))
return -EINVAL;
/*
@@ -3530,8 +3533,8 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
if (likely(!ret2)) {
min_complete = min(min_complete,
ctx->cq_entries);
- ret2 = io_cqring_wait(ctx, min_complete, sig,
- argsz, ts);
+ ret2 = io_cqring_wait(ctx, min_complete, flags,
+ sig, argsz, ts);
}
}
@@ -3785,7 +3788,7 @@ static __cold int io_uring_create(unsigned entries, struct io_uring_params *p,
IORING_FEAT_POLL_32BITS | IORING_FEAT_SQPOLL_NONFIXED |
IORING_FEAT_EXT_ARG | IORING_FEAT_NATIVE_WORKERS |
IORING_FEAT_RSRC_TAGS | IORING_FEAT_CQE_SKIP |
- IORING_FEAT_LINKED_FILE;
+ IORING_FEAT_LINKED_FILE | IORING_FEAT_NO_IOWAIT;
if (copy_to_user(params, p, sizeof(*p))) {
ret = -EFAULT;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0019/1059] io_uring: fail soft links on negative IOU_COMPLETE results
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (17 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0018/1059] io_uring: enable toggle of iowait usage when waiting on CQEs Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0020/1059] io_uring/rw: fail soft links on IOPOLL short or error IO Greg Kroah-Hartman
` (39 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yang Xiuwei, Jens Axboe, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Xiuwei <yangxiuwei@kylinos.cn>
Commit 9ed19503a7b34e1ffb2b81236843204c473b0ae0 upstream.
Handlers such as fsync return IOU_COMPLETE with a negative cqe.res.
The old io_req_complete() path called req_set_fail() for res < 0.
After completions moved into the core, that check was dropped,
so IOSQE_IO_LINK dependents kept running after the head failed.
Fixes: 97b388d70b53 ("io_uring: handle completions in the core")
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Link: https://patch.msgid.link/20261114041123.109163-1-yangxiuwei@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[axboe: 6.1 has IOU_OK rather than IOU_COMPLETE]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
io_uring/io_uring.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index c59fbe6905de9..cedb21c1295ef 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -1756,9 +1756,11 @@ static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_flags)
}
if (ret == IOU_OK) {
- /* not all handlers take care of the internal restart codes */
- if (unlikely(req->cqe.res <= -ERESTARTSYS))
- req->cqe.res = io_fixup_restart_res(req->cqe.res);
+ if (unlikely(req->cqe.res < 0)) {
+ if (req->cqe.res <= -ERESTARTSYS)
+ req->cqe.res = io_fixup_restart_res(req->cqe.res);
+ req_set_fail(req);
+ }
if (issue_flags & IO_URING_F_COMPLETE_DEFER)
io_req_complete_defer(req);
else
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0020/1059] io_uring/rw: fail soft links on IOPOLL short or error IO
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (18 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0019/1059] io_uring: fail soft links on negative IOU_COMPLETE results Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0021/1059] io_uring/rsrc: keep the old file when a file update fails Greg Kroah-Hartman
` (38 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Yang Xiuwei, Jens Axboe, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Xiuwei <yangxiuwei@kylinos.cn>
Commit 4d3db66c5363dcf42c3d43ebaea330ac2d1888bb upstream.
io_complete_rw_iopoll() updates cqe.res when the transfer does not
match the requested length, but it does not call req_set_fail().
Soft linked requests then still run after a short or failed IOPOLL
read or write.
Fixes: b66ceaf324b3 ("io_uring: move iopoll reissue into regular IO path")
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Link: https://patch.msgid.link/20261114072246.741950-3-yangxiuwei@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[axboe: 6.1 reissues from inside the res != cqe.res branch, fail the
request after the reissue check there]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
io_uring/rw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/io_uring/rw.c b/io_uring/rw.c
index 8c38449dd7da0..268f4e923997b 100644
--- a/io_uring/rw.c
+++ b/io_uring/rw.c
@@ -304,6 +304,7 @@ static void io_complete_rw_iopoll(struct kiocb *kiocb, long res)
req->flags |= REQ_F_REISSUE | REQ_F_PARTIAL_IO;
return;
}
+ req_set_fail(req);
req->cqe.res = res;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0021/1059] io_uring/rsrc: keep the old file when a file update fails
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (19 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0020/1059] io_uring/rw: fail soft links on IOPOLL short or error IO Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0022/1059] Input: destroy force-feedback device on input unregistration Greg Kroah-Hartman
` (37 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Cheng Yongkang, Jens Axboe,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Cheng Yongkang <teel4res@gmail.com>
Commit e5a346e4309d720c47fe8331a00068608fad47dd upstream.
__io_sqe_files_update() resets the slot before it calls fget() on the
new fd. If fget() fails, the fd is an io_uring file, or the node
allocation fails, the update stops and reports that entry as not done,
but the old file has already been removed. Later requests that use the
slot fail with -EBADF, and if the old file was registered with a tag,
its tag CQE is posted as if it had been removed on purpose.
Reset the slot only after the new file has been checked and its node
allocated, as io_install_fixed_file() does. Removal with fd == -1 still
resets the slot right away.
Fixes: c3a31e605620 ("io_uring: add support for IORING_REGISTER_FILES_UPDATE")
Cc: stable@vger.kernel.org
Signed-off-by: Cheng Yongkang <teel4res@gmail.com>
Link: https://patch.msgid.link/20261116044531.281978-1-teel4res@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[axboe: 6.1 has no rsrc nodes for files, the old file is queued for
removal with io_queue_rsrc_removal(), which can fail. Get and check the
new file first, and only remove the old one once that has succeeded]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
io_uring/rsrc.c | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c
index eb91f5b289244..485e6571172c3 100644
--- a/io_uring/rsrc.c
+++ b/io_uring/rsrc.c
@@ -438,7 +438,6 @@ static int __io_sqe_files_update(struct io_ring_ctx *ctx,
__s32 __user *fds = u64_to_user_ptr(up->data);
struct io_rsrc_data *data = ctx->file_data;
struct io_fixed_file *file_slot;
- struct file *file;
int fd, i, err = 0;
unsigned int done;
bool needs_switch = false;
@@ -449,6 +448,7 @@ static int __io_sqe_files_update(struct io_ring_ctx *ctx,
return -EINVAL;
for (done = 0; done < nr_args; done++) {
+ struct file *file = NULL;
u64 tag = 0;
if ((tags && copy_from_user(&tag, &tags[done], sizeof(tag))) ||
@@ -466,15 +466,6 @@ static int __io_sqe_files_update(struct io_ring_ctx *ctx,
i = array_index_nospec(up->offset + done, ctx->nr_user_files);
file_slot = io_fixed_file_slot(&ctx->file_table, i);
- if (file_slot->file_ptr) {
- file = (struct file *)(file_slot->file_ptr & FFS_MASK);
- err = io_queue_rsrc_removal(data, i, ctx->rsrc_node, file);
- if (err)
- break;
- file_slot->file_ptr = 0;
- io_file_bitmap_clear(&ctx->file_table, i);
- needs_switch = true;
- }
if (fd != -1) {
file = fget(fd);
if (!file) {
@@ -494,6 +485,21 @@ static int __io_sqe_files_update(struct io_ring_ctx *ctx,
err = -EBADF;
break;
}
+ }
+ if (file_slot->file_ptr) {
+ struct file *old = (struct file *)(file_slot->file_ptr & FFS_MASK);
+
+ err = io_queue_rsrc_removal(data, i, ctx->rsrc_node, old);
+ if (err) {
+ if (file)
+ fput(file);
+ break;
+ }
+ file_slot->file_ptr = 0;
+ io_file_bitmap_clear(&ctx->file_table, i);
+ needs_switch = true;
+ }
+ if (file) {
*io_get_tag_slot(data, i) = tag;
io_fixed_file_set(file_slot, file);
io_file_bitmap_set(&ctx->file_table, i);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0022/1059] Input: destroy force-feedback device on input unregistration
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (20 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0021/1059] io_uring/rsrc: keep the old file when a file update fails Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0023/1059] staging: media: atomisp: use array3_size() for overflow-safe allocation Greg Kroah-Hartman
` (36 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Gideon Heinz, Dmitry Torokhov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[ Upstream commit 2ae35f090d029d2d8491b0a7f98a04c5c05d0a44 ]
When an input device is unregistered while userspace holds an open file
descriptor to its event node, input_dev_release() is deferred until the
last file descriptor is closed. Because input_ff_destroy() was only
called from input_dev_release(), force-feedback teardown (ff->destroy
and freeing ff->private) could run after the parent driver had already
unbound, freed its device state, or even been unloaded via rmmod,
causing use-after-free errors or page faults in unmapped module text.
Commit ef166ce08801 ("Input: stop force-feedback timer when
unregistering input devices") added a separate ff->stop callback for
ff-memless, but left ff->destroy invoked from input_dev_release().
Once __input_unregister_device() has disconnected all input handlers
(which flushes effects, closes the device, and marks evdev dead) and
deleted the device from sysfs, nothing accesses dev->ff anymore. Call
input_ff_destroy() directly in __input_unregister_device() so that
ff->destroy() always runs synchronously while the driver and its module
are still active, and remove the now-redundant ff->stop callback. Keep
input_ff_destroy() in input_dev_release() (where it is a no-op once
dev->ff is NULL) to handle input_free_device() on devices that were
never registered.
Fixes: 509ca1a93836 ("Input: implement new force feedback interface")
Reported-by: Gideon Heinz <gideonheinz02@gmail.com>
Closes: https://lore.kernel.org/r/CAPb1+K2BxnfQ7VUQ15td5f9pVhn-ARSM9EjfOU8WuW72o+cvPg@mail.gmail.com
Tested-by: Gideon Heinz <gideonheinz02@gmail.com>
Link: https://patch.msgid.link/2f722967b6db0692d4dd4164aff39b62@gmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[ sashal: Dropped the upstream hunks that remove the ff->stop infrastructure (including ml_ff_stop()), since it doesn't exist in this tree, and adjusted context in input.c and ff-core.c. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/input/ff-core.c | 2 +-
drivers/input/input.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index 609a5f01761bd..624f8defa5432 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -358,7 +358,7 @@ EXPORT_SYMBOL_GPL(input_ff_create);
*
* This function is only needed in error path as input core will
* automatically free force feedback structures when device is
- * destroyed.
+ * unregistered or destroyed.
*/
void input_ff_destroy(struct input_dev *dev)
{
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 78be582b5766d..ef029c3c96c58 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -2304,6 +2304,8 @@ static void __input_unregister_device(struct input_dev *dev)
mutex_unlock(&input_mutex);
device_del(&dev->dev);
+
+ input_ff_destroy(dev);
}
static void devm_input_device_unregister(struct device *dev, void *res)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0023/1059] staging: media: atomisp: use array3_size() for overflow-safe allocation
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (21 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0022/1059] Input: destroy force-feedback device on input unregistration Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0024/1059] fs/9p: switch vfsmount to use v9fs_get_new_inode Greg Kroah-Hartman
` (35 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Feng Ning, Sakari Ailus, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Feng Ning <feng@innora.ai>
commit d178c7ca8fefc28115d35b94c3b1f4d653e34182 upstream.
Replace open-coded width * height * sizeof() multiplications with
array3_size() to prevent integer overflow in buffer allocations.
The atomisp driver computes DVS, morphing table, shading table and
statistics buffer sizes using unchecked arithmetic. When dimensions
are attacker-controlled or simply large, the product can silently wrap,
causing kvmalloc() to allocate an undersized buffer.
array3_size() saturates to SIZE_MAX on overflow, so kvmalloc() returns
NULL instead of succeeding with too few bytes.
Signed-off-by: Feng Ning <feng@innora.ai>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
.../media/atomisp/pci/sh_css_param_dvs.c | 11 +++---
.../media/atomisp/pci/sh_css_param_shading.c | 4 ++-
.../staging/media/atomisp/pci/sh_css_params.c | 35 +++++++++++--------
3 files changed, 31 insertions(+), 19 deletions(-)
diff --git a/drivers/staging/media/atomisp/pci/sh_css_param_dvs.c b/drivers/staging/media/atomisp/pci/sh_css_param_dvs.c
index ff0082d02af3e..0d08629797a47 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_param_dvs.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_param_dvs.c
@@ -13,6 +13,7 @@
* more details.
*/
+#include <linux/overflow.h>
#include "sh_css_param_dvs.h"
#include <assert_support.h>
#include <type_support.h>
@@ -58,7 +59,7 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res,
}
/* Generate Y buffers */
- dvs_config->xcoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t),
+ dvs_config->xcoords_y = kvmalloc(array3_size(width_y, height_y, sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->xcoords_y) {
IA_CSS_ERROR("out of memory");
@@ -66,7 +67,7 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res,
goto exit;
}
- dvs_config->ycoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t),
+ dvs_config->ycoords_y = kvmalloc(array3_size(width_y, height_y, sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->ycoords_y) {
IA_CSS_ERROR("out of memory");
@@ -77,7 +78,8 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res,
/* Generate UV buffers */
IA_CSS_LOG("UV W %d H %d", width_uv, height_uv);
- dvs_config->xcoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t),
+ dvs_config->xcoords_uv = kvmalloc(array3_size(width_uv, height_uv,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->xcoords_uv) {
IA_CSS_ERROR("out of memory");
@@ -85,7 +87,8 @@ alloc_dvs_6axis_table(const struct ia_css_resolution *frame_res,
goto exit;
}
- dvs_config->ycoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t),
+ dvs_config->ycoords_uv = kvmalloc(array3_size(width_uv, height_uv,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->ycoords_uv) {
IA_CSS_ERROR("out of memory");
diff --git a/drivers/staging/media/atomisp/pci/sh_css_param_shading.c b/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
index 41a4c91623196..c62c3fea0944b 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_param_shading.c
@@ -13,6 +13,7 @@
* more details.
*/
+#include <linux/overflow.h>
#include <linux/slab.h>
#include <math_support.h>
@@ -349,7 +350,8 @@ ia_css_shading_table_alloc(
me->fraction_bits = 0;
for (i = 0; i < IA_CSS_SC_NUM_COLORS; i++) {
me->data[i] =
- kvmalloc(width * height * sizeof(*me->data[0]),
+ kvmalloc(array3_size(width, height,
+ sizeof(*me->data[0])),
GFP_KERNEL);
if (!me->data[i]) {
unsigned int j;
diff --git a/drivers/staging/media/atomisp/pci/sh_css_params.c b/drivers/staging/media/atomisp/pci/sh_css_params.c
index 34113bea31d58..8d1d4d808bd72 100644
--- a/drivers/staging/media/atomisp/pci/sh_css_params.c
+++ b/drivers/staging/media/atomisp/pci/sh_css_params.c
@@ -13,6 +13,7 @@
* more details.
*/
+#include <linux/overflow.h>
#include "gdc_device.h" /* gdc_lut_store(), ... */
#include "isp.h" /* ISP_VEC_ELEMBITS */
#include "vamem.h"
@@ -1381,11 +1382,11 @@ struct ia_css_morph_table *ia_css_morph_table_allocate(
}
for (i = 0; i < IA_CSS_MORPH_TABLE_NUM_PLANES; i++) {
- me->coordinates_x[i] = kvmalloc(height * width *
- sizeof(*me->coordinates_x[i]),
+ me->coordinates_x[i] = kvmalloc(array3_size(height, width,
+ sizeof(*me->coordinates_x[i])),
GFP_KERNEL);
- me->coordinates_y[i] = kvmalloc(height * width *
- sizeof(*me->coordinates_y[i]),
+ me->coordinates_y[i] = kvmalloc(array3_size(height, width,
+ sizeof(*me->coordinates_y[i])),
GFP_KERNEL);
if ((!me->coordinates_x[i]) ||
@@ -4171,13 +4172,17 @@ ia_css_dvs_statistics_allocate(const struct ia_css_dvs_grid_info *grid)
goto err;
me->grid = *grid;
- me->hor_proj = kvmalloc(grid->height * IA_CSS_DVS_NUM_COEF_TYPES *
- sizeof(*me->hor_proj), GFP_KERNEL);
+ me->hor_proj = kvmalloc(array3_size(grid->height,
+ IA_CSS_DVS_NUM_COEF_TYPES,
+ sizeof(*me->hor_proj)),
+ GFP_KERNEL);
if (!me->hor_proj)
goto err;
- me->ver_proj = kvmalloc(grid->width * IA_CSS_DVS_NUM_COEF_TYPES *
- sizeof(*me->ver_proj), GFP_KERNEL);
+ me->ver_proj = kvmalloc(array3_size(grid->width,
+ IA_CSS_DVS_NUM_COEF_TYPES,
+ sizeof(*me->ver_proj)),
+ GFP_KERNEL);
if (!me->ver_proj)
goto err;
@@ -4444,24 +4449,26 @@ ia_css_dvs2_6axis_config_allocate(const struct ia_css_stream *stream)
params->pipe_dvs_6axis_config[IA_CSS_PIPE_ID_VIDEO]->height_uv;
IA_CSS_LOG("table Y: W %d H %d", width_y, height_y);
IA_CSS_LOG("table UV: W %d H %d", width_uv, height_uv);
- dvs_config->xcoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t),
+ dvs_config->xcoords_y = kvmalloc(array3_size(width_y, height_y,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->xcoords_y)
goto err;
- dvs_config->ycoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t),
+ dvs_config->ycoords_y = kvmalloc(array3_size(width_y, height_y,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->ycoords_y)
goto err;
- dvs_config->xcoords_uv = kvmalloc(width_uv * height_uv *
- sizeof(uint32_t),
+ dvs_config->xcoords_uv = kvmalloc(array3_size(width_uv, height_uv,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->xcoords_uv)
goto err;
- dvs_config->ycoords_uv = kvmalloc(width_uv * height_uv *
- sizeof(uint32_t),
+ dvs_config->ycoords_uv = kvmalloc(array3_size(width_uv, height_uv,
+ sizeof(uint32_t)),
GFP_KERNEL);
if (!dvs_config->ycoords_uv)
goto err;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0024/1059] fs/9p: switch vfsmount to use v9fs_get_new_inode
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (22 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0023/1059] staging: media: atomisp: use array3_size() for overflow-safe allocation Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0025/1059] fs/9p: rework qid2ino logic Greg Kroah-Hartman
` (34 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Eric Van Hensbergen, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Van Hensbergen <ericvh@kernel.org>
[ Upstream commit fe1371d0f8c6a9aa4441ddd09ea6d4f31b975a81 ]
In the process of cleaning up inode number allocation, I noticed several functions which didn't use the standard helper
allocators. This patch fixes the allocation in the mount entrypoint.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Stable-dep-of: 8bb0279930cc ("9p: skip intermediate directory entry name copy in p9dirent_read()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/9p/vfs_super.c | 29 +----------------------------
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 7c35347f1d9be..1266b80ba1032 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -113,7 +113,6 @@ static struct dentry *v9fs_mount(struct file_system_type *fs_type, int flags,
struct inode *inode = NULL;
struct dentry *root = NULL;
struct v9fs_session_info *v9ses = NULL;
- umode_t mode = 0777 | S_ISVTX;
struct p9_fid *fid;
int retval = 0;
@@ -143,7 +142,7 @@ static struct dentry *v9fs_mount(struct file_system_type *fs_type, int flags,
else
sb->s_d_op = &v9fs_dentry_operations;
- inode = v9fs_get_inode(sb, S_IFDIR | mode, 0);
+ inode = v9fs_get_new_inode_from_fid(v9ses, fid, sb);
if (IS_ERR(inode)) {
retval = PTR_ERR(inode);
goto release_sb;
@@ -155,32 +154,6 @@ static struct dentry *v9fs_mount(struct file_system_type *fs_type, int flags,
goto release_sb;
}
sb->s_root = root;
- if (v9fs_proto_dotl(v9ses)) {
- struct p9_stat_dotl *st = NULL;
-
- st = p9_client_getattr_dotl(fid, P9_STATS_BASIC);
- if (IS_ERR(st)) {
- retval = PTR_ERR(st);
- goto release_sb;
- }
- d_inode(root)->i_ino = v9fs_qid2ino(&st->qid);
- v9fs_stat2inode_dotl(st, d_inode(root), 0);
- kfree(st);
- } else {
- struct p9_wstat *st = NULL;
-
- st = p9_client_stat(fid);
- if (IS_ERR(st)) {
- retval = PTR_ERR(st);
- goto release_sb;
- }
-
- d_inode(root)->i_ino = v9fs_qid2ino(&st->qid);
- v9fs_stat2inode(st, d_inode(root), sb, 0);
-
- p9stat_free(st);
- kfree(st);
- }
retval = v9fs_get_acl(inode, fid);
if (retval)
goto release_sb;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0025/1059] fs/9p: rework qid2ino logic
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (23 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0024/1059] fs/9p: switch vfsmount to use v9fs_get_new_inode Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0026/1059] 9p: skip intermediate directory entry name copy in p9dirent_read() Greg Kroah-Hartman
` (33 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Eric Van Hensbergen, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Eric Van Hensbergen <ericvh@kernel.org>
[ Upstream commit b91a26696ef38eae1442aa03104e60bb49d2ac99 ]
This changes from a function to a macro because we can
figure out if we are 32 or 64 bit at compile time.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Stable-dep-of: 8bb0279930cc ("9p: skip intermediate directory entry name copy in p9dirent_read()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/9p/v9fs_vfs.h | 7 ++++++-
fs/9p/vfs_dir.c | 4 ++--
fs/9p/vfs_inode.c | 26 ++------------------------
fs/9p/vfs_inode_dotl.c | 6 ++----
4 files changed, 12 insertions(+), 31 deletions(-)
diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h
index 633fe4f527b84..76b15e5261695 100644
--- a/fs/9p/v9fs_vfs.h
+++ b/fs/9p/v9fs_vfs.h
@@ -50,7 +50,12 @@ void v9fs_set_netfs_context(struct inode *inode);
int v9fs_init_inode(struct v9fs_session_info *v9ses,
struct inode *inode, umode_t mode, dev_t rdev);
void v9fs_evict_inode(struct inode *inode);
-ino_t v9fs_qid2ino(struct p9_qid *qid);
+#if (BITS_PER_LONG == 32)
+#define QID2INO(q) ((ino_t) (((q)->path+2) ^ (((q)->path) >> 32)))
+#else
+#define QID2INO(q) ((ino_t) ((q)->path+2))
+#endif
+
void v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode,
struct super_block *sb, unsigned int flags);
void v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode,
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c
index 3be09b94a8e24..7ccfbef41bc82 100644
--- a/fs/9p/vfs_dir.c
+++ b/fs/9p/vfs_dir.c
@@ -135,7 +135,7 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx)
}
over = !dir_emit(ctx, st.name, strlen(st.name),
- v9fs_qid2ino(&st.qid), dt_type(&st));
+ QID2INO(&st.qid), dt_type(&st));
p9stat_free(&st);
if (over)
return 0;
@@ -197,7 +197,7 @@ static int v9fs_dir_readdir_dotl(struct file *file, struct dir_context *ctx)
if (!dir_emit(ctx, curdirent.d_name,
strlen(curdirent.d_name),
- v9fs_qid2ino(&curdirent.qid),
+ QID2INO(&curdirent.qid),
curdirent.d_type))
return 0;
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index ba670d86894a9..ddf11ead64a59 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -456,7 +456,6 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
dev_t rdev;
int retval;
umode_t umode;
- unsigned long i_ino;
struct inode *inode;
struct v9fs_session_info *v9ses = sb->s_fs_info;
int (*test)(struct inode *inode, void *data);
@@ -466,8 +465,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
else
test = v9fs_test_inode;
- i_ino = v9fs_qid2ino(qid);
- inode = iget5_locked(sb, i_ino, test, v9fs_set_inode, st);
+ inode = iget5_locked(sb, QID2INO(qid), test, v9fs_set_inode, st);
if (!inode)
return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW))
@@ -477,7 +475,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
* FIXME!! we may need support for stale inodes
* later.
*/
- inode->i_ino = i_ino;
+ inode->i_ino = QID2INO(qid);
umode = p9mode2unixmode(v9ses, st, &rdev);
retval = v9fs_init_inode(v9ses, inode, umode, rdev);
if (retval)
@@ -1221,26 +1219,6 @@ v9fs_stat2inode(struct p9_wstat *stat, struct inode *inode,
v9inode->cache_validity &= ~V9FS_INO_INVALID_ATTR;
}
-/**
- * v9fs_qid2ino - convert qid into inode number
- * @qid: qid to hash
- *
- * BUG: potential for inode number collisions?
- */
-
-ino_t v9fs_qid2ino(struct p9_qid *qid)
-{
- u64 path = qid->path + 2;
- ino_t i = 0;
-
- if (sizeof(ino_t) == sizeof(path))
- memcpy(&i, &path, sizeof(ino_t));
- else
- i = (ino_t) (path ^ (path >> 32));
-
- return i;
-}
-
/**
* v9fs_vfs_get_link - follow a symlink path
* @dentry: dentry for symlink
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index 7c261b354379a..795a3aee5901d 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -102,7 +102,6 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
int new)
{
int retval;
- unsigned long i_ino;
struct inode *inode;
struct v9fs_session_info *v9ses = sb->s_fs_info;
int (*test)(struct inode *inode, void *data);
@@ -112,8 +111,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
else
test = v9fs_test_inode_dotl;
- i_ino = v9fs_qid2ino(qid);
- inode = iget5_locked(sb, i_ino, test, v9fs_set_inode_dotl, st);
+ inode = iget5_locked(sb, QID2INO(qid), test, v9fs_set_inode_dotl, st);
if (!inode)
return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW))
@@ -123,7 +121,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
* FIXME!! we may need support for stale inodes
* later.
*/
- inode->i_ino = i_ino;
+ inode->i_ino = QID2INO(qid);
retval = v9fs_init_inode(v9ses, inode,
st->st_mode, new_decode_dev(st->st_rdev));
if (retval)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0026/1059] 9p: skip intermediate directory entry name copy in p9dirent_read()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (24 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0025/1059] fs/9p: rework qid2ino logic Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0027/1059] xfrm: zero-initialise km_event in the replay-notify path Greg Kroah-Hartman
` (32 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Haobin Wu, Christian Schoenebeck,
Dominique Martinet, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Haobin Wu <853555@gmail.com>
[ Upstream commit 8bb0279930cc90975f03bad4d83282613e5f57fa ]
v9fs_dir_readdir_dotl() decodes each entry of a Rreaddir reply with
p9dirent_read(), which parses it through p9pdu_readf("Qqbs"). The 's'
conversion in p9pdu_vreadf() already allocates a NUL-terminated copy
of the name from the wire buffer; p9dirent_read() then strscpy()s that
copy into the fixed 256-byte p9_dirent::d_name and frees the original.
The wire format carries the name length in 16 bits, so a name longer
than 255 bytes is valid on the wire and may well be valid on the
server's filesystem, but it makes strscpy() return -E2BIG.
v9fs_dir_readdir_dotl() turns that into -EIO and aborts getdents64(),
so every entry after the long one disappears from the listing.
Drop the second copy: keep the string allocated by p9pdu_vreadf() in
p9_dirent and let v9fs_dir_readdir_dotl(), its only user, free it once
dir_emit() has consumed it. p9_dirent is a short-lived stack object, so
the string's lifetime does not change.
Note that the VFS only rejects names of PATH_MAX bytes or more in
verify_dirent_name(), so after this change a name between NAME_MAX and
PATH_MAX is returned by getdents64() even though any later lookup on it
fails with -ENAMETOOLONG. The next patch skips such entries.
Fixes: 7751bdb3a095 ("9p: readdir implementation for 9p2000.L")
Closes: https://github.com/microsoft/WSL/issues/41192
Signed-off-by: Haobin Wu <853555@gmail.com>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Message-ID: <20260918024851.51229-2-853555@gmail.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/9p/vfs_dir.c | 6 +++++-
include/net/9p/client.h | 2 +-
net/9p/protocol.c | 12 ++----------
3 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c
index 7ccfbef41bc82..6c075ec88b3cc 100644
--- a/fs/9p/vfs_dir.c
+++ b/fs/9p/vfs_dir.c
@@ -198,8 +198,12 @@ static int v9fs_dir_readdir_dotl(struct file *file, struct dir_context *ctx)
if (!dir_emit(ctx, curdirent.d_name,
strlen(curdirent.d_name),
QID2INO(&curdirent.qid),
- curdirent.d_type))
+ curdirent.d_type)) {
+ kfree(curdirent.d_name);
return 0;
+ }
+
+ kfree(curdirent.d_name);
ctx->pos = curdirent.d_off;
rdir->head += err;
diff --git a/include/net/9p/client.h b/include/net/9p/client.h
index 78ebcf782ce57..d0fc8046cbaa5 100644
--- a/include/net/9p/client.h
+++ b/include/net/9p/client.h
@@ -172,7 +172,7 @@ struct p9_dirent {
struct p9_qid qid;
u64 d_off;
unsigned char d_type;
- char d_name[256];
+ char *d_name;
};
struct iov_iter;
diff --git a/net/9p/protocol.c b/net/9p/protocol.c
index 0e6603b1ec906..0a97b4de243ab 100644
--- a/net/9p/protocol.c
+++ b/net/9p/protocol.c
@@ -771,7 +771,7 @@ int p9dirent_read(struct p9_client *clnt, char *buf, int len,
{
struct p9_fcall fake_pdu;
int ret;
- char *nameptr;
+ char *nameptr = NULL;
fake_pdu.size = len;
fake_pdu.capacity = len;
@@ -786,15 +786,7 @@ int p9dirent_read(struct p9_client *clnt, char *buf, int len,
return ret;
}
- ret = strscpy(dirent->d_name, nameptr, sizeof(dirent->d_name));
- if (ret < 0) {
- p9_debug(P9_DEBUG_ERROR,
- "On the wire dirent name too long: %s\n",
- nameptr);
- kfree(nameptr);
- return ret;
- }
- kfree(nameptr);
+ dirent->d_name = nameptr;
return fake_pdu.offset;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0027/1059] xfrm: zero-initialise km_event in the replay-notify path
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (25 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0026/1059] 9p: skip intermediate directory entry name copy in p9dirent_read() Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0028/1059] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Greg Kroah-Hartman
` (31 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Giovanni Vignone, Shubham Antil,
Steffen Klassert, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Shubham Antil <shubham@octane.security>
[ Upstream commit e35a12dffd5da67b6ca12bd23eebdd0570592205 ]
xfrm_replay_notify(), xfrm_replay_notify_bmp() and
xfrm_replay_notify_esn() declare a struct km_event on the stack and
initialise only its .event and .data.aevent fields, leaving .seq and
.portid uninitialised. build_aevent() then builds the XFRM_MSG_NEWAE
message with those fields:
nlmsg_put(skb, c->portid, c->seq, ...)
so the netlink header of a replay event carries uninitialised stack
values rather than defined ones. This was confirmed at runtime rather
than by inspection alone: the .seq and .portid carried in that header
hold values that nothing in the replay path assigns.
The request-driven paths set these header fields from the requester
(xfrm_get_ae() / xfrm_new_ae()); only the kernel-originated replay path
leaves them unset. Zero-initialise the event so the header fields are 0,
the correct value for a kernel-originated notification.
Fixes: f8cd54884e67 ("[IPSEC]: Sync series - core changes")
Reported-by: Giovanni Vignone <gio@octane.security>
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Shubham Antil <shubham@octane.security>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/xfrm/xfrm_replay.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/xfrm/xfrm_replay.c b/net/xfrm/xfrm_replay.c
index 7f52bb2e14c13..ad54fe0b89ada 100644
--- a/net/xfrm/xfrm_replay.c
+++ b/net/xfrm/xfrm_replay.c
@@ -40,7 +40,7 @@ static void xfrm_replay_notify_esn(struct xfrm_state *x, int event);
void xfrm_replay_notify(struct xfrm_state *x, int event)
{
- struct km_event c;
+ struct km_event c = {};
/* we send notify messages in case
* 1. we updated on of the sequence numbers, and the seqno difference
* is at least x->replay_maxdiff, in this case we also update the
@@ -304,7 +304,7 @@ static void xfrm_replay_advance_bmp(struct xfrm_state *x, __be32 net_seq)
static void xfrm_replay_notify_bmp(struct xfrm_state *x, int event)
{
- struct km_event c;
+ struct km_event c = {};
struct xfrm_replay_state_esn *replay_esn = x->replay_esn;
struct xfrm_replay_state_esn *preplay_esn = x->preplay_esn;
@@ -356,7 +356,7 @@ static void xfrm_replay_notify_bmp(struct xfrm_state *x, int event)
static void xfrm_replay_notify_esn(struct xfrm_state *x, int event)
{
u32 seq_diff, oseq_diff;
- struct km_event c;
+ struct km_event c = {};
struct xfrm_replay_state_esn *replay_esn = x->replay_esn;
struct xfrm_replay_state_esn *preplay_esn = x->preplay_esn;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0028/1059] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (26 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0027/1059] xfrm: zero-initialise km_event in the replay-notify path Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0029/1059] wifi: ath9k_htc: start ANI when an AP interface begins to beacon Greg Kroah-Hartman
` (30 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+a079f084653164a652d1,
Deepanshu Kartikey, Sven Eckelmann, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Deepanshu Kartikey <kartikey406@gmail.com>
[ Upstream commit dfa953ba5366b0a80c303700dab2bbcbdc5c27e9 ]
batadv_orig_ifinfo_new() returns NULL only when its GFP_ATOMIC
allocation fails, which is a normal runtime condition and not a bug.
batadv_v_ogm_forward() already handles this the same way, simply
checking for NULL without a WARN_ON.
Do the same in batadv_iv_ogm_update_seqnos() to avoid a spurious
WARN_ON splat when the allocation fails (e.g. under fault injection).
Fixes: 7351a4822d42 ("batman-adv: split out router from orig_node")
Reported-by: syzbot+a079f084653164a652d1@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=a079f084653164a652d1
Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/batman-adv/bat_iv_ogm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 82685a0a9397e..5a84785613b4c 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -1297,7 +1297,7 @@ batadv_iv_ogm_update_seqnos(const struct ethhdr *ethhdr,
return BATADV_NO_DUP;
orig_ifinfo = batadv_orig_ifinfo_new(orig_node, if_outgoing);
- if (WARN_ON(!orig_ifinfo)) {
+ if (!orig_ifinfo) {
batadv_orig_node_put(orig_node);
return 0;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0029/1059] wifi: ath9k_htc: start ANI when an AP interface begins to beacon
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (27 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0028/1059] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0030/1059] scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts Greg Kroah-Hartman
` (29 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Mehmet Fide,
Toke Høiland-Jørgensen, Jeff Johnson, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Mehmet Fide <mehmet.fide@screeningeagle.com>
[ Upstream commit 5c1b202d67a212c87e7389aaa093ce77828fa98f ]
ath9k_htc_vif_reconfig() re-arms ANI after a channel change when an AP
interface beacons. mac80211 configures the channel before it enables
the beacon, so during a normal AP start that never triggers, and the
start from add_interface that the previous patch removed was cancelled
by the same channel configuration: with hostapd, ANI and the periodic
calibration it drives did not run in AP mode until a later channel
change.
Start ANI when the beacon is enabled. The channel and its calibration
data are in place by then, which is the state vif_reconfig() re-arms
it in, and remove_interface() already stops it with the last AP
interface.
Fixes: a236254c35f0 ("ath9k_htc: Add ANI for AP mode")
Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20261005072209.4101009-3-mehmet.fide@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/ath/ath9k/htc_drv_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
index 61875c45366b7..7d1d37df74a6d 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -1553,6 +1553,9 @@ static void ath9k_htc_bss_info_changed(struct ieee80211_hw *hw,
ath9k_htc_set_tsfadjust(priv, vif);
priv->cur_beacon_conf.enable_beacon = 1;
ath9k_htc_beacon_config(priv, vif);
+ if (priv->ah->opmode == NL80211_IFTYPE_AP &&
+ !test_bit(ATH_OP_ANI_RUN, &common->op_flags))
+ ath9k_htc_start_ani(priv);
}
if ((changed & BSS_CHANGED_BEACON_ENABLED) && !bss_conf->enable_beacon) {
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0030/1059] scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (28 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0029/1059] wifi: ath9k_htc: start ANI when an AP interface begins to beacon Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0031/1059] scsi: aha1542: Remove unneeded scsi_dma_unmap() call Greg Kroah-Hartman
` (28 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Imre Kaloz,
Martin K. Petersen (Oracle), Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Imre Kaloz <kaloz@kernel.org>
[ Upstream commit 9a2690eb4bbea8d7fbc3dfe478fca75fe956abb4 ]
The REQUEST SENSE length was taken from sg->len after the AHC_DMA_LAST_SEG
flag was or-ed in and the value converted to little-endian, so the 8-bit
field is 0x80 on big-endian hosts and the target is asked for 128 bytes
into a 32-byte buffer. Use the buffer size, as aic79xx does. On an SGI O2
with a Fujitsu MAX3147NC, the sense data of its CHECK CONDITIONs during
probe was lost.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Imre Kaloz <kaloz@kernel.org>
Link: https://patch.msgid.link/20261013094253.2956-1-kaloz@kernel.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/scsi/aic7xxx/aic7xxx_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c
index d747d0b72a13a..989e8c9bda4ac 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_core.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_core.c
@@ -1097,7 +1097,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat)
sc->byte2 = SCB_GET_LUN(scb) << 5;
sc->unused[0] = 0;
sc->unused[1] = 0;
- sc->length = sg->len;
+ sc->length = ahc_get_sense_bufsize(ahc, scb);
sc->control = 0;
/*
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0031/1059] scsi: aha1542: Remove unneeded scsi_dma_unmap() call
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (29 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0030/1059] scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0032/1059] wifi: ath10k: Stop unanswered temperature reads Greg Kroah-Hartman
` (27 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Laurence Oberman, Matthew Whitehead,
Martin K. Petersen (Oracle), Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Matthew Whitehead <tedheadster@gmail.com>
[ Upstream commit 9ec6671b137de06f0345962fb8091466b7d56a96 ]
aha1542 never DMA maps the command's scatterlist. Data is bounced
through a per-command buffer allocated with dma_alloc_coherent() in
aha1542_init_cmd_priv(), the adapter is programmed with
acmd->data_buffer_handle, and the payload is copied to and from the
request segments in aha1542_queuecommand() and aha1542_free_cmd().
The scsi_dma_unmap() call left in aha1542_free_cmd() therefore unmaps
a scatterlist that was never mapped. With CONFIG_DMA_API_DEBUG enabled
this results in:
device driver tries to free DMA memory it has not allocated
[device address=0x0000000000000000] [size=0 bytes]
Remove the call.
Verified by testing on real hardware.
Fixes: 2f2fef022c3e ("aha1542: use a local bounce buffer")
Suggested-by: Laurence Oberman <loberman@redhat.com>
Assisted-by: LLM
Signed-off-by: Matthew Whitehead <tedheadster@gmail.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Link: https://patch.msgid.link/20260929144528.7061-1-tedheadster@gmail.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/scsi/aha1542.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c
index 552ca95157da8..eef61bc6cd609 100644
--- a/drivers/scsi/aha1542.c
+++ b/drivers/scsi/aha1542.c
@@ -271,8 +271,6 @@ static void aha1542_free_cmd(struct scsi_cmnd *cmd)
buf += bv.bv_len;
}
}
-
- scsi_dma_unmap(cmd);
}
static irqreturn_t aha1542_interrupt(int irq, void *dev_id)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0032/1059] wifi: ath10k: Stop unanswered temperature reads
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (30 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0031/1059] scsi: aha1542: Remove unneeded scsi_dma_unmap() call Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0033/1059] seg6: fix transport header for inner IPv4 with IP options Greg Kroah-Hartman
` (26 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Filippo Falezza, Loic Poulain,
Jeff Johnson, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Filippo Falezza <effeffe99@gmail.com>
[ Upstream commit 2a87e367c62856b87a90f745c6b7d2eb91e0c51f ]
Reading the ath10k hwmon temperature sends WMI_PDEV_GET_TEMPERATURE and
waits up to 5 s (ATH10K_THERMAL_SYNC_TIMEOUT_HZ) for the reply event,
holding conf_mutex. Not all firmware answers: the WCN3990 firmware
WLAN.HL.3.3.1-00694-QCAHLSWMTPLZ-1 on a Motorola Moto G 5G Plus
codename nairo (SM7250) never sends the event, so every read of
temp1_input stalls for 5 s, logs
ath10k_snoc 18800000.wifi: failed to synchronize thermal read
and returns -ETIMEDOUT. Tools that read all hwmon sensors, such as
lm-sensors, hang for 5 s on every run, and configuration changes of the
interface wait for conf_mutex in the meantime.
Whether the firmware answers cannot be told from the chip: firmware that
answers and firmware that does not both advertise
WMI_SERVICE_THERM_THROT, and WCN3990 firmware differs between devices.
Instead, remember that the running firmware did not answer, and return
-EOPNOTSUPP right away on later reads. Forget it when the firmware
starts, so that a restarted or updated firmware is asked again.
The first read after each firmware start still takes 5 s when the
firmware does not answer. Reads on firmware that answers are unchanged.
Fixes: e98199a8c27f ("ath10k: enable QCA6174/QCA9377 to read the chip temperature")
Signed-off-by: Filippo Falezza <effeffe99@gmail.com>
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20261027-ath10k-temperature-v2-1-0793e80d73bc@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/wireless/ath/ath10k/core.c | 1 +
drivers/net/wireless/ath/ath10k/thermal.c | 9 ++++++++-
drivers/net/wireless/ath/ath10k/thermal.h | 2 ++
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 81058be3598f1..6dd20eda491cf 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -2926,6 +2926,7 @@ int ath10k_core_start(struct ath10k *ar, enum ath10k_firmware_mode mode,
clear_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags);
ar->running_fw = fw;
+ ar->thermal.broken = false;
if (!test_bit(ATH10K_FW_FEATURE_NON_BMI,
ar->running_fw->fw_file.fw_features)) {
diff --git a/drivers/net/wireless/ath/ath10k/thermal.c b/drivers/net/wireless/ath/ath10k/thermal.c
index cefd97323dfe5..51484c986298c 100644
--- a/drivers/net/wireless/ath/ath10k/thermal.c
+++ b/drivers/net/wireless/ath/ath10k/thermal.c
@@ -74,6 +74,12 @@ static ssize_t ath10k_thermal_show_temp(struct device *dev,
goto out;
}
+ /* Don't stall every read on firmware that never answers */
+ if (ar->thermal.broken) {
+ ret = -EOPNOTSUPP;
+ goto out;
+ }
+
reinit_completion(&ar->thermal.wmi_sync);
ret = ath10k_wmi_pdev_get_temperature(ar);
if (ret) {
@@ -89,7 +95,8 @@ static ssize_t ath10k_thermal_show_temp(struct device *dev,
time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync,
ATH10K_THERMAL_SYNC_TIMEOUT_HZ);
if (!time_left) {
- ath10k_warn(ar, "failed to synchronize thermal read\n");
+ ath10k_warn(ar, "failed to synchronize thermal read, not asking again until the firmware restarts\n");
+ ar->thermal.broken = true;
ret = -ETIMEDOUT;
goto out;
}
diff --git a/drivers/net/wireless/ath/ath10k/thermal.h b/drivers/net/wireless/ath/ath10k/thermal.h
index 1f4de9fbf2b30..d1fb5b958c37c 100644
--- a/drivers/net/wireless/ath/ath10k/thermal.h
+++ b/drivers/net/wireless/ath/ath10k/thermal.h
@@ -19,6 +19,8 @@ struct ath10k_thermal {
/* protected by conf_mutex */
u32 throttle_state;
u32 quiet_period;
+ /* the running firmware did not answer a temperature request */
+ bool broken;
/* temperature value in Celsius degree
* protected by data_lock
*/
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0033/1059] seg6: fix transport header for inner IPv4 with IP options
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (31 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0032/1059] wifi: ath10k: Stop unanswered temperature reads Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0034/1059] gpio: omap: Propagate runtime PM failures in probe and request Greg Kroah-Hartman
` (25 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Hazley Samsudin, David Ahern,
Hangbin Liu, Andrea Mayer, Jakub Kicinski, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Andrea Mayer <andrea.mayer@uniroma2.it>
[ Upstream commit 5838f10563d58afca6711edb5e4eda968ca181d9 ]
The End.DT4, End.DT46 (its IPv4 path only) and End.DX4 behaviors set the
transport header of the decapsulated IPv4 packet at a fixed 20 bytes, the
size of an IPv4 header without options. They do not validate the header
length either. With options, the transport header points at the first
option byte. The effects include:
- ping -R sends an echo request with a 60-byte IPv4 header to a local
address through an End.DT4 or an End.DX4 SID. Since icmp_rcv()
computes the ICMP checksum from the first option byte, the request
fails the check and is counted in IcmpInCsumErrors.
- A UDP datagram can reach a port that an iptables rule drops. The rule
checks the UDP header after the full IPv4 header, while the socket
lookup reads it at the fixed 20-byte offset.
- With an inbound AH state, ah_input() reads the AH header at the fixed
20-byte offset, but copies the IPv4 header over it with the length in
the IHL field. A packet shorter than that length can make ah_input()
write past the end of the data, into skb_shared_info when the skb has
no tailroom.
Validate the inner IPv4 header length with the new helper
seg6_validate_iphdr_len() and set the transport header at that length. A
packet that is not IPv4, whose header length field is below 5, or whose
header is truncated, is dropped with a drop reason. The fix is limited to
the header length, which the transport header relies on. Other checks done
on IPv4 input, such as the header checksum, the total length and the IP
options, are not addressed here.
Found by code inspection while reviewing commit 44930446dde4 ("ipv6: seg6:
clear IPv4 control block on IPIP decapsulation"), as a pre-existing issue
that Sashiko also reported on v2 of that patch. Without this patch, a
bpftrace probe on ah_input() shows the reporter's reproducer packet
written into skb_shared_info. With it, that packet is dropped before
ah_input(), ping -R no longer fails the ICMP checksum, the UDP datagram
reaches its real port, and the SRv6 selftests still pass. These effects
reproduce on an unmodified kernel, without error injection.
Fixes: 891ef8dd2a8d ("ipv6: sr: implement additional seg6local actions")
Fixes: 664d6f86868b ("seg6: add support for the SRv6 End.DT4 behavior")
Reported-by: Hazley Samsudin <hazleycryilis@gmail.com>
Closes: https://lore.kernel.org/netdev/20260809221915.2ffc1ecd0f445fcb70270e31@uniroma2.it/
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Hangbin Liu <liuhangbin@kylinos.cn>
Signed-off-by: Andrea Mayer <andrea.mayer@uniroma2.it>
Link: https://patch.msgid.link/20261028171511.35-1-andrea.mayer@uniroma2.it
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/ipv6/seg6_local.c | 69 +++++++++++++++++++++++++++++++++----------
1 file changed, 53 insertions(+), 16 deletions(-)
diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c
index b73c7ee3acd90..d138ae182d0c2 100644
--- a/net/ipv6/seg6_local.c
+++ b/net/ipv6/seg6_local.c
@@ -138,9 +138,7 @@ struct seg6_end_dt_info {
int vrf_ifindex;
int vrf_table;
- /* tunneled packet family (IPv4 or IPv6).
- * Protocol and header length are inferred from family.
- */
+ /* tunneled packet family (IPv4 or IPv6) */
u16 family;
};
@@ -582,6 +580,40 @@ static int input_action_end_dx6(struct sk_buff *skb,
return -EINVAL;
}
+/* Validate the length of the IPv4 header at skb->data (which must point to
+ * the network header) and report that length, options included.
+ * Only the version, the header length and the presence of the whole header
+ * are checked.
+ * The length is written only when SKB_NOT_DROPPED_YET is returned.
+ *
+ * skb pointers may change: after this call, the caller must evaluate again
+ * any pointer into the packet data.
+ */
+static enum skb_drop_reason
+seg6_validate_iphdr_len(struct sk_buff *skb, int *hdrlen)
+{
+ enum skb_drop_reason reason;
+ const struct iphdr *iph;
+ int len;
+
+ reason = pskb_may_pull_reason(skb, sizeof(struct iphdr));
+ if (reason)
+ return reason;
+
+ iph = ip_hdr(skb);
+ if (iph->version != 4 || iph->ihl < 5)
+ return SKB_DROP_REASON_IP_INHDR;
+
+ len = ip_hdrlen(skb);
+
+ reason = pskb_may_pull_reason(skb, len);
+ if (reason)
+ return reason;
+
+ *hdrlen = len;
+ return SKB_NOT_DROPPED_YET;
+}
+
static int input_action_end_dx4_finish(struct net *net, struct sock *sk,
struct sk_buff *skb)
{
@@ -611,14 +643,18 @@ static int input_action_end_dx4_finish(struct net *net, struct sock *sk,
static int input_action_end_dx4(struct sk_buff *skb,
struct seg6_local_lwt *slwt)
{
+ SKB_DR(reason);
+ int hdrlen;
+
if (!decap_and_validate(skb, IPPROTO_IPIP))
goto drop;
- if (!pskb_may_pull(skb, sizeof(struct iphdr)))
+ reason = seg6_validate_iphdr_len(skb, &hdrlen);
+ if (reason)
goto drop;
skb->protocol = htons(ETH_P_IP);
- skb_set_transport_header(skb, sizeof(struct iphdr));
+ skb_set_transport_header(skb, hdrlen);
nf_reset_ct(skb);
if (static_branch_unlikely(&nf_hooks_lwtunnel_enabled))
@@ -628,7 +664,7 @@ static int input_action_end_dx4(struct sk_buff *skb,
return input_action_end_dx4_finish(dev_net(skb->dev), NULL, skb);
drop:
- kfree_skb(skb);
+ kfree_skb_reason(skb, reason);
return -EINVAL;
}
@@ -763,16 +799,24 @@ static struct sk_buff *end_dt_vrf_core(struct sk_buff *skb,
struct seg6_end_dt_info *info = &slwt->dt_info;
struct net_device *vrf;
__be16 protocol;
+ SKB_DR(reason);
int hdrlen;
vrf = end_dt_get_vrf_rcu(skb, info);
if (unlikely(!vrf))
goto drop;
+ if (unlikely(info->family != AF_UNSPEC && info->family != family)) {
+ pr_warn_once("seg6local: SRv6 End.DT* family mismatch");
+ goto drop;
+ }
+
switch (family) {
case AF_INET:
protocol = htons(ETH_P_IP);
- hdrlen = sizeof(struct iphdr);
+ reason = seg6_validate_iphdr_len(skb, &hdrlen);
+ if (unlikely(reason))
+ goto drop;
break;
case AF_INET6:
protocol = htons(ETH_P_IPV6);
@@ -784,11 +828,6 @@ static struct sk_buff *end_dt_vrf_core(struct sk_buff *skb,
goto drop;
}
- if (unlikely(info->family != AF_UNSPEC && info->family != family)) {
- pr_warn_once("seg6local: SRv6 End.DT* family mismatch");
- goto drop;
- }
-
skb->protocol = protocol;
skb_dst_drop(skb);
@@ -799,7 +838,7 @@ static struct sk_buff *end_dt_vrf_core(struct sk_buff *skb,
return end_dt_vrf_rcv(skb, family, vrf);
drop:
- kfree_skb(skb);
+ kfree_skb_reason(skb, reason);
return ERR_PTR(-EINVAL);
}
@@ -812,9 +851,7 @@ static int input_action_end_dt4(struct sk_buff *skb,
if (!decap_and_validate(skb, IPPROTO_IPIP))
goto drop;
- if (!pskb_may_pull(skb, sizeof(struct iphdr)))
- goto drop;
-
+ /* end_dt_vrf_core() validates the inner IPv4 header length */
skb = end_dt_vrf_core(skb, slwt, AF_INET);
if (!skb)
/* packet has been processed and consumed by the VRF */
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0034/1059] gpio: omap: Propagate runtime PM failures in probe and request
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (32 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0033/1059] seg6: fix transport header for inner IPv4 with IP options Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0035/1059] btrfs: verity: propagate orphan insertion errors when enabling verity Greg Kroah-Hartman
` (24 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Avi Weiss, Bartosz Golaszewski,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Avi Weiss <thnkslprpt@gmail.com>
[ Upstream commit 05be1a99d6d68b24cbe24a191e1af67c70193ac3 ]
pm_runtime_get_sync() can fail when the OMAP PM domain cannot
resume a GPIO controller, but omap_gpio_probe() and
omap_gpio_request() ignore its return value.
Consequently, probe can register a GPIO controller despite a failed
resume, while a GPIO request can report success and modify GPIO
state even though runtime-PM acquisition failed.
Use pm_runtime_resume_and_get() in both paths and propagate
resume errors. On probe failure, disable runtime PM and unprepare
the debounce clock when applicable.
Reproduced both failures on QEMU N800 by injecting -EIO from the
OMAP PM-domain resume callback. The original driver continues
probe and accepts the GPIO request - while the patched driver
rejects both operations with -EIO. Normal GPIO controller
registration continues to work without fault injection.
Fixes: 77640aabd755 ("OMAP: GPIO: Implement GPIO as a platform device")
Fixes: 55b93c32520d ("gpio/omap: use pm-runtime framework")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Link: https://patch.msgid.link/20261029103626.1527919-2-thnkslprpt@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/gpio/gpio-omap.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 7f19af08f91c6..80aa94700a476 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -777,8 +777,11 @@ static int omap_gpio_request(struct gpio_chip *chip, unsigned offset)
{
struct gpio_bank *bank = gpiochip_get_data(chip);
unsigned long flags;
+ int ret;
- pm_runtime_get_sync(chip->parent);
+ ret = pm_runtime_resume_and_get(chip->parent);
+ if (ret < 0)
+ return ret;
raw_spin_lock_irqsave(&bank->lock, flags);
omap_enable_gpio_module(bank, offset);
@@ -1463,7 +1466,13 @@ static int omap_gpio_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, bank);
pm_runtime_enable(dev);
- pm_runtime_get_sync(dev);
+ ret = pm_runtime_resume_and_get(dev);
+ if (ret < 0) {
+ pm_runtime_disable(dev);
+ if (bank->dbck_flag)
+ clk_unprepare(bank->dbck);
+ return ret;
+ }
if (bank->is_mpuio)
omap_mpuio_init(bank);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0035/1059] btrfs: verity: propagate orphan insertion errors when enabling verity
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (33 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0034/1059] gpio: omap: Propagate runtime PM failures in probe and request Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0036/1059] btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing Greg Kroah-Hartman
` (23 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, guolingxing, Qu Wenruo, David Sterba,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: guolingxing <guolingxing@tju.edu.cn>
[ Upstream commit 45a686dff6b91c3667cd8188d3a02c69f62f4d00 ]
btrfs_begin_enable_verity() ignores the return value of
btrfs_orphan_add() and unconditionally returns 0. If orphan insertion
fails, btrfs_orphan_add() aborts the transaction, but the generic
fs-verity code still proceeds with Merkle tree construction because
the begin_enable_verity callback reported success.
Return the error so that fs-verity stops immediately instead of
continuing after the initialization failure.
The transaction is already aborted by btrfs_orphan_add() and the
handle is released by btrfs_end_transaction(), so no additional
cleanup is needed.
Fixes: 705242538ff3 ("btrfs: verity metadata orphan items")
Signed-off-by: guolingxing <guolingxing@tju.edu.cn>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/btrfs/verity.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/verity.c b/fs/btrfs/verity.c
index 264d92a9a535c..b2efb1693a04e 100644
--- a/fs/btrfs/verity.c
+++ b/fs/btrfs/verity.c
@@ -599,7 +599,7 @@ static int btrfs_begin_enable_verity(struct file *filp)
set_bit(BTRFS_INODE_VERITY_IN_PROGRESS, &inode->runtime_flags);
btrfs_end_transaction(trans);
- return 0;
+ return ret;
}
/*
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0036/1059] btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (34 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0035/1059] btrfs: verity: propagate orphan insertion errors when enabling verity Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0037/1059] btrfs: zoned: fix double free of bitmaps on clone failure Greg Kroah-Hartman
` (22 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Qu Wenruo, Filipe Manana,
David Sterba, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Filipe Manana <fdmanana@suse.com>
[ Upstream commit bda65e5115fe66ee0d8cf4ade11807f9fca4f0e1 ]
When scrub finishes, it does a wakeup on the fs_info->scrub_pause_wait
wait queue and then sets dev->scrub_sctx to NULL. On the other hand the
scrub cancel code (btrfs_scrub_cancel_dev()) waits on that wait queue
for dev->scrub_sctx to be NULL. So this means if btrfs_scrub_cancel_dev()
is called right when scrub is finishing and sees the wakeup before the
NULL is assigned to dev->scrub_sctx by btrfs_scrub_dev(), it hangs.
Fix this by doing the wakeup in btrfs_scrub_dev() after setting
dev->scrub_sctx to NULL.
Fixes: a2de733c78fa ("btrfs: scrub")
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/btrfs/scrub.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c
index d06b26e1dbea7..77569b363a3e7 100644
--- a/fs/btrfs/scrub.c
+++ b/fs/btrfs/scrub.c
@@ -4424,7 +4424,6 @@ int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
wait_event(sctx->list_wait, atomic_read(&sctx->bios_in_flight) == 0);
atomic_dec(&fs_info->scrubs_running);
- wake_up(&fs_info->scrub_pause_wait);
wait_event(sctx->list_wait, atomic_read(&sctx->workers_pending) == 0);
@@ -4439,6 +4438,13 @@ int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
dev->scrub_ctx = NULL;
mutex_unlock(&fs_info->scrub_lock);
+ /*
+ * We have set dev->scrub_ctx to NULL, now do the wakeup as a concurrent
+ * scrub cancel (btrfs_scrub_cancel_dev()) waits for dev->scrub_ctx to
+ * be set to NULL.
+ */
+ wake_up(&fs_info->scrub_pause_wait);
+
scrub_workers_put(fs_info);
scrub_put_ctx(sctx);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0037/1059] btrfs: zoned: fix double free of bitmaps on clone failure
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (35 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0036/1059] btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0038/1059] ptp: drain virtual clock sysfs operations before unregistering children Greg Kroah-Hartman
` (21 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Johannes Thumshirn, Thomas Fourier,
David Sterba, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thomas Fourier <fourier.thomas@gmail.com>
[ Upstream commit 8c66a6aa59a5df1d672d72b7cd379d897ff73200 ]
btrfs_clone_dev_zone_info() duplicates the original orig_dev->zone_info
with kmemdup(), which also copies the seq_zones, empty_zones and
active_zones pointers. The clone then replaces them one by one with
fresh bitmaps. If one of the allocations fails, the error path frees all
three pointers, including those not yet replaced, which still point to
the bitmaps owned by the original device.
Clear the three pointers right after kmemdup() so the error path only frees
what this function allocated.
Fixes: 21e61ec6d0bb ("btrfs: zoned: clone zoned device info when cloning a device")
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/btrfs/zoned.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c
index 2f9c6540b2655..d3f320e4dc7ce 100644
--- a/fs/btrfs/zoned.c
+++ b/fs/btrfs/zoned.c
@@ -652,6 +652,11 @@ struct btrfs_zoned_device_info *btrfs_clone_dev_zone_info(struct btrfs_device *o
if (!zone_info)
return NULL;
+ /* Don't let the error path free the bitmaps still owned by @orig_dev. */
+ zone_info->seq_zones = NULL;
+ zone_info->empty_zones = NULL;
+ zone_info->active_zones = NULL;
+
zone_info->seq_zones = bitmap_zalloc(zone_info->nr_zones, GFP_KERNEL);
if (!zone_info->seq_zones)
goto out;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0038/1059] ptp: drain virtual clock sysfs operations before unregistering children
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (36 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0037/1059] btrfs: zoned: fix double free of bitmaps on clone failure Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0039/1059] ptp: unwind partially completed virtual clock creation Greg Kroah-Hartman
` (20 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Vadim Fedorenko, James Hilliard,
Jakub Kicinski, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: James Hilliard <james.hilliard1@gmail.com>
[ Upstream commit 0e4a135aebc7686286d87e286499ce55e5bd5aad ]
Parent clock removal walks its virtual clocks before removing the
n_vclocks sysfs attribute. The mutex taken by ptp_vclock_in_use() is
released before that walk, so a concurrent sysfs deletion can pick the
same child and unregister and free its ptp_vclock a second time. A
reference held by the device iterator does not protect that separately
allocated virtual clock.
Remove n_vclocks before walking the children. Removing the attribute
prevents new stores and drains stores already running, without holding
n_vclocks_mux across a callback that needs that mutex. Skip virtual
clocks, which do not have this attribute.
This race was found by code inspection of virtual-clock registration
failure cleanup and parent removal.
Fixes: bfcbb76b0f59 ("ptp: unregister virtual clocks when unregistering physical clock.")
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Link: https://patch.msgid.link/20261026-ptp-vclock-sampling-v6-1-e705612541f1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/ptp/ptp_clock.c | 5 +++++
drivers/ptp/ptp_private.h | 1 +
drivers/ptp/ptp_sysfs.c | 6 ++++++
3 files changed, 12 insertions(+)
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c
index 850ae55596850..f0b08061f395a 100644
--- a/drivers/ptp/ptp_clock.c
+++ b/drivers/ptp/ptp_clock.c
@@ -372,6 +372,11 @@ static int unregister_vclock(struct device *dev, void *data)
int ptp_clock_unregister(struct ptp_clock *ptp)
{
+ /*
+ * Stop and drain virtual-clock creation and deletion before walking the
+ * children. Do not hold n_vclocks_mux while waiting for sysfs callbacks.
+ */
+ ptp_vclock_remove_sysfs(ptp);
if (ptp_vclock_in_use(ptp)) {
device_for_each_child(&ptp->dev, NULL, unregister_vclock);
}
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
index ef6b9ef145efa..7da867424b586 100644
--- a/drivers/ptp/ptp_private.h
+++ b/drivers/ptp/ptp_private.h
@@ -153,6 +153,7 @@ extern const struct attribute_group *ptp_groups[];
int ptp_populate_pin_groups(struct ptp_clock *ptp);
void ptp_cleanup_pin_groups(struct ptp_clock *ptp);
+void ptp_vclock_remove_sysfs(struct ptp_clock *ptp);
struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock);
void ptp_vclock_unregister(struct ptp_vclock *vclock);
diff --git a/drivers/ptp/ptp_sysfs.c b/drivers/ptp/ptp_sysfs.c
index 4ff6afb15d913..df43f40482e4b 100644
--- a/drivers/ptp/ptp_sysfs.c
+++ b/drivers/ptp/ptp_sysfs.c
@@ -250,6 +250,12 @@ static ssize_t n_vclocks_store(struct device *dev,
}
static DEVICE_ATTR_RW(n_vclocks);
+void ptp_vclock_remove_sysfs(struct ptp_clock *ptp)
+{
+ if (!ptp->is_virtual_clock)
+ device_remove_file(&ptp->dev, &dev_attr_n_vclocks);
+}
+
static ssize_t max_vclocks_show(struct device *dev,
struct device_attribute *attr, char *page)
{
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0039/1059] ptp: unwind partially completed virtual clock creation
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (37 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0038/1059] ptp: drain virtual clock sysfs operations before unregistering children Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0040/1059] ptp: prevent possible ABBA deadlock in ptp_clock_freerun() Greg Kroah-Hartman
` (19 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, James Hilliard, Jakub Kicinski,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: James Hilliard <james.hilliard1@gmail.com>
[ Upstream commit 3dea778260e3dddf30651a6913d87a42861346a2 ]
n_vclocks_store() publishes the new clock count only after every child
has been registered. If a later registration fails, it returns without
unregistering the children already created by that request. Those clocks
are left out of n_vclocks, and a subsequent request can overwrite their
index entries without removing them.
Unregister the newly created children in reverse order and clear their
index entries on failure. Leave the previously installed clocks and
their count unchanged. The n_vclocks mutex serializes this rollback with
other sysfs changes, and parent removal drains the store before walking
the children.
This was found by code inspection while adding initial PHC sample error
handling to virtual clock registration.
Fixes: 73f37068d540 ("ptp: support ptp physical/virtual clocks conversion")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Link: https://patch.msgid.link/20261026-ptp-vclock-sampling-v6-2-e705612541f1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/ptp/ptp_sysfs.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/ptp/ptp_sysfs.c b/drivers/ptp/ptp_sysfs.c
index df43f40482e4b..f723fefa4eeea 100644
--- a/drivers/ptp/ptp_sysfs.c
+++ b/drivers/ptp/ptp_sysfs.c
@@ -212,7 +212,7 @@ static ssize_t n_vclocks_store(struct device *dev,
for (i = 0; i < num - ptp->n_vclocks; i++) {
vclock = ptp_vclock_register(ptp);
if (!vclock)
- goto out;
+ goto err_register;
*(ptp->vclock_index + ptp->n_vclocks + i) =
vclock->clock->index;
@@ -244,6 +244,12 @@ static ssize_t n_vclocks_store(struct device *dev,
mutex_unlock(&ptp->n_vclocks_mux);
return count;
+err_register:
+ num = i;
+ if (num)
+ device_for_each_child_reverse(dev, &num, unregister_vclock);
+ for (num = 0; num < i; num++)
+ ptp->vclock_index[ptp->n_vclocks + num] = -1;
out:
mutex_unlock(&ptp->n_vclocks_mux);
return err;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0040/1059] ptp: prevent possible ABBA deadlock in ptp_clock_freerun()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (38 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0039/1059] ptp: unwind partially completed virtual clock creation Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0041/1059] ptp: vclock: propagate physical clock sampling errors Greg Kroah-Hartman
` (18 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, syzbot+7cfb66a237c4a5fb22ad,
Jeongjun Park, Richard Cochran, Vladimir Oltean, Jakub Kicinski,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeongjun Park <aha310510@gmail.com>
[ Upstream commit 2efe41234dbd0a83fdb7cd38226c2f70039a2cd3 ]
syzbot reported the following ABBA deadlock:
CPU0 CPU1
---- ----
n_vclocks_store()
lock(&ptp->n_vclocks_mux) [1]
(physical clock)
pc_clock_adjtime()
lock(&clk->rwsem) [2]
(physical clock)
...
ptp_clock_freerun()
ptp_vclock_in_use()
lock(&ptp->n_vclocks_mux) [3]
(physical clock)
ptp_clock_unregister()
posix_clock_unregister()
lock(&clk->rwsem) [4]
(virtual clock)
Since ptp virtual clock is registered only under ptp physical clock, both
ptp_clock and posix_clock must be physical clocks for ptp_vclock_in_use()
to lock &ptp->n_vclocks_mux and check ptp->n_vclocks.
However, when unregistering vclocks in n_vclocks_store(), the locking
ptp->n_vclocks_mux is a physical clock lock, but clk->rwsem of
ptp_clock_unregister() called through device_for_each_child_reverse()
is a virtual clock lock.
Therefore, clk->rwsem used in CPU0 and clk->rwsem used in CPU1 are
different locks, but in lockdep, a false positive occurs because the
possibility of deadlock is determined through lock-class.
To solve this, lock subclass annotation must be added to the posix_clock
rwsem of the vclock.
Reported-by: syzbot+7cfb66a237c4a5fb22ad@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=7cfb66a237c4a5fb22ad
Fixes: 73f37068d540 ("ptp: support ptp physical/virtual clocks conversion")
Signed-off-by: Jeongjun Park <aha310510@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20250728062649.469882-1-aha310510@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: d1bdfdafd663 ("ptp: vclock: propagate physical clock sampling errors")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/ptp/ptp_private.h | 5 +++++
drivers/ptp/ptp_vclock.c | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
index 7da867424b586..5f3697c61e2b7 100644
--- a/drivers/ptp/ptp_private.h
+++ b/drivers/ptp/ptp_private.h
@@ -21,6 +21,11 @@
#define PTP_DEFAULT_MAX_VCLOCKS 20
#define PTP_MAX_VCLOCKS_LIMIT (KMALLOC_MAX_SIZE/(sizeof(int)))
+enum {
+ PTP_LOCK_PHYSICAL = 0,
+ PTP_LOCK_VIRTUAL,
+};
+
struct timestamp_event_queue {
struct ptp_extts_event buf[PTP_MAX_TIMESTAMPS];
int head;
diff --git a/drivers/ptp/ptp_vclock.c b/drivers/ptp/ptp_vclock.c
index eb57338a32414..a88c424593732 100644
--- a/drivers/ptp/ptp_vclock.c
+++ b/drivers/ptp/ptp_vclock.c
@@ -156,6 +156,11 @@ static long ptp_vclock_refresh(struct ptp_clock_info *ptp)
return PTP_VCLOCK_REFRESH_INTERVAL;
}
+static void ptp_vclock_set_subclass(struct ptp_clock *ptp)
+{
+ lockdep_set_subclass(&ptp->clock.rwsem, PTP_LOCK_VIRTUAL);
+}
+
static const struct ptp_clock_info ptp_vclock_info = {
.owner = THIS_MODULE,
.name = "ptp virtual clock",
@@ -215,6 +220,8 @@ struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock)
return NULL;
}
+ ptp_vclock_set_subclass(vclock->clock);
+
timecounter_init(&vclock->tc, &vclock->cc, 0);
ptp_schedule_worker(vclock->clock, PTP_VCLOCK_REFRESH_INTERVAL);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0041/1059] ptp: vclock: propagate physical clock sampling errors
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (39 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0040/1059] ptp: prevent possible ABBA deadlock in ptp_clock_freerun() Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0042/1059] ptp: vclock: serialize extended samples with counter updates Greg Kroah-Hartman
` (17 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, James Hilliard, Jakub Kicinski,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: James Hilliard <james.hilliard1@gmail.com>
[ Upstream commit d1bdfdafd663dd00b01d43eb3391f87718f2a09d ]
The cyclecounter read callback cannot report errors. ptp_vclock_read()
ignores the return from the physical clock and consumes its output even
if the read failed. A zero sample followed by the real counter can add
an extra 32-bit wrap to virtual time. This was found by code inspection
of reset-time PHC access and the virtual clock callers.
Sample the parent before calling timecounter_read() or timecounter_init()
and have the cyclecounter callback return the cached successful sample.
On failure, leave the counter and frequency adjustment unchanged and
return the PHC error to the caller.
Retry the first failed refresh after 10 ms instead of waiting another two
seconds. With the existing 32-bit nanosecond mask, timecounter_cyc2time()
can interpret a fresh timestamp as being in the past once the last
successful refresh is about 2.147 seconds old. An isolated read failure
should not deliberately defer the next attempt until that sample is four
seconds old.
Double the retry delay after consecutive failures, up to the normal
two-second refresh interval, and reset it after a successful refresh.
Each virtual clock has its own worker, and a failed parent read can involve
bus traffic and error logging. Backoff limits that repeated work during a
persistent failure while retaining a prompt first retry.
Limit each retry delay to the next regular refresh deadline. Otherwise,
backoff can skip the next two-second refresh opportunity and lose a full
counter wrap even when the parent has recovered before that refresh was
due. Advance the deadline when an attempt reaches it without resetting the
backoff, so sustained failures still settle at the normal refresh interval.
Keep the retry state private to each clock's auxiliary worker.
Take the initial sample and initialize the counter before publishing the
clock. Return an error pointer from registration and propagate its errno
through n_vclocks, including when the initial sample fails. Queue the first
refresh immediately after registration so registration latency is not
followed by another full refresh interval.
Keep the existing cyclecounter mask and scaling. These scheduling changes
do not guarantee timely samples: prolonged read failures or worker delays
can still exceed the half-wrap conversion window, and a gap of about
4.295 seconds between successful samples can lose a full counter wrap.
Do not assume that getcycles64() exposes a full-width nanosecond counter.
Fixes: 5d43f951b1ac ("ptp: add ptp virtual clock driver framework")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Link: https://patch.msgid.link/20261026-ptp-vclock-sampling-v6-3-e705612541f1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/ptp/ptp_private.h | 6 ++-
drivers/ptp/ptp_sysfs.c | 4 +-
drivers/ptp/ptp_vclock.c | 89 ++++++++++++++++++++++++++++++---------
3 files changed, 76 insertions(+), 23 deletions(-)
diff --git a/drivers/ptp/ptp_private.h b/drivers/ptp/ptp_private.h
index 5f3697c61e2b7..d69ab0106c9c3 100644
--- a/drivers/ptp/ptp_private.h
+++ b/drivers/ptp/ptp_private.h
@@ -72,7 +72,11 @@ struct ptp_vclock {
struct hlist_node vclock_hash_node;
struct cyclecounter cc;
struct timecounter tc;
- struct mutex lock; /* protects tc/cc */
+ u64 cycles;
+ struct mutex lock; /* protects tc/cc and the cached sample */
+ /* Owned by the auxiliary worker. */
+ unsigned long retry_delay;
+ unsigned long refresh_deadline;
};
/*
diff --git a/drivers/ptp/ptp_sysfs.c b/drivers/ptp/ptp_sysfs.c
index f723fefa4eeea..3306ebd60f9ef 100644
--- a/drivers/ptp/ptp_sysfs.c
+++ b/drivers/ptp/ptp_sysfs.c
@@ -211,8 +211,10 @@ static ssize_t n_vclocks_store(struct device *dev,
if (num > ptp->n_vclocks) {
for (i = 0; i < num - ptp->n_vclocks; i++) {
vclock = ptp_vclock_register(ptp);
- if (!vclock)
+ if (IS_ERR(vclock)) {
+ err = PTR_ERR(vclock);
goto err_register;
+ }
*(ptp->vclock_index + ptp->n_vclocks + i) =
vclock->clock->index;
diff --git a/drivers/ptp/ptp_vclock.c b/drivers/ptp/ptp_vclock.c
index a88c424593732..d112934351dc9 100644
--- a/drivers/ptp/ptp_vclock.c
+++ b/drivers/ptp/ptp_vclock.c
@@ -4,6 +4,7 @@
*
* Copyright 2021 NXP
*/
+#include <linux/jiffies.h>
#include <linux/slab.h>
#include <linux/hashtable.h>
#include "ptp_private.h"
@@ -13,6 +14,7 @@
#define PTP_VCLOCK_FADJ_SHIFT 9
#define PTP_VCLOCK_FADJ_DENOMINATOR 15625ULL
#define PTP_VCLOCK_REFRESH_INTERVAL (HZ * 2)
+#define PTP_VCLOCK_RETRY_INTERVAL msecs_to_jiffies(10)
/* protects vclock_hash addition/deletion */
static DEFINE_SPINLOCK(vclock_hash_lock);
@@ -42,21 +44,39 @@ static void ptp_vclock_hash_del(struct ptp_vclock *vclock)
synchronize_srcu(&vclock_srcu);
}
+/* The caller holds vclock->lock, or has not published the clock yet. */
+static int ptp_vclock_sample(struct ptp_vclock *vclock)
+{
+ struct ptp_clock *ptp = vclock->pclock;
+ struct timespec64 ts;
+ int err;
+
+ err = ptp->info->getcycles64(ptp->info, &ts);
+ if (!err)
+ vclock->cycles = timespec64_to_ns(&ts);
+
+ return err;
+}
+
static int ptp_vclock_adjfine(struct ptp_clock_info *ptp, long scaled_ppm)
{
struct ptp_vclock *vclock = info_to_vclock(ptp);
s64 adj;
+ int err;
adj = (s64)scaled_ppm << PTP_VCLOCK_FADJ_SHIFT;
adj = div_s64(adj, PTP_VCLOCK_FADJ_DENOMINATOR);
if (mutex_lock_interruptible(&vclock->lock))
return -EINTR;
- timecounter_read(&vclock->tc);
- vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj;
+ err = ptp_vclock_sample(vclock);
+ if (!err) {
+ timecounter_read(&vclock->tc);
+ vclock->cc.mult = PTP_VCLOCK_CC_MULT + adj;
+ }
mutex_unlock(&vclock->lock);
- return 0;
+ return err;
}
static int ptp_vclock_adjtime(struct ptp_clock_info *ptp, s64 delta)
@@ -75,15 +95,16 @@ static int ptp_vclock_gettime(struct ptp_clock_info *ptp,
struct timespec64 *ts)
{
struct ptp_vclock *vclock = info_to_vclock(ptp);
- u64 ns;
+ int err;
if (mutex_lock_interruptible(&vclock->lock))
return -EINTR;
- ns = timecounter_read(&vclock->tc);
+ err = ptp_vclock_sample(vclock);
+ if (!err)
+ *ts = ns_to_timespec64(timecounter_read(&vclock->tc));
mutex_unlock(&vclock->lock);
- *ts = ns_to_timespec64(ns);
- return 0;
+ return err;
}
static int ptp_vclock_gettimex(struct ptp_clock_info *ptp,
@@ -115,13 +136,16 @@ static int ptp_vclock_settime(struct ptp_clock_info *ptp,
{
struct ptp_vclock *vclock = info_to_vclock(ptp);
u64 ns = timespec64_to_ns(ts);
+ int err;
if (mutex_lock_interruptible(&vclock->lock))
return -EINTR;
- timecounter_init(&vclock->tc, &vclock->cc, ns);
+ err = ptp_vclock_sample(vclock);
+ if (!err)
+ timecounter_init(&vclock->tc, &vclock->cc, ns);
mutex_unlock(&vclock->lock);
- return 0;
+ return err;
}
static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp,
@@ -151,8 +175,24 @@ static long ptp_vclock_refresh(struct ptp_clock_info *ptp)
struct ptp_vclock *vclock = info_to_vclock(ptp);
struct timespec64 ts;
- ptp_vclock_gettime(&vclock->info, &ts);
+ /* Retry transient failures promptly, but back off during long outages. */
+ if (ptp_vclock_gettime(&vclock->info, &ts)) {
+ unsigned long now = jiffies;
+
+ /* Retries must not postpone the next regular refresh attempt. */
+ if (!vclock->retry_delay || time_after_eq(now, vclock->refresh_deadline))
+ vclock->refresh_deadline = now + PTP_VCLOCK_REFRESH_INTERVAL;
+
+ if (!vclock->retry_delay)
+ vclock->retry_delay = PTP_VCLOCK_RETRY_INTERVAL;
+ else
+ vclock->retry_delay = min_t(unsigned long,
+ vclock->retry_delay * 2,
+ PTP_VCLOCK_REFRESH_INTERVAL);
+ return min(vclock->retry_delay, vclock->refresh_deadline - now);
+ }
+ vclock->retry_delay = 0;
return PTP_VCLOCK_REFRESH_INTERVAL;
}
@@ -174,12 +214,9 @@ static const struct ptp_clock_info ptp_vclock_info = {
static u64 ptp_vclock_read(const struct cyclecounter *cc)
{
struct ptp_vclock *vclock = cc_to_vclock(cc);
- struct ptp_clock *ptp = vclock->pclock;
- struct timespec64 ts = {};
-
- ptp->info->getcycles64(ptp->info, &ts);
- return timespec64_to_ns(&ts);
+ /* The cyclecounter callback cannot report a failed PHC read. */
+ return vclock->cycles;
}
static const struct cyclecounter ptp_vclock_cc = {
@@ -192,10 +229,11 @@ static const struct cyclecounter ptp_vclock_cc = {
struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock)
{
struct ptp_vclock *vclock;
+ int err;
vclock = kzalloc(sizeof(*vclock), GFP_KERNEL);
if (!vclock)
- return NULL;
+ return ERR_PTR(-ENOMEM);
vclock->pclock = pclock;
vclock->info = ptp_vclock_info;
@@ -214,20 +252,29 @@ struct ptp_vclock *ptp_vclock_register(struct ptp_clock *pclock)
mutex_init(&vclock->lock);
+ err = ptp_vclock_sample(vclock);
+ if (err)
+ goto free_vclock;
+ timecounter_init(&vclock->tc, &vclock->cc, 0);
+
vclock->clock = ptp_clock_register(&vclock->info, &pclock->dev);
- if (IS_ERR_OR_NULL(vclock->clock)) {
- kfree(vclock);
- return NULL;
+ if (IS_ERR(vclock->clock)) {
+ err = PTR_ERR(vclock->clock);
+ goto free_vclock;
}
ptp_vclock_set_subclass(vclock->clock);
- timecounter_init(&vclock->tc, &vclock->cc, 0);
- ptp_schedule_worker(vclock->clock, PTP_VCLOCK_REFRESH_INTERVAL);
+ /* The initial sample predates registration; refresh without more delay. */
+ ptp_schedule_worker(vclock->clock, 0);
ptp_vclock_hash_add(vclock);
return vclock;
+
+free_vclock:
+ kfree(vclock);
+ return ERR_PTR(err);
}
void ptp_vclock_unregister(struct ptp_vclock *vclock)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0042/1059] ptp: vclock: serialize extended samples with counter updates
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (40 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0041/1059] ptp: vclock: propagate physical clock sampling errors Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0043/1059] scsi: target: Validate REGISTER AND MOVE TransportID length Greg Kroah-Hartman
` (16 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, James Hilliard, Jakub Kicinski,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: James Hilliard <james.hilliard1@gmail.com>
[ Upstream commit d3fcce5afe3bb62e8f7a2efb29e43da4fe4ae1f3 ]
The extended and cross-timestamp callbacks sample the physical clock
before taking the virtual clock mutex. A concurrent frequency adjustment
can advance the timecounter and change its multiplier in between, so the
older sample is converted using a different frequency than the one in
effect when it was taken.
Take the mutex before sampling and keep it held through the conversion.
Retain timecounter_cyc2time() and its existing conversion window. A PHC
sample need not advance the counter: for example, e1000e explicitly
allows non-monotonic SYSTIM readings. Treating a slightly older sample
as a forward delta would instead advance virtual time by nearly a full
counter wrap.
This race was found by code inspection of the virtual clock sampling
paths.
Fixes: f0067ebfc42b ("ptp: add gettimex64() to virtual clocks.")
Fixes: 21fad63084c2 ("ptp: add getcrosststamp() to virtual clocks.")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Link: https://patch.msgid.link/20261026-ptp-vclock-sampling-v6-4-e705612541f1@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/ptp/ptp_vclock.c | 32 ++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)
diff --git a/drivers/ptp/ptp_vclock.c b/drivers/ptp/ptp_vclock.c
index d112934351dc9..16c6eca5d2c16 100644
--- a/drivers/ptp/ptp_vclock.c
+++ b/drivers/ptp/ptp_vclock.c
@@ -115,20 +115,18 @@ static int ptp_vclock_gettimex(struct ptp_clock_info *ptp,
struct ptp_clock *pptp = vclock->pclock;
struct timespec64 pts;
int err;
- u64 ns;
-
- err = pptp->info->getcyclesx64(pptp->info, &pts, sts);
- if (err)
- return err;
if (mutex_lock_interruptible(&vclock->lock))
return -EINTR;
- ns = timecounter_cyc2time(&vclock->tc, timespec64_to_ns(&pts));
- mutex_unlock(&vclock->lock);
+ err = pptp->info->getcyclesx64(pptp->info, &pts, sts);
+ if (!err) {
+ u64 ns = timecounter_cyc2time(&vclock->tc, timespec64_to_ns(&pts));
- *ts = ns_to_timespec64(ns);
+ *ts = ns_to_timespec64(ns);
+ }
+ mutex_unlock(&vclock->lock);
- return 0;
+ return err;
}
static int ptp_vclock_settime(struct ptp_clock_info *ptp,
@@ -154,20 +152,18 @@ static int ptp_vclock_getcrosststamp(struct ptp_clock_info *ptp,
struct ptp_vclock *vclock = info_to_vclock(ptp);
struct ptp_clock *pptp = vclock->pclock;
int err;
- u64 ns;
-
- err = pptp->info->getcrosscycles(pptp->info, xtstamp);
- if (err)
- return err;
if (mutex_lock_interruptible(&vclock->lock))
return -EINTR;
- ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device));
- mutex_unlock(&vclock->lock);
+ err = pptp->info->getcrosscycles(pptp->info, xtstamp);
+ if (!err) {
+ u64 ns = timecounter_cyc2time(&vclock->tc, ktime_to_ns(xtstamp->device));
- xtstamp->device = ns_to_ktime(ns);
+ xtstamp->device = ns_to_ktime(ns);
+ }
+ mutex_unlock(&vclock->lock);
- return 0;
+ return err;
}
static long ptp_vclock_refresh(struct ptp_clock_info *ptp)
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0043/1059] scsi: target: Validate REGISTER AND MOVE TransportID length
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (41 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0042/1059] ptp: vclock: serialize extended samples with counter updates Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0044/1059] tipc: reject attaching bearer of different media to the same occupied device Greg Kroah-Hartman
` (15 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jia Jia, Martin K. Petersen (Oracle),
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jia Jia <physicalmtea@gmail.com>
[ Upstream commit 5d5913710c81eed6fa275b6a24773059d9dbfdfa ]
REGISTER AND MOVE has a 24-byte parameter-list header followed by a
TransportID. A 24-byte parameter list with a zero TransportID length
passes the existing tid_len + 24 check, then the handler reads buf[24] for
the TransportID protocol identifier, one byte past the received parameter
list.
A TransportID is at least 24 bytes. Reject shorter TransportIDs and
compare the declared length with the bytes following the header before
reading buf[24].
A malformed PR OUT sent through vhost-scsi triggered this read on a KASAN
kernel. The command is now rejected with INVALID PARAMETER LIST before
buf[24] is accessed.
Fixes: c66ac9db8d4a ("[SCSI] target: Add LIO target core v4.0.0-rc6")
Signed-off-by: Jia Jia <physicalmtea@gmail.com>
Link: https://patch.msgid.link/20261021094334.198599-1-physicalmtea@gmail.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/target/target_core_pr.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
index 742f5b11456fd..2a201841aa943 100644
--- a/drivers/target/target_core_pr.c
+++ b/drivers/target/target_core_pr.c
@@ -3219,10 +3219,11 @@ core_scsi3_emulate_pro_register_and_move(struct se_cmd *cmd, u64 res_key,
transport_kunmap_data_sg(cmd);
buf = NULL;
- if ((tid_len + 24) != cmd->data_length) {
- pr_err("SPC-3 PR: Illegal tid_len: %u + 24 byte header"
- " does not equal CDB data_length: %u\n", tid_len,
- cmd->data_length);
+ /* TransportID is at least 24 bytes. buf[24] is its first byte. */
+ if (tid_len < 24 ||
+ tid_len != cmd->data_length - 24) {
+ pr_err("SPC-3 PR: Illegal tid_len: %u for data_length: %u\n",
+ tid_len, cmd->data_length);
ret = TCM_INVALID_PARAMETER_LIST;
goto out_put_pr_reg;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0044/1059] tipc: reject attaching bearer of different media to the same occupied device
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (42 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0043/1059] scsi: target: Validate REGISTER AND MOVE TransportID length Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0045/1059] spi: pic32-sqi: fail transfer when the BD ring is exhausted Greg Kroah-Hartman
` (14 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Jiakai Xu, Tung Nguyen,
Jakub Kicinski, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tung Nguyen <tung.quang.nguyen@est.tech>
[ Upstream commit 0a0257228be902ff09608bcaf19ae7c6d58b028f ]
Currently, two bearers of different media types can be added to the
same device (e.g., "eth:eth0" and "ib:eth0") via tipc command:
tipc bearer enable media eth dev eth0
tipc bearer enable media ib dev eth0
For each command execution, tipc_enable_l2_media() is called:
tipc_enable_l2_media()
dev_get_by_name()
dev_hold()
As a result, device->dev_refcnt is incremented twice, but the second
bearer replaces the first one. This causes a leak in device->dev_refcnt.
Fix this by rejecting a bearer with a different media type when the
device is already occupied.
Fixes: cb30a63384bc ("tipc: refactor function tipc_enable_bearer()")
Reported-by: Jiakai Xu <xujiakai24@mails.ucas.ac.cn>
Closes: http://lore.kernel.org/netdev/20260918013509.1853952-1-xujiakai24@mails.ucas.ac.cn/
Signed-off-by: Tung Nguyen <tung.quang.nguyen@est.tech>
Link: https://patch.msgid.link/20261029030522.8306-1-tung.quang.nguyen@est.tech
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/tipc/bearer.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c
index e0104f9690a3b..fc64261e7f871 100644
--- a/net/tipc/bearer.c
+++ b/net/tipc/bearer.c
@@ -287,17 +287,50 @@ static int tipc_enable_bearer(struct net *net, const char *name,
bearer_id = MAX_BEARERS;
i = MAX_BEARERS;
while (i-- != 0) {
+ struct net_device *dev;
+
b = rtnl_dereference(tn->bearer_list[i]);
if (!b) {
bearer_id = i;
continue;
}
if (!strcmp(name, b->name)) {
+duplicate:
errstr = "already enabled";
NL_SET_ERR_MSG(extack, "Already enabled");
goto rejected;
}
+ /* udp media can be used together with any media */
+ if (b->media->type_id == TIPC_MEDIA_TYPE_UDP ||
+ m->type_id == TIPC_MEDIA_TYPE_UDP)
+ goto priority;
+
+ dev = __dev_get_by_name(net, b_names.if_name);
+
+ if (!dev) {
+ res = -ENODEV;
+ errstr = "no device for the media";
+ NL_SET_ERR_MSG(extack, "No device for the media");
+ goto rejected;
+ }
+
+ if (rtnl_dereference(b->media_ptr) == dev) {
+ char *dev_name = strchr((const char *)b->name, ':') + 1;
+
+ /* Not allow altname of occupied device */
+ if (strcmp(dev_name, b_names.if_name) &&
+ b->media->type_id == m->type_id)
+ goto duplicate;
+
+ /* Not allow eth and ib to attach to the same device */
+ errstr = "same dev for different media";
+ NL_SET_ERR_MSG(extack,
+ "Same dev for different media");
+ goto rejected;
+ }
+
+priority:
if (b->priority == prio &&
(++with_this_prio > 2)) {
pr_warn("Bearer <%s>: already 2 bearers with priority %u\n",
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0045/1059] spi: pic32-sqi: fail transfer when the BD ring is exhausted
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (43 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0044/1059] tipc: reject attaching bearer of different media to the same occupied device Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0046/1059] bpf: Dont let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS Greg Kroah-Hartman
` (13 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Hongjian Dai, Mark Brown,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hongjian Dai <daihongjian@kylinsec.com.cn>
[ Upstream commit 2066970324a1439e5a2e08c4599098367f8f82cc ]
pic32_sqi_one_transfer() silently stopped programming buffer descriptors
when ring_desc_get() returned NULL and still returned success. The caller
then marked the last programmed descriptor as the end of the list and
started the DMA engine, so the hardware transferred only a prefix of the
requested data while the message completed with status 0.
The ring holds PESQI_BD_COUNT (256) descriptors of at most
PESQI_BD_BUF_LEN_MAX (256) bytes each, so messages larger than 64 KiB (or
with enough SG entries) can exhaust it. Since the driver sets no
max_message_size/max_transfer_size, the SPI core does not prevent this.
Return -ENOMEM instead, and set msg->status so the failure reaches the
caller rather than being silently truncated.
Fixes: 3270ac230f66 ("spi: pic32-sqi: add SPI driver for PIC32 SQI controller.")
Signed-off-by: Hongjian Dai <daihongjian@kylinsec.com.cn>
Link: https://patch.msgid.link/F5276982A630220B+20261017075545.95854-1-daihongjian@kylinsec.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/spi/spi-pic32-sqi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-pic32-sqi.c b/drivers/spi/spi-pic32-sqi.c
index 5035b82d528c4..08b4c8bb200cc 100644
--- a/drivers/spi/spi-pic32-sqi.c
+++ b/drivers/spi/spi-pic32-sqi.c
@@ -297,7 +297,7 @@ static int pic32_sqi_one_transfer(struct pic32_sqi *sqi,
/* get ring descriptor */
rdesc = ring_desc_get(sqi);
if (!rdesc)
- break;
+ return -ENOMEM;
bd = rdesc->bd;
@@ -387,6 +387,7 @@ static int pic32_sqi_one_message(struct spi_master *master,
ret = pic32_sqi_one_transfer(sqi, msg, xfer);
if (ret) {
dev_err(&spi->dev, "xfer %p err\n", xfer);
+ msg->status = ret;
goto xfer_out;
}
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0046/1059] bpf: Dont let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (44 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0045/1059] spi: pic32-sqi: fail transfer when the BD ring is exhausted Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0047/1059] bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 Greg Kroah-Hartman
` (12 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Alexei Starovoitov, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexei Starovoitov <ast@kernel.org>
[ Upstream commit 6d8118937ba477e03fa2e94e9bd9abac7291a2a2 ]
When bpf_skb_adjust_room() shrinks a TCP GSO skb, it adds the number of
removed bytes to gso_size. gso_size has 16 bits, and nothing checks the
sum. Thus gso_size can wrap to 0 or to a small size, or it can be
GSO_BY_FRAGS. GSO_BY_FRAGS is not a size. It tells skb_segment() to read
the length of each segment from the frag_list. If the TCP GSO skb has no
frag_list, skb_segment() dereferences a NULL pointer.
Return -ENOTSUPP and do not change the skb if the sum is GSO_BY_FRAGS or
larger. With BPF_F_ADJ_ROOM_FIXED_GSO the helper does not change gso_size,
so it shrinks the skb as before.
Fixes: 2be7e212d541 ("bpf: add bpf_skb_adjust_room helper")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-16-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/net/core/filter.c b/net/core/filter.c
index 4872f5c27cf5b..b3582a59e3dda 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -3653,6 +3653,14 @@ static int bpf_skb_net_shrink(struct sk_buff *skb, u32 off, u32 len_diff,
return -ENOTSUPP;
}
+ /*
+ * The MSS is raised by len_diff. It has 16 bits, and GSO_BY_FRAGS is
+ * not a size.
+ */
+ if (skb_is_gso(skb) && !(flags & BPF_F_ADJ_ROOM_FIXED_GSO) &&
+ skb_shinfo(skb)->gso_size + len_diff >= GSO_BY_FRAGS)
+ return -ENOTSUPP;
+
ret = skb_unclone(skb, GFP_ATOMIC);
if (unlikely(ret < 0))
return ret;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0047/1059] bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (45 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0046/1059] bpf: Dont let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0048/1059] bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
` (11 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Alexei Starovoitov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit 58e39f8d58b141b96c030008a20dde9d625ec997 ]
The mode BPF_LWT_ENCAP_SEG6 of bpf_lwt_push_encap() pushes an IPv6 header
and an SRH, and it replaces the dst. The SRH says that IPv6 follows, and
skb->protocol does not change. Thus the mode assumes an IPv6 packet, but an
lwt_in prog also runs for IPv4 packets. After the prog, bpf_input() calls
orig_input() of the old dst. This IPv4 handler reads the pushed headers as
IPv4. It can write after the packet data, and the kernel crashes.
after the push orig_input() expects
--------------------- --------------------
skb->protocol ETH_P_IP ETH_P_IP
dst rt6_info rtable
packet | IPv6 | SRH | IPv4 | | IPv4 |
The mode BPF_LWT_ENCAP_SEG6_INLINE returns -EBADMSG for non-IPv6 packets.
Apply this check to both modes. End.BPF does not change, because
seg6_local_input() drops non-IPv6 packets.
Fixes: fe94cc290f53 ("bpf: Add IPv6 Segment Routing helpers")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-17-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/net/core/filter.c b/net/core/filter.c
index b3582a59e3dda..b480d4d17f47c 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -6381,11 +6381,15 @@ static int bpf_push_seg6_encap(struct sk_buff *skb, u32 type, void *hdr, u32 len
if (!seg6_validate_srh(srh, len, false))
return -EINVAL;
+ /*
+ * The encap mode names IPv6 as the inner protocol, and neither mode
+ * updates skb->protocol.
+ */
+ if (skb->protocol != htons(ETH_P_IPV6))
+ return -EBADMSG;
+
switch (type) {
case BPF_LWT_ENCAP_SEG6_INLINE:
- if (skb->protocol != htons(ETH_P_IPV6))
- return -EBADMSG;
-
err = seg6_do_srh_inline(skb, srh);
break;
case BPF_LWT_ENCAP_SEG6:
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0048/1059] bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (46 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0047/1059] bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 Greg Kroah-Hartman
@ 2026-12-04 9:52 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0049/1059] bpf: Dont look for the SRH again in the End.BPF helpers Greg Kroah-Hartman
` (10 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:52 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Alexei Starovoitov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit ac159f39b252971141c49b68a27de0b637debfad ]
bpf_lwt_seg6_adjust_srh() lets an End.BPF prog change the size of the TLVs
in the SRH. The helper keeps the SRH length in srh_state->hdrlen, in bytes
and without the first 8 bytes. Later seg6_bpf_has_valid_srh() writes it to
srh->hdrlen, an 8-bit field in units of 8 bytes. But srh_state->hdrlen has
no upper limit, and the cast to u8 can truncate it. After that,
seg6_validate_srh() gets the SRH length from srh->hdrlen, and thus it can
accept the SRH. Then srh->hdrlen is too small, and a parser reads TLVs as
the subsequent header.
Return -EFAULT when the new srh_state->hdrlen is larger than 2040, the
largest length that srh->hdrlen can hold. To replace a TLV in the largest
SRH, a prog can no longer add bytes first. It must remove bytes first.
Fixes: fe94cc290f53 ("bpf: Add IPv6 Segment Routing helpers")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-19-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/core/filter.c b/net/core/filter.c
index b480d4d17f47c..ff0d53e1aa2d9 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -6630,6 +6630,9 @@ BPF_CALL_3(bpf_lwt_seg6_adjust_srh, struct sk_buff *, skb, u32, offset,
return -EFAULT;
if (unlikely(len < 0 && (void *)((char *)ptr - len) > srh_end))
return -EFAULT;
+ /* The length field of the SRH has 8 bits, in units of 8 bytes. */
+ if (unlikely(len > (U8_MAX << 3) - srh_state->hdrlen))
+ return -EFAULT;
if (len > 0) {
ret = skb_cow_head(skb, len);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0049/1059] bpf: Dont look for the SRH again in the End.BPF helpers
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (47 preceding siblings ...)
2026-12-04 9:52 ` [PATCH 6.1 0048/1059] bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0050/1059] bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
` (9 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Alexei Starovoitov, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexei Starovoitov <ast@kernel.org>
[ Upstream commit 45bcc58d576705d2c001332766e10313f1c55bad ]
A packet can have two SRHs. Thus input_action_end_bpf() uses
IP6_FH_F_SKIP_RH to skip routing headers with segments_left 0. The helpers
bpf_lwt_seg6_store_bytes() and bpf_lwt_seg6_adjust_srh() can reallocate the
head of the skb. Thus they look for the SRH again, but without this flag.
+------------------------+ <- the helpers: srh_state->srh
| SRH 1, segments_left 0 |
+------------------------+ <- input_action_end_bpf(): srh_state->srh
| SRH 2 | and srh_state->hdrlen
+------------------------+
Then the helpers check offset against the wrong limits. If a helper changes
TLVs, seg6_bpf_has_valid_srh() writes the length of SRH 2 to SRH 1.
Neither helper changes the offset of the SRH from skb->data. Calculate the
new address from this offset. To add IP6_FH_F_SKIP_RH is not sufficient,
because advance_nextseg() can set segments_left of SRH 2 to 0. The helper
bpf_lwt_seg6_action() can change the headers and still looks for the SRH.
Fixes: fbbc5bc2ab8c ("seg6: ignore routing header with segments left equal to 0")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-20-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/net/core/filter.c b/net/core/filter.c
index ff0d53e1aa2d9..c3b8561433a85 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -6478,11 +6478,12 @@ BPF_CALL_4(bpf_lwt_seg6_store_bytes, struct sk_buff *, skb, u32, offset,
this_cpu_ptr(&seg6_bpf_srh_states);
struct ipv6_sr_hdr *srh = srh_state->srh;
void *srh_tlvs, *srh_end, *ptr;
- int srhoff = 0;
+ int srhoff;
if (srh == NULL)
return -EINVAL;
+ srhoff = (unsigned char *)srh - skb->data;
srh_tlvs = (void *)((char *)srh + ((srh->first_segment + 1) << 4));
srh_end = (void *)((char *)srh + sizeof(*srh) + srh_state->hdrlen);
@@ -6495,8 +6496,7 @@ BPF_CALL_4(bpf_lwt_seg6_store_bytes, struct sk_buff *, skb, u32, offset,
if (unlikely(bpf_try_make_writable(skb, offset + len)))
return -EFAULT;
- if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0)
- return -EINVAL;
+ /* The head may have moved. */
srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff);
memcpy(skb->data + offset, from, len);
@@ -6614,12 +6614,13 @@ BPF_CALL_3(bpf_lwt_seg6_adjust_srh, struct sk_buff *, skb, u32, offset,
struct ipv6_sr_hdr *srh = srh_state->srh;
void *srh_end, *srh_tlvs, *ptr;
struct ipv6hdr *hdr;
- int srhoff = 0;
+ int srhoff;
int ret;
if (unlikely(srh == NULL))
return -EINVAL;
+ srhoff = (unsigned char *)srh - skb->data;
srh_tlvs = (void *)((unsigned char *)srh + sizeof(*srh) +
((srh->first_segment + 1) << 4));
srh_end = (void *)((unsigned char *)srh + sizeof(*srh) +
@@ -6651,8 +6652,7 @@ BPF_CALL_3(bpf_lwt_seg6_adjust_srh, struct sk_buff *, skb, u32, offset,
hdr = (struct ipv6hdr *)skb->data;
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
- if (ipv6_find_hdr(skb, &srhoff, IPPROTO_ROUTING, NULL, NULL) < 0)
- return -EINVAL;
+ /* The bytes in front of offset have moved together with skb->data. */
srh_state->srh = (struct ipv6_sr_hdr *)(skb->data + srhoff);
srh_state->hdrlen += len;
srh_state->valid = false;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0050/1059] bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (48 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0049/1059] bpf: Dont look for the SRH again in the End.BPF helpers Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0051/1059] bpf: Dont leave a stale MAC header in bpf_lwt_push_ip_encap() Greg Kroah-Hartman
` (8 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Alexei Starovoitov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit 0fcb3f11a93d740e7f9ae1aeb48fe4d25838be18 ]
bpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() change skb->data and
skb->mac_header by len. That is correct in a tc prog, where skb->data is
the MAC header. But bpf_lwt_seg6_adjust_srh() calls them in an End.BPF
prog, where skb->data is the network header. The MAC header does not move:
before push | free | MAC header | IPv6 | SRH | payload
^ head ^ mac_header ^ data
today | free | MAC h| IPv6 | SRH + len | payload
^ head ^ mac_header ^ data
this patch | free | MAC header | IPv6 | SRH + len | payload
^ head ^ mac_header ^ data
Users of skb_mac_header() get incorrect bytes until __dev_queue_xmit() sets
skb->mac_header again. skb_cow_head() reserves only len bytes. Thus the
16-bit offset skb->mac_header can wrap. A push also changes the "not set"
value. In both cases skb_mac_header() points after the skb.
Move the MAC header too. Pass len + skb->mac_len to skb_cow_head(). Keep
the "not set" value. The second Fixes tag is for this case. Since that
commit an End.BPF prog can get an skb with skb->mac_header not set.
Fixes: fe94cc290f53 ("bpf: Add IPv6 Segment Routing helpers")
Fixes: 20a081b7984c ("seg6: add VRF support for SRv6 End.DT6 behavior")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-21-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/net/core/filter.c b/net/core/filter.c
index c3b8561433a85..bbf96dfbcb95b 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -6611,6 +6611,7 @@ BPF_CALL_3(bpf_lwt_seg6_adjust_srh, struct sk_buff *, skb, u32, offset,
{
struct seg6_bpf_srh_state *srh_state =
this_cpu_ptr(&seg6_bpf_srh_states);
+ bool mac_set = skb_mac_header_was_set(skb);
struct ipv6_sr_hdr *srh = srh_state->srh;
void *srh_end, *srh_tlvs, *ptr;
struct ipv6hdr *hdr;
@@ -6635,20 +6636,38 @@ BPF_CALL_3(bpf_lwt_seg6_adjust_srh, struct sk_buff *, skb, u32, offset,
if (unlikely(len > (U8_MAX << 3) - srh_state->hdrlen))
return -EFAULT;
+ /*
+ * skb->data is the network header here. The MAC header is in front of
+ * it, so bpf_skb_net_hdr_push() and bpf_skb_net_hdr_pop() do not move
+ * it with the other headers.
+ */
if (len > 0) {
- ret = skb_cow_head(skb, len);
+ ret = skb_cow_head(skb, len + skb->mac_len);
if (unlikely(ret < 0))
return ret;
+ /* The push can write over the MAC header, so move it first. */
+ if (mac_set)
+ memmove(skb->data - len - skb->mac_len,
+ skb_mac_header(skb), skb->mac_len);
ret = bpf_skb_net_hdr_push(skb, offset, len);
} else {
ret = bpf_skb_net_hdr_pop(skb, offset, -1 * len);
+ /* The pop has added -len to skb->mac_header. */
+ if (likely(!ret) && mac_set)
+ memmove(skb->data - skb->mac_len,
+ skb_mac_header(skb) + len, skb->mac_len);
}
bpf_compute_data_pointers(skb);
if (unlikely(ret < 0))
return ret;
+ if (mac_set)
+ skb_set_mac_header(skb, -skb->mac_len);
+ else
+ skb_unset_mac_header(skb);
+
hdr = (struct ipv6hdr *)skb->data;
hdr->payload_len = htons(skb->len - sizeof(struct ipv6hdr));
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0051/1059] bpf: Dont leave a stale MAC header in bpf_lwt_push_ip_encap()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (49 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0050/1059] bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0052/1059] ipv4: Unmask upper DSCP bits in input route lookup Greg Kroah-Hartman
` (7 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Alexei Starovoitov, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexei Starovoitov <ast@kernel.org>
[ Upstream commit 701ffd202b9e32942c8cfc065c9fe76ceaccc302 ]
With BPF_LWT_ENCAP_IP, bpf_lwt_push_encap() pushes a new IP header. The new
header overwrites the MAC header of a received skb. But skb->mac_header
continues to point to the same bytes. Code that reads the MAC header after
the push, for example netfilter, gets bytes of the new header.
before the push | MAC header | old IP | payload
^ mac_header ^ network_header
today | new header | old IP | payload
network_header ^ ^ mac_header
this patch, lwt_in | MAC header | new header | old IP | payload
^ mac_header ^ network_header
this patch, lwt_xmit | new header | old IP | payload
network_header ^ mac_header is not set
For lwt_in, move the MAC header in front of the new header before the
memcpy(), as __seg6_do_srh_encap() does. skb_cow_head() already reserves
len + skb->mac_len bytes.
For lwt_xmit, the output path makes a new MAC header. Thus mark
skb->mac_header as not set. This is the state of a locally generated skb.
Fixes: 52f278774e79 ("bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-22-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/lwt_bpf.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c
index 8c83b34ed58af..87a892c1a587b 100644
--- a/net/core/lwt_bpf.c
+++ b/net/core/lwt_bpf.c
@@ -640,6 +640,14 @@ int bpf_lwt_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len, bool ingress)
if (ingress)
skb_postpush_rcsum(skb, iph, len);
skb_reset_network_header(skb);
+ /*
+ * The new header goes over the MAC header. On ingress move it first.
+ * On egress the packet gets a new one, so forget the old one.
+ */
+ if (ingress)
+ skb_mac_header_rebuild(skb);
+ else
+ skb_unset_mac_header(skb);
if (is_udp_tunnel) {
size_t iph_sz = ipv4 ? iph->ihl * 4 : sizeof(struct ipv6hdr);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0052/1059] ipv4: Unmask upper DSCP bits in input route lookup
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (50 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0051/1059] bpf: Dont leave a stale MAC header in bpf_lwt_push_ip_encap() Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0053/1059] ipv4: Convert ip_route_input_noref() to dscp_t Greg Kroah-Hartman
` (6 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Ido Schimmel, Guillaume Nault,
Florian Westphal, David Ahern, Jakub Kicinski, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ido Schimmel <idosch@nvidia.com>
[ Upstream commit df9131c7fafdc0d4c85686f5c7711a4dd4f3ae60 ]
Unmask the upper DSCP bits in input route lookup so that in the future
the lookup could be performed according to the full DSCP value.
No functional changes intended since the upper DSCP bits are masked when
comparing against the TOS selectors in FIB rules and routes.
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Acked-by: Florian Westphal <fw@strlen.de>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240821125251.1571445-9-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: b3ad42f61832 ("bpf: Reset skb->cb after an lwt prog pushes an IP header")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/ipv4/route.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index bd8ea5b8fa583..0ba1313651503 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2553,7 +2553,7 @@ int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
struct fib_result res;
int err;
- tos &= IPTOS_RT_MASK;
+ tos &= INET_DSCP_MASK;
rcu_read_lock();
err = ip_route_input_rcu(skb, daddr, saddr, tos, dev, &res);
rcu_read_unlock();
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0053/1059] ipv4: Convert ip_route_input_noref() to dscp_t.
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (51 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0052/1059] ipv4: Unmask upper DSCP bits in input route lookup Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0054/1059] bpf: Reset skb->cb after an lwt prog pushes an IP header Greg Kroah-Hartman
` (5 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Guillaume Nault, David Ahern,
Jakub Kicinski, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guillaume Nault <gnault@redhat.com>
[ Upstream commit 66fb6386d358a04edd5c640e38b4a02b323b89d8 ]
Pass a dscp_t variable to ip_route_input_noref(), instead of a plain
u8, to prevent accidental setting of ECN bits in ->flowi4_tos.
Callers of ip_route_input_noref() to consider are:
* arp_process() in net/ipv4/arp.c. This function sets the tos
parameter to 0, which is already a valid dscp_t value, so it
doesn't need to be adjusted for the new prototype.
* ip_route_input(), which already has a dscp_t variable to pass as
parameter. We just need to remove the inet_dscp_to_dsfield()
conversion.
* ipvlan_l3_rcv(), bpf_lwt_input_reroute(), ip_expire(),
ip_rcv_finish_core(), xfrm4_rcv_encap_finish() and
xfrm4_rcv_encap(), which get the DSCP directly from IPv4 headers
and can simply use the ip4h_dscp() helper.
While there, declare the IPv4 header pointers as const in
ipvlan_l3_rcv() and bpf_lwt_input_reroute().
Also, modify the declaration of ip_route_input_noref() in
include/net/route.h so that it matches the prototype of its
implementation in net/ipv4/route.c.
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/a8a747bed452519c4d0cc06af32c7e7795d7b627.1727807926.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: b3ad42f61832 ("bpf: Reset skb->cb after an lwt prog pushes an IP header")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/ipvlan/ipvlan_l3s.c | 6 ++++--
include/net/route.h | 7 +++----
net/core/lwt_bpf.c | 5 +++--
net/ipv4/ip_fragment.c | 4 ++--
net/ipv4/ip_input.c | 2 +-
net/ipv4/route.c | 6 +++---
net/ipv4/xfrm4_input.c | 2 +-
net/ipv4/xfrm4_protocol.c | 2 +-
8 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/drivers/net/ipvlan/ipvlan_l3s.c b/drivers/net/ipvlan/ipvlan_l3s.c
index ca35a50bb6405..7c017fe35522a 100644
--- a/drivers/net/ipvlan/ipvlan_l3s.c
+++ b/drivers/net/ipvlan/ipvlan_l3s.c
@@ -2,6 +2,8 @@
/* Copyright (c) 2014 Mahesh Bandewar <maheshb@google.com>
*/
+#include <net/ip.h>
+
#include "ipvlan.h"
static unsigned int ipvlan_netid __read_mostly;
@@ -48,11 +50,11 @@ static struct sk_buff *ipvlan_l3_rcv(struct net_device *dev,
switch (proto) {
case AF_INET:
{
- struct iphdr *ip4h = ip_hdr(skb);
+ const struct iphdr *ip4h = ip_hdr(skb);
int err;
err = ip_route_input_noref(skb, ip4h->daddr, ip4h->saddr,
- ip4h->tos, sdev);
+ ip4h_dscp(ip4h), sdev);
if (unlikely(err))
goto out;
break;
diff --git a/include/net/route.h b/include/net/route.h
index 4e2f8c3e1f98e..2f807010558a5 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -190,8 +190,8 @@ static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4
int ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr,
u8 tos, struct net_device *dev,
struct in_device *in_dev, u32 *itag);
-int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 src,
- u8 tos, struct net_device *devin);
+int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
+ dscp_t dscp, struct net_device *dev);
int ip_route_use_hint(struct sk_buff *skb, __be32 dst, __be32 src,
u8 tos, struct net_device *devin,
const struct sk_buff *hint);
@@ -202,8 +202,7 @@ static inline int ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src,
int err;
rcu_read_lock();
- err = ip_route_input_noref(skb, dst, src, inet_dscp_to_dsfield(dscp),
- devin);
+ err = ip_route_input_noref(skb, dst, src, dscp, devin);
if (!err) {
skb_dst_force(skb);
if (!skb_dst(skb))
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c
index 87a892c1a587b..ed5bafe584128 100644
--- a/net/core/lwt_bpf.c
+++ b/net/core/lwt_bpf.c
@@ -10,6 +10,7 @@
#include <linux/bpf.h>
#include <net/lwtunnel.h>
#include <net/gre.h>
+#include <net/ip.h>
#include <net/ip6_route.h>
#include <net/ipv6_stubs.h>
@@ -89,12 +90,12 @@ static int bpf_lwt_input_reroute(struct sk_buff *skb)
if (skb->protocol == htons(ETH_P_IP)) {
struct net_device *dev = skb_dst(skb)->dev;
- struct iphdr *iph = ip_hdr(skb);
+ const struct iphdr *iph = ip_hdr(skb);
dev_hold(dev);
skb_dst_drop(skb);
err = ip_route_input_noref(skb, iph->daddr, iph->saddr,
- iph->tos, dev);
+ ip4h_dscp(iph), dev);
dev_put(dev);
} else if (skb->protocol == htons(ETH_P_IPV6)) {
skb_dst_drop(skb);
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
index be83c4b74036b..e50740dfe0092 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
@@ -179,8 +179,8 @@ static void ip_expire(struct timer_list *t)
/* skb has no dst, perform route lookup again */
iph = ip_hdr(head);
- err = ip_route_input_noref(head, iph->daddr, iph->saddr,
- iph->tos, head->dev);
+ err = ip_route_input_noref(head, iph->daddr, iph->saddr, ip4h_dscp(iph),
+ head->dev);
if (err)
goto out;
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
index e7196ecffafc6..30b814663eae1 100644
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -363,7 +363,7 @@ static int ip_rcv_finish_core(struct net *net, struct sock *sk,
*/
if (!skb_valid_dst(skb)) {
err = ip_route_input_noref(skb, iph->daddr, iph->saddr,
- iph->tos, dev);
+ ip4h_dscp(iph), dev);
if (unlikely(err))
goto drop_error;
} else {
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 0ba1313651503..dd3ab1b5fdfe4 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -2548,14 +2548,14 @@ static int ip_route_input_rcu(struct sk_buff *skb, __be32 daddr, __be32 saddr,
}
int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
- u8 tos, struct net_device *dev)
+ dscp_t dscp, struct net_device *dev)
{
struct fib_result res;
int err;
- tos &= INET_DSCP_MASK;
rcu_read_lock();
- err = ip_route_input_rcu(skb, daddr, saddr, tos, dev, &res);
+ err = ip_route_input_rcu(skb, daddr, saddr, inet_dscp_to_dsfield(dscp),
+ dev, &res);
rcu_read_unlock();
return err;
diff --git a/net/ipv4/xfrm4_input.c b/net/ipv4/xfrm4_input.c
index d05e8ff9c37bf..490d54a58d2f5 100644
--- a/net/ipv4/xfrm4_input.c
+++ b/net/ipv4/xfrm4_input.c
@@ -31,7 +31,7 @@ static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk,
const struct iphdr *iph = ip_hdr(skb);
if (ip_route_input_noref(skb, iph->daddr, iph->saddr,
- iph->tos, skb->dev))
+ ip4h_dscp(iph), skb->dev))
goto drop;
}
diff --git a/net/ipv4/xfrm4_protocol.c b/net/ipv4/xfrm4_protocol.c
index b146ce88c5d0c..4ee624d8e66fc 100644
--- a/net/ipv4/xfrm4_protocol.c
+++ b/net/ipv4/xfrm4_protocol.c
@@ -76,7 +76,7 @@ int xfrm4_rcv_encap(struct sk_buff *skb, int nexthdr, __be32 spi,
const struct iphdr *iph = ip_hdr(skb);
if (ip_route_input_noref(skb, iph->daddr, iph->saddr,
- iph->tos, skb->dev))
+ ip4h_dscp(iph), skb->dev))
goto drop;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0054/1059] bpf: Reset skb->cb after an lwt prog pushes an IP header
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (52 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0053/1059] ipv4: Convert ip_route_input_noref() to dscp_t Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0055/1059] bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol Greg Kroah-Hartman
` (4 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Xiang Mei, Daniel Borkmann,
Alexei Starovoitov, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexei Starovoitov <ast@kernel.org>
[ Upstream commit b3ad42f6183286ab376389a5d26edf7ee3bdba27 ]
IPCB(skb)->opt holds the offsets from the network header to the IPv4
options. But bpf_lwt_push_ip_encap() moves the network header and does not
change IPCB(skb). Then ip_forward_options() and __ip_options_echo() use the
old offsets on the pushed header. Thus the kernel corrupts the skb and the
stack. If the family changes, the kernel also reads IP6CB(skb) as
IPCB(skb), or the reverse. With CONFIG_IPV6_MIP6, it reads IPSKB_FORWARDED
as frag_max_size and adds a needless fragment header.
Reset skb->cb after the prog. bpf_lwt_push_ip_encap() cannot do it, because
bpf_prog_run_save_cb() can restore skb->cb. For IPv4 in IPv4, clear
IPCB(skb)->opt as ip_tunnel_xmit() does. If the family changes, clear the
cb of the new family but keep iif, because ip6_forward() gets the input
device from it. Behind a VRF, skb->skb_iif is the VRF device and cannot
replace iif. Do nothing for IPv6 in IPv6, as in seg6_do_srh_encap().
Do the reset in bpf_input() only after a push. Without a push,
ip_forward_options() needs the offsets. Do it in bpf_xmit() before each
reroute, because an lwt_xmit prog can also change the options. Thus after a
reroute without a push, ip_options_fragment() leaves the options in all
fragments, and ICMP errors echo none. After BPF_OK or BPF_REDIRECT the skb
goes to a device, thus bpf_xmit() does no reset. The inner IPv4 checksum
can still be wrong after ip_rcv_options() changes an option.
Fixes: 52f278774e79 ("bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap")
Reported-by: Xiang Mei <xmei5@asu.edu>
Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-23-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/lwt_bpf.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c
index ed5bafe584128..fde1b4a2f4aac 100644
--- a/net/core/lwt_bpf.c
+++ b/net/core/lwt_bpf.c
@@ -84,6 +84,32 @@ static int run_lwt_bpf(struct sk_buff *skb, struct bpf_lwt_prog *lwt,
return ret;
}
+/*
+ * skb->cb still describes the IP header that was the first one before the
+ * prog ran. The option offsets in IPCB(skb)->opt are wrong for a pushed
+ * header, and a header of the other family needs the other layout. iif
+ * stays: behind a VRF skb->skb_iif is the L3 master and not the port.
+ * bpf_lwt_push_encap() cannot do this, because bpf_prog_run_save_cb() can
+ * restore skb->cb after the prog.
+ */
+static void bpf_lwt_reset_cb(struct sk_buff *skb, __be16 proto)
+{
+ int iif;
+
+ if (skb->protocol == proto) {
+ if (proto == htons(ETH_P_IP))
+ memset(&IPCB(skb)->opt, 0, sizeof(IPCB(skb)->opt));
+ } else if (skb->protocol == htons(ETH_P_IP)) {
+ iif = IP6CB(skb)->iif;
+ memset(IPCB(skb), 0, sizeof(*IPCB(skb)));
+ IPCB(skb)->iif = iif;
+ } else {
+ iif = IPCB(skb)->iif;
+ memset(IP6CB(skb), 0, sizeof(*IP6CB(skb)));
+ IP6CB(skb)->iif = iif;
+ }
+}
+
static int bpf_lwt_input_reroute(struct sk_buff *skb)
{
int err = -EINVAL;
@@ -116,6 +142,8 @@ static int bpf_lwt_input_reroute(struct sk_buff *skb)
static int bpf_input(struct sk_buff *skb)
{
struct dst_entry *dst = skb_dst(skb);
+ __be16 proto = skb->protocol;
+ unsigned int len = skb->len;
struct bpf_lwt *bpf;
int ret;
@@ -124,6 +152,9 @@ static int bpf_input(struct sk_buff *skb)
ret = run_lwt_bpf(skb, &bpf->in, dst, NO_REDIRECT);
if (ret < 0)
return ret;
+ /* An lwt_in prog can change the length only with a push. */
+ if (skb->len != len)
+ bpf_lwt_reset_cb(skb, proto);
if (ret == BPF_LWT_REROUTE)
return bpf_lwt_input_reroute(skb);
}
@@ -303,6 +334,8 @@ static int bpf_xmit(struct sk_buff *skb)
case BPF_REDIRECT:
return LWTUNNEL_XMIT_DONE;
case BPF_LWT_REROUTE:
+ /* An lwt_xmit prog can also write to the options. */
+ bpf_lwt_reset_cb(skb, proto);
return bpf_lwt_xmit_reroute(skb);
default:
return ret;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0055/1059] bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (53 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0054/1059] bpf: Reset skb->cb after an lwt prog pushes an IP header Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0056/1059] bpf: Move the transport header with the moved headers Greg Kroah-Hartman
` (3 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Alexei Starovoitov, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alexei Starovoitov <ast@kernel.org>
[ Upstream commit d9618a6196953718f7470de5d2e84121bed063f7 ]
When an lwt_in prog returns BPF_OK, bpf_input() calls orig_input(), the
input handler of the route. This handler is for one IP version and needs a
dst of the same family. But BPF_LWT_ENCAP_IP lets the prog push a header of
the other IP version and thus change skb->protocol. Then the handler reads
and changes a header of the other IP version. The push of an SRH also
replaces the dst, because seg6_lookup_nexthop() puts an rt6_info into the
skb. Then ip_forward() uses the rt6_info as a struct rtable.
Drop the skb with -EINVAL when skb->protocol changes, as bpf_xmit() does.
Drop it also when the family of the dst changes, because skb->protocol does
not always show this change. Today no such skb leaves as the prog made it.
A prog works as before if it returns BPF_LWT_REROUTE, or if it pushes an
SRH on an IPv6 route.
The commit in the first Fixes tag lets a prog change skb->protocol. The
commit in the second tag adds the check to bpf_xmit() only.
Fixes: 52f278774e79 ("bpf: implement BPF_LWT_ENCAP_IP mode in bpf_lwt_push_encap")
Fixes: 3bd0b15281af ("bpf: add handling of BPF_LWT_REROUTE to lwt_bpf.c")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-24-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/lwt_bpf.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/net/core/lwt_bpf.c b/net/core/lwt_bpf.c
index fde1b4a2f4aac..87fae6fdeeba8 100644
--- a/net/core/lwt_bpf.c
+++ b/net/core/lwt_bpf.c
@@ -157,6 +157,16 @@ static int bpf_input(struct sk_buff *skb)
bpf_lwt_reset_cb(skb, proto);
if (ret == BPF_LWT_REROUTE)
return bpf_lwt_input_reroute(skb);
+ /*
+ * orig_input() is for the old protocol only, see bpf_xmit().
+ * It also needs a dst of the old family. BPF_LWT_ENCAP_SEG6
+ * puts an IPv6 dst into the skb.
+ */
+ if (skb->protocol != proto ||
+ skb_dst(skb)->ops->family != dst->ops->family) {
+ kfree_skb(skb);
+ return -EINVAL;
+ }
}
if (unlikely(!dst->lwtstate->orig_input)) {
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0056/1059] bpf: Move the transport header with the moved headers
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (54 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0055/1059] bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0057/1059] bpf: Check the offset in bpf_skb_generic_{push,pop}() Greg Kroah-Hartman
` (2 subsequent siblings)
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Alexei Starovoitov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit a9d08fe60fa728ce0e3a99085241e8e790fb14c6 ]
bpf_skb_net_hdr_pop() removes len bytes at offset off.
bpf_skb_net_hdr_push() does the opposite.
skb->data off
before | A | removed | B |
after | A | B |
skb->data off
mac_header and network_header move with A. transport_header moves only when
it is equal to network_header. inner_transport_header never moves. This is
correct only for a header in B. In bpf_lwt_seg6_adjust_srh()
transport_header is in A. bpf_skb_adjust_room() can remove both transport
headers. With an incorrect header offset, the stack can drop the skb or
read outside of it.
Also move transport_header with A when it is in A. Set it to offset off
when it is in the removed bytes. In BPF_ADJ_ROOM_MAC mode it is then equal
to network_header. Do not unset it, because skb_gso_validate_mac_len() uses
it without a check. After a removal, set inner_transport_header to off when
it is not in B and skb->encapsulation is set. A has only outer headers.
Fixes: fe94cc290f53 ("bpf: Add IPv6 Segment Routing helpers")
Fixes: 868d523535c2 ("bpf: add bpf_skb_adjust_room encap flags")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-26-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 37 +++++++++++++++++++++++++++++++------
1 file changed, 31 insertions(+), 6 deletions(-)
diff --git a/net/core/filter.c b/net/core/filter.c
index bbf96dfbcb95b..5a7ec964f740b 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -3320,9 +3320,25 @@ static int bpf_skb_generic_pop(struct sk_buff *skb, u32 off, u32 len)
return 0;
}
+/*
+ * bpf_skb_net_hdr_push() inserts bytes at @off, bpf_skb_net_hdr_pop() removes
+ * bytes at @off. Both move the bytes in front of @off together with skb->data,
+ * and leave the rest of the packet where it is. Return true if the transport
+ * header is in the part that moves. A transport header that is equal to the
+ * network header stays equal to it.
+ */
+static bool bpf_skb_trans_hdr_moves(const struct sk_buff *skb, u32 off)
+{
+ if (skb->transport_header == skb->network_header)
+ return true;
+
+ return skb_transport_header_was_set(skb) &&
+ (u32)skb_transport_offset(skb) < off;
+}
+
static int bpf_skb_net_hdr_push(struct sk_buff *skb, u32 off, u32 len)
{
- bool trans_same = skb->transport_header == skb->network_header;
+ bool trans_moves = bpf_skb_trans_hdr_moves(skb, off);
int ret;
/* There's no need for __skb_push()/__skb_pull() pair to
@@ -3333,8 +3349,8 @@ static int bpf_skb_net_hdr_push(struct sk_buff *skb, u32 off, u32 len)
if (likely(!ret)) {
skb->mac_header -= len;
skb->network_header -= len;
- if (trans_same)
- skb->transport_header = skb->network_header;
+ if (trans_moves)
+ skb->transport_header -= len;
}
return ret;
@@ -3342,7 +3358,7 @@ static int bpf_skb_net_hdr_push(struct sk_buff *skb, u32 off, u32 len)
static int bpf_skb_net_hdr_pop(struct sk_buff *skb, u32 off, u32 len)
{
- bool trans_same = skb->transport_header == skb->network_header;
+ bool trans_moves = bpf_skb_trans_hdr_moves(skb, off);
int ret;
/* Same here, __skb_push()/__skb_pull() pair not needed. */
@@ -3350,8 +3366,17 @@ static int bpf_skb_net_hdr_pop(struct sk_buff *skb, u32 off, u32 len)
if (likely(!ret)) {
skb->mac_header += len;
skb->network_header += len;
- if (trans_same)
- skb->transport_header = skb->network_header;
+ if (trans_moves) {
+ skb->transport_header += len;
+ } else if (skb_transport_header_was_set(skb) &&
+ skb_transport_offset(skb) < (int)off) {
+ /* It was in the removed bytes or before skb->data. */
+ skb_set_transport_header(skb, off);
+ }
+ /* Do not leave the inner transport header in front of @off. */
+ if (skb->encapsulation &&
+ skb_inner_transport_offset(skb) < (int)off)
+ skb_set_inner_transport_header(skb, off);
}
return ret;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0057/1059] bpf: Check the offset in bpf_skb_generic_{push,pop}()
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (55 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0056/1059] bpf: Move the transport header with the moved headers Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0058/1059] spi: Fix ACPI SPI resources using relative path Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0059/1059] spi: acpi: only look up the IRQ of confirmed SPI devices Greg Kroah-Hartman
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable
Cc: Greg Kroah-Hartman, patches, Chris Mason, Alexei Starovoitov,
Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chris Mason <mason@kernel.org>
[ Upstream commit ee36c9aa44ef300cd651074bd97552b229337f85 ]
To make room for len bytes at offset off, bpf_skb_generic_push() moves the
first off bytes and clears len bytes after them. It assumes that the first
off bytes are in the linear part. But in bpf_skb_adjust_room() off can be
the end of the IP header, and this header can be in a frag. Then the
function reads and writes after skb->tail, and can damage skb_shared_info.
bpf_skb_generic_pop() checks off + len, but this u32 sum can wrap to a
small value. bpf_skb_adjust_room() and bpf_skb_change_proto() calculate off
from skb_mac_header_len(). This length is a very large u32 when
network_header < mac_header. Then the check can pass, and memmove() reads
and writes far outside the skb.
Return -ENOMEM from both functions, like the present check, when
off > skb->len. Thus the sum cannot wrap. In bpf_skb_generic_push() also
pull the first off bytes into the linear part. Now bpf_skb_adjust_room()
fails when a prog grows an skb that ends before off. network_header stays
wrong.
Fixes: 6578171a7ff0 ("bpf: add bpf_skb_change_proto helper")
Fixes: 2be7e212d541 ("bpf: add bpf_skb_adjust_room helper")
Signed-off-by: Chris Mason <mason@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261101190535.1454146-28-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
net/core/filter.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/net/core/filter.c b/net/core/filter.c
index 5a7ec964f740b..bdb60caa7b36b 100644
--- a/net/core/filter.c
+++ b/net/core/filter.c
@@ -3287,6 +3287,10 @@ static void bpf_skb_change_protocol(struct sk_buff *skb, u16 proto)
static int bpf_skb_generic_push(struct sk_buff *skb, u32 off, u32 len)
{
+ /* The bytes in front of @off are moved with skb->data. */
+ if (unlikely(off > skb->len || !pskb_may_pull(skb, off)))
+ return -ENOMEM;
+
/* Caller already did skb_cow() with meta_len+len as headroom,
* so no need to do it here.
*/
@@ -3307,9 +3311,10 @@ static int bpf_skb_generic_pop(struct sk_buff *skb, u32 off, u32 len)
void *old_data;
/* skb_ensure_writable() is not needed here, as we're
- * already working on an uncloned skb.
+ * already working on an uncloned skb. The first test
+ * keeps off + len from wrapping.
*/
- if (unlikely(!pskb_may_pull(skb, off + len)))
+ if (unlikely(off > skb->len || !pskb_may_pull(skb, off + len)))
return -ENOMEM;
old_data = skb->data;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0058/1059] spi: Fix ACPI SPI resources using relative path
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (56 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0057/1059] bpf: Check the offset in bpf_skb_generic_{push,pop}() Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0059/1059] spi: acpi: only look up the IRQ of confirmed SPI devices Greg Kroah-Hartman
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Alban Bedel, Mark Brown, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alban Bedel <alban.bedel@lht.dlh.de>
[ Upstream commit 4825287f6d2346e9273f35a928d1ef40e68bc58b ]
ACPI resources can use relative path when pointing to other
resources. This didn't work with SPISerialBus resources because the
device defining the resource was not passed to acpi_get_handle().
Pass the ACPI device handle through the lookup context to also allow
for relative paths.
Signed-off-by: Alban Bedel <alban.bedel@lht.dlh.de>
Link: https://patch.msgid.link/20261001153507.2011806-1-alban.bedel@lht.dlh.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 2d0953ab69d3 ("spi: acpi: only look up the IRQ of confirmed SPI devices")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/spi/spi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 9658d4100c40f..411d2aee9ecec 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2464,6 +2464,7 @@ EXPORT_SYMBOL_GPL(spi_new_ancillary_device);
#ifdef CONFIG_ACPI
struct acpi_spi_lookup {
struct spi_controller *ctlr;
+ acpi_handle device_handle;
u32 max_speed_hz;
u32 mode;
int irq;
@@ -2560,7 +2561,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
if (lookup->index != -1 && lookup->n++ != lookup->index)
return 1;
- status = acpi_get_handle(NULL,
+ status = acpi_get_handle(lookup->device_handle,
sb->resource_source.string_ptr,
&parent_handle);
@@ -2652,6 +2653,7 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
return ERR_PTR(-EINVAL);
lookup.ctlr = ctlr;
+ lookup.device_handle = acpi_device_handle(adev);
lookup.irq = -1;
lookup.index = index;
lookup.n = 0;
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
* [PATCH 6.1 0059/1059] spi: acpi: only look up the IRQ of confirmed SPI devices
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
` (57 preceding siblings ...)
2026-12-04 9:53 ` [PATCH 6.1 0058/1059] spi: Fix ACPI SPI resources using relative path Greg Kroah-Hartman
@ 2026-12-04 9:53 ` Greg Kroah-Hartman
58 siblings, 0 replies; 60+ messages in thread
From: Greg Kroah-Hartman @ 2026-12-04 9:53 UTC (permalink / raw)
To: stable; +Cc: Greg Kroah-Hartman, patches, Rosen Penev, Mark Brown, Sasha Levin
6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rosen Penev <rosenp@gmail.com>
[ Upstream commit 2d0953ab69d316589624b0517fdce01f8e630bf0 ]
When an SPI controller is registered, acpi_register_spi_device() is
called for every present ACPI device in the namespace and
acpi_spi_device_alloc() walks each device's _CRS. While doing so,
acpi_spi_add_resource() converts the first interrupt resource it finds,
even for devices that have no SpiSerialBus resource at all and are
discarded right afterwards. Converting an interrupt resource registers
its GSI, so this maps IRQs for arbitrary unrelated ACPI devices.
On a Dell Precision M4800 (Lynx Point, 24-pin IOAPIC) the DSDT reports
Haswell-ULT LPSS child devices (\_SB.PCI0.I2C0.ACD0 and
\_SB.PCI0.SDHC.WI01) as present with interrupts on GSI 37 and 38.
Registering the intel-spi controller then results in:
ERROR: Unable to locate IOAPIC for GSI 37
ERROR: Unable to locate IOAPIC for GSI 38
Do what the I2C core does and only parse the interrupt resource once the
device has been identified as an SPI device on this controller.
Fixes: 4c3c59544f33 ("spi/acpi: enumerate all SPI slaves in the namespace")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20261101200155.15740-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/spi/spi.c | 36 ++++++++++++++++++++++++++++--------
1 file changed, 28 insertions(+), 8 deletions(-)
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 411d2aee9ecec..4dedf4cdc78c0 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2467,7 +2467,6 @@ struct acpi_spi_lookup {
acpi_handle device_handle;
u32 max_speed_hz;
u32 mode;
- int irq;
u8 bits_per_word;
u8 chip_select;
int n;
@@ -2612,17 +2611,25 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
if (sb->device_polarity == ACPI_SPI_ACTIVE_HIGH)
lookup->mode |= SPI_CS_HIGH;
}
- } else if (lookup->irq < 0) {
- struct resource r;
-
- if (acpi_dev_resource_interrupt(ares, 0, &r))
- lookup->irq = r.start;
}
/* Always tell the ACPI core to skip this resource */
return 1;
}
+static int acpi_spi_add_irq_resource(struct acpi_resource *ares, void *data)
+{
+ int *irq = data;
+ struct resource r;
+
+ if (*irq < 0 && ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS &&
+ acpi_dev_resource_interrupt(ares, 0, &r))
+ *irq = r.start;
+
+ /* Always tell the ACPI core to skip this resource */
+ return 1;
+}
+
/**
* acpi_spi_device_alloc - Allocate a spi device, and fill it in with ACPI information
* @ctlr: controller to which the spi device belongs
@@ -2647,6 +2654,7 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
struct list_head resource_list;
struct acpi_spi_lookup lookup = {};
struct spi_device *spi;
+ int irq = -1;
int ret;
if (!ctlr && index == -1)
@@ -2654,7 +2662,6 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
lookup.ctlr = ctlr;
lookup.device_handle = acpi_device_handle(adev);
- lookup.irq = -1;
lookup.index = index;
lookup.n = 0;
@@ -2677,6 +2684,19 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
if (!lookup.max_speed_hz)
return ERR_PTR(-ENODEV);
+ /*
+ * Only look up the IRQ once we know this is an SPI device for us.
+ * Parsing an interrupt resource maps its GSI, which must not be done
+ * for every unrelated ACPI device walked during enumeration.
+ */
+ INIT_LIST_HEAD(&resource_list);
+ ret = acpi_dev_get_resources(adev, &resource_list,
+ acpi_spi_add_irq_resource, &irq);
+ if (ret < 0)
+ return ERR_PTR(ret);
+
+ acpi_dev_free_resource_list(&resource_list);
+
spi = spi_alloc_device(lookup.ctlr);
if (!spi) {
dev_err(&lookup.ctlr->dev, "failed to allocate SPI device for %s\n",
@@ -2687,7 +2707,7 @@ struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
ACPI_COMPANION_SET(&spi->dev, adev);
spi->max_speed_hz = lookup.max_speed_hz;
spi->mode |= lookup.mode;
- spi->irq = lookup.irq;
+ spi->irq = irq;
spi->bits_per_word = lookup.bits_per_word;
spi_set_chipselect(spi, 0, lookup.chip_select);
--
2.53.0
^ permalink raw reply related [flat|nested] 60+ messages in thread
end of thread, other threads:[~2026-12-04 10:21 UTC | newest]
Thread overview: 60+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 9:52 [PATCH 6.1 0000/1059] 6.1.194-rc1 review Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0001/1059] RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0002/1059] netfilter: nft_ct: expectation timeouts are passed in milliseconds Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0003/1059] netfilter: nft_ct: move custom expectation support to helper Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0004/1059] mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0005/1059] drm/amdgpu: Check cs flags Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0006/1059] bpf: Drop inet_conn_established from lsm sleepable hooks Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0007/1059] mm: page_alloc: remove ALLOC_NON_BLOCK from ALLOC_RESERVES Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0008/1059] irqchip/sifive-plic: Avoid signed shift in interrupt enable mask Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0009/1059] fs: aio: reject partial mremap to avoid Null-pointer-dereference error Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0010/1059] Revert "SUNRPC: svcauth_gss: enforce krb5 token minimum length" Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0011/1059] Revert "SUNRPC: Convert unwrap_priv_data() to use xdr_stream" Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0012/1059] SUNRPC: svcauth_gss: enforce krb5 token minimum length Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0013/1059] mm/ksm: simplify break_ksm() to not rely on VM_FAULT_WRITE Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0014/1059] mm/ksm: fix KSM COW breaking with userfaultfd-wp via FAULT_FLAG_UNSHARE Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0015/1059] mm/ksm: fix userfaultfd protection during merge and unmerge Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0016/1059] udf: validate VAT inode size for old VAT format Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0017/1059] udf: validate vat20->lengthHeader and VAT inode size in udf_load_vat() Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0018/1059] io_uring: enable toggle of iowait usage when waiting on CQEs Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0019/1059] io_uring: fail soft links on negative IOU_COMPLETE results Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0020/1059] io_uring/rw: fail soft links on IOPOLL short or error IO Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0021/1059] io_uring/rsrc: keep the old file when a file update fails Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0022/1059] Input: destroy force-feedback device on input unregistration Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0023/1059] staging: media: atomisp: use array3_size() for overflow-safe allocation Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0024/1059] fs/9p: switch vfsmount to use v9fs_get_new_inode Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0025/1059] fs/9p: rework qid2ino logic Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0026/1059] 9p: skip intermediate directory entry name copy in p9dirent_read() Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0027/1059] xfrm: zero-initialise km_event in the replay-notify path Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0028/1059] batman-adv: avoid WARN_ON for orig_ifinfo allocation failure Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0029/1059] wifi: ath9k_htc: start ANI when an AP interface begins to beacon Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0030/1059] scsi: aic7xxx: Fix REQUEST SENSE allocation length on big-endian hosts Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0031/1059] scsi: aha1542: Remove unneeded scsi_dma_unmap() call Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0032/1059] wifi: ath10k: Stop unanswered temperature reads Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0033/1059] seg6: fix transport header for inner IPv4 with IP options Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0034/1059] gpio: omap: Propagate runtime PM failures in probe and request Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0035/1059] btrfs: verity: propagate orphan insertion errors when enabling verity Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0036/1059] btrfs: scrub: fix lost wakeup and hang when cancelling a scrub that is finishing Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0037/1059] btrfs: zoned: fix double free of bitmaps on clone failure Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0038/1059] ptp: drain virtual clock sysfs operations before unregistering children Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0039/1059] ptp: unwind partially completed virtual clock creation Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0040/1059] ptp: prevent possible ABBA deadlock in ptp_clock_freerun() Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0041/1059] ptp: vclock: propagate physical clock sampling errors Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0042/1059] ptp: vclock: serialize extended samples with counter updates Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0043/1059] scsi: target: Validate REGISTER AND MOVE TransportID length Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0044/1059] tipc: reject attaching bearer of different media to the same occupied device Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0045/1059] spi: pic32-sqi: fail transfer when the BD ring is exhausted Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0046/1059] bpf: Dont let bpf_skb_adjust_room() raise gso_size to GSO_BY_FRAGS Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0047/1059] bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 Greg Kroah-Hartman
2026-12-04 9:52 ` [PATCH 6.1 0048/1059] bpf: Limit the SRH length in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0049/1059] bpf: Dont look for the SRH again in the End.BPF helpers Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0050/1059] bpf: Move the MAC header in bpf_lwt_seg6_adjust_srh() Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0051/1059] bpf: Dont leave a stale MAC header in bpf_lwt_push_ip_encap() Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0052/1059] ipv4: Unmask upper DSCP bits in input route lookup Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0053/1059] ipv4: Convert ip_route_input_noref() to dscp_t Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0054/1059] bpf: Reset skb->cb after an lwt prog pushes an IP header Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0055/1059] bpf: Require BPF_LWT_REROUTE when an lwt_in prog changes the protocol Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0056/1059] bpf: Move the transport header with the moved headers Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0057/1059] bpf: Check the offset in bpf_skb_generic_{push,pop}() Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0058/1059] spi: Fix ACPI SPI resources using relative path Greg Kroah-Hartman
2026-12-04 9:53 ` [PATCH 6.1 0059/1059] spi: acpi: only look up the IRQ of confirmed SPI devices Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox