OpenCloudOS / nettrace

nettrace is a eBPF-based tool to trace network packet and diagnose network problem.
Other
326 stars 80 forks source link

Verify stackid before obtaining stack information #116

Closed answer9030 closed 1 month ago

answer9030 commented 1 month ago
When using nettrace to adapt to different kernels, some kernels'
bpf_get_stickid will return an invalid stackid, and later nettrace will
use an invalid stackid to trigger the BPF system call to obtain stack
information, which fails.

Verify stackid before triggering BPF system calls to avoid triggering
invalid system calls