syzbot


WARNING in packet_sock_destruct (2)

Status: auto-closed as invalid on 2021/12/18 02:34
Reported-by: syzbot+bed0f224827ffdae91b7@syzkaller.appspotmail.com
First crash: 979d, last: 979d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in packet_sock_destruct 1 1144d 1144d 0/1 auto-closed as invalid on 2021/07/05 21:56
linux-4.19 WARNING in packet_sock_destruct (3) 1 805d 805d 0/1 auto-closed as invalid on 2022/06/09 21:59

Sample crash report:
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue
------------[ cut here ]------------
WARNING: CPU: 1 PID: 17763 at net/packet/af_packet.c:1289 packet_sock_destruct.cold+0x29/0x49 net/packet/af_packet.c:1289
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 17763 Comm: syz-executor.3 Not tainted 4.19.204-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:packet_sock_destruct.cold+0x29/0x49 net/packet/af_packet.c:1289
Code: ea e8 3a 69 4f f9 48 c7 c7 c0 5a 5b 89 e8 c4 58 e0 ff 0f 0b e9 1a 73 0d ff e8 22 69 4f f9 48 c7 c7 c0 5a 5b 89 e8 ac 58 e0 ff <0f> 0b e9 ac 72 0d ff e8 0a 69 4f f9 48 89 ee 48 c7 c7 20 5b 5b 89
RSP: 0018:ffff88803655fc80 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000300 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814e0d61 RDI: ffffed1006cabf82
RBP: ffff8880a5761400 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a57615d8
R13: ffff8880a5761400 R14: ffff88808e09c580 R15: ffff8880a5761480
 __sk_destruct+0x4b/0x8a0 net/core/sock.c:1559
 sk_destruct net/core/sock.c:1599 [inline]
 __sk_free+0x165/0x3b0 net/core/sock.c:1610
 sk_free+0x3b/0x50 net/core/sock.c:1621
 sock_put include/net/sock.h:1711 [inline]
 packet_release+0x890/0xb70 net/packet/af_packet.c:3088
 __sock_release+0xcd/0x2a0 net/socket.c:599
 sock_close+0x15/0x20 net/socket.c:1212
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4193fb
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffd272a7230 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00000000004193fb
RDX: 0000000000570838 RSI: 00007f6e2afcb4f0 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31522250
R10: 0000000000001b2c R11: 0000000000000293 R12: 00000000000e5a27
R13: 00000000000003e8 R14: 000000000056bf80 R15: 00000000000e5a1e
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/20 02:33 linux-4.19.y 59456c9cc40c b599f2fc .config console log report info ci2-linux-4-19 WARNING in packet_sock_destruct
* Struck through repros no longer work on HEAD.