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-05-01 21:25:06 +02:00
2021-04-30 11:35:17 +02:00
2021-05-05 18:48:26 +02:00
2021-05-05 23:10:56 +02:00
2021-05-05 23:10:56 +02:00
2021-04-29 00:59:26 +02:00
2021-05-05 18:48:26 +02:00
2021-04-22 11:22:27 +02:00
2021-05-06 08:49:35 +02:00
2021-05-01 21:25:06 +02:00
2021-04-29 22:23:52 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 18:51:06 +02:00
2021-05-01 23:04:40 +02:00
2021-04-27 11:36:24 +02:00
2021-05-03 16:03:17 +02:00
2021-01-30 09:18:46 +01:00
2021-04-22 21:15:54 +02:00
2021-04-22 21:15:54 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +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-04-22 11:22:27 +02:00
2021-04-22 22:51:19 +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-29 08:09:53 +02:00
2021-04-29 08:09:53 +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-29 20:26:36 +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-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-28 22:14:32 +02:00
2021-04-22 11:22:27 +02:00
2021-03-04 18:25:01 +01:00
2021-04-25 09:38:27 +02:00
2021-04-25 09:38:27 +02:00
2021-04-29 00:59:26 +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-26 23:26:58 +02:00
2021-04-26 17:13:55 +02:00
2021-04-22 11:22:27 +02:00
2021-05-01 09:10:30 +02:00
2021-04-30 18:47:39 +02:00
2021-04-23 16:46:57 +02:00
2021-04-22 11:22:27 +02:00
2021-04-25 09:38: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 18:48:26 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:26:36 +02:00
2021-04-29 22:16:18 +02:00
2021-05-05 18:44:40 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-05-02 16:18:44 +02:00
2021-04-22 11:22:27 +02:00
2021-05-05 21:16:17 +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-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00
2021-04-29 00:59:26 +02:00