Transfering large packet will cause kernel general protection fault
Closed this issue · 2 comments
VOID001 commented
[ 9821.530741] traps: udp-tunnel[23597] general protection ip:7f6a6255ee07 sp:7fffe947abd0 error:0 in libgcc_s.so.1[7f6a62550000+16000]
*** stack smashing detected ***: ./uuu terminated │iiiiii iiiiiiii iiiiiiii iiiiiiii iiiiiiii iiiiiiii iiiiiiii iiiiii
[1] 25414 segmentation fault ./uuu
When use nc -u <server> <port>
then post a very large message
The program will crash and kernel said a GP# fault happen
VOID001 commented
not urgent, but cannot use in production
VOID001 commented
Fixed, for memcpy has a negative parmater on length
Checked code and fixed the bug