You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im on VM running XUbuntu 22.04 x64, Linux xubun2204 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux and I loaded hook
I compiled the framework and samples like below,
$ make x86_64 KDIR=/usr/src/linux-headers-5.15.0-107-generic
Thanks for reporting the issue. One question, will the crash be stably reproduced? I guess it won't, please feel free to correct me.
There is a possiblity of the kernel crash during loading and unloading. If you check the kernel log, there will be strings like "Your kernel should be "CONFIG_STACKTRACE && !CONFIG_ARCH_STACKWALK", skip stack safety check and use as your risk!!!". You see, when you hijack the vfs_read, each read will enter hook_vfs_read. And if there are any tasks calling the function, they will eventally call into the inner functions, and then return back to the hook_vfs_read(). If you rmmod the hookFrameTest module, the hook_vfs_read() area will be freed, so it will page fault when return back to the hook_vfs_read. So such a crash is expected, and that is why stack_safety_check.c is present. However it doesn't do a good job in most times. Maybe I need to get it improved. If you or anyone is interested, a PR is welcomed for this. :)
Hi,
Im on VM running XUbuntu 22.04 x64,
Linux xubun2204 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
and I loaded hookI compiled the framework and samples like below,
and loaded in following order,
Then in the logs I started to get following which shows the hook is being installed,
but when I unload,
I get the following crash log :(
Please tell me if I'm doing anything wrong.
Thanks
The text was updated successfully, but these errors were encountered: