syzbot


WARNING: refcount bug in nbd_config_put

Status: upstream: reported C repro on 2021/03/06 00:49
Reported-by: syzbot+fad2d1005c1d27e448c2@syzkaller.appspotmail.com
First crash: 1206d, last: 476d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: refcount bug in nbd_config_put C error 42 479d 1181d 0/1 upstream: reported C repro on 2021/03/31 15:27
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2022/02/21 09:11 29m bisect fix linux-4.14.y job log (0) log
2021/12/15 17:36 23m bisect fix linux-4.14.y job log (0) log
2021/11/15 17:07 23m bisect fix linux-4.14.y job log (0) log
2021/10/16 16:05 24m bisect fix linux-4.14.y job log (0) log
2021/09/16 14:22 25m bisect fix linux-4.14.y job log (0) log
2021/08/17 13:34 24m bisect fix linux-4.14.y job log (0) log
2021/06/11 13:19 25m bisect fix linux-4.14.y job log (0) log
2021/05/09 18:34 25m bisect fix linux-4.14.y job log (0) log

Sample crash report:
refcount_t: underflow; use-after-free.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8187 at lib/refcount.c:281 refcount_dec_not_one.cold+0x18/0x25 lib/refcount.c:281
Kernel panic - not syncing: kernel: panic_on_warn set ...

CPU: 0 PID: 8187 Comm: systemd-udevd Not tainted 4.14.307-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x21d/0x451 kernel/panic.c:247
 check_panic_on_warn.cold+0x19/0x35 kernel/panic.c:171
 __warn+0xdf/0x1e0 kernel/panic.c:603
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:refcount_dec_not_one.cold+0x18/0x25 lib/refcount.c:281
RSP: 0018:ffff8880b06dfc38 EFLAGS: 00010286
RAX: 0000000000000026 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bd360 RDI: ffffed10160dbf7d
RBP: ffff8880992ae698 R08: 0000000000000026 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffff
R13: 0000000000000000 R14: ffffed1011911e86 R15: ffff8880992ae6a8
 refcount_dec_and_mutex_lock+0x1a/0x60 lib/refcount.c:309
 nbd_put drivers/block/nbd.c:228 [inline]
 nbd_config_put+0x442/0x6c0 drivers/block/nbd.c:1172
 nbd_release+0xdf/0x150 drivers/block/nbd.c:1453
 __blkdev_put+0x5aa/0x800 fs/block_dev.c:1803
 blkdev_close+0x86/0xb0 fs/block_dev.c:1875
 __fput+0x25f/0x7a0 fs/file_table.c:210
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f87e518b270
RSP: 002b:00007fff4f2eeaa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f87e518b270
RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f87e6045710 R08: 0000000000000045 R09: 0000000000000018
R10: 000055bb0a9c6b28 R11: 0000000000000246 R12: 0000000000000000
R13: 000055bb0a9c4880 R14: 0000000000000003 R15: 000000000000000e
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (47):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/28 09:12 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/10/27 05:16 linux-4.14.y 41f36d7859a7 86777b7f .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/09/26 00:31 linux-4.14.y 4edbf74132a4 0042f2b4 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/09/18 09:31 linux-4.14.y 5df8b4735177 dd9a85ff .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/06/22 00:29 linux-4.14.y 84bae26850e3 0fc5c330 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/06/08 01:25 linux-4.14.y b8f3be299d51 b2706118 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/06/07 21:34 linux-4.14.y b8f3be299d51 b2706118 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/21 20:20 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/21 20:05 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/20 13:56 linux-4.14.y dffb5c6ff09c cb1ac2e7 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/07/18 11:18 linux-4.14.y 4e68c9b0763f f115ae98 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/06/21 12:16 linux-4.14.y cfb41ef9deb1 aba2b2fb .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/04/09 18:34 linux-4.14.y 0cc244011f40 6a81331a .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/03/10 22:56 linux-4.14.y 1d177c0872ab 764067f3 .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/03/06 00:48 linux-4.14.y 397a88b2cc86 4a024a9b .config console log report syz C ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2023/03/06 12:16 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2023/03/05 13:57 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2023/02/05 06:59 linux-4.14.y 3949d1610004 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2023/01/29 16:06 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2023/01/26 12:48 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/12/16 18:24 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/10/26 18:48 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/10/26 18:13 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/09/16 22:46 linux-4.14.y 5df8b4735177 dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/09/10 22:04 linux-4.14.y 65640c873dcf 356d8217 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/08/27 19:32 linux-4.14.y e548869f356f 07177916 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/08/19 04:14 linux-4.14.y b641242202ed 26a13b38 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/07/20 07:32 linux-4.14.y 424a46ea058e 775344bc .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/07/15 04:21 linux-4.14.y 424a46ea058e 5d921b08 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/06/12 23:28 linux-4.14.y b8f3be299d51 0d5abf15 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/23 05:56 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/20 13:45 linux-4.14.y dffb5c6ff09c cb1ac2e7 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/10 09:52 linux-4.14.y e3a56aaade89 8b277b8e .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/05/02 16:22 linux-4.14.y e3a56aaade89 2df221f6 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/04/30 20:25 linux-4.14.y e3a56aaade89 2df221f6 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/04/14 11:54 linux-4.14.y 74766a973637 b17b2923 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/04/11 13:43 linux-4.14.y 74766a973637 e22c3da3 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/04/04 06:07 linux-4.14.y 74766a973637 79a2a8fc .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/03/21 04:21 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/03/01 09:10 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/01/22 09:11 linux-4.14.y 4ba8e26127c3 214351e1 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/01/10 00:56 linux-4.14.y bfdef05c8da4 2ca0d385 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/01/09 16:36 linux-4.14.y bfdef05c8da4 2ca0d385 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/01/07 03:51 linux-4.14.y bfdef05c8da4 6acc789a .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2022/01/01 00:20 linux-4.14.y a6ca7c65b137 36bd2e48 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/12/22 17:37 linux-4.14.y 8ee0807eedf3 6caa12e4 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
2021/05/12 13:16 linux-4.14.y 7d7d1c0ab3eb 86294427 .config console log report info ci2-linux-4-14 WARNING: refcount bug in nbd_config_put
* Struck through repros no longer work on HEAD.