summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-09-10 09:36:49 +0200
committerChristian Brauner <brauner@kernel.org>2026-09-10 09:36:49 +0200
commit7f24d0f60b1087dbc28d68398957c18774e5a7d8 (patch)
treea0d13e3222a6807ac1f575e5c2a900cfc2b3f625 /tools/lib/python/kdoc/parse_data_structs.py
parentc38b381d20273f1f3d0f30c019a6020c34815f83 (diff)
parent81bdc85b4c086502f4446a58eb5d25f29bb5e9f7 (diff)
downloadlinux-next-7f24d0f60b1087dbc28d68398957c18774e5a7d8.tar.gz
linux-next-7f24d0f60b1087dbc28d68398957c18774e5a7d8.zip
Merge patch series "kernfs: three standalone fixes"
Shakeel Butt <shakeel.butt@linux.dev> says: Three independent kernfs fixes, plus selftest coverage for the paths they touch. The fixes do not depend on each other. Patch 1 adds tests for decoding a file handle and for a rename that keeps the same parent. Patches 2-4: - kernfs_rename_ns() takes kernfs_rename_lock only when the parent changes, so two same-parent renames inside one kernfs_path_from_node() walk can build a path that never existed. sysfs_warn_dup() is the only caller that can see it. - __kernfs_fh_to_dentry() creates inodes with no lock, so a decode racing rmdir() can hash an inode after the removal's ilookup() pass. The inode keeps i_nlink 1, so no IN_DELETE_SELF is sent. - kernfs_create_link() reads the target's uid and gid unlocked, so a chown in between gives the link an owner the target never had. Patch 1 applies on top of the patch [1] ("selftests: cover kernfs dentry revalidation") with vfs-7.4.kernfs branch in vfs tree as base. [1] http://lore.kernel.org/20260902014050.499002-1-shakeel.butt@linux.dev * patches from https://patch.msgid.link/20260905191613.3143937-1-shakeel.butt@linux.dev: kernfs: fix up the unlocked attribute reads on the creation paths kernfs: don't lose IN_DELETE_SELF when decoding a file handle kernfs: take kernfs_rename_lock for same-parent renames too selftests: cover kernfs file handles and same-parent rename Link: https://patch.msgid.link/20260905191613.3143937-1-shakeel.butt@linux.dev Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions