Linux/linux 7cd8495 — io_uring timeout.c openclose.c

Merge tag 'io_uring-7.4-20261127' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Pull io_uring fixes from Jens Axboe:
 "io_uring fixes for this week - bigger than I'd like at this point, but
  that's mostly looking at the commit count. The fixes are all pretty
  small and isolated. This contains:

   - Don't charge the whole folio offset to the skb truesize for managed
     frags, as a registered buffer backed by huge pages otherwise looked
     like a full socket long before any real memory was used.

   - recvmsg retry fixes: don't copy msg_name again on a retry, and
     restore the cmsg buffer before a retry.

   - Clear REQ_F_BL_NO_RECYCLE when the buffers it was set for are put,
     fixing a NULL pointer dereference in bundle receive with
     MSG_WAITALL.

   - Free the ring from an RCU work, fixing a use-after-free of the ctx

    [33 lines not shown]
DeltaFile
+21-6io_uring/net.c
+19-5io_uring/io_uring.c
+8-10io_uring/cancel.c
+8-0io_uring/bpf-ops.c
+4-1io_uring/timeout.c
+4-1io_uring/openclose.c
+64-235 files not shown
+76-2411 files

Linux/linux ad5b48d — Documentation/hwmon yogafan.rst, drivers/hwmon cgbc-hwmon.c aquacomputer_d5next.c

Merge tag 'hwmon-for-v7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fixes from Guenter Roeck:

 - Fix a v7.4-rc2 regression in aquacomputer_d5next that rejected
   single-collection Aquaero sensor interfaces during probe by only
   checking collection[1].type when maxcollection > 1.

 - Fix peak value tracking for IEEE-754 half-precision chips
   (LT7170/LT7171) in pmbus/ltc2978: compare binary16 values as
   sign-magnitude integers instead of decoding them as LINEAR11, and use
   -infinity/+infinity for peak initialization and reset values.

 - Fix ACPI fan paths for the Lenovo Yoga Pro 7 14IAH10 in yogafan by
   using the dual-fan FA1S/FA2S configuration instead of the nonexistent
   FANS path, and update the driver documentation table to match.

 - Add the missing platform:cgbc-hwmon module alias to cgbc-hwmon so the
   driver autoloads when built as a module.

    [6 lines not shown]
DeltaFile
+52-14drivers/hwmon/pmbus/ltc2978.c
+1-7drivers/hwmon/yogafan.c
+3-2drivers/hwmon/aquacomputer_d5next.c
+2-1Documentation/hwmon/yogafan.rst
+1-0drivers/hwmon/cgbc-hwmon.c
+59-245 files

Linux/linux c639ac6 — drivers/gpu/drm/amd/amdgpu amdgpu_bios.c gfx_v9_0.c, drivers/gpu/drm/amd/amdkfd kfd_process.c

Merge tag 'drm-fixes-2026-11-28' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "Weekly fixes, amdgpu and msm leading the charge, with a bunch of i915
  display fixes and then some misc driver fixes. There is one pci fix in
  here that is acked. Don't think anything major stands out.

   pci:
   - Cache firmware secondary bus number

  core:
   - panic: Restore kmsg screen fix
   - ttm: Don't leak LRU list on shutdown

  dma-buf:
   - dma-fence: Prevent misordering for error checks

  xe:
   - hwmon: Unregister hwmon before the device is unplugged

    [87 lines not shown]
DeltaFile
+47-95drivers/gpu/drm/v3d/v3d_submit.c
+70-30drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+52-6drivers/gpu/drm/amd/amdkfd/kfd_process.c
+15-27drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
+29-13drivers/gpu/drm/amd/display/dc/dce/dce_mem_input.c
+14-26drivers/gpu/drm/radeon/radeon_bios.c
+227-19798 files not shown
+772-427104 files

Linux/linux d3a5ea8 — arch/x86/net bpf_jit_comp.c, kernel/bpf core.c btf.c

Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf

Pull bpf fixes from Alexei Starovoitov:
 "Small fixes for various bugs all over bpf. The main themes:

   - fix verifier bugs that let unsafe progs load

   - require CAP_PERFMON in places where CAP_BPF alone leaked kernel
     addresses

   - fix x86 JIT crash with FineIBT, split locks from arena atomics and
     unreliable stack traces

   - fix arm64 JIT crash in bpf_throw() with shadow call stack

   - fix leaks of uninitialized memory in skb, XDP, sk_msg and sockaddr
     helpers

   - add missing NULL checks and speculation barriers

    [73 lines not shown]
