[PATCH v3 0/2] debugfs: fix UAF and double-free in debugfs_str read/write

From: Aldo Ariel Panzardo

Date: Sat Sep 26 2026 - 10:09:31 EST


v3: regenerate patches with git format-patch against current mainline
(v2 Failed to apply due to an incorrect manual edit.).
No code changes from v2.

v2: split into two patches, add Assisted-by tag, include KASAN splat.
https://lore.kernel.org/driver-core/

v1: https://lore.kernel.org/driver-core/20260925175831.3701812-1-qwe.aldo@xxxxxxxxx/

Aldo Ariel Panzardo (2):
debugfs: fix use-after-free in debugfs_read_file_str()
debugfs: serialize concurrent writers in debugfs_write_file_str()

fs/debugfs/file.c | 41 +++++++++++++++++++----------------------
1 file changed, 19 insertions(+), 22 deletions(-)

--
2.43.0