Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kernel: Truncate UDP packets on read
When reading UDP packets from userspace with recvmsg()/recv() we would hit a VERIFY() if the supplied buffer is smaller than the received UDP packet. Instead we should just return truncated data to the caller. This can be reproduced with: $ dd if=/dev/zero bs=1k count=1 | nc -u 192.168.3.190 68
- Loading branch information