syzbot


WARNING: refcount bug in rtnl_dellink

Status: closed as invalid on 2021/12/16 15:01
Subsystems: net
[Documentation on labels]
First crash: 907d, last: 893d

Sample crash report:
------------[ cut here ]------------
refcount_t: decrement hit 0; leaking memory.
WARNING: CPU: 0 PID: 20011 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 0 PID: 20011 Comm: syz-executor.3 Not tainted 5.16.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Code: 1d 3a 48 a2 09 31 ff 89 de e8 ed ef 9c fd 84 db 75 e0 e8 04 ec 9c fd 48 c7 c7 e0 d4 04 8a c6 05 1a 48 a2 09 01 e8 7b 14 33 05 <0f> 0b eb c4 e8 e8 eb 9c fd 0f b6 1d 09 48 a2 09 31 ff 89 de e8 b8
RSP: 0018:ffffc900041cf298 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815f0ad8 RDI: fffff52000839e45
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815ea87e R11: 0000000000000000 R12: 0000000000000001
R13: ffffc900041cf430 R14: ffff888038fac5b0 R15: ffff88803a074280
FS:  00007f40368a1700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e522000 CR3: 000000006dffd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 dev_put include/linux/netdevice.h:4166 [inline]
 unregister_netdevice_many+0x12c9/0x1790 net/core/dev.c:11114
 rtnl_delete_link net/core/rtnetlink.c:3063 [inline]
 rtnl_dellink+0x354/0xa80 net/core/rtnetlink.c:3115
 rtnetlink_rcv_msg+0x413/0xb80 net/core/rtnetlink.c:5571
 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2491
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x86d/0xda0 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f403936dae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f40368a1188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f40394810e0 RCX: 00007f403936dae9
RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000005
RBP: 00007f40393c7f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcfa6eb0af R14: 00007f40368a1300 R15: 0000000000022000
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/24 00:45 net-old 7b1b62bc1e6a 545ab074 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in rtnl_dellink
2021/11/11 00:33 net-old 8f1bc38bbb51 75b04091 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in rtnl_dellink
2021/11/09 23:19 net-old 0b9111922b1f 59bcaf9a .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in rtnl_dellink
2021/11/09 05:10 net-old c45231a7668d 8ab17e57 .config console log report info ci-upstream-net-this-kasan-gce WARNING: refcount bug in rtnl_dellink
2021/11/13 14:18 net-next-old 66f4beaa6c1d 83f5c9b5 .config console log report info ci-upstream-net-kasan-gce WARNING: refcount bug in rtnl_dellink
* Struck through repros no longer work on HEAD.