syzbot


general protection fault in nbd_disconnect_and_put

Status: upstream: reported C repro on 2021/02/14 12:55
Reported-by: syzbot+6970689b8b75f71118fa@syzkaller.appspotmail.com
First crash: 1406d, last: 655d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 general protection fault in nbd_disconnect_and_put C 1563 655d 1406d 0/1 upstream: reported C repro on 2021/02/14 12:13
upstream general protection fault in nbd_disconnect_and_put nbd C unreliable done 300 1216d 1398d 0/28 auto-obsoleted due to no activity on 2022/10/02 02:45
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/10/19 07:06 30m bisect fix linux-4.14.y OK (0) job log log
2021/09/01 08:05 25m bisect fix linux-4.14.y OK (0) job log log
2021/07/13 00:29 22m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor379'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor379'.
block nbd0: NBD_DISCONNECT
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7973 Comm: systemd-udevd Not tainted 4.14.307-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
nbd: nbd0 already in use
task: ffff88809d7524c0 task.stack: ffff8880b35b0000
RIP: 0010:__lock_acquire+0x1cc/0x3f20 kernel/locking/lockdep.c:3369
RSP: 0018:ffff8880b35b7938 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000110
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff88809d7524c0 R12: 0000000000000110
R13: 0000000000000000 R14: 0000000000000001 R15: ffffffff8bed1e40
FS:  00007fcdde2fb8c0(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 00000000985dd000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 flush_workqueue+0xfa/0x1310 kernel/workqueue.c:2625
 nbd_disconnect_and_put+0xc3/0x140 drivers/block/nbd.c:1919
 nbd_release+0x123/0x150 drivers/block/nbd.c:1450
 __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:0x7fcddd441270
RSP: 002b:00007ffde9790638 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fcddd441270
RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007fcdde2fb710 R08: 0000000000000045 R09: 0000000000000018
R10: 0000556d708d9c98 R11: 0000000000000246 R12: 0000000000000000
R13: 0000556d708d9d20 R14: 0000000000000003 R15: 000000000000000e
Code: 18 00 00 00 00 48 81 c4 80 01 00 00 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 <80> 3c 02 00 0f 85 67 2a 00 00 49 81 3c 24 60 d8 2f 8b 0f 84 5f 
RIP: __lock_acquire+0x1cc/0x3f20 kernel/locking/lockdep.c:3369 RSP: ffff8880b35b7938
---[ end trace 72152a67b3904770 ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	00 00                	add    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	48 81 c4 80 01 00 00 	add    $0x180,%rsp
   b:	44 89 e8             	mov    %r13d,%eax
   e:	5b                   	pop    %rbx
   f:	5d                   	pop    %rbp
  10:	41 5c                	pop    %r12
  12:	41 5d                	pop    %r13
  14:	41 5e                	pop    %r14
  16:	41 5f                	pop    %r15
  18:	c3                   	retq
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	4c 89 e2             	mov    %r12,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 67 2a 00 00    	jne    0x2a9b
  34:	49 81 3c 24 60 d8 2f 	cmpq   $0xffffffff8b2fd860,(%r12)
  3b:	8b
  3c:	0f                   	.byte 0xf
  3d:	84                   	.byte 0x84
  3e:	5f                   	pop    %rdi

Crashes (1000):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/28 23:32 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/28 19:46 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/11/20 15:01 linux-4.14.y e911713e40ca 5bb70014 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/08/21 09:51 linux-4.14.y b641242202ed 26a13b38 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/05/13 00:04 linux-4.14.y 569d1abf9402 9ad6612a .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/04/03 23:13 linux-4.14.y 74766a973637 79a2a8fc .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/02/07 11:22 linux-4.14.y b86ee2b7ae42 a7dab638 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/06/13 00:29 linux-4.14.y 3d3abdc8ebd3 1ba81399 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/05/24 18:23 linux-4.14.y 96afcb20f36f 3c7fef33 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/05/15 07:45 linux-4.14.y 7d7d1c0ab3eb 8bdd5343 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/05/12 11:11 linux-4.14.y 7d7d1c0ab3eb 86294427 .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/02/14 12:55 linux-4.14.y 2c8a3fceddf0 98682e5e .config console log report syz C ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2022/09/07 10:01 linux-4.14.y 65640c873dcf 5fc30c37 .config console log report syz [disk image] [vmlinux] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2021/02/21 08:02 linux-4.14.y 29c52025152b 3e5ed8b4 .config console log report syz ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/06 23:42 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/06 19:53 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/05 09:34 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/05 05:31 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/04 23:16 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/04 19:06 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/04 06:33 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/03 22:21 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/03 08:44 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/03 01:23 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/03 00:14 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/03/01 09:17 linux-4.14.y 7878a41b6cc1 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/22 23:53 linux-4.14.y 1e61bd26fa2c 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/22 22:51 linux-4.14.y 1e61bd26fa2c 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/20 12:23 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/20 02:34 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/12 14:52 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/11 16:55 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/11 09:12 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/08 10:06 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/08 02:58 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/06 11:42 linux-4.14.y a8ad60f2af58 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/05 13:45 linux-4.14.y 3949d1610004 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/04 03:13 linux-4.14.y 3949d1610004 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/03 05:44 linux-4.14.y 3949d1610004 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/02/01 05:55 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/31 18:09 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/31 06:32 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/31 01:19 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/30 08:43 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/30 05:14 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/29 16:52 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/29 14:19 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/28 03:11 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 23:09 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 21:59 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 19:59 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 18:39 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 09:43 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/27 07:28 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/26 20:23 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/26 12:26 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/25 14:18 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/25 12:13 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/24 16:33 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/21 22:09 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/18 22:21 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
2023/01/16 20:35 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in nbd_disconnect_and_put
* Struck through repros no longer work on HEAD.