syzbot


general protection fault in nbd_disconnect_and_put

Status: auto-obsoleted due to no activity on 2022/10/02 02:45
Subsystems: nbd
[Documentation on labels]
Reported-by: syzbot+db0c9917f71539bc4ad1@syzkaller.appspotmail.com
First crash: 1133d, last: 948d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 298ed2b31f55280624417f80a09de0e28db8f786
Author: Victor Ding <victording@google.com>
Date: Tue Oct 27 07:23:54 2020 +0000

  x86/msr-index: sort AMD RAPL MSRs by address

Crash: BUG: sleeping function called from invalid context in sta_info_move_state (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 794ebcea865bff47231de89269e9d542121ab7be
Author: Stephen Brennan <stephen.s.brennan@oracle.com>
Date: Wed Sep 1 17:51:42 2021 +0000

  namei: Standardize callers of filename_lookup()

  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in nbd_disconnect_and_put 0 (2) 2021/09/22 16:11
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 388d 1138d 0/1 upstream: reported C repro on 2021/02/14 12:13
linux-4.14 general protection fault in nbd_disconnect_and_put C 1000 388d 1138d 0/1 upstream: reported C repro on 2021/02/14 12:55
Last patch testing requests (8)
Created Duration User Patch Repo Result
2022/10/02 01:30 20m retest repro upstream OK log
2022/10/01 23:30 20m retest repro upstream OK log
2022/09/15 16:29 15m retest repro net-next-old OK log
2022/09/15 12:29 18m retest repro net-next-old OK log
2022/09/15 10:29 16m retest repro net-old OK log
2022/09/15 09:29 18m retest repro net-next-old OK log
2022/09/15 06:29 18m retest repro net-old OK log
2021/04/20 12:48 12m mail@anirudhrb.com linux-next error OK
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2021/09/22 12:13 3h56m bisect fix upstream job log (1)
2021/08/23 11:50 23m bisect fix upstream job log (0) log
2021/07/24 11:25 25m bisect fix upstream job log (0) log
2021/06/24 10:30 24m bisect fix upstream job log (0) log

Sample crash report:
block nbd0: NBD_DISCONNECT
general protection fault, probably for non-canonical address 0xdffffc0000000027: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000138-0x000000000000013f]
CPU: 0 PID: 8542 Comm: systemd-udevd Not tainted 5.12.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0xf2/0x6040 kernel/locking/lockdep.c:4771
Code: 89 bc 24 80 00 00 00 0f 85 fb 26 00 00 83 3d 48 d8 b5 0c 00 0f 84 2f 12 00 00 83 3d 77 7f 5d 0b 00 74 39 48 89 f8 48 c1 e8 03 <42> 80 3c 00 00 74 1f 48 8b bc 24 80 00 00 00 e8 4a a4 64 00 48 8b
RSP: 0018:ffffc90001caf500 EFLAGS: 00010006
RAX: 0000000000000027 RBX: 0000000000000000 RCX: 1ffff92000395ec0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000138
RBP: ffffc90001caf890 R08: dffffc0000000000 R09: 0000000000000000
R10: fffffbfff1c2c29e R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  00007eff431968c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff422c7360 CR3: 000000002221b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x17f/0x720 kernel/locking/lockdep.c:5511
 flush_workqueue+0x178/0x1750 kernel/workqueue.c:2786
 nbd_disconnect_and_put+0x126/0x1f0 drivers/block/nbd.c:1983
 nbd_release+0xf1/0x120 drivers/block/nbd.c:1504
 __blkdev_put+0x55c/0x6d0 fs/block_dev.c:1592
 blkdev_put+0x2cd/0x440 fs/block_dev.c:1645
 blkdev_close+0x7a/0xa0 fs/block_dev.c:1653
 __fput+0x352/0x7b0 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:140
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
 exit_to_user_mode_prepare+0x10b/0x200 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301
 do_syscall_64+0x4b/0xb0 arch/x86/entry/common.c:57
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7eff422dc270
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:00007ffd36a6eae8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007eff422dc270
RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007eff43196710 R08: 0000000000000045 R09: 0000000000000018
R10: 000055da0714fee8 R11: 0000000000000246 R12: 0000000000000000
R13: 000055da07150ef0 R14: 0000000000000003 R15: 000000000000000e
Modules linked in:
---[ end trace 4d9573b4afe5203b ]---
RIP: 0010:__lock_acquire+0xf2/0x6040 kernel/locking/lockdep.c:4771
Code: 89 bc 24 80 00 00 00 0f 85 fb 26 00 00 83 3d 48 d8 b5 0c 00 0f 84 2f 12 00 00 83 3d 77 7f 5d 0b 00 74 39 48 89 f8 48 c1 e8 03 <42> 80 3c 00 00 74 1f 48 8b bc 24 80 00 00 00 e8 4a a4 64 00 48 8b
RSP: 0018:ffffc90001caf500 EFLAGS: 00010006
RAX: 0000000000000027 RBX: 0000000000000000 RCX: 1ffff92000395ec0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000138
RBP: ffffc90001caf890 R08: dffffc0000000000 R09: 0000000000000000
R10: fffffbfff1c2c29e R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
FS:  00007eff431968c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff422c7360 CR3: 000000002221b000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (300):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/28 17:22 upstream acd3d2859453 77e2b668 .config console log report syz C ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/02/21 00:19 upstream f40ddce88593 3e5ed8b4 .config console log report syz C ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/13 01:42 net-old 6628ddfec758 bfeda1b1 .config console log report syz C ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/28 19:13 net-next-old 95aafe911db6 77e2b668 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/13 03:40 net-next-old c82eaa4064f3 bfeda1b1 .config console log report syz C ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/02/21 07:55 net-old 3af409ca278d 3e5ed8b4 .config console log report syz ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/02/21 07:57 net-next-old 38b5133ad607 3e5ed8b4 .config console log report syz ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/08 22:23 upstream ab159ac569fd bc5434be .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in nbd_disconnect_and_put
2021/05/07 12:42 upstream d2b6f8a17919 f6da8120 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/05/06 11:09 upstream d2b6f8a17919 06c27ff5 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/05/01 20:16 upstream d2b6f8a17919 77e2b668 .config console log report info ci-upstream-kasan-gce-root general protection fault in nbd_disconnect_and_put
2021/05/01 11:51 upstream d2b6f8a17919 77e2b668 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/29 16:08 upstream d72cd4ad4174 77e2b668 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/29 01:17 upstream acd3d2859453 77e2b668 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/27 16:56 upstream 4a0225c3d208 805b5003 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/25 02:15 upstream 8db5efb83fa9 17f0b706 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/24 12:53 upstream e77a830c8297 17f0b706 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/23 07:01 upstream 90c911ad7445 590921a5 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/20 22:09 upstream 7af08140979a c0ced557 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in nbd_disconnect_and_put
2021/04/17 19:10 upstream 9cdbf6467424 7e2b734b .config console log report info ci-upstream-kasan-gce-selinux-root general protection fault in nbd_disconnect_and_put
2021/03/09 20:32 upstream 280d542f6ffa 26967e35 .config console log report info ci-qemu-upstream general protection fault in nbd_disconnect_and_put
2021/03/14 08:23 upstream 280d542f6ffa 4a003785 .config console log report info ci-qemu-upstream-386 general protection fault in nbd_disconnect_and_put
2021/05/20 03:20 net-old c71b99640d2d a343ba6b .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/07 10:17 net-old bbd6f0a94813 f6da8120 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/06 12:26 net-old bbd6f0a94813 06c27ff5 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/06 06:44 net-old bbd6f0a94813 06c27ff5 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 09:49 net-old bbd6f0a94813 09efdd63 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/01 22:14 net-old bbd6f0a94813 77e2b668 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/30 05:28 net-old bbd6f0a94813 77e2b668 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/27 14:42 net-old bbd6f0a94813 805b5003 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/27 04:24 net-old bbd6f0a94813 805b5003 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/25 13:32 net-old 6477dd39e62c 36c88236 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/25 03:29 net-old 6477dd39e62c 17f0b706 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/24 19:59 net-old 6477dd39e62c 17f0b706 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/24 08:18 net-old 6477dd39e62c 17f0b706 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/22 16:25 net-old eefb45eef5c4 33c28d03 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/22 10:43 net-old eefb45eef5c4 33c28d03 .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/02/20 03:25 net-old 3af409ca278d f689d40a .config console log report info ci-upstream-net-this-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/25 09:28 net-next-old c1eaf3c09c54 3c7fef33 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/17 00:47 net-next-old 77091933e453 f54a5c09 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/16 02:02 net-next-old 77091933e453 f54a5c09 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/14 17:46 net-next-old ea89c862f01e 8bdd5343 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/13 11:16 net-next-old d8654f4f9300 ed7d41c5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/09 20:38 net-next-old b741596468b0 bc5434be .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/07 07:16 net-next-old 95aafe911db6 06585184 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/06 21:11 net-next-old 95aafe911db6 06585184 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/06 19:05 net-next-old 95aafe911db6 06585184 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/06 02:24 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/05 23:14 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/05 21:02 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/05 15:28 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/05 09:27 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 22:25 net-next-old 95aafe911db6 06c27ff5 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 18:34 net-next-old 95aafe911db6 09efdd63 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 13:42 net-next-old 95aafe911db6 09efdd63 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 12:35 net-next-old 95aafe911db6 09efdd63 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/04 00:53 net-next-old 95aafe911db6 ad61f371 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/03 23:30 net-next-old 95aafe911db6 ad61f371 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/03 12:41 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/03 05:22 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/02 13:56 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/02 09:32 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/29 17:55 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/04/29 05:29 net-next-old 95aafe911db6 77e2b668 .config console log report info ci-upstream-net-kasan-gce general protection fault in nbd_disconnect_and_put
2021/05/16 10:30 linux-next cd557f1c605f f54a5c09 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in nbd_disconnect_and_put
2021/05/04 20:33 linux-next 9a9aa07ae18b 09efdd63 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in nbd_disconnect_and_put
* Struck through repros no longer work on HEAD.