OpenCloudOS / nettrace

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

fix: sym_lookup_proc crashed on Linux Kernel 6.2.0-23 #59

Closed stevetao74 closed 1 year ago

stevetao74 commented 1 year ago

As following, parsing sym to cname into crash, Length of cname set to 256 can handle this.

char _cname[MAX_SYM_LENGTH]; if (fscanf(f, "%llx %s %s [ %[^]] ]", &cpc, cname) < 0)

uname -a: Linux pc1 6.2.0-23-generic #23-Ubuntu SMP PREEMPT_DYNAMIC Wed May 17 16:55:20 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux