Re: system call hook triggers kernel panic

2019-10-17 Thread Yi Li
> On Oct 17, 2019, at 12:29 PM, Oliver O'Halloran wrote: > > > The ABI (v1 and v2) uses r2 as a pointer to the "table of contents" > which is used to look up the addresses of global symbols. TOCs are > specific to the current unit of execution and the vmlinux and each > module has its own

Re: system call hook triggers kernel panic

2019-10-16 Thread Oliver O'Halloran
On Thu, Oct 17, 2019 at 1:01 PM Yi Li wrote: > > Hi, *snip* > The kernel module can be insert correctly, and we mount a tmpfs, then umount. > Kernel panic when doing umount: > " > [ 148.569777] umount /home/adam/test 0x0 > [ 148.608227] umount2 returned 0 > [ 148.608268] Unable to handle

system call hook triggers kernel panic

2019-10-16 Thread Yi Li
Hi, We tried to replace the umount system call with our own code. Bellow is the simplified test case. When doing umount, there is kernel panic (on centos7 4.14.0-115.10.1.el7a.ppc64le kernel) on P9 OpenPOWER machine. Could you please give suggestions on how to make the system call hook work