Open oshaked1 opened 2 years ago
Another way in which Ftrace exposes ghoul, is with the /sys/kernel/debug/tracing/enabled_functions
file.
Reading it while ghoul is loaded results in the following output:
finish_task_switch (1) R I tramp: 0xffffffffc08b7000 (fh_ftrace_thunk+0x0/0x50 [ghoul]) ->fh_ftrace_thunk+0x0/0x50 [ghoul]
do_faccessat (1) R I tramp: 0xffffffffc08b9000 (fh_ftrace_thunk+0x0/0x50 [ghoul]) ->fh_ftrace_thunk+0x0/0x50 [ghoul]
ksys_ioctl (1) R I tramp: 0xffffffffc08b5000 (fh_ftrace_thunk+0x0/0x50 [ghoul]) ->fh_ftrace_thunk+0x0/0x50 [ghoul]
Ftrace exposes ghoul's functions (and module name) even when it's hidden.
For example, doing the following while ghoul is loaded:
Results in the following output:
This clearly exposes ghoul.