linux/fs/sysfs
Rohan Kollambalath a54c1d1b85 sysfs:Addresses documentation in sysfs_merge_group and sysfs_unmerge_group.
These functions take a struct attribute_group as an input which has an
optional .name field. These functions rely on the .name field being
populated and do not check if its null. They pass this name into other
functions, eventually leading to a null pointer dereference.

This change simply updates the documentation of the function to make
this requirement clear.

Signed-off-by: Rohan Kollambalath <rkollamb@digi.com>
Link: https://lore.kernel.org/r/20240211223634.2103665-1-rohankollambalath@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-07 22:04:50 +00:00
..
dir.c fs/sysfs/dir.c : Fix typo in comment 2023-12-07 11:35:23 +09:00
file.c kernfs: sysfs: support custom llseek method for sysfs entries 2023-10-05 13:42:11 +02:00
group.c sysfs:Addresses documentation in sysfs_merge_group and sysfs_unmerge_group. 2024-03-07 22:04:50 +00:00
Kconfig
Makefile
mount.c kernfs: move struct kernfs_root out of the public view. 2022-02-23 15:46:34 +01:00
symlink.c docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
sysfs.h sysfs: split out binary attribute handling from sysfs_add_file_mode_ns 2021-09-14 16:59:46 +02:00