syzbot


WARNING: locking bug in loop_control_ioctl

Status: fixed on 2019/01/15 20:25
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+c0138741c2290fc5e63f@syzkaller.appspotmail.com
Fix commit: 628bd8594709 loop: Fix double mutex_unlock(&loop_ctl_mutex) in loop_control_ioctl()
First crash: 1987d, last: 1959d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING: locking bug in __vmalloc_node_range bridge netfilter 1 1982d 1982d 0/26 closed as dup on 2018/11/16 07:28
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.19 00/99] 4.19.17-stable review 109 (109) 2019/04/22 19:40
[PATCH 4.14 00/52] 4.14.105-stable review 57 (57) 2019/03/05 16:11
[PATCH 4.9 00/32] 4.9.162-stable review 38 (38) 2019/03/05 16:11
[PATCH 4.4 000/104] 4.4.172-stable review 111 (111) 2019/01/30 07:30
[PATCH 4.14 00/59] 4.14.95-stable review 65 (65) 2019/01/23 12:55
[PATCH 4.9 00/51] 4.9.152-stable review 56 (56) 2019/01/23 09:06
[PATCH 4.20 000/111] 4.20.4-stable review 120 (120) 2019/01/23 06:43
WARNING: locking bug in loop_control_ioctl 3 (4) 2018/11/12 11:02

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(depth <= 0)
WARNING: CPU: 1 PID: 6394 at kernel/locking/lockdep.c:3595 __lock_release kernel/locking/lockdep.c:3595 [inline]
WARNING: CPU: 1 PID: 6394 at kernel/locking/lockdep.c:3595 lock_release+0x740/0xa10 kernel/locking/lockdep.c:3863
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 6394 Comm: syz-executor828 Not tainted 4.20.0-rc1-next-20181109+ #110
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x244/0x39d lib/dump_stack.c:113
 panic+0x2ad/0x55c kernel/panic.c:188
 __warn.cold.8+0x20/0x45 kernel/panic.c:540
 report_bug+0x254/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:271
 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:290
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:969
RIP: 0010:__lock_release kernel/locking/lockdep.c:3595 [inline]
RIP: 0010:lock_release+0x740/0xa10 kernel/locking/lockdep.c:3863
Code: 03 38 d0 7c 08 84 d2 0f 85 da 02 00 00 8b 35 a7 95 b3 08 85 f6 75 15 48 c7 c6 20 66 2b 88 48 c7 c7 c0 33 2b 88 e8 10 36 e7 ff <0f> 0b 48 8b 95 e8 fe ff ff 4c 89 f7 48 8b b5 f0 fe ff ff e8 e8 58
RSP: 0018:ffff8801bb807868 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 1ffff10037700f12 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8165ba15 RDI: 0000000000000006
RBP: ffff8801bb807998 R08: ffff8801ba208700 R09: fffffbfff12b2254
R10: fffffbfff12b2254 R11: ffffffff895912a3 R12: ffffffff8b0e27a0
R13: ffff8801bb807970 R14: ffff8801ba208700 R15: ffff8801bb8078b0
 __mutex_unlock_slowpath+0x102/0x8c0 kernel/locking/mutex.c:1197
 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:713
 loop_control_ioctl+0xf5/0x4e0 drivers/block/loop.c:2095
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446369
Code: e8 1c b4 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f39ea554ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 0000000000446369
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007ffce5cb1cdf R14: 00007f39ea5559c0 R15: 00000000006dbd2c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4018):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/12/06 19:48 linux-next 442b8cea2477 3ab38479 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/06 06:41 linux-next 442b8cea2477 764b42c4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/04 01:50 linux-next 442b8cea2477 03f94a45 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/03 20:33 linux-next 442b8cea2477 819002b0 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/03 19:04 linux-next 442b8cea2477 819002b0 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/03 08:06 linux-next 442b8cea2477 7dcaeaf3 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/03 06:27 linux-next 442b8cea2477 7dcaeaf3 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/02 15:40 linux-next 442b8cea2477 e0d8c853 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/02 15:19 linux-next 442b8cea2477 e0d8c853 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/02 02:35 linux-next 442b8cea2477 5a581673 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/01 10:30 linux-next 442b8cea2477 d8988561 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/01 08:33 linux-next 442b8cea2477 d8988561 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/28 15:42 linux-next 442b8cea2477 4b6d14f2 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/28 13:54 linux-next 442b8cea2477 4b6d14f2 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/25 01:48 linux-next 442b8cea2477 ecc7c870 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/25 00:59 linux-next 442b8cea2477 ecc7c870 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/18 06:15 linux-next 442b8cea2477 adf636a8 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/17 10:12 linux-next 442b8cea2477 b08ee62a .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/13 20:20 linux-next 442b8cea2477 5f5f6d14 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/10 09:50 linux-next 442b8cea2477 f9815aaf .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/09 09:33 linux-next 442b8cea2477 8fd01d3a .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/29 12:45 linux-next 442b8cea2477 4b6d14f2 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/19 19:39 linux-next 442b8cea2477 adf636a8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/19 13:59 linux-next 442b8cea2477 adf636a8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/17 15:46 linux-next 442b8cea2477 b08ee62a .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/17 05:39 linux-next 442b8cea2477 b08ee62a .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/15 10:53 linux-next 442b8cea2477 5f5f6d14 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/09 15:29 linux-next 442b8cea2477 8fd01d3a .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/09 14:33 linux-next 442b8cea2477 8fd01d3a .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/12/07 07:16 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/07 05:43 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/07 04:36 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/07 01:54 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/07 00:53 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 23:48 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 23:37 linux-next 442b8cea2477 dcf836b1 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 20:49 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 19:42 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 18:32 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 18:03 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 16:45 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 15:35 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 14:32 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 13:00 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 12:02 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 11:02 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 09:48 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 08:42 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 08:02 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 06:12 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 04:37 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 03:37 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 03:29 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 02:26 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 01:04 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 00:08 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 23:21 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 22:10 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 20:52 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 18:59 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 18:12 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 16:17 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 15:16 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 13:58 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 13:45 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 12:44 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 12:26 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 11:21 linux-next 442b8cea2477 ac6c0578 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 10:05 linux-next 442b8cea2477 f162ad97 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 09:04 linux-next 442b8cea2477 f162ad97 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 08:04 linux-next 442b8cea2477 f162ad97 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/05 06:05 linux-next 442b8cea2477 f162ad97 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/09 04:27 linux-next 442b8cea2477 8fd01d3a .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.