-
Notifications
You must be signed in to change notification settings - Fork 5
different result on ubuntu 16.04 for intercepted sigaction
#20
Comments
on 18.04:
On 16.04:
seg fault due to decoding si.si_mask@0xd (4th argument of 1st argument is signal The values from ubuntu 16.04 (glibc-2.23) are obviously trashed, for some unknown reason. |
Actually I started to think this may have something to do with glibc, though I haven't find anything suspicious enough even after check changes between glibc-2.23 & glibc-2.27. Wrote a simple test by doing On 18.04 (glibc-2.27):
On 16.04 (glibc-2.23):
The tests can be found in |
I think I have found the reason why. GCC/CLANG used We could do extra 128-byte stack allocation in our trampoline, to avoid spilling red-zone, or we could also switch stack ( Even we after we allocate 128-byte extra stack space, the After all of that, this issue has something to do with #19 |
step to reproduce:
SYS_rt_sigaction
is filtered insrc/bpf.c
.test with docker with ubuntu-16.04 (or run
make run-docker
in top-level ofsys trace
), and compare the result with ubuntu-18.04.Expected result:
both system should show the similar result
Actual result:
Result from ubuntu-16.04 seems wrong, arguments for
SYS_rt_sigaction
doesn't look sane.The text was updated successfully, but these errors were encountered: