Merge tag 'for-7.4-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
- zoned mode fixes:
- properly finish the relocated block group's zone
- distinguish overreserved metadata space and free zones
- don't release active zone reservations for conventional zones
- handle transient delayed reserve refill errors during forced commit
- skip missing devices when releasing active zone reservations
- validate properties after reading them from device
- fix defrag extent lookup on inode item boundary
- fix returned value for partial direct IO writes
- fix tracepoint print of extent type map field
[19 lines not shown]
Merge tag 'drm-fixes-2026-12-05-2' of https://gitlab.freedesktop.org/drm/kernel
Pull drm fixes from Dave Ailie:
"Usual weekly fixes, the usual suspects in xe/i915/amdgpu, but mediatek
seems to have ran into the AI hammer for this week, but they are all
small trivial fixes, otherwise just a few scattered fix across other
drivers and core.
core:
- edid: Don't mark DisplayID Type VII YCbCr 4:2:0 timings preferred
- sched: Fix timestamp handling
- ttm: Destroy the ttm_tt in ttm_bo_move_null() when it's no longer
needed
bridge:
- lt9611uxc: Fix firmware update verification
- nwl-dsi: Fix DSI disable logic
- tc358762: Fix reset gpio handling
[93 lines not shown]
Merge tag 'pinctrl-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij:
- A big set of fixes for Qualcomm SoCs: the majority involves properly
marking "EGPIO" (external GPIOs) as being, well GPIOs. Then bugs in
pull direction reporting, config cache, dual edge IRQs, off-by-one
bugs, pin patterns and pin definition discrepancies. Remove some
nonexisting pins added by misunderstandings or erroneous
documentation
- SCMI pincontrol with GPIO add-in has some additional fixes relating
to milliampere conversions, reporting of off state
- Wrong component ID and dual-edged IRQ fix for the Ingenic SoC pin
controller
- Bias fix for the Airoha pin controller
[30 lines not shown]
Merge tag 'mtd/fixes-for-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux
Pull mtd fixes from Miquel Raynal:
"A few important patches. Among them, two spinand core fixes, one
around the use of the is/mark bad functions, and the other on
continuous reads.
On CFI, a recent change lead to a regression which is also now fixed.
Same for SPI-NOR, a rework broke octal chips by not taking them into
account.
Finally, a page calculation is fixed on samsung chips and their
correct geometry is now reported"
* tag 'mtd/fixes-for-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
mtd: spinand: set request type explicitly in spinand_{is,mark}bad() functions
mtd: spi-nor: clear the default read_sr2 opcode for Octal DTR flashes
mtd: cfi_cmdset_0002: also clamp the write buffer of an x16 part strapped to x8
mtd: rawnand: samsung: fix pages_per_eraseblock calculation
mtd: spinand: Do not re-enable continuous reads vetoed during variant selection
Merge tag 'mediatek-drm-fixes-20261203' of https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux into drm-fixes
Mediatek DRM Fixes - 20261203
1. mtk_hdmi: Set tz_disabled for mt8167
2. mtk_hdmi: Improve the secure output bit toggle
3. mtk_crtc: Look up connector routes in the CRTC's own mmsys
4. mtk_crtc: Skip the empty connector route slot in destroy
5. mtk_crtc: Pick the connector route on every CRTC enable
6. dsi: Fix handling of long packet reads
7. Keep the mutex node reference across deferred binds
8. Validate gamma_lut size
9. mtk_dsi: do not enable HS clock in pre-enable for LPM panels
10. dsi: Don't let a signal cut the IRQ wait short
11. dp: Unregister child devices on probe failure
12. mtk_hdmi_common: Fix clock reference leaks
13. Initialize ret in mtk_drm_of_ddp_path_build()
14. dsi: return tx_len for write transfers in mtk_dsi_host_transfer()
15. ovl: Report coverage blending on older SoCs
[5 lines not shown]
Merge tag 'platform-drivers-x86-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver fixes from Ilpo Järvinen:
- Allow wmi module to load on arm64 DT system that have ACPI disabled
- Two MAINTAINERS updates
* tag 'platform-drivers-x86-v7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
MAINTAINERS: Add Ahmed Yaseen as co-maintainer for ASUS notebooks
MAINTAINERS: Update Intel SCU driver maintainer
platform/wmi: Allow wmi module to load when acpi_disabled is set
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fix from Catalin Marinas:
- Fix an LLD "does not converge" link error by avoiding a wrap-around
in SPAN_NR_ENTRIES()
* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
arm64: Fix transient negative image size observed by the linker
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
Pull kvm fixes from Paolo Bonzini:
"arm64:
- Bound PINTID during ITE table restore, avoiding the possibility
that the guest plants an out-of-range LPI INTID in its own
in-memory ITS tables prior to restore.
- Do not blindly trust the vINTID field coming from KVM, and reject
anything that is out of the boundaries that the hardware ITS is
configured to support.
- Add signal_pending checks to the scan_its_table() loop; device
table entries with num_eventid_bits = 16 (or 65536 EventIDs per
device) are valid but takes a long time to restore.
- Remove quadratic complexity from the algorithm used to prune IRQs
sitting in the AP list has a quadratic complexity, and simplify the
[68 lines not shown]
Merge tag 'xfs-fixes-7.4-rc6' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux
Pull xfs fixes from Carlos Maiolino:
"This includes fixes for xfs's reflink feature, RWF_ATOMIC support, an
uninitialized variable and another wrong function argument"
* tag 'xfs-fixes-7.4-rc6' of git://git.kernel.org:/pub/scm/fs/xfs/xfs-linux:
xfs: force all shared extent swap to use rmap shared path
xfs: move _right_neighbor_result trace before erroring out
xfs: recheck direct write alignment after write checks
fs: validate atomic writes after O_APPEND and limits
xfs: pass proper leaf argument from xfs_rtrefcountbt_broot_realloc()
xfs: initialize error in xfs_getfsmap_rtdev_rtbitmap()
Merge tag 'sched_ext-for-7.4-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
Pull sched_ext fixes from Tejun Heo:
- The kfuncs that print messages for BPF schedulers read the format
string with no length limit and could see it change between
validation and use
- An exiting task could keep pointing at a scheduler that was later
freed
- A task dispatched to a shared queue could be taken off it by another
CPU before the dispatch finished and then never run again
- With core scheduling, a sub-scheduler's task could run on a CPU that
the sub-scheduler isn't allowed to use
- Smaller fixes: kfuncs that depend on the caller's locking context are
now rejected from the sub-scheduler capability callback, and a task's
[15 lines not shown]
Merge tag 'cgroup-for-7.4-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup fixes from Tejun Heo:
- Writing a long fractional value to cpu.uclamp.min or cpu.uclamp.max
could divide by zero, and negative fractional values lost their sign
and were accepted
- A cpuset partition update could free the scheduler domain
housekeeping cpumask while a reader was still using it. The fix is in
the CPU isolation code and comes through cgroup with Frederic's
review
* tag 'cgroup-for-7.4-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
cgroup: Preserve sign for fractional input
sched/isolation: Publish new HK_TYPE_DOMAIN cpumask under cpuset_mutex
selftests/cgroup: Test parsing of long fractions in cpu.uclamp.min
cgroup: Fix divide error on long fractions in cgroup_parse_float()
Merge tag 'wq-for-7.4-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
Pull workqueue fix from Tejun Heo:
- cancel_work_sync() and disable_work_sync() could return while the
work item was still running on an ordered workqueue
* tag 'wq-for-7.4-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
workqueue: fix cancel_work_sync() on ordered workqueues
Merge tag 'nfsd-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux
Pull nfsd fix from Chuck Lever:
- Close a mount-point crossing gap introduced in v7.4-rc
* tag 'nfsd-7.4-2' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
NFSD: Check the entered export on a mount crossing
Merge tag 'sound-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai:
"A batch of small fixes across the sound subsystem. There are a few
ALSA core fixes wrt OSS emulation, which have been added quickly as
PoC was presented. Other than that, mostly device-specific small fixes
and quirks as usual.
ALSA core:
- Various fixes for PCM buffer management and mmap via OSS API
- Prohibit PCM stream linking with OSS substreams
- Fix audio timestamp calculation for the DEFAULT timestamp type
HD-audio:
- Various quirks for Lenovo, MacBook, HP, Acer, and Pavilion devices
USB-audio:
- Fix missing 64-bit conversions for 64-channel mixer controls
- Fix probe regression on UA-1000
[35 lines not shown]
Merge tag 'mm-nonmm-hotfixes-stable-2026-12-03-14-02' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull non-MM fixes from Andrew Morton:
- "ipc/msg: prevent reads after queue permission revocation" (Hyunho
Song):
Prevent a blocked receiver from taking a message sent after IPC_SET
revoked its read access. Make it recheck permissions before
receiving, including when IPC_SET races with its insertion on the
wait list
- An OCFS2 quota-file extension failure no longer tries to free a NULL
chunk, which could oops instead of returning the error. Allocate the
chunk before extending the file, so allocation failure also leaves
the file alone
- Unregister the JBD2 shrinker before OCFS2 journal shutdown takes its
semaphore. This removes a lockdep warning during unmount; the
[14 lines not shown]
sched_ext: Reset task fields after ops.exit_task()
__scx_disable_and_exit_task() resets the task fields before
ops.exit_task(). ops.exit_task() runs while @p is still on the scheduler,
so scx_bpf_task_set_dsq_vtime() accepts its writes, and they outlive the
reset. When @p moves between a parent scheduler and a sub-scheduler, the
next scheduler's ops.enable() then finds the vtime the previous one left.
Reset after ops.exit_task() instead. ops.disable() and ops.exit_task()
still see the final values, and a cancelled init now gets the reset too.
Fixes: 5771e79e461e ("sched_ext: Reset dsq_vtime and slice when a task leaves SCX")
Reported-by: Andrea Righi <arighi at nvidia.com>
Link: https://lore.kernel.org/r/aw57uMvkiKrLBBBI@gpd4
Signed-off-by: Changwoo Min <changwoo at igalia.com>
Reviewed-by: Andrea Righi <arighi at nvidia.com>
Signed-off-by: Tejun Heo <tj at kernel.org>
Merge tag 'mm-hotfixes-stable-2026-12-03-13-49' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull MM fixes from Andrew Morton:
- "mm/damon: three fixes for idle_time overflow and damos_walk() hang"
(SJ Park):
Fix a DAMOS walk which can wait forever when watermarks disable all
schemes. Preserve watermark activation state across scheme commits
and fix 32-bit idle-time statistics after about 36 minutes
- Swapoff now drops a large swap-in folio which was never mapped,
instead of leaving it for a later fault to trip a kernel BUG
- cachestat() returns zeros for DAX files rather than mistaking DAX
entries for workingset shadows and crashing
- HMM returns the right subpage of a device-private PMD; the old offset
could give a GPU the wrong application data, and Nouveau could select
[41 lines not shown]
sched_ext: Don't skip NONE tasks in sched_ext_dead()
sched_ext_dead() leaves p->scx.sched set if the task was punted by
scx_fail_parent(), which leads to a use-after-free of the parent sched.
Tasks hold no reference on their sched, so p->scx.sched has to be
cleared before the sched is freed. sched_ext_dead() doesn't do that
for a task at SCX_TASK_NONE, and scx_punt_task() leaves a live task at
NONE with p->scx.sched set:
scx_sub_disable(sub)
__scx_init_task(parent) fails
scx_fail_parent()
scx_punt_task(parent, p) NONE, p->scx.sched = parent
sched_ext_dead(p)
list_del_init() p is off scx_tasks
state is NONE p->scx.sched stays
scx_root_disable(parent)
scx_task_iter_next_locked() doesn't visit p
[26 lines not shown]
MAINTAINERS: Add Ahmed Yaseen as co-maintainer for ASUS notebooks
Add myself as maintainer for "ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS
DRIVERS" as privately discussed with Denis Benato.
Signed-off-by: Ahmed Yaseen <yaseen at ghoul.dev>
Acked-by: Denis Benato <denis.benato at linux.dev>
Link: https://patch.msgid.link/20261126-asus-armoury-maintainer-v2-1-2091821519e7@ghoul.dev
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen at linux.intel.com>
Merge tag 'asoc-fix-v7.4-rc5' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v7.4
A few quirks here, including one that fixes regressions on the Arduino
Monza which finds it needs special casing with some recent changes in
the generic card, plus a fix for an issue with PLL reprogramming being
skipped on nau8822 which broke audio when streams were started and
stopped quickly.
ALSA: pcm: Prohibit linking from/to OSS substream
The linked PCM is provided only for ALSA-native substreams. Since OSS
emulation layer has exceptions and complications, we should avoid
mixing with OSS substream. For more safety, add a sanity check to
snd_pcm_link() and prune the OSS substreams.
Cc: <stable at vger.kernel.org>
Link: https://patch.msgid.link/20261203113501.1222374-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai at suse.de>
ALSA: pcm: Prohibit buffer (re-)allocation/free during mmap
It's not right to (re-)allocate or free the PCM buffer while it's
still being mapped. Add sanity checks in snd_pcm_lib_malloc_pages()
and *_free_pages() helpers for more safety.
Link: https://lore.kernel.org/20261202140117.1164633-1-ahmedabdelmoumen05@gmail.com
Reported-by: Ahmed Abdelmoemen <ahmedabdelmoumen05 at gmail.com>
Cc: stable at vger.kernel.org
Reviewed-by: Ahmed Abdelmoemen <ahmedabdelmoumen05 at gmail.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
Link: https://patch.msgid.link/20261203113424.1222171-4-tiwai@suse.de
ALSA: pcm: Reject hw_params with buffer size changes while mmapped
Due to its design, OSS emulation allow switching the access type, etc,
during the buffer is mmapped, but the actual buffer shouldn't change;
when its is changed and the buffer is re-allocated, the mapped memory
may point to a bogus page. Even a period size or number of periods
shouldn't be changed, either, as this can influence on the buffer
allocation in the driver side, too (e.g. cs46xx driver).
Add a sanity check to restrict the buffer changes with the mmap, and
avoid the buffer reallocation when mmapped.
Link: https://lore.kernel.org/20261202140117.1164633-1-ahmedabdelmoumen05@gmail.com
Reported-by: Ahmed Abdelmoemen <ahmedabdelmoumen05 at gmail.com>
Cc: stable at vger.kernel.org
Reviewed-by: Ahmed Abdelmoemen <ahmedabdelmoumen05 at gmail.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
Link: https://patch.msgid.link/20261203113424.1222171-3-tiwai@suse.de
ALSA: pcm: Avoid forcibly changing to OPEN state at hw_params errors
When an error happens at snd_pcm_hw_params() call, it tried to degrade
to SNDRV_PCM_STATE_OPEN, forcibly call hw_free and release memories.
This, however, shouldn't be done when the buffer is mmapped (happening
only in OSS); otherwise it may point to stray pages.
Add a check of the mmap at the error path and skips the state change
and the buffer release when mmap is used. It'll be released at a
later point (at latest at releasing the file) in anyway.
Since there is a small window in snd_pcm_make_ready() between
snd_pcm_oss_change_param() and snd_pcm_oss_prepare(), an additional
check is put in snd_pcm_oss_prepare() to catch the failing hw_params
in the case above, too.
Link: https://lore.kernel.org/20261202140117.1164633-1-ahmedabdelmoumen05@gmail.com
Reported-by: Ahmed Abdelmoemen <ahmedabdelmoumen05 at gmail.com>
Cc: stable at vger.kernel.org
[3 lines not shown]
Merge tag 'drm-xe-fixes-2026-12-03' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
Driver Changes:
- Hold a fence reference while waiting for migration (Bommu)
- VSEC requires soc-remapper (Michael)
- Restore default PF scheduling on failed VF enable (Marcin)
- restore userptr invalidations on VMA op unwind (Auld)
- vf: Free preempt fences on rebind worker retry (Thomas)
- survivability: Fix infinite loop in aux info traversal (Sk Anirban)
- hwmon: Improve mailbox power limit init and visibility (Karthik)
- guc: Scale suspend wait timeout with preempt timeout (Himal)
- Unplug the drm device on probe failure (Raag)
- Bump the LRU on a successful page fault (Brost)
- OA fixes related to cleanup stream on PCI unbind/remove (Umesh)
- migrate: fix pte_update_cmd_size() for non-4K PAGE_SIZE (Auld)
- allow callers to specify interruptible suballocator waits (Auld)
- configfs: Fix out-of-bounds read in parse_wa_bb_lines (Stuart)
- GuC state machine harding checks (Umesh)
[3 lines not shown]
drm/nouveau/intr: do not unmask hardware interrupts while unarmed
During device initialization in nvkm_device_init(), nvkm_intr_rearm()
iterates through all legacy subdevices and calls nvkm_intr_subdev_add(),
which in turn calls nvkm_inth_allow() -> nvkm_intr_allow_locked().
nvkm_intr_allow_locked() directly writes to the hardware interrupt
enable registers (e.g. PMC register 0x160 on GP100/GP10B) to unmask the
subdevice's interrupt, and nvkm_inth_allow() then restores local CPU
interrupts via spin_unlock_irqrestore().
However, at this point, device->intr.armed is still false because arming
is performed only at the end of nvkm_intr_rearm(). On platforms where
the GPU interrupt is level-triggered and directly wired to an interrupt
controller (such as Tegra GP10B using GIC SPI 70), any pending interrupt
assertion immediately triggers the top-level interrupt handler
nvkm_intr().
In nvkm_intr(), because device->intr.armed is false, the handler bails
[43 lines not shown]
Merge tag 'drm-intel-fixes-2026-12-03' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes
- Reject relocation writes to RO userptr
- Fix GitLab #17232: eDP panel stays black after s2idle
- Fix GitLab #17848: No signal on DP on ThinkPad TB5 dock
- Fix 2 PPC hscale adjustment for min CDCLK
- Refcount fixes to folio handling
Signed-off-by: Dave Airlie <airlied at redhat.com>
From: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Link: https://patch.msgid.link/axFCflK68DchxFAL@jlahtine-mobl
cgroup: Preserve sign for fractional input
cgroup_parse_float() parses the whole part with sscanf() and accumulates
and rounds the fractional digits separately. The sign is only carried by
the whole part, so "-0.5" is composed as 0.5 and "-1.5" as -0.5. If the
fraction rounds up to a whole unit, "-1.999" at two decimal places is
composed as zero.
Callers such as cpu.uclamp.* and io.cost.qos reject negative parsed
values. Losing the sign lets negative fractional input bypass those
checks and be accepted as a nonnegative value.
Read the leading sign once, after skipping whitespace, and parse the
whole part with unsigned sscanf(). Compose the scaled unsigned magnitude
with overflow checks, reject results above S64_MAX, and then apply the
sign once at the end. This also rejects a large whole part that used to
wrap during composition and be accepted as a small positive value.
Extend the cpu.uclamp.min parsing selftest to cover negative fractions,
[7 lines not shown]