DeltaFile
+92-25kernel/bpf/verifier.c
+47-39kernel/bpf/helpers.c
+42-11arch/x86/net/bpf_jit_comp.c
+46-6kernel/bpf/btf.c
+40-10kernel/bpf/core.c
+33-13net/core/filter.c
+300-10427 files not shown
+606-17533 files

Linux/linux 673af17 — include/linux user_events.h, kernel fork.c

Merge tag 'trace-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull tracing fixes from Steven Rostedt:

 - Fix user events on fork allocation failure

   User events are created by user tasks to be able to be traced within
   the kernel tracing facility. On fork, the duplication of user events
   can fail. If this happens the state of the event becomes stale, miss
   updates and produce undefined results.

   As user events are part of the set up of the program that uses them,
   fail a fork if the user event allocation fails for the new child.
   This only affects programs that set up user events for themselves.

 - Fix a remote event alignemnt offset output

   The trace events for remote buffers does not take into account
   alignment constraints, and produces incorrect field offsets that

    [57 lines not shown]
DeltaFile
+10-8kernel/trace/trace.h
+9-8kernel/trace/trace_recursion_record.c
+7-9include/linux/user_events.h
+2-10kernel/trace/trace_events_filter.c
+5-3kernel/trace/trace_events_user.c
+6-2kernel/fork.c
+39-407 files not shown
+57-4713 files

Linux/linux e1dc9c4 — drivers/gpu/drm/msm msm_gpu.h, drivers/gpu/drm/msm/adreno a8xx_preempt.c adreno_gpu.c

Merge tag 'drm-msm-fixes-2026-10-27' of https://gitlab.freedesktop.org/drm/msm into drm-fixes

Fixes for v7.4-rc4:

GPU:
- Fix GMEM_BASE on gen8
- VM_BIND parameter validation and related fixes
- Reset preemption records across suspend
- Fix missing CLX request
- Fix lock leak
- Add missing AQE fw for x2-90
- Fix 1/2b alpha filtering precision on gen8
- Fix priority inversion caused by commit 38f922a563aa ("drm/sched:
  Reverse run-queue priority enumeration")
- Fix missing preempt_record_size on glymur/mahua

Signed-off-by: Dave Airlie <airlied at redhat.com>
From: Rob Clark <rob.clark at oss.qualcomm.com>
Link: https://patch.msgid.link/CACSVV03hO_QBSuk9ueAKve0PF5wkXYY0FXWBq1c3mvP374Ggcg@mail.gmail.com
DeltaFile
+21-16drivers/gpu/drm/msm/adreno/a6xx_preempt.c
+24-7drivers/gpu/drm/msm/adreno/a6xx_gmu.c
+10-14drivers/gpu/drm/msm/msm_gpu.h
+9-6drivers/gpu/drm/msm/adreno/a8xx_catalog.c
+7-5drivers/gpu/drm/msm/adreno/adreno_gpu.c
+8-3drivers/gpu/drm/msm/adreno/a8xx_preempt.c
+79-5110 files not shown
+101-6016 files

Linux/linux 76a0a6d — kernel/trace ring_buffer.c

ring-buffer: Add missing cnt increment for remote ring buffers

The ring_buffer_per_cpu::cnt member tracks modifications to the ring
buffer links. It was introduced for rb_check_pages() to avoid locking
the ring buffer for the entire duration of the check. The reader page
swap function for remote ring buffers does not update it. If a
concurrent rb_check_pages() recorded a page as head before dropping the
reader lock, it misses the list update and loops indefinitely. Add the
missing increment.

Cc: stable at vger.kernel.org
Fixes: fbd1743ecba1 ("ring-buffer: Add non-consuming read for ring-buffer remotes")
Reported-by: Sashiko <sashiko-bot at kernel.org>
Link: https://patch.msgid.link/20261117151520.3972146-1-vdonnefort@google.com
Signed-off-by: Vincent Donnefort <vdonnefort at google.com>
[ rebased to v7.4-rc4 as there were conflicts ]
Signed-off-by: Steven Rostedt <rostedt at goodmis.org>
DeltaFile
+1-0kernel/trace/ring_buffer.c
+1-01 files

Linux/linux 9a3415a — drivers/gpu/drm drm_panic_helper.c, drivers/gpu/drm/ast Kconfig ast_mm.c

Merge tag 'drm-misc-fixes-2026-11-27' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes

Short summary of fixes pull:

ast:
- Allow disabling Write-Combine if CONFIG_RT=y

core:
- panic: Restore kmsg screen fix
- ttm: Don't leak LRU list on shutdown

dma-buf:
- dma-fence: Prevent misordering for error checks

gud:
- Fix potential divide-by-zero bug

imagination:
- Fix the value of ROGUE_COMPUTE_FLAG_PREVENT_ALL_OVERLAP

    [11 lines not shown]
DeltaFile
+47-95drivers/gpu/drm/v3d/v3d_submit.c
+24-16drivers/gpu/drm/v3d/v3d_sched.c
+11-4include/linux/dma-fence.h
+13-0drivers/gpu/drm/ast/ast_mm.c
+8-2drivers/gpu/drm/drm_panic_helper.c
+9-0drivers/gpu/drm/ast/Kconfig
+112-1176 files not shown
+119-12712 files

Linux/linux f458506 — drivers/thermal thermal_sysfs.c

Merge tag 'thermal-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fix from Rafael Wysocki:
 "Address a possible NULL pointer dereference in the thermal
  sysfs interface by adding thermal zone locking to some show/store
  callbacks (Yu Zhang)"

* tag 'thermal-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal: sysfs: take the zone lock in the tzp attribute handlers
DeltaFile
+8-0drivers/thermal/thermal_sysfs.c
+8-01 files

Linux/linux 2cf42c4 — drivers/cpufreq intel_pstate.c

Merge tag 'pm-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fixes from Rafael Wysocki:
 "These fix two issues in the intel_pstate driver including one recent
  regression:

   - Prevent intel_pstate from triggering lockdep splats during system
     resume due to suspicious ordering of locks that is a consequence of
     a recent cpufreq core update (Rafael Wysocki)

   - Make intel_pstate refresh cpuinfo.max_freq when a CPU goes online
     to avoid using a stale value of it (Hugo Sales)"

* tag 'pm-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  cpufreq: intel_pstate: Use dedicated lock in set_power_ctl_ee_state()
  cpufreq: intel_pstate: Refresh cpuinfo.max_freq when a CPU goes online
DeltaFile
+42-10drivers/cpufreq/intel_pstate.c
+42-101 files

Linux/linux 8c86114 — drivers/iommu vsi-iommu.c, drivers/iommu/amd iommu.c

Merge tag 'iommu-fixes-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux

Pull iommu fixes from Joerg Roedel:
 "AMD IOMMU:

   - Fix DMA failures on AMD Cezanne by flushing CPU cache lines for
     IOMMU v2 page tables

  VeriSilicon IOMMU:

   - Keep runtime PM callbacks available without CONFIG_PM_SLEEP, fixing
     an SError on the RK3588 AV1 decoder. Avoid sleeping in hard IRQ
     context, balance runtime PM references during TLB invalidation, and
     flush the TLB on resume

   - Fix domain-switch locking and out-of-bounds access when attaching
     or resuming an identity domain. Drop the unsupported disable write
     on suspend and unprepare clocks if IRQ lookup fails during probe


    [17 lines not shown]
DeltaFile
+39-28drivers/iommu/vsi-iommu.c
+28-6drivers/iommu/hyperv/hv-iommu-guest.c
+16-0drivers/iommu/amd/iommu.c
+83-343 files

Linux/linux 16a4afe — sound/core sound_oss.c timer.c, sound/hda/codecs/realtek alc269.c

Merge tag 'sound-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "A collection of various small fixes across the sound subsystem. Mostly
  the device-specific quirks and driver fixes as usual, along with a few
  race and deadlock fixes in ALSA core and ASoC drivers:

  ALSA core:
   - Fix potential ABBA deadlock at snd_pcm_action_nonatomic()
   - Prevent hw_params/hw_refine changes during PCM buffer access
   - Simplify PCM buffer access gate with auto-cleanup helpers
   - Fix deadlock regression at OSS device unregistration
   - Refine slave hw_params after setting format in PCM OSS
   - Protect slave timer instance flags with the timer lock

  HD-audio:
   - Fix unbalanced display power reference on delayed probe failure
   - Fix NULL pointer dereference on unbind in TAS2781 SPI driver
   - Revert for regression on Higole F9B due to generic SSID conflict

    [44 lines not shown]
DeltaFile
+74-51sound/core/pcm_native.c
+66-0sound/soc/tegra/tegra210_admaif.c
+43-7sound/core/timer.c
+18-17sound/core/sound_oss.c
+28-5sound/hda/codecs/realtek/alc269.c
+19-11sound/soc/fsl/fsl_asrc_m2m.c
+248-9121 files not shown
+443-11827 files

Linux/linux 6cce17f — Documentation/driver-api vme.rst, drivers/staging/vme_user vme_user.c vme_fake.c

Merge tag 'staging-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging driver removal from Greg KH:
 "Here is a single staging driver patch that removes the vme_user
  driver.

  There is no more users of it and the LLMs are falling all over
  themselves attempting to find all of the "security bugs" in this
  driver, despite no one ever actually use it. So just remove it to
  keep from wasting everyone's time.

  This removal has been in linux-next for quite a while with no
  reported issues"

* tag 'staging-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
  staging: vme_user: delete driver
DeltaFile
+0-2,643drivers/staging/vme_user/vme_tsi148.c
+0-1,977drivers/staging/vme_user/vme.c
+0-1,392drivers/staging/vme_user/vme_tsi148.h
+0-1,308drivers/staging/vme_user/vme_fake.c
+0-812drivers/staging/vme_user/vme_user.c
+0-297Documentation/driver-api/vme.rst
+0-8,42910 files not shown
+0-8,93116 files

Linux/linux 9c07103 — drivers/hwmon cgbc-hwmon.c

hwmon: (cgbc-hwmon) Add module alias

The board controller's core driver adds the hwmon cell as platform
device "cgbc-hwmon", but the driver declares no matching module alias.
Built as a module, it is therefore not loaded automatically, unlike the
GPIO, I2C and backlight drivers, and the sensors stay missing until it
is loaded by hand.

Tested on a conga-PA7: with the alias, the driver loads at boot.

The patch and this changelog were drafted with the help of Claude
Opus 5.5 and reviewed and tested by me.

Fixes: 08ebc9def79f ("hwmon: Add Congatec Board Controller monitoring driver")
Cc: stable at vger.kernel.org
Signed-off-by: Markus Haberlander <markus.haberlander at rosenberger.com>
Link: https://patch.msgid.link/20261123-cgbc-hwmon-alias-v1-1-3054681f984a@rosenberger.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+1-0drivers/hwmon/cgbc-hwmon.c
+1-01 files

Linux/linux ab8ea03 — drivers/hwmon/pmbus ltc2978.c

hwmon: (pmbus/ltc2978) Fix peak comparison for IEEE-754 chips

The LT7170, LT7171, LT7175 and LT7176P report their sensor values in
IEEE-754 half-precision format, but ltc_get_max() and ltc_get_min()
compare peak values with lin11_to_val(), which decodes LINEAR11. Bit 10
is the lowest exponent bit in binary16, while LINEAR11 treats it as the
mantissa sign bit. Positive values with an odd biased exponent, such as
temperatures from 16 to 31 C or input voltages from 4 to 8 V, are
therefore decoded as negative, and the reported peak stops following
the real one.

The peak start values have the same problem: 0x7c00 is the lowest
LINEAR11 value, but it is +infinity in binary16.

Add a FEAT_IEEE754 flag for these chips. Compare binary16 values as
sign-magnitude integers, and start peak maximums at -infinity (0xfc00)
and peak minimums at +infinity (0x7c00). The min attributes are not
exposed for these chips, but the min path is fixed as well for
consistency.

    [11 lines not shown]
DeltaFile
+52-14drivers/hwmon/pmbus/ltc2978.c
+52-141 files

Linux/linux 03699c2 — Documentation/hwmon yogafan.rst, drivers/hwmon yogafan.c

hwmon: (yogafan) Fix fan paths for Yoga Pro 7 14IAH10

The Yoga Pro 7 14IAH10 entry names \_SB.PC00.LPCB.EC0.FANS, which this
machine's DSDT does not have, so probe matches on DMI, fails to resolve the
path and returns -ENODEV. The EC exposes its two fan tachometers as FA1S
and FA2S, and loq_15iax9_8bit_dual_cfg already describes that layout. Point
the entry at it, and update the reference table row to match.

Fixes: 9c110a467686 ("hwmon: (yogafan) Add support for new Lenovo models")
Cc: stable at vger.kernel.org
Signed-off-by: Navon John Lukose <navonjohnlukose at gmail.com>
Link: https://patch.msgid.link/20260913214713.205208-1-navonjohnlukose@gmail.com
Acked-by: Sergio Melas <sergiomelas at gmail.com>
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+1-7drivers/hwmon/yogafan.c
+2-1Documentation/hwmon/yogafan.rst
+3-82 files

Linux/linux 7641bff — drivers/usb/gadget/function f_midi2.c f_hid.c, drivers/usb/storage ene_ub6250.c

Merge tag 'usb-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb

Pull USB / Thunderbolt fixes from Greg KH:
 "Here are a bunch of small USB and Thunderbolt driver fixes for
  reported issues. Most of these are for gadget driver issues that
  people have reported a while ago, it just took me a bit to catch up
  with the pending patch submissions. Fixes in here include:

   - small thunderbolt driver fixes for some minor issues

   - lots of small usb gadget fixes, from users having problems,
     syzbot-found issues, or llm-found problems, all with reproducers

   - typec driver fixes

   - dwc3 driver fixes

   - dwc2 driver fixes


    [34 lines not shown]
DeltaFile
+77-61drivers/usb/gadget/function/f_fs.c
+72-38drivers/usb/storage/ene_ub6250.c
+44-40drivers/usb/gadget/function/u_ether.c
+57-18drivers/usb/gadget/function/f_hid.c
+53-4drivers/usb/gadget/function/f_midi2.c
+41-0drivers/usb/typec/ucsi/ucsi_acpi.c
+344-16166 files not shown
+817-30072 files

Linux/linux 35a0b61 — drivers/ata libata-core.c

Merge tag 'ata-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux

Pull ata fix from Niklas Cassel:

 - Quirk the ADATA SU650 SSD with NOLPM due to its defective link
   power management (me)

* tag 'ata-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
  ata: libata-core: Disable LPM on ADATA SU650 with firmware XD0R3C0F
DeltaFile
+1-0drivers/ata/libata-core.c
+1-01 files

Linux/linux 3852adb — drivers/gpio gpio-aspeed.c gpiolib-of.h

Merge tag 'gpio-fixes-for-v7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:
 "GPIO core fixes:
   - fix several logic & locking issues and resource leaks in GPIO
     character device code
   - fix GPIO hogging for controllers using the three-cell binding
   - fix inverted trace values in gpiod_get_array_value()
   - remove shared GPIO proxies before freeing interrupts that are still
     requested by the parent controller and fix a race in remove path
   - fix UAF bugs around the GPIO label cleanup

  GPIO driver fixes:
   - fix a use-after-free bug in gpio-davinci
   - fix an issue in gpio-davinci where the driver could setup an IRQ
     for a wrong controller
   - validate the number of GPIOs in gpio-mvebu
   - use correct registers in suspend/resume in gpio-mvebu
   - fix non-kerneldoc comment in nsc-gpio header

    [36 lines not shown]
DeltaFile
+116-41drivers/gpio/gpiolib-cdev.c
+38-16drivers/gpio/gpiolib.c
+13-13drivers/gpio/gpio-davinci.c
+12-9drivers/gpio/gpio-pca953x.c
+8-7drivers/gpio/gpiolib-of.h
+8-4drivers/gpio/gpio-aspeed.c
+195-907 files not shown
+214-10713 files

Linux/linux 822ba3a — arch/arm64/include/asm module.h, arch/arm64/kernel module-plts.c module.c

Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 fixes from Catalin Marinas:
 "Mostly missing barriers and break-before-make in kernel page table
  updates (fixmap, early ID map, KPTI) plus a livepatch fix for late PLT
  writes to read-only module text:

   - Fix missing barriers and break-before-make in kernel page table
     updates: ISBs after mapping the FDT in the initial ID map and after
     remapping the KPTI page-table slot; non-deferred barriers for
     fixmap entries in lazy MMU mode; break-before-make when overwriting
     a valid fixmap entry

   - Route late (livepatch) PLT and ADRP veneer writes through the
     text-poke API as the module's .plt section is read-only by then"

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
  arm64: fixmap: fix missing break-before-make in __set_fixmap()
  arm64: module: Use text-poke for late PLT/veneer emission

    [3 lines not shown]
DeltaFile
+42-17arch/arm64/kernel/module.c
+17-6arch/arm64/kernel/module-plts.c
+13-4arch/arm64/mm/fixmap.c
+3-0arch/arm64/include/asm/module.h
+1-0arch/arm64/mm/proc.S
+1-0arch/arm64/kernel/pi/map_kernel.c
+77-276 files

Linux/linux 27db887 — arch/s390/kernel cert_store.c

Merge tag 's390-7.4-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull s390 fixes from Alexander Gordeev:

 - Fix the cert_store code keyring locking, lifetime handling, missing
   error and return code checks, several reference leaks and potential
   use-after-free issues caused by unbalanced keyring reference counting

 - Look up the cert_store keyring only in the user session keyring. As
   result a foreign keyring named "cert_store", which a task may have
   inherited, is no longer destroyed during refresh

 - Fix out-of-bounds reads in hash validation and in Verification
   Certificate Entry (VCE) debug output, avoid copying uninitialized
   DIAG 320 data to the debug area, and print the correct value of
   max_vcxe_length

 - Allocate the cert_store keyring with a link restriction, so that
   arbitrary keys cannot be linked into it

    [23 lines not shown]
DeltaFile
+87-52arch/s390/kernel/cert_store.c
+87-521 files

Linux/linux 1f1b6ca — include/asm-generic tlb.h, mm shmem.c madvise.c

Merge tag 'mm-core-7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mm/core

Pull core MM fixes from David Hildenbrand:
 "Two hotfixes and a bunch of fixes for other nasty issues we found that
  I want to have fixed sooner rather than later. All got a couple of
  days in -next after proper review, which is why I am rather late this
  week.

   - Fix deadlocks on the folio lock when splitting folios and when
     migrating folios, triggerable by unprivileged users

   - Fix lost writes and stale reads due to stale TLB entries with
     delayed rmap handling on UP, when zapping dirty file PMDs, when
     installing CoW'ed folios, and when reclaim does not write back a
     dirty folio

   - Fix various MADV_FREE issues that can lead to data loss or exposure
     of stale swap content


    [28 lines not shown]
DeltaFile
+96-37mm/migrate.c
+71-34mm/migrate_device.c
+47-21mm/huge_memory.c
+34-31mm/madvise.c
+35-10mm/shmem.c
+4-12include/asm-generic/tlb.h
+287-1456 files not shown
+321-15812 files

Linux/linux 5888d70 — security/keys key.c big_key.c, security/keys/trusted-keys trusted_caam.c trusted_core.c

Merge tag 'keys-v7.4-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd

Pull keys fixes from Jarkko Sakkinen:

 - Trusted keys: initialize backend static calls before ->init(),
   synchronize TEE session lifetime against device removal (and disable
   sysfs bind/unbind), and propagate CAAM option parsing errors.

 - keyctl_pkey: fix user buffer bounds in keyctl_pkey_e_d_s() and
   keyctl_pkey_verify(), and zero temporary buffers with
   kfree_sensitive().

 - Key instantiation: take key->sem during instantiation and rejection
   to serialize key->user access against keyctl_chown_key().

 - big_key: instantiate the new payload before destroying the old one in
   big_key_update() so -EDQUOT cannot leave a positive key with a
   cleared payload.


    [10 lines not shown]
DeltaFile
+67-22security/keys/trusted-keys/trusted_tee.c
+15-6security/keys/keyctl_pkey.c
+12-4security/keys/big_key.c
+10-5security/keys/trusted-keys/trusted_core.c
+2-2security/keys/trusted-keys/trusted_caam.c
+4-0security/keys/key.c
+110-396 files

Linux/linux ecceb7d — drivers/iommu vsi-iommu.c

iommu/vsi: Unlink the IOMMU from its old domain under that domain's lock

Attaching a paging domain moves iommu->node to the new domain's list
holding only the new domain's lock. A concurrent map or unmap on the old
domain walks the old list in vsi_iommu_flush_tlb() and can follow the
moved node into the new list.

Unlink the IOMMU under the old domain's lock first.

Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Reported-by: Sashiko <sashiko-bot at kernel.org>
Closes: https://lore.kernel.org/all/sashiko-outbox-206639@kernel.org/
Cc: stable at vger.kernel.org
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+2-1drivers/iommu/vsi-iommu.c
+2-11 files

Linux/linux 807bf13 — drivers/iommu vsi-iommu.c

iommu/vsi: Unprepare the clocks when getting the IRQ fails

vsi_iommu_probe() returns without clk_bulk_unprepare() when
platform_get_irq() fails.

Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+4-2drivers/iommu/vsi-iommu.c
+4-21 files

Linux/linux 10bcc63 — drivers/iommu/amd iommu.c

iommu/amd: Mark v2 page tables incoherent on Cezanne

DMA fails on Cezanne (family 19h, model 50h) when a device is placed in
an IOMMU v2 paging domain due to missing coherency setting in IOMMU HW.
The IOMMU walks v2 page tables without observing CPU writes still held
in the cache. v1 PTEs have a Force Coherent bit, which the driver sets
on every entry, but the v2 format has no equivalent bit, so v2 walks
are not kept coherent.

Set PT_FEAT_DMA_INCOHERENT for v2 domains on this CPU so the generic
page-table code clflushes table memory before the IOMMU reads it.

Link: https://lore.kernel.org/linux-iommu/CACOV87VBwH+R3eSBEOuz8hk7OaT63+A9m6ipPSW5wt1VhHMFPg@mail.gmail.com/
Cc: Mario Limonciello (AMD) <superm1 at kernel.org>
Cc: Alex Deucher <alexander.deucher at amd.com>
Tested-by: Akshata V Unkal <Akshata.VUnkal at amd.com>
Co-developed-by: Nathan Blomquist <nblomquist at gmail.com>
Signed-off-by: Nathan Blomquist <nblomquist at gmail.com>
Signed-off-by: Vasant Hegde <vasant.hegde at amd.com>

    [5 lines not shown]
DeltaFile
+16-0drivers/iommu/amd/iommu.c
+16-01 files

Linux/linux 4ec193a — drivers/iommu vsi-iommu.c

iommu/vsi: Don't leak a runtime PM reference in the TLB flush

pm_runtime_get() takes a usage reference even when it fails, e.g. with
-EINPROGRESS while a resume runs, and vsi_iommu_flush_tlb() then skips
the put. The IOMMU then never suspends again.

Flush only an active IOMMU and flush the TLB when the IOMMU is enabled,
which covers resume.

Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+4-3drivers/iommu/vsi-iommu.c
+4-31 files

Linux/linux 9cd3aa3 — drivers/iommu vsi-iommu.c

iommu/vsi: Don't use the identity domain as a paging domain

vsi_identity_domain is a bare struct iommu_domain, but identity attach
and resume pass it to to_vsi_domain() and take the lock of that
vsi_iommu_domain, which is memory past the static domain. Identity
attach also unlinks the IOMMU from its old domain's list without that
domain's lock.

Take the old paging domain's lock to unlink the IOMMU, and only the
IOMMU lock otherwise. Resume touches neither the page tables nor the
domain's list, so it needs only the IOMMU lock.

Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Reported-by: Sashiko <sashiko-bot at kernel.org>
Closes: https://sashiko.dev/#/patchset/20261113-vsi-iommu-pm-ref-v1-0-fd917eebdf18@gmail.com?part=1
Cc: stable at vger.kernel.org
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+26-19drivers/iommu/vsi-iommu.c
+26-191 files

Linux/linux 923278d — drivers/iommu vsi-iommu.c

iommu/vsi: Don't resume the IOMMU in its interrupt handler

The interrupt handler calls pm_runtime_resume_and_get(), which can
sleep, in hard IRQ context. Handle the interrupt only if the IOMMU is
active.

Fixes: 917ace84b770 ("iommu: Add verisilicon IOMMU driver")
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+1-1drivers/iommu/vsi-iommu.c
+1-11 files

Linux/linux 2f2e6b0 — drivers/iommu vsi-iommu.c

iommu/vsi: Don't write the enable register on suspend

Benjamin Gaignard pointed out that, per the IOMMU documentation, the
IOMMU can't be disabled once enabled. Drop the write on suspend:
resume reprograms the IOMMU anyway.

Suggested-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Arun Iyengar <aiyengar1990 at gmail.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard at collabora.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+1-1drivers/iommu/vsi-iommu.c
+1-11 files