Merge tag 'perf-tools-fixes-for-v7.4-1-2026-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
Pull perf tools fixes from Arnaldo Carvalho de Melo:
- perf record: skip affinity for per-thread mmap buffers and reject CPU
indices at the mask size, avoiding out-of-bounds bitmap accesses.
- perf test: use software events for system-wide tests, mark the LBR
test exclusive, and fix probe_vfs_getname debuginfo detection via a
dry run.
- perf build: add -lzstd to the libbfd feature fallback for static
binutils, and pass OUTPUT explicitly when building internal
libraries.
- perf trace beauty: split the KVM ioctl table by direction so read and
write ioctls sharing a number no longer conflict at build time.
- perf kvm: fix arm64 VM-exit duration accounting by pairing kvm_exit
[45 lines not shown]
Merge tag 'riscv-for-linus-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fixes from Paul Walmsley:
- Fix a bug in the context switch code that can allow the switched-to
task to inadvertently inherit the supervisor user memory access
privilege from the switched-from task
- Protect the regs->status RMW sequences in the vector register context
switch code, to fix a potential floating point state corruption bug
- Fix the return values from the early boot unaligned access speed
detection functions called by __setup() to return 0 on failure,
rather than an error code, as 0 is what __setup() expects to receive
upon an error
- Prevent the DTB from being potentially overwritten early in boot by
reserving it in memblock before scanning the /reserved-memory section
of the DTB
[29 lines not shown]
Merge tag 'edac_urgent_for_v7.4_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
Pull EDAC fix from Borislav Petkov:
- Fix an array out-of-bounds access in i5000_edac
* tag 'edac_urgent_for_v7.4_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
EDAC/i5000: Fix slot number passed to determine_mtr()
Merge tag 'spi-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown:
"One core fix here, for error handling with runtime PM when a transfer
fails. That was seen by a couple of people on actual systems and the
fix verified.
There's also a fix for a quirk in the fsl-lpspi driver which needs a
bitfield widening on newer chips to work properly"
* tag 'spi-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: fsl-lpspi: expand FCR TWATER and RXWATER bit fields to 4 bits
spi: Fix runtime PM imbalance on pump transfer message error
Merge tag 'regulator-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fixes from Mark Brown:
"A few fairly routine fixes for device specific issues, incorrect
information about the hardware and one case where some of the hardware
register access needs more serialisation"
* tag 'regulator-fix-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
regulator: mt6363: Serialize BUCK_TOP key access
regulator: axp20x: AXP313A: set ramp_delay
regulator: tps65132: Fix incorrect bits for VNEG/VPOS discharge
Merge tag 'rust-fixes-7.4-4' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull Rust fixes from Miguel Ojeda:
"Toolchain and infrastructure:
- Disable function merging in all cases to fix broken MODVERSIONS
information with gendwarfksyms, wrong backtraces and possibly
issues with pahole/BTF due to lost debug information.
- x86: emit the expected 'cs' prefix for RETPOLINE builds by passing
the '-Zindirect-branch-cs-prefix' flag we added to 'rustc', which
fixes boot failures (with 'spectre_v2=retpoline,lfence') and code
corruption (with paranoid FineIBT).
- Fix objtool warnings for the upcoming Rust 1.101.0 (expected
2026-12-24) by adding more 'noreturn' functions.
'kernel' crate:
[15 lines not shown]
Merge tag 'parisc-for-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull parisc fixes from Helge Deller:
"Fix a register corruption with the 32-bit dynamic ftrace, and
prevent a lockdep assertion failure in the timer tick"
* tag 'parisc-for-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
parisc: Fix register corruption in 32-bit dynamic ftrace
parisc: irq: Trace hardirq state in do_cpu_irq_mask()
Merge tag 'x86-urgent-2026-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar:
- Add Intel Coral Rapids and Razor Lake CPU models (Tony Luck)
- Update the table of Intel SNC capable CPU models with
Granite Rapids "D" CPUs (Tony Luck)
- Fix MSI interrupt affinity configuration (Weitao Wang)
- Do not treat cache hierarchy MCE errors as memory errors,
to fix false offlining of healthy RAM pages (Adrian Schlegel)
- Enable ROX also when CONFIG_STRICT_KERNEL_RWX is present
(Richard Weinberger)
* tag 'x86-urgent-2026-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/Kconfig: Enable ROX also when STRICT_KERNEL_RWX is present
[4 lines not shown]
Merge tag 'sched-urgent-2026-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fixes from Ingo Molnar:
- Fix cfs_rq::idle handling (Peter Zijlstra)
- Avoid transient double accounting for delayed tasks (K Prateek Nayak)
- Lift cgroup update locking to core to fix sched-ext locking
divergence (Michal Blaszczyk)
* tag 'sched-urgent-2026-11-22' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
sched: Lift cgroup update locking to core to prevent CFS/SCX divergence
sched/fair: Avoid transient double accounting for delayed tasks
sched/fair: Make cfs_rq::idle the sum of ancestor tg::idle
sched/fair: Use guard in sched_group_set_idle()
Merge tag 'input-for-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fixes from Dmitry Torokhov:
- A fix in input core to tear down force-feedback devices synchronously
on unregistration, preventing use-after-free and faults in unloaded
modules if userspace holds an event node open across driver unbind
- A fix for the da7280 haptic driver to stop advertising FF_GAIN
capability without implementing gain control, preventing a NULL
pointer dereference when userspace writes a gain event
- A fix for the goodix touchscreen driver hardening backup reference
length validation against malformed device configurations to prevent
invalid memory writes during probe and suspend
- A fix for the max77693-haptic driver to disable the chip bias if
enabling the motor regulator fails when opening the device
[27 lines not shown]
Merge tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl
Pull sysctl fix from Joel Granados:
"Fix sysctl jiffy / milliseconds conversion:
- Writing a previously read value "X" shall keep the same "X" value
- Remove truncation that was causing incorrect saturation of valid
timeouts"
* tag 'sysctl-7.04-fixes-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/sysctl/sysctl:
sysctl: Do jiffy / ms conversion in ulong space
Merge tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull Landlock fixes from Mickaël Salaün:
- prevent composed rulesets from denying link and rename operations
that each ruleset allows separately;
- close capability-mediation gaps for low-address mappings, inheritable
capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM
capability denials apply consistently;
- distinguish namespace creation from entry in denial records and
expose the checked capability context to BPF tracepoint consumers, so
they can interpret denials correctly.
* tag 'landlock-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
landlock: Add missing EINVAL case in the doc for landlock_add_rule
clang-format: Fix formatting of guard()
landlock: Document namespace denial operations
[16 lines not shown]
Merge tag 'xfs-fixes-7.4-rc4' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux
Pull xfs fixes from Carlos Maiolino:
"Mostly this includes fixes for a few races, an ordering problem during
init/teardown of proc/sysfs, missing locks, etc"
* tag 'xfs-fixes-7.4-rc4' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux:
xfs: test for realtime and reflink under the pNFS locks
xfs: don't enable DAX on zoned inodes
xfs: restart faults racing with realtime flag changes
xfs: take the MMAPLOCK in xfs_fileattr_set()
xfs: refuse fallocate racing with realtime flag changes
xfs: test for always COW after the dio write checks
xfs: refuse writes to files racing with realtime inode flag changes
xfs: test for reflink after the dio write checks
xfs: properly order xfsstats proc/sysfs init and teardown
xfs: remove unused variable in xrep_tempfile_copyin()
xfs: remove unused variable in xchk_stats_estimate_bufsize()
xfs: fix f_bfree underflow in statfs()
[8 lines not shown]
Merge tag 'cifs-fixes-7.4-rc4' of https://git.manguebit.org/linux
Pull smb client fixes from Paulo Alcantara:
"The main ones are a server-triggerable use-after-free and two fixes
that stop the client from accepting SMB2 responses and read data with
a bad signature; the rest are a couple of busy-inode-on-unmount races
and some metadata fixes.
- Fix a use-after-free in the netfs write collector that a malicious
or broken server can trigger by returning a write count larger than
the request
- Reject SMB2 responses whose signature fails verification instead of
using them, so a tampered response on a signed connection is no
longer accepted
- Don't return read data whose signature failed verification when the
read lands at the remote end of file
[26 lines not shown]
Merge tag 'trace-v7.4-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull tracing fixes from Steven Rostedt:
- Do not WARN when trace_rb_cpu_prepare() fails to allocate on CPU
startup
The per CPU ring buffers are allocated when a new CPU comes online.
If the system is under memory pressure it shouldn't trigger a WARN_ON
if the buffer fails to allocate. Switch the WARN to a pr_warn()
message.
- Copy trace_marker to all instances even if one fails
Each instance can set a flag that it wants what is written into the
trace_marker file to be copied to its ring buffer. Currently, if one
of the instances has tracing disabled, the copy will fail. The loop
that copies to each ring buffer detects this failure and stops
copying to the rest of the instances. This is not what is expected as
[268 lines not shown]
Merge tag 'powerpc-7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Madhavan Srinivasan:
- powerpc32/bpf: return false from bpf_jit_supports_fsession() on ppc32
- PPC32: Fix hard_irq_disable to follow tracing and lockdep state
- KVM: PPC: Book3S HV: Clean up on uvmem initialization failure
- KVM: PPC: BookE: Load FP and Altivec before enabling the interrupts
- KVM: PPC: Hard disable interrupts before guest entry
- KVM: PPC: BookE: Use vcpu_err() instead of printk() in kvmppc_dump_vcpu()
- MAINTAINERS updates
- misc fixes and cleanups
[25 lines not shown]
Merge tag 'fbdev-for-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev
Pull fbdev fixes from Helge Deller:
"Various small fixes, all scheduled for backport, which fix
out-of-bound accesses, improves the parameter checks or fix
use-after-free accesses in fm2fb, radeonfb, cobalt_lcdfb, valkyriefb,
sstfb.
vgacon now falls back to the dummy console if mapping the VGA memory
fails, which fixes a crash on Alpha, and fix one sleeping in atomic
context bug which is triggered by the blinking cursor"
* tag 'fbdev-for-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
fbdev: radeonfb: reject a zero pixclock in radeonfb_check_var()
fbdev: smscufx: allocate the size advertised in smem_len
fbdev: smscufx: keep the usb_device alive while ufx_data is in use
fbdev: smscufx: don't free registered framebuffer on probe error
fbdev: cobalt_lcdfb: Don't read info after framebuffer_release()
fbdev: valkyriefb: keep the framebuffer mapping size fixed
[7 lines not shown]
riscv: unaligned: fix __setup handlers
Returning -EINVAL from a __setup() callback cause invalid
unaligned_scalar_speed= and unaligned_vector_speed=
values to be treated as handled. obsolete_checksetup() treats any
non-zero return value from setup_func() as success, so an unrecognized
argument is silently accepted instead of being reported as an unknown
boot option.
__setup() handlers return 0 on failure.
Fixes: aecb09e091dc ("riscv: Add parameter for skipping access speed tests")
Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev at mobileye.com>
Reviewed-by: Jisheng Zhang <jszhang at kernel.org>
Link: https://patch.msgid.link/20261111-fix-riscv-unaligned-v1-1-0722514fc1e4@mobileye.com
Cc: stable at vger.kernel.org
Signed-off-by: Paul Walmsley <pjw at kernel.org>
riscv: mm: reserve the DTB before scanning reserved memory
early_init_fdt_scan_reserved_mem() allocates memory from memblock while
it scans /reserved-memory: the reserved_mem array, and the regions that
are placed dynamically by size. On RISC-V the DTB was only reserved
after that scan, so memblock could hand out the memory the DTB occupies
while the DTB was still being parsed.
Reserve the DTB before the scan, so that memblock never allocates from
it.
Fixes: ef69d2559fe9 ("riscv: Move early dtb mapping into the fixmap region")
Closes: https://lore.kernel.org/all/b71ac175-fba5-4f61-bbdb-0b98dec9ccee@samsung.com/
Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
Link: https://patch.msgid.link/20261104104604.3370384-1-m.szyprowski@samsung.com
Cc: stable at vger.kernel.org
Signed-off-by: Paul Walmsley <pjw at kernel.org>
riscv: dts: spacemit: k1: Correct missing space
Correct minor style issue around white-space - missing space.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at oss.qualcomm.com>
Reviewed-by: Yixun Lan <dlan at kernel.org>
Reviewed-by: Troy Mitchell <troy.mitchell at linux.spacemit.com>
Link: https://patch.msgid.link/20261113185214.182695-4-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Paul Walmsley <pjw at kernel.org>
x86/Kconfig: Enable ROX also when STRICT_KERNEL_RWX is present
Running a kernel with CONFIG_MODULES=n causes the W+X page detection
to trigger:
x86/mm: Found insecure W+X mapping at address 0xffffffffc033a000
The W+X pages come from __its_alloc() with type being EXECMEM_MODULE_TEXT.
Without ARCH_HAS_EXECMEM_ROX pgprot is PAGE_KERNEL instead of PAGE_KERNEL_ROX.
Fixes: 47410d839fcda ("x86/Kconfig: only enable ROX cache in execmem when STRICT_MODULE_RWX is set")
Suggested-by: Mike Rapoport (Microsoft) <rppt at kernel.org>
Signed-off-by: Richard Weinberger <richard at nod.at>
Signed-off-by: Borislav Petkov (AMD) <bp at alien8.de>
Acked-by: Peter Zijlstra (Intel) <peterz at infradead.org>
Acked-by: Mike Rapoport (Microsoft) <rppt at kernel.org>
Tested-by: Vinny Horgan <vinnyhorgan at gmail.com>
Cc: stable at vger.kernel.org
Link: https://patch.msgid.link/20260625090627.1501095-1-richard@nod.at
KVM: PPC: Fix TOCTOU kernel stack disclosure via kvm_run->mmio.len
struct kvm_run is mmap'd and writable by host userspace at any time.
kvmppc_complete_mmio_load() re-reads run->mmio.len from the shared page
on the KVM_RUN completion path. A malicious userspace can:
1. Trigger a guest MMIO load; the kernel sets a valid run->mmio.len
(1, 2, 4, or 8) and exits with mmio_needed=1.
2. Rewrite run->mmio.len to an invalid value (0, 3, 5, 6, or 7)
before the next KVM_RUN ioctl.
3. On re-entry, kvm_arch_vcpu_ioctl_run() calls
kvmppc_complete_mmio_load() unconditionally.
4. No switch case matches the tampered length, so 'gpr' remains
uninitialised on the kernel stack.
5. The uninitialised value is written into a guest GPR and is
subsequently readable by the attacker via KVM_GET_REGS or
KVM_GET_ONE_REG, disclosing kernel stack contents (CWE-457/200).
The same issue affects every site that advances paddr_accessed or
[37 lines not shown]
KVM: PPC: Book3S HV: Use u8 to store guest's interrupt priorities
Interrupt priorities range from 0x00 - 0xFF. When represented as u32 by
the host in kvm_rtas_set_xive(), the guest can pass in a higher priority
number (eg: 0x1FF) which ends up breaking this check in
kvmppc_xive_set_xive():
if (priority != MASKED) {
mutex_lock(&xive->lock);
rc = xive_check_provisioning(xive->kvm,
xive_prio_from_guest(priority));
mutex_unlock(&xive->lock);
}
This results in an attempt to access invalid memory in the function
xive_provision_queue():
struct xive_q *q = &xc->queues[prio]; // prio = 0xFF
[7 lines not shown]
Merge tag 'drm-fixes-2026-11-21' of https://gitlab.freedesktop.org/drm/kernel
Pull drm fixes from Dave Airlie:
"Weekly fixes, around the usual size, though it looks like vmwgfx got
hit with a lot of analysis and has a bunch of validation fixes.
nouveau fixes for a 7.3 regression.
I know of one open i915 7.3 regressions that hopefully a fix will land
next week. Otherwise amdgpu and xe have the most with a scattering for
others.
core:
- syncobj: Limit allocations
- vblank: Resolve deadlock in timer
amdgpu:
- GPUVM fixes
- SMU 8 fix
[95 lines not shown]
Merge tag 'pci-v7.4-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci
Pull PCI fixes from Bjorn Helgaas:
- Ignore Immediate Readiness on Samsung PM9D3a NVMe which falsely
advertises it; removal of unrelated delays in v7.2 caused post-FLR
state restoration to fail, resulting in VFIO and nvme regressions
(Sun Yuechi)
- Add Donghui Zhao as ESWIN PCIe maintainer (Donghui Zhao)
* tag 'pci-v7.4-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
MAINTAINERS: Add Donghui Zhao as ESWIN PCIe maintainer
PCI: Ignore Immediate Readiness on Samsung PM9D3a NVMe
Merge tag 'pinctrl-v7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij:
- Add strong pull-up for the Kaanapali I2C making a camera
work on a tablet which is a good thing
- Check return of of_iomap() properly in the Mediatek core
code
- Fix slew rate writing in the Realtek driver
- Send strength in microamps, map schmitt trigger and
interpret settings without argument as enabled in the
SCMI driver
- Use a raw spinlock for the GPIO regmap and do not
use a chained IRQ handler on the sleeping bus in the
Ocelot driver
[10 lines not shown]
Merge tag 'watchdog-for-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull watchdog fixes from Guenter Roeck:
- Core registration and reference counting: clear dangling wd_data
pointers and stop timers/workers on registration failure, release
unclaimed running-watchdog references, avoid unbalanced module_put()
in watchdog_open(), and restore WDOG_HW_RUNNING if stop() fails
- Core locking and keepalive state: add missing wd_data and old_wd_data
locking in open, unregister, and last_hw_keepalive paths, and update
WDOG_ACTIVE and last_keepalive before pinging a running watchdog in
watchdog_start()
- Core suspend/resume: prevent in-flight ping work from re-arming the
keepalive timer and stop the software pretimeout hrtimer while
suspended to avoid spurious pretimeout events
- stm32_iwdg: set drvdata before requesting the pretimeout IRQ to avoid
[19 lines not shown]
Merge tag 'hwmon-for-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
Pull hwmon fixes from Guenter Roeck:
- Use per-device lockdep keys in the hwmon core to avoid false-positive
recursive locking warnings when one hwmon device accesses another
- Fix sysfs attribute struct downcast mismatches on big-endian systems
that caused out-of-bounds temp1 array accesses in w83791d/w83792d and
directed all beep writes to channel 0 in nct6775
- Fix nct6775 fan control: initialize target temperature and tolerance
masks/limits on NCT6106/6116/6126, fix swapped normal and critical
temperature tolerance writes, and use tolerance_mask on REG_FAN_MODE
- Reject dell-smm fan_max values above 255 to avoid allocation count
wraparound and invalid SMM calls, and reject PWM writes outside
0..255 to prevent integer overflow from turning fans off
[16 lines not shown]
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Alexei Starovoitov:
"Mostly sockmap fixes as promised, plus uprobe ctx rewrite via bpf and
cgroup-bpf fixes.
- Reject writable map iterators on read-only maps (Adethya
Srinivasan)
- Various sockmap fixes (Alexei Starovoitov):
- Clear the redirect target before the sk_msg prog runs
- Check that the redirected message is the cork
- Leave sk_stream_wait_memory() once the socket is dead
- Keep the rest of the cork after a redirect
- Don't let an SK_PASS verdict cover the next message
- Subtract all dropped bytes from the return value of sendmsg()
- Clear the end mark of elements added by bpf_msg_push_data() and
bpf_msg_pop_data()
[72 lines not shown]