Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xdp-dns: fix XDP dns log stack smashing error
gdb --args xdp_dns_log /sys/fs/bpf/xdp-tailcall/dns_ringbuf result in backtrace: (gdb) bt 0x00007ffff7d5fa80 in ?? () from /lib64/libc.so.6 0x00007ffff7d0be1c in raise () from /lib64/libc.so.6 0x00007ffff7cf49fc in abort () from /lib64/libc.so.6 0x00007ffff7d50ff0 in ?? () from /lib64/libc.so.6 0x00007ffff7de32d4 in __fortify_fail () from /lib64/libc.so.6 0x00007ffff7de42b0 in __stack_chk_fail () from /lib64/libc.so.6 0x000000012000f248 in handle_event () 0x00007ffff7eca0fc in ?? () from /usr/lib64/libbpf.so.1 0x00007ffff7eca8c8 in ring_buffer.poll () from /usr/lib64/libbpf.so.1 0x000000012000372c in main () Paste the gdb backtrace in ChatGPT and ChatGPT suggested the fix Signed-off-by: Vincent Li <[email protected]>
- Loading branch information