Gunnar Beutner
9213d1e926
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
2021-05-06 08:49:35 +02:00
..
2021-04-22 11:22:27 +02:00
2021-05-01 20:08:08 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 21:16:17 +02:00
2021-05-05 21:16:17 +02:00
2021-04-22 11:22:27 +02:00
2021-05-01 09:10:30 +02:00
2021-04-28 14:19:45 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-26 18:39:59 +02:00
2021-04-26 18:39:59 +02:00
2021-05-05 21:16:17 +02:00
2021-04-30 23:11:56 +02:00
2021-04-30 23:11:56 +02:00
2021-04-22 11:22:27 +02:00
2021-04-23 16:46:57 +02:00
2021-04-22 11:22:27 +02:00
2021-05-01 09:10:30 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-01 21:25:06 +02:00
2021-04-30 15:27:41 +02:00
2021-04-22 11:22:27 +02:00
2021-05-06 08:49:35 +02:00
2021-04-30 15:27:41 +02:00