syzbot


WARNING in md_ioctl

Status: fixed on 2021/01/26 16:42
Reported-by: syzbot+38cc117962dd2878f09d@syzkaller.appspotmail.com
Fix commit: b85abab5913d md: fix a warning caused by a race between concurrent md_ioctl()s
First crash: 2042d, last: 1425d
Fix bisection: fixed by (bisect log) :
commit b85abab5913d89ee78bc5bb08231acb578677898
Author: Dae R. Jeong <dae.r.jeong@kaist.ac.kr>
Date: Thu Oct 22 01:21:28 2020 +0000

  md: fix a warning caused by a race between concurrent md_ioctl()s

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 WARNING in md_ioctl C 1 2397d 2048d 0/3 public: reported C repro on 2019/04/14 08:51
linux-4.14 WARNING in md_ioctl C 448 640d 2046d 0/1 upstream: reported C repro on 2019/04/16 09:27
upstream WARNING in md_ioctl raid C done error 684 1436d 2397d 19/28 fixed on 2021/03/10 01:49

Sample crash report:
md: md1 stopped.
WARNING: CPU: 1 PID: 8121 at drivers/md/md.c:7217 md_ioctl+0x3c7b/0x5620 drivers/md/md.c:7217
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8121 Comm: syz-executor385 Not tainted 4.19.162-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/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 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:md_ioctl+0x3c7b/0x5620 drivers/md/md.c:7217
Code: 89 fa 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 07 0b 00 00 c7 85 40 01 00 00 00 00 00 00 e9 bc eb ff ff e8 a5 50 91 fb <0f> 0b e9 24 d2 ff ff 41 be f3 ff ff ff e9 68 c4 ff ff 44 89 44 24
RSP: 0018:ffff88809100f988 EFLAGS: 00010293
RAX: ffff8880b0302080 RBX: 1ffff11012201f39 RCX: ffffffff85d35168
RDX: 0000000000000000 RSI: ffffffff85d37f4b RDI: 0000000000000007
RBP: ffff888094d34e00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000000932
R13: 0000000000000932 R14: ffff888094d34fc8 R15: ffff88808e453080
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a7e block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 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:0x447369
Code: e8 3c e7 ff ff 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 0b 06 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f7129493d98 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dec48 RCX: 0000000000447369
RDX: 0000000000000000 RSI: 0000000000000932 RDI: 0000000000000004
RBP: 00000000006dec40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec4c
R13: 0000000020000000 R14: 00000000004af9e0 R15: 0000000000000003
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (199):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/08 23:45 linux-4.19.y 4abf26854aad 40cc414d .config console log report syz C ci2-linux-4-19
2019/04/21 05:10 linux-4.19.y c98875d930e9 b0e8efcb .config console log report syz C ci2-linux-4-19
2020/01/11 22:24 linux-4.19.y cb1f9a169a0e 4c04afaa .config console log report syz ci2-linux-4-19
2019/04/21 04:53 linux-4.19.y c98875d930e9 b0e8efcb .config console log report syz ci2-linux-4-19
2019/04/19 21:06 linux-4.19.y 4b0e041c9dad b0e8efcb .config console log report syz ci2-linux-4-19
2020/12/27 08:33 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/26 00:45 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report info ci2-linux-4-19
2020/12/24 12:03 linux-4.19.y 13d2ce42de8c c2c1d1dd .config console log report info ci2-linux-4-19
2020/12/11 13:17 linux-4.19.y 13d2ce42de8c ba24ffcd .config console log report info ci2-linux-4-19
2020/12/08 05:01 linux-4.19.y daefdc9eb24b 51a9082e .config console log report info ci2-linux-4-19
2020/12/07 02:17 linux-4.19.y daefdc9eb24b c521566d .config console log report info ci2-linux-4-19
2020/12/04 18:55 linux-4.19.y daefdc9eb24b 20366b87 .config console log report info ci2-linux-4-19
2020/12/03 00:33 linux-4.19.y daefdc9eb24b 8c9190ef .config console log report info ci2-linux-4-19
2020/11/29 16:42 linux-4.19.y 0c88e405c97e a0092f9d .config console log report info ci2-linux-4-19
2020/11/04 02:07 linux-4.19.y f5d8eef067ac cba33199 .config console log report info ci2-linux-4-19
2020/11/03 19:30 linux-4.19.y f5d8eef067ac cba33199 .config console log report info ci2-linux-4-19
2020/10/31 22:58 linux-4.19.y f5d8eef067ac 8bc4594f .config console log report info ci2-linux-4-19
2020/10/30 22:08 linux-4.19.y f5d8eef067ac 18e33098 .config console log report info ci2-linux-4-19
2020/10/26 12:49 linux-4.19.y ad326970d25c a7aac492 .config console log report info ci2-linux-4-19
2020/10/25 02:58 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
2020/10/20 05:52 linux-4.19.y ad326970d25c ff4a3345 .config console log report info ci2-linux-4-19
2020/10/11 04:27 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/09/11 11:53 linux-4.19.y 67957f12548c adfb8b4e .config console log report ci2-linux-4-19
2020/09/07 09:59 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/09/04 23:58 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/08/15 18:55 linux-4.19.y c14d30dc9987 5ce13532 .config console log report ci2-linux-4-19
2020/08/11 17:16 linux-4.19.y c14d30dc9987 5d3ebca9 .config console log report ci2-linux-4-19
2020/08/11 04:59 linux-4.19.y 961f830af065 d3694ffb .config console log report ci2-linux-4-19
2020/08/11 01:21 linux-4.19.y 961f830af065 d3694ffb .config console log report ci2-linux-4-19
2020/08/10 15:50 linux-4.19.y 961f830af065 7adc7b65 .config console log report ci2-linux-4-19
2020/08/09 11:54 linux-4.19.y 961f830af065 f721e4a0 .config console log report ci2-linux-4-19
2020/08/04 13:46 linux-4.19.y 13af6c74b14a 80a06902 .config console log report ci2-linux-4-19
2020/08/01 04:34 linux-4.19.y 13af6c74b14a 8df85ed9 .config console log report ci2-linux-4-19
2020/07/31 22:25 linux-4.19.y 13af6c74b14a 8df85ed9 .config console log report ci2-linux-4-19
2020/07/31 15:28 linux-4.19.y 205a42ce2861 8df85ed9 .config console log report ci2-linux-4-19
2020/07/30 19:15 linux-4.19.y 205a42ce2861 b0947553 .config console log report ci2-linux-4-19
2020/07/24 05:43 linux-4.19.y 20b3a3dfdf6c 70c104a1 .config console log report ci2-linux-4-19
2020/07/20 13:07 linux-4.19.y 17a87580a885 8caeeeb7 .config console log report ci2-linux-4-19
2020/07/18 23:18 linux-4.19.y 17a87580a885 9c812472 .config console log report ci2-linux-4-19
2020/07/17 09:22 linux-4.19.y 17a87580a885 54b3c45e .config console log report ci2-linux-4-19
2020/07/15 06:06 linux-4.19.y dce0f88600e4 ada108d0 .config console log report ci2-linux-4-19
2020/07/13 14:11 linux-4.19.y dce0f88600e4 f90ec899 .config console log report ci2-linux-4-19
2020/07/11 23:15 linux-4.19.y dce0f88600e4 7ba05d2d .config console log report ci2-linux-4-19
2020/07/02 23:39 linux-4.19.y 399849e4654e f30c14bf .config console log report ci2-linux-4-19
2020/06/27 01:51 linux-4.19.y a39e75458e1c ffec44b5 .config console log report ci2-linux-4-19
2020/06/21 08:09 linux-4.19.y 3fc898571b97 c655ec77 .config console log report ci2-linux-4-19
2020/06/14 19:16 linux-4.19.y 3fc898571b97 2a22c77a .config console log report ci2-linux-4-19
2020/06/14 11:36 linux-4.19.y 3fc898571b97 2a22c77a .config console log report ci2-linux-4-19
2020/06/13 01:30 linux-4.19.y 3fc898571b97 3036d6fd .config console log report ci2-linux-4-19
2020/06/07 19:52 linux-4.19.y 106fa147d3da 2c2b926c .config console log report ci2-linux-4-19
2020/06/07 11:30 linux-4.19.y 4707d8e57273 2c2b926c .config console log report ci2-linux-4-19
2020/06/07 03:45 linux-4.19.y 4707d8e57273 e6b89e4e .config console log report ci2-linux-4-19
2020/06/02 20:49 linux-4.19.y 2d16cf4817bc 52fd7b7d .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.