syzbot


WARNING: refcount bug in netlink_release

Status: auto-closed as invalid on 2021/11/07 22:02
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 475d, last: 475d

Sample crash report:
WARNING: CPU: 1 PID: 22761 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31
Modules linked in:
CPU: 1 PID: 22761 Comm: syz-executor.1 Not tainted 5.14.0-rc5-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 7a 84 81 09 31 ff 89 de e8 2d 81 9e fd 84 db 75 e0 e8 74 79 9e fd 48 c7 c7 40 ed e2 89 c6 05 5a 84 81 09 01 e8 b5 d7 11 05 <0f> 0b eb c4 e8 58 79 9e fd 0f b6 1d 49 84 81 09 31 ff 89 de e8 f8
RSP: 0018:ffffc90017a27ae0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815cb9a5 RDI: fffff52002f44f4e
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815c57ae R11: 0000000000000000 R12: 0000000000000013
R13: 0000000000000001 R14: ffff888000110080 R15: ffff888000110680
FS:  00007f597068a700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d027000 CR3: 000000014b5f0000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __refcount_dec include/linux/refcount.h:344 [inline]
 refcount_dec include/linux/refcount.h:359 [inline]
 __sock_put include/net/sock.h:709 [inline]
 netlink_remove net/netlink/af_netlink.c:612 [inline]
 netlink_release+0x1574/0x1dd0 net/netlink/af_netlink.c:751
 __sock_release+0xcd/0x280 net/socket.c:648
 sock_close+0x18/0x20 net/socket.c:1300
 __fput+0x288/0x920 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 get_signal+0x1b35/0x2160 kernel/signal.c:2581
 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209
 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665e9
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:00007f597068a188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 000000000000003c RBX: 000000000056c0f0 RCX: 00000000004665e9
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
R13: 00007ffd0f9a72df R14: 00007f597068a300 R15: 0000000000022000

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2021/08/09 22:00 upstream 36a21d51725a 6972b106 .config log report info WARNING: refcount bug in netlink_release
* Struck through repros no longer work on HEAD.