linux_kernel_hacking icon indicating copy to clipboard operation
linux_kernel_hacking copied to clipboard

Kernel panic in 3.4 caused by __user

Open zetaemme opened this issue 4 years ago • 0 comments

Hi, sorry to bother, I'm kind of new to this kind of stuff.

I think I found a problem in the "Hiding a directory" section. If you load the kernel module compiled with the __user keyword in

struct linux_dirent64 __user *dirent = (struct linux_dirent64 *) regs->si;

a kernel panic happens. This can be solved by simply removing the __user keyword, or at least this worked for me. I'll leave here my system info, in case you want to proceed with a further analysis

OS: ArchLinux Kernel Version: 5.15.12

Plese, tell me if you need more info about this "problem".

Mattia

zetaemme avatar Jan 04 '22 23:01 zetaemme