Whamcloud - gitweb
LU-13118 llite: add kobject to struct config_llog_instance 50/56850/5
authorJames Simmons <jsimmons@infradead.org>
Mon, 9 Dec 2024 17:02:47 +0000 (12:02 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:42:12 +0000 (18:42 +0000)
commit429c66b97591c4d0f5241d4fc5d0831f562d1c58
tree5805804e6a25430f84965cbad5748d5045a18b3d
parent01d10c84ad64bfbfe60c45267e9ac9b441191025
LU-13118 llite: add kobject to struct config_llog_instance

For the case of PARAM_LLITE in class_process_config() special
handling was implemented to locate the super block which
containes the struct kobject needed to send an uevent. This
special handling depends on naming containing an internal
kernel address which is also used to build the sysfs tree.
To fix this ASLR violation we need to move away from using
this internal address but it will break our special
handling. The solution is to add kobject of llite to the
struct config_llog_instance that can be used by the
class_process_config() so the special handling can go away.
Plus the change allows the removal of lsi_kobj.

Change-Id: Idf1e5a87e9d7b1b6448877d8bc21baf7f823dfeb
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56850
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_disk.h
lustre/include/obd_class.h
lustre/llite/llite_lib.c
lustre/llite/lproc_llite.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_llog.c
lustre/obdclass/class_obd.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c