syzbot


general protection fault in nbd_disconnect_and_put

Status: upstream: reported C repro on 2021/02/14 12:13
Reported-by: syzbot+cdd7477f44c74d5f0eb2@syzkaller.appspotmail.com
First crash: 1393d, last: 642d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in nbd_disconnect_and_put C 1000 642d 1393d 0/1 upstream: reported C repro on 2021/02/14 12:55
upstream general protection fault in nbd_disconnect_and_put nbd C unreliable done 300 1203d 1385d 0/28 auto-obsoleted due to no activity on 2022/10/02 02:45

Sample crash report:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor624'.
block nbd0: NBD_DISCONNECT
kasan: CONFIG_KASAN_INLINE enabled
nbd: nbd0 already in use
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8111 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 f2 66 8c 0f 84 65 ff ff
nbd: nbd0 already in use
RSP: 0018:ffff888094c07910 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
nbd: nbd0 already in use
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b14960c0 R14: 0000000000000110 R15: 0000000000000001
FS:  00007facbfab48c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
nbd: nbd0 already in use
CR2: 00007ffca11659c0 CR3: 00000000ab2a9000 CR4: 00000000003406f0
nbd: nbd0 already in use
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
nbd: nbd0 already in use
nbd: nbd0 already in use
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
nbd: nbd0 already in use
 flush_workqueue+0x117/0x13e0 kernel/workqueue.c:2661
nbd: nbd0 already in use
nbd: nbd0 already in use
nbd: nbd0 already in use
 nbd_disconnect_and_put+0x100/0x190 drivers/block/nbd.c:1928
 nbd_release+0x144/0x170 drivers/block/nbd.c:1458
nbd: nbd0 already in use
 __blkdev_put+0x636/0x870 fs/block_dev.c:1819
nbd: nbd0 already in use
nbd: nbd0 already in use
 blkdev_close+0x86/0xb0 fs/block_dev.c:1888
 __fput+0x2ce/0x890 fs/file_table.c:278
nbd: nbd0 already in use
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
nbd: nbd0 already in use
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
nbd: nbd0 already in use
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7facbebfa270
Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24
RSP: 002b:00007ffca11070f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007facbebfa270
RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007facbfab4710 R08: 0000000000000045 R09: 0000000000000018
nbd: nbd0 already in use
R10: 0000562412f7fc98 R11: 0000000000000246 R12: 0000000000000000
R13: 0000562412f7fd20 R14: 0000000000000003 R15: 000000000000000e
Modules linked in:
---[ end trace 27a2411385b359f6 ]---
nbd: nbd0 already in use
RIP: 0010:__lock_acquire+0x1eb/0x3ff0 kernel/locking/lockdep.c:3295
Code: 2b 29 00 00 48 81 c4 98 01 00 00 44 89 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 b3 2a 00 00 49 81 3e 20 f2 66 8c 0f 84 65 ff ff
nbd: nbd0 already in use
RSP: 0018:ffff888094c07910 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000022 RSI: 0000000000000000 RDI: 0000000000000001
nbd: nbd0 already in use
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8880b14960c0 R14: 0000000000000110 R15: 0000000000000001
FS:  00007facbfab48c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffca11659c0 CR3: 00000000ab2a9000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	2b 29                	sub    (%rcx),%ebp
   2:	00 00                	add    %al,(%rax)
   4:	48 81 c4 98 01 00 00 	add    $0x198,%rsp
   b:	44 89 f8             	mov    %r15d,%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 f2             	mov    %r14,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 b3 2a 00 00    	jne    0x2ae7
  34:	49 81 3e 20 f2 66 8c 	cmpq   $0xffffffff8c66f220,(%r14)
  3b:	0f                   	.byte 0xf
  3c:	84 65 ff             	test   %ah,-0x1(%rbp)
  3f:	ff                   	.byte 0xff

Crashes (1563):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/28 23:04 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/11/19 08:14 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/10/12 02:03 linux-4.19.y 3f8a27f9e27b 02b6492e .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/08/21 17:46 linux-4.19.y 3f8a27f9e27b 26a13b38 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/06/04 23:27 linux-4.19.y 3f8a27f9e27b c8857892 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/05/12 19:55 linux-4.19.y 3f8a27f9e27b 9ad6612a .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/01/06 13:21 linux-4.19.y 3f8a27f9e27b 6acc789a .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/12/08 21:36 linux-4.19.y 3f8a27f9e27b a4a2a501 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/11/01 10:09 linux-4.19.y 3f8a27f9e27b 098b5d53 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/06/11 15:24 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/06/09 18:05 linux-4.19.y 1722257b8ece 84fe5d96 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/05/22 22:12 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/05/17 15:48 linux-4.19.y 3c8c23092588 a2eb125d .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/05/13 12:35 linux-4.19.y 3c8c23092588 ed7d41c5 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/04/12 23:51 linux-4.19.y 830a059cbba6 6a81331a .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/02/21 06:58 linux-4.19.y 255b58a2b3af 3e5ed8b4 .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/02/14 12:31 linux-4.19.y 811218eceeaa 98682e5e .config console log report syz C ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2022/09/07 14:53 linux-4.19.y 3f8a27f9e27b c5b7bc57 .config console log report syz [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/07 02:58 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/06 17:38 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/05 08:03 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/05 08:03 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/04 17:54 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/04 11:37 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/01 12:52 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/03/01 04:34 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/28 22:44 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/27 19:23 linux-4.19.y 3f8a27f9e27b 9189cb53 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/26 13:58 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/25 17:04 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/25 08:02 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/23 00:06 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/22 22:24 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/22 19:24 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/21 18:16 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/21 13:24 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/21 12:03 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/21 01:45 linux-4.19.y 3f8a27f9e27b 2414209c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/20 12:10 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/20 07:57 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/20 02:34 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/19 13:55 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/19 08:15 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/17 12:06 linux-4.19.y 3f8a27f9e27b 3e7039f4 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/16 06:50 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/16 05:08 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/16 03:47 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/15 23:57 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/15 03:39 linux-4.19.y 3f8a27f9e27b e62ba3c1 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/13 17:10 linux-4.19.y 3f8a27f9e27b 957959cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/13 05:55 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/11 23:57 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/10 22:29 linux-4.19.y 3f8a27f9e27b e29a17f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/09 20:14 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/09 19:01 linux-4.19.y 3f8a27f9e27b 07980f9d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/09 08:51 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/08 09:17 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/07 23:41 linux-4.19.y 3f8a27f9e27b 15c3d445 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/07 18:20 linux-4.19.y 3f8a27f9e27b 5bc3be51 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/07 05:05 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/06 08:14 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2023/02/06 04:25 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
2021/02/14 12:12 linux-4.19.y 811218eceeaa 98682e5e .config console log report info ci2-linux-4-19 general protection fault in nbd_disconnect_and_put
* Struck through repros no longer work on HEAD.