syzbot


WARNING in packet_setsockopt

Status: internal: reported C repro on 2024/04/04 13:56
Subsystems: net
[Documentation on labels]
Fix commit: 86d43e2bf93c af_packet: avoid a false positive warning in packet_setsockopt()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce], missing on: [ci-qemu2-riscv64 ci-upstream-gce-arm64 ci2-upstream-usb]
First crash: 46d, last: 7d20h
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/04/05 07:28 10h06m edumazet@google.com patch upstream error OK

Sample crash report:
------------[ cut here ]------------
memcpy: detected field-spanning write (size 28) of single field "dst" at include/linux/sockptr.h:49 (size 16)
WARNING: CPU: 0 PID: 5072 at include/linux/sockptr.h:49 copy_from_sockptr_offset include/linux/sockptr.h:49 [inline]
WARNING: CPU: 0 PID: 5072 at include/linux/sockptr.h:49 copy_from_sockptr include/linux/sockptr.h:55 [inline]
WARNING: CPU: 0 PID: 5072 at include/linux/sockptr.h:49 packet_setsockopt+0x1e33/0x23c0 net/packet/af_packet.c:3821
Modules linked in:
CPU: 0 PID: 5072 Comm: syz-executor406 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:copy_from_sockptr_offset include/linux/sockptr.h:49 [inline]
RIP: 0010:copy_from_sockptr include/linux/sockptr.h:55 [inline]
RIP: 0010:packet_setsockopt+0x1e33/0x23c0 net/packet/af_packet.c:3821
Code: 23 87 f0 f7 c6 05 38 a8 eb 05 01 90 b9 10 00 00 00 48 c7 c2 80 9f 3d 8c be 1c 00 00 00 48 c7 c7 e0 9c 3d 8c e8 9e 3c b3 f7 90 <0f> 0b 90 90 e9 a8 f9 ff ff e8 ef 86 f0 f7 4c 89 fe 4c 89 ef e8 e4
RSP: 0018:ffffc9000341fb70 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 1ffff92000683f74 RCX: ffffffff814fafe9
RDX: ffff888026285a00 RSI: ffffffff814faff6 RDI: 0000000000000001
RBP: ffffc9000341fd10 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 000000000000000d
R13: ffff888075dea000 R14: 0000000000000001 R15: 000000000000001c
FS:  000055558b4a4380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f40aeec5d50 CR3: 000000007fdfe000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_sock_setsockopt+0x222/0x480 net/socket.c:2311
 __sys_setsockopt+0x1a4/0x270 net/socket.c:2334
 __do_sys_setsockopt net/socket.c:2343 [inline]
 __se_sys_setsockopt net/socket.c:2340 [inline]
 __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2340
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f40aee9dd59
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff69e6cd58 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f40aee9dd59
RDX: 000000000000000d RSI: 0000000000000107 RDI: 0000000000000006
RBP: 0000000000000000 R08: 000000000000001c R09: 0000000000000000
R10: 0000000020000040 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (83):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/05 04:00 upstream fe46a7dd189e 0ee3535e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/05 03:23 upstream c88b9b4cde17 0ee3535e .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/05/10 18:11 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in packet_setsockopt
2024/05/10 16:52 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/05/07 23:48 upstream dccb07f2914c cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/05/03 18:51 upstream f03359bca01b 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/05/01 00:36 upstream 50dffbf77180 9e0e6af1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/30 14:57 upstream 98369dccd2f8 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/28 19:43 upstream 2c8159388952 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/25 08:16 upstream e88c4cfcb7b8 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/24 19:46 upstream 9d1ddab261f3 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/24 17:58 upstream 9d1ddab261f3 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/24 13:46 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/24 00:17 upstream 71b1543c83d6 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/23 05:55 upstream 4d2008430ce8 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/23 04:34 upstream 4d2008430ce8 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/20 13:14 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/20 06:20 upstream 3cdb45594619 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/19 22:53 upstream 3cdb45594619 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/15 01:15 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/14 17:45 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/14 11:22 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in packet_setsockopt
2024/04/13 22:58 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/13 18:25 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/13 12:47 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/12 03:13 upstream fe46a7dd189e 478efa7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in packet_setsockopt
2024/04/12 03:06 upstream fe46a7dd189e 478efa7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/11 19:06 upstream fe46a7dd189e 478efa7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/11 05:07 upstream fe46a7dd189e 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in packet_setsockopt
2024/04/11 02:38 upstream fe46a7dd189e 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/10 21:20 upstream fe46a7dd189e 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in packet_setsockopt
2024/04/10 06:32 upstream fe46a7dd189e 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in packet_setsockopt
2024/05/13 13:29 upstream a38297e3fb01 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/05/12 09:34 upstream cf87f46fd34d 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/05/08 09:03 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/05/04 09:17 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/05/03 20:51 upstream 3d25a941ea50 610f2a54 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/26 13:36 upstream c942a0cd3603 3f914d6b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/24 08:16 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/21 20:29 upstream 48cf398f15fc af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/19 08:31 upstream 2668e3ae2ef3 af24b050 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/15 21:09 upstream 0bbac3facb5d 459f4b00 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/13 20:10 upstream fa4022cb7361 c8349e48 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/12 03:02 upstream 00dcf5d862e8 27de0a5c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/10 20:38 upstream 2c71fdf02a95 bb5e6c0f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/10 14:10 upstream 2c71fdf02a95 bb5e6c0f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/05 02:58 upstream c88b9b4cde17 0ee3535e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/04 16:40 upstream c85af715cac0 0ee3535e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
2024/04/04 13:55 upstream c85af715cac0 0ee3535e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in packet_setsockopt
* Struck through repros no longer work on HEAD.