eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
791 stars 74 forks source link

[BUG] Cannot set zero page for syscall tracepoints #197

Closed yunwei37 closed 6 months ago

yunwei37 commented 8 months ago

Describe the bug

# ~/.bpftime/bpftime start -s example/opensnoop/victim
[2024-01-28 22:38:05.701] [info] [agent-transformer.cpp:33] Entering bpftime syscal transformer agent
[2024-01-28 22:38:05.701] [info] [agent-transformer.cpp:61] Using agent /root/.bpftime/libbpftime-agent.so
[2024-01-28 22:38:05.701] [error] [text_segment_transformer.cpp:240] Failed to set execute only of 0-started page: 12
[2024-01-28 22:38:05.703] [error] Program exited abnormally: 1
root@yunwei-server:/home/yunwei37/bpftime# uname -a
Linux yunwei-server 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan  9 17:03:36 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@yunwei-server:/home/yunwei37/bpftime# 

To Reproduce

See example/opensnoop

Expected behavior

Screenshots

Desktop (please complete the following information):

Additional context

Officeyutong commented 8 months ago

See man mprotect(2) and search ENOMEM for details

Officeyutong commented 8 months ago

We need a stable way to reproduce this error to fix it, I can't reproduce it

Officeyutong commented 7 months ago

Solved now? I'm unable to reproduce this issue

Officeyutong commented 6 months ago

Unable to reproduce