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]
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]
Merge tag 'zonefs-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs
Pull zonefs fixes from Damien Le Moal:
- Avoid potentially opening the wrong file in the case of an overflow
when converting a file names to an inode number (Guangshuo)
- Handle potential overflow of RLIMIT_FSIZE (Ding)
* tag 'zonefs-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
zonefs: ignore RLIMIT_FSIZE above LLONG_MAX in zonefs_write_check_limits()
zonefs: check multiplication overflow in zonefs_fname_to_fno()
Merge tag 'drm-misc-fixes-2026-11-20' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes
Short summary of fixes pull:
core:
- syncobj: Limit allocations
- vblank: Resolve deadlock in timer
imagination:
- Use correct function for polling non-iomem
ivpu:
- Fix race condition in recovery
nouveau:
- Fix instmem io_mapping faults and slowdowns
omap:
- dss: Fix handling deferrals
[20 lines not shown]
Merge tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse
Pull fuse fixes from Miklos Szeredi:
- Fix bugs reported by Sashiko
- Fix a couple of issues introduced in this cycle
- Misc bug fixes
* tag 'fuse-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
fuse: limit name size in listxattr
fuse: clear the old EOF tail before writeback-cache writes
fuse: fix UBSAN warning in fuse_iomap_writeback_range()
fuse: skip dcache instantiation for readdirplus names with embedded NUL
fuse: preserve ENOTCONN after failed initialization and disconnect
fuse: set dentry epoch before making the dentry visible
fuse: advertise support for DAX mappings
fuse: don't mark inode DAX without CONFIG_FS_DAX
[9 lines not shown]
Merge tag 'libnvdimm-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fix from Alison Schofield:
"Nest namespace mapping locks under the bus lock"
* tag 'libnvdimm-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
nvdimm/namespace: Nest mapping locks under the bus lock
Merge tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl
Pull cxl fixes from Dave Jiang:
"A small collection of CXL fixes"
* tag 'cxl-fixes-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
cxl/port: Fix endpoint RAS error unmasking
cxl/test: Free the decoder registry when cxl_test_init() fails
cxl/region: Reject a repeat write of an endpoint decoder to targetN
cxl/region: Restore a target's position from its slot after sorting
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
Pull rdma fixes from Jason Gunthorpe:
"Usual set of bug fixes, many found by tools:
- Bound checks and counter widths in srpt for initiator controlled
descriptor tables, out of bounds read and resource leaks are remote
triggerable
- Use after free races in siw MR lookup and in the rtrs event handler
error unwind
- Don't leak kernel heap memory to userspace through query_qp
- Several rereg_mr bugs in irdma and mlx4 leaving stale or revived MR
state after a failure
- irdma FRWR and PBLE/AEQ setup was broken on PAGE_SIZE > 4K
[36 lines not shown]
Merge tag 'block-7.4-20261119' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull block fixes from Jens Axboe:
- NVMe fixes via Keith:
- nvme-tcp fixes for TLS record handling and waiting for an
in-flight TLS handshake callback
- Fix a deadlock on nvme_subsystems_lock in nvme_init_subsystem()
- Fix a gendisk leak in nvme_alloc_ns()
- Stop AEN work before ANA teardown
- Remove namespaces in parallel
- Various nvmet fixes for auth, the file backend, fc, tcp, loop,
and connection failure rollback
- sysfs input validation and kfree_sensitive() for DH-HMAC-CHAP
secrets
- Dead code removal
- Fix a 32-bit overflow in the blk-iocost donation weight calculation
[37 lines not shown]
Merge tag 'io_uring-7.4-20261119' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux
Pull io_uring fixes from Jens Axboe:
- Don't run canceled local work from a task that doesn't share the mm
of the submitter on ring release
- Fail soft links on negative IOU_COMPLETE results, on cancelled futex
waits, and on short or failed IOPOLL IO
- Show the stuck io-wq workers rather than WARN on a slow exit, as the
WARN can be triggered at will and the exiting task's stack trace is
never the interesting one
- Don't rearm a multishot timeout on cancel, as that could delay ring
teardown for a long time
- Keep the old registered file when a file update fails
[16 lines not shown]
Merge tag 'sound-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"A collection of various small fixes. Nothing really stands out.
While we still get more fixes than before, things look still well
manageable (fingers crossed). Here are the highlights:
ALSA core:
- Fix page leaks at buffer allocation retries
- Fix in compress-offload API for setting metadata_set flag
- Parameter flag handling fixes on setup and error in PCM OSS layer
HD-audio:
- Fix AE-5 LED strip color corruption during animation in ca0132
- Correct boost values for CS35L41 on several HP laptops
- Realtek quirk regression fixes for Lenovo Legion and V14 G2 ITL
- Fix quiet speakers on HP 250 G6
- Various Realtek quirks and mute LED fixups (HP, Lenovo, THUNDEROBOT)
[37 lines not shown]
Merge tag 'gpio-fixes-for-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fixes from Bartosz Golaszewski:
"GPIO core fixes:
- delay freeing the line state workqueue to device release and
fix a UAF bug
- fix races in access to the flags field of GPIO descriptors
- clear the debounce period field of struct gpio_desc before
clearing the "requested" flag
- propagate -ENOTSUPP from .set_config() in gpio-shared-proxy
GPIO driver fixes:
- check the return value of clk_prepare in gpio-omap
- reject bulk-in endpoints smaller than 3 bytes in gpio-mpsse
- validate the pin index of interrupt events in gpio-ljca
- disable interrupts around the chip lock in direction callbacks
in gpio-mlxbf2
- fix line name handling in gpio-virtio
[19 lines not shown]
Merge tag 'ata-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux
Pull ata fixes from Niklas Cassel:
- Fix an off-by-one in the REMOVE ELEMENT AND TRUNCATE translation,
which asked the device for one block more than requested (Nick)
- Fix the INC_512 bit test in the SECURITY PROTOCOL IN/OUT
translation, which treated lengths in 512-byte units as bytes (me)
- Limit max_sectors to 8191 on the INTEL SSDSCKKB240G8 SSD to avoid
NCQ command timeouts (Justinien)
* tag 'ata-7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
ata: libata-core: Add max sector quirk to INTEL SSDSCKKB240G8
ata: libata-scsi: fix the INC_512 bit test for SECURITY PROTOCOL IN/OUT
ata: libata-scsi: fix REQUESTED MAX LBA field for REMOVE ELEMENT AND TRUNCATE
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Catalin Marinas:
"BBML3 allow-list corrections for Cortex-X4 and Neoverse-V3/V3AE
following updated errata, a kCFI oops during kexec relocation and NEON
intrinsics type mismatches causing CRC64 and XOR build failures with
tip-of-tree Clang:
- Remove Cortex-X4 and Neoverse-V3/V3AE from the BBML3 allow list
Updated errata documents show that revisions previously reported as
fixed remain affected by load/store livelocks when changing mapping
sizes without break-before-make
- Fix a kCFI oops during kexec image relocation. Give the relocation
routine a type hash and enter the copied code at the correct offset
- Fix the build with recent Clang versions by removing the stdint.h
type overrides for NEON intrinsics. The CRC64 and XOR intrinsics
[9 lines not shown]
Merge tag 's390-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fixes from Alexander Gordeev:
- Fix error handling for monitor start and stop operations
Return failures to userspace, prevent inconsistent state
and potential use-after-free scenarios
- Ensure skipped syscalls return -ENOSYS as expected
Preserve existing ptrace behavior while separating syscall
number handling from the return value stored in gpr2
- Fix a race during module initialization where sysfs handlers
could access an uninitialized device list semaphore
* tag 's390-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
s390/dcssblk: Initialize device semaphore before sysfs registration
[2 lines not shown]
tracing: Ignore .function on the function trace event
For the function event, parse_pred() handles the .function suffix
before the ftrace_event_is_function() case, so "ip.function == schedule"
builds a predicate with no regex. Setting it through perf then
dereferences the NULL pred->regex in ftrace_function_set_filter_pred().
The "ip" field of that event already takes a function name, so ignore
the suffix there and let the function event case handle it.
Cc: stable at vger.kernel.org
Fixes: cfb58e278c6a ("tracing/filters: Dynamically allocate filter_pred.regex")
Link: https://patch.msgid.link/20261119080139.131834-1-devnexen@gmail.com
Suggested-by: Steven Rostedt <rostedt at goodmis.org>
Signed-off-by: David Carlier <devnexen at gmail.com>
Signed-off-by: Steven Rostedt <rostedt at goodmis.org>
tracing: Add notrace to event functions that hook to ftrace
A few functions in trace_events.c are used to hook to the ftrace function
hooks. Before CONFIG_FUNCTION_SELF_TRACING was added, these functions were not
marked for tracing because the entire directory was set to "notrace". But
now that certain files can be traced by ftrace when the
CONFIG_FUNCTION_SELF_TRACING config is set, individual functions that use ftrace
must be annotated with "notrace" otherwise they can trigger a triple fault
when called.
Annotate the trace_events.c functions that are attached to ftrace with
"notrace.
Cc: stable at vger.kernel.org
Link: https://patch.msgid.link/20261119124319.3a8bfe50@gandalf.local.home
Fixes: f93a7d0caccd6 ("ftrace: Allow tracing of some of the tracing code")
Signed-off-by: Steven Rostedt <rostedt at goodmis.org>
ring-buffer: Do not check si_mem_available() before deferred init completes
With CONFIG_DEFERRED_STRUCT_PAGE_INIT=y, only about one memory section
per node is initialized early in boot (16 MiB on powerpc). The rest is
initialized on demand by deferred_grow_zone() when an allocation would
otherwise fail, or later by page_alloc_init_late().
Until then NR_FREE_PAGES can be close to zero, because early allocations
(SLUB, vmalloc, ftrace records) use up the first section.
si_mem_available() is derived from NR_FREE_PAGES, so it under-reports.
__rb_allocate_pages() returns -ENOMEM when si_mem_available() is below
the requested size. This check wrongly fails the buffers allocated for
the boot CPU in early_trace_init() and for secondary CPUs in smp_init(),
both of which run before page_alloc_init_late(). The resulting boot log
shows:
ERROR: Failed to allocate trace buffer
ERROR: tracer: failed to allocate ring buffer!
[19 lines not shown]
tracing: Add tests for globbing number-based strings
In "tracing: Properly match strings that start with numbers", we fixed
bugs related to string fields that start with a number and also use
globs instead of full matches.
Add some additional startup test cases for this.
For easy reproducible testing, I abused the kunit.py script to boot a
minimal kernel with FTRACE_STARTUP_TEST enabled:
./tools/testing/kunit/kunit.py run --arch=x86_64 \
--kconfig_add=CONFIG_FTRACE=y \
--kconfig_add=CONFIG_FUNCTION_TRACER=y \
--kconfig_add=CONFIG_DYNAMIC_FTRACE=y \
--kconfig_add=CONFIG_FTRACE_STARTUP_TEST=y \
--kconfig_add=CONFIG_EVENT_TRACE_STARTUP_TEST=n \
--raw_output=all deadbeef
[13 lines not shown]