linux/samples
Danilo Krummrich bde0149ce5 rust: dma: tie DMA allocations to the device's bound lifetime
DMA allocations carry device resources (e.g. IOMMU mappings) that must
 not outlive the device's bound lifetime. Add lifetime parameters to the
 DMA allocation types (Coherent, CoherentBox, CoherentHandle) to enforce
 at compile time that they are freed before the device is unbound.
 
 Since DMA types with lifetime parameters are exposed through debugfs in
 the nova-core driver, first drop the unnecessary T: 'static bound from
 the debugfs ScopedDir file creation methods by formalizing a type
 invariant on FileOps.
 
 This is a stable tag for other trees to merge.
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYKAB0WIQS2q/xV6QjXAdC7k+1FlHeO1qrKLgUCap13MgAKCRBFlHeO1qrK
 Ls1tAP9ugwnM86l9VMAN/oe82DKYLdrtM3CE1exgPBVyfXKICAD+Ky8yR7PDuN+6
 G9NInskajlb5+bzCWBpbt7Y2XylmDAw=
 =AwqP
 -----END PGP SIGNATURE-----

Merge patch series "rust: dma: tie DMA allocations to the device's bound lifetime"

Danilo Krummrich <dakr@kernel.org> says:

DMA allocations carry device resources (e.g. IOMMU mappings) that must
not outlive the device's bound lifetime. Add lifetime parameters to the
DMA allocation types (Coherent, CoherentBox, CoherentHandle) to enforce
at compile time that they are freed before the device is unbound.

Since DMA types with lifetime parameters are exposed through debugfs in
the nova-core driver, first drop the unnecessary T: 'static bound from
the debugfs ScopedDir file creation methods by formalizing a type
invariant on FileOps.

Link: https://patch.msgid.link/20260830193824.471089-1-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-09-07 22:50:04 +02:00
..
acrn virt: acrn: Fix typos 2024-05-04 18:59:44 +02:00
auxdisplay
binderfs
bpf samples/bpf: Fix spelling typos in samples/bpf 2025-10-18 19:26:23 -07:00
cgroup samples/cgroup: rm unused MEMCG_EVENTS macro 2025-09-21 14:22:26 -07:00
check-exec samples/check-exec: Fix script name 2025-03-07 19:58:05 -08:00
configfs samples: configfs: Constify struct configfs_item_operations and configfs_group_operations 2026-01-15 09:27:27 +01:00
connector treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
coresight
damon mm.git review status for mm-hotfixes-stable..mm-stable 2026-08-20 18:17:08 -07:00
fanotify samples: fix building fs-monitor on musl systems 2025-07-28 18:14:15 +02:00
fprobe fprobe: Use ftrace_regs in fprobe exit handler 2024-12-26 10:50:03 -05:00
ftrace samples/ftrace: Fix kthread_stop() on ERR_PTR in ftrace-direct-multi-modify 2026-08-26 15:50:22 -04:00
hid samples/hid: fix broken vmlinux path for VMLINUX_BTF 2025-02-04 11:07:41 +01:00
hidraw
hung_task samples: enhance hung_task detector test with read-write semaphore support 2025-07-19 19:08:26 -07:00
hw_breakpoint perf/hw_breakpoint: use ERR_PTR_PCPU(), IS_ERR_PCPU() and PTR_ERR_PCPU() macros 2024-11-05 17:12:32 -08:00
kdb
kfifo kfifo: don't include dma-mapping.h in kfifo.h 2024-10-23 08:05:20 +02:00
kmemleak samples: kmemleak: print the raw pointers for debugging purposes 2025-03-16 22:06:08 -07:00
kobject samples/kobject: Constify kobject attributes 2026-07-11 20:38:01 +02:00
kprobes samples: kprobes: add missing MODULE_DESCRIPTION() macros 2024-06-12 08:44:27 +09:00
landlock samples/landlock: Add LANDLOCK_RESTRICT_SELF_NO_NEW_PRIVS to sampler 2026-08-15 09:14:48 +02:00
livepatch samples/livepatch: add module descriptions 2025-04-11 17:32:38 -07:00
mei samples: mei: Fix building on musl libc 2025-07-16 14:17:47 +02:00
nitro_enclaves
pfsm samples: Add userspace example for TI TPS6594 PFSM 2023-06-15 13:41:53 +02:00
pidfd
pktgen samples: pktgen: correct dev to DEV 2024-11-13 18:54:33 -08:00
qmi samples: qmi: Use the unified QMI service ID instead of defining it locally 2026-03-15 20:54:39 -05:00
rpmsg
rust rust: dma: tie DMA allocations to the device's bound lifetime 2026-09-07 22:50:04 +02:00
seccomp samples: user-trap: fix strict-aliasing warning 2024-02-12 10:42:02 -08:00
timers
trace_events tracing/probes: Add a new testcase for BTF typecasts 2026-07-14 22:43:16 +09:00
trace_printk
tsm-mr sample/tsm-mr: Use SHA-2 library APIs 2026-03-19 10:57:15 -07:00
uhid
user_events tracing/user_events: Use write ABI in example 2023-03-29 06:52:09 -04:00
v4l media: v4l2-pci-skeleton: Rename second ioctl handlers argument to 'void *priv' 2025-08-13 08:33:59 +02:00
vfio-mdev vfio: Adapt drivers to use the core helper vfio_check_precopy_ioctl 2026-03-19 12:32:09 -06:00
vfs Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
watch_queue samples: work around glibc redefining some of our defines wrong 2025-11-21 09:29:02 -08:00
watchdog
workqueue/stall_detector workqueue: Add stall detector sample module 2026-03-05 07:30:49 -10:00
Kconfig sample/tsm-mr: Use SHA-2 library APIs 2026-03-19 10:57:15 -07:00
Makefile - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00