7 Commits
Author SHA1 Message Date
Lucas ManningandgVisor bot 95ad423f8c Don't return empty translation in ring buffer during bus error.
Reported-by: syzbot+b441fb97dc83729a444d@syzkaller.appspotmail.com
PiperOrigin-RevId: 726111936
2025-02-12 10:43:52 -08:00
Lucas ManningandgVisor bot d6454b486f Lock around packetmmap cooked field and check for PACKET_RESERVE opt size.
Reported-by: syzbot+ca91395278b8bbe45820@syzkaller.appspotmail.com
Reported-by: syzbot+7786024ead82f25b39c5@syzkaller.appspotmail.com
PiperOrigin-RevId: 725302503
2025-02-10 12:18:14 -08:00
Lucas ManningandgVisor bot faac8f36cd Add support for PACKET_STATISTICS.
PiperOrigin-RevId: 725271073
2025-02-10 10:46:54 -08:00
Lucas ManningandgVisor bot 9c490f813d Implement GetSockOpt PACKET_HDRLEN and add a test for tcpdump.
PiperOrigin-RevId: 724445536
2025-02-07 13:06:14 -08:00
Lucas ManningandgVisor bot 25084ce9ed Add locking around packetmmap initialization and mode.
Reported-by: syzbot+0bd17f07432518e1a3f4@syzkaller.appspotmail.com
Reported-by: syzbot+c461ce33fdf84ea55105@syzkaller.appspotmail.com
Reported-by: syzbot+8d5e8d31b8303257b69f@syzkaller.appspotmail.com
PiperOrigin-RevId: 724407775
2025-02-07 11:13:16 -08:00
Lucas ManningandgVisor bot 6194338723 Add support for setting PACKET_VERSION for PACKET_MMAP.
tcpdump requires TPACKET_V2 to work properly.

PiperOrigin-RevId: 723670574
2025-02-05 15:19:34 -08:00
Lucas ManningandgVisor bot 0f8896589f Implement the PacketMMapEndpoint interface for PACKET_MMAP.
This code is tested in the subsequent change with syscall tests.

PiperOrigin-RevId: 721861305
2025-01-31 12:26:38 -08:00