syzbot


WARNING in netlink_sock_destruct (2)

Status: internal: reported on 2024/10/31 02:44
Subsystems: net
[Documentation on labels]
Fix commit: 1904fb9ebf91 netlink: terminate outstanding dump on socket close
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 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], missing on: [ci-qemu-native-arm64-kvm ci-qemu2-riscv64 ci2-upstream-usb]
First crash: 32d, last: 32d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in netlink_sock_destruct net 1 1220d 1216d 0/28 auto-closed as invalid on 2021/11/29 00:24

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5491 at net/netlink/af_netlink.c:412 netlink_sock_destruct+0x268/0x2f0 net/netlink/af_netlink.c:412
Modules linked in:
CPU: 0 UID: 0 PID: 5491 Comm: dhcpcd Not tainted 6.12.0-rc5-syzkaller-00047-g4236f913808c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:netlink_sock_destruct+0x268/0x2f0 net/netlink/af_netlink.c:412
Code: 41 5c e9 1b 60 55 f8 e8 16 60 55 f8 48 89 de 48 c7 c7 a0 98 a1 8c e8 97 11 35 f8 5b 5d 41 5c e9 fe 5f 55 f8 e8 f9 5f 55 f8 90 <0f> 0b 90 e9 45 ff ff ff e8 eb 5f 55 f8 90 0f 0b 90 eb c1 e8 e0 5f
RSP: 0018:ffffc90003f57a90 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888027fb2000 RCX: ffffffff89381bcd
RDX: ffff8880289cc880 RSI: ffffffff89381c87 RDI: 0000000000000005
RBP: 0000000000000380 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000380 R11: 0000000000000000 R12: ffff888027fb2000
R13: ffff888027fb2080 R14: ffff88805e8ae550 R15: ffff8880690903c0
FS:  00007f5836d5d740(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc1e3a4870 CR3: 0000000033b6e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __sk_destruct+0x4d/0x720 net/core/sock.c:2259
 sk_destruct+0xc2/0xf0 net/core/sock.c:2307
 __sk_free+0xf4/0x3e0 net/core/sock.c:2318
 sk_free+0x6a/0x90 net/core/sock.c:2329
 sock_put include/net/sock.h:1888 [inline]
 netlink_sendskb net/netlink/af_netlink.c:1286 [inline]
 netlink_unicast+0x5a7/0x7f0 net/netlink/af_netlink.c:1372
 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:729 [inline]
 __sock_sendmsg net/socket.c:744 [inline]
 __sys_sendto+0x479/0x4d0 net/socket.c:2214
 __do_sys_sendto net/socket.c:2226 [inline]
 __se_sys_sendto net/socket.c:2222 [inline]
 __x64_sys_sendto+0xe0/0x1c0 net/socket.c:2222
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5836e35ad7
Code: 89 44 24 08 e8 99 55 f9 ff 48 8b 44 24 08 48 83 c4 28 c3 c3 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 24 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 86 8c 00 00 00 48 8b 15 1e c3 0c 00 f7 d8 64
RSP: 002b:00007ffddd9b8e08 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007ffddd9b9f30 RCX: 00007f5836e35ad7
RDX: 0000000000000014 RSI: 00007ffddd9b9e50 RDI: 0000000000000008
RBP: 00007ffddd9b9ec0 R08: 00007ffddd9b9e34 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000016
R13: 00007ffddd9b9e34 R14: 00007ffddd9b9e50 R15: 0000000000000105
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/31 02:43 upstream 4236f913808c fb888278 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in netlink_sock_destruct
* Struck through repros no longer work on HEAD.