syzbot


WARNING in loop_add

Status: upstream: reported C repro on 2019/08/16 07:43
Reported-by: syzbot+82664f8405da365c7238@syzkaller.appspotmail.com
First crash: 1054d, last: 12d

Fix bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in loop_add C done error 64 234d 1047d 22/22 fixed on 2022/03/08 16:11

Sample crash report:
RBP: 00007ffe2295d580 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8097 at block/genhd.c:719 __device_add_disk.cold+0x69/0x188 block/genhd.c:719
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8097 Comm: syz-executor840 Not tainted 4.19.211-syzkaller #0
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+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__device_add_disk.cold+0x69/0x188 block/genhd.c:719
Code: 02 84 c0 74 08 3c 03 0f 8e a8 00 00 00 44 8b a5 f0 05 00 00 e9 67 ad 6a fb e8 05 45 66 f9 48 c7 c7 60 75 b2 88 e8 64 76 f7 ff <0f> 0b e9 8f b9 6a fb e8 ed 44 66 f9 48 c7 c7 60 75 b2 88 e8 4c 76
RSP: 0018:ffff888094ccfb38 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012999f59
RBP: ffff8880b133a100 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b133a190
R13: ffff8880b133a790 R14: 00000000fffffff4 R15: ffff8880b133a104
 add_disk include/linux/genhd.h:409 [inline]
 loop_add+0x628/0x8a0 drivers/block/loop.c:2048
 loop_control_ioctl drivers/block/loop.c:2149 [inline]
 loop_control_ioctl+0x16c/0x480 drivers/block/loop.c:2131
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fbb97d92079
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe2295d568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fbb97d92079
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000003
RBP: 00007ffe2295d580 R08: 0000000000000002 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (78):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2022/06/20 07:51 linux-4.19.y 3f8a27f9e27b 8f633d84 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2022/06/18 07:19 linux-4.19.y 3f8a27f9e27b 8f633d84 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2022/06/08 05:13 linux-4.19.y 3f8a27f9e27b b2706118 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2022/05/28 09:46 linux-4.19.y 3f8a27f9e27b a46af346 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2022/05/22 02:50 linux-4.19.y 3f8a27f9e27b 7268fa62 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2022/04/18 02:27 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config log report syz C WARNING in loop_add
ci2-linux-4-19 2020/12/22 04:29 linux-4.19.y 13d2ce42de8c 04201c06 .config log report syz C
ci2-linux-4-19 2019/08/16 08:06 linux-4.19.y 893af1c79e42 8fd428a1 .config log report syz C
ci2-linux-4-19 2021/10/26 10:05 linux-4.19.y 3f8a27f9e27b c1132b49 .config log report syz WARNING in loop_add
ci2-linux-4-19 2022/06/23 10:52 linux-4.19.y 3f8a27f9e27b 912f5df7 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/05/26 04:08 linux-4.19.y 3f8a27f9e27b 3037caa9 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/05/20 05:44 linux-4.19.y 3f8a27f9e27b cb1ac2e7 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/05/12 18:18 linux-4.19.y 3f8a27f9e27b 9ad6612a .config log report info WARNING in loop_add
ci2-linux-4-19 2022/04/05 07:24 linux-4.19.y 3f8a27f9e27b 5915c2cb .config log report info WARNING in loop_add
ci2-linux-4-19 2022/03/31 03:22 linux-4.19.y 3f8a27f9e27b 9d49f3a7 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/03/16 20:51 linux-4.19.y 3f8a27f9e27b 46cc3b21 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/02/21 15:38 linux-4.19.y 3f8a27f9e27b 3cd800e4 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/01/28 00:03 linux-4.19.y 3f8a27f9e27b 64a8e201 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/01/24 23:44 linux-4.19.y 3f8a27f9e27b 2cbffd88 .config log report info WARNING in loop_add
ci2-linux-4-19 2022/01/12 09:32 linux-4.19.y 3f8a27f9e27b 44d1319a .config log report info WARNING in loop_add
ci2-linux-4-19 2022/01/11 11:51 linux-4.19.y 3f8a27f9e27b 1884f55a .config log report info WARNING in loop_add
ci2-linux-4-19 2021/12/11 21:18 linux-4.19.y 3f8a27f9e27b 49ca1f59 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/12/11 09:43 linux-4.19.y 3f8a27f9e27b 49ca1f59 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/11/24 07:59 linux-4.19.y 3f8a27f9e27b 545ab074 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/11/16 12:23 linux-4.19.y 3f8a27f9e27b 600426bd .config log report info WARNING in loop_add
ci2-linux-4-19 2021/10/10 00:59 linux-4.19.y e34184f53363 838e7e2c .config log report info WARNING in loop_add
ci2-linux-4-19 2021/09/26 17:42 linux-4.19.y c2276d585654 8cac236e .config log report info WARNING in loop_add
ci2-linux-4-19 2021/09/14 21:33 linux-4.19.y b172b44fcb17 07e953c1 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/09/04 06:34 linux-4.19.y b172b44fcb17 d236a457 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/08/22 14:10 linux-4.19.y 59456c9cc40c b599f2fc .config log report info WARNING in loop_add
ci2-linux-4-19 2021/07/25 07:51 linux-4.19.y 4938296e03bd 4d1b57d4 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/07/05 16:56 linux-4.19.y 9f84340f012e 55aa55c2 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/07/02 12:42 linux-4.19.y 9f84340f012e 658ebc66 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/06/26 14:23 linux-4.19.y eb575cd5d7f6 9d2ab5df .config log report info WARNING in loop_add
ci2-linux-4-19 2021/06/05 04:42 linux-4.19.y 1722257b8ece 500c2339 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/05/17 16:13 linux-4.19.y 3c8c23092588 a2eb125d .config log report info WARNING in loop_add
ci2-linux-4-19 2021/04/28 22:09 linux-4.19.y 97a8651cadce 77e2b668 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/04/22 00:41 linux-4.19.y 2965db2e004c 2bc8999a .config log report info WARNING in loop_add
ci2-linux-4-19 2021/04/07 14:44 linux-4.19.y b4454811f122 6a81331a .config log report info WARNING in loop_add
ci2-linux-4-19 2021/03/23 22:40 linux-4.19.y 125222814e7b e613994b .config log report info WARNING in loop_add
ci2-linux-4-19 2021/02/26 15:14 linux-4.19.y 2d19be4653f5 4c37c133 .config log report info WARNING in loop_add
ci2-linux-4-19 2021/02/05 06:17 linux-4.19.y 811218eceeaa 23a562df .config log report info WARNING in loop_add
ci2-linux-4-19 2021/01/13 19:27 linux-4.19.y 675cc038067f a945f0a3 .config log report info
ci2-linux-4-19 2020/12/28 10:38 linux-4.19.y 13d2ce42de8c 2242f77f .config log report info
ci2-linux-4-19 2020/12/21 19:44 linux-4.19.y 13d2ce42de8c 04201c06 .config log report info
ci2-linux-4-19 2020/10/30 08:43 linux-4.19.y 79524e8c64bd a0c7169a .config log report info
ci2-linux-4-19 2020/10/18 03:47 linux-4.19.y ad326970d25c fea47c01 .config log report info
ci2-linux-4-19 2020/10/01 15:38 linux-4.19.y b09c34517e1a 4103fce0 .config log report info
ci2-linux-4-19 2020/09/10 04:55 linux-4.19.y 67957f12548c ac7ca78e .config log report
ci2-linux-4-19 2020/09/08 02:53 linux-4.19.y c37da90efff5 abf9ba4f .config log report
ci2-linux-4-19 2020/09/02 23:26 linux-4.19.y f6d5cb9e2c06 abf9ba4f .config log report
ci2-linux-4-19 2020/09/01 12:33 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config log report
ci2-linux-4-19 2020/07/24 08:29 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config log report
ci2-linux-4-19 2020/07/22 23:10 linux-4.19.y 20b3a3dfdf6c 128cd85f .config log report
ci2-linux-4-19 2020/07/21 20:04 linux-4.19.y 17a87580a885 e562dd8a .config log report
ci2-linux-4-19 2020/07/04 09:42 linux-4.19.y 399849e4654e 51095195 .config log report
ci2-linux-4-19 2020/06/22 14:06 linux-4.19.y b3a99fd385fa eabcced4 .config log report
ci2-linux-4-19 2020/06/14 01:17 linux-4.19.y 3fc898571b97 a61674a5 .config log report
ci2-linux-4-19 2020/06/07 14:56 linux-4.19.y 106fa147d3da 2c2b926c .config log report
ci2-linux-4-19 2020/06/05 06:15 linux-4.19.y 4707d8e57273 2420d1bc .config log report
ci2-linux-4-19 2020/06/01 09:06 linux-4.19.y 2d16cf4817bc a0331e89 .config log report
ci2-linux-4-19 2020/05/28 16:29 linux-4.19.y 2d16cf4817bc c7192a2f .config log report
ci2-linux-4-19 2020/05/27 22:06 linux-4.19.y 2d16cf4817bc 9072c126 .config log report
ci2-linux-4-19 2020/05/17 15:50 linux-4.19.y 258f0cf7ac3b 37bccd4e .config log report
ci2-linux-4-19 2020/05/08 17:00 linux-4.19.y 84920cc7fbe1 fe4122c3 .config log report
ci2-linux-4-19 2020/05/04 15:47 linux-4.19.y fdc072324f3c 58ae5e18 .config log report
ci2-linux-4-19 2020/04/26 20:55 linux-4.19.y 7edd66cf6167 0ce7569e .config log report
ci2-linux-4-19 2020/04/25 02:03 linux-4.19.y 7edd66cf6167 03d97a1b .config log report
ci2-linux-4-19 2020/04/08 12:57 linux-4.19.y dda0e2920330 db9bcd4b .config log report
ci2-linux-4-19 2020/04/07 10:41 linux-4.19.y dda0e2920330 99a96044 .config log report
ci2-linux-4-19 2020/02/19 17:35 linux-4.19.y 9b15f7fae677 47fae6e9 .config log report
ci2-linux-4-19 2019/12/20 02:11 linux-4.19.y 7d120bf21c05 36650b4b .config log report
ci2-linux-4-19 2019/11/19 20:14 linux-4.19.y c555efaf1402 432c7650 .config log report
ci2-linux-4-19 2019/09/30 13:11 linux-4.19.y d573e8a79f70 c7a4fb99 .config log report
ci2-linux-4-19 2019/09/20 03:19 linux-4.19.y dbc29aff8d04 4d3ae0b7 .config log report
ci2-linux-4-19 2019/09/17 10:00 linux-4.19.y db2d0b7c1dde 51ca0454 .config log report
ci2-linux-4-19 2019/09/13 18:35 linux-4.19.y ee809c7e0895 32d59357 .config log report
ci2-linux-4-19 2019/08/16 06:42 linux-4.19.y 893af1c79e42 8fd428a1 .config log report