Hello,
syzbot found the following crash on:
HEAD commit: 4b0e041c Linux 4.19.35
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=15cf0c47200000
kernel config:
https://syzkaller.appspot.com/x/.config?x=bb1bcac868b1655e
dashboard link:
https://syzkaller.appspot.com/bug?extid=38cc117962dd2878f09d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=11a06980a00000
IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by:
syzbot+38cc11...@syzkaller.appspotmail.com
hrtimer: interrupt took 64659 ns
md: md0 stopped.
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
8021q: adding VLAN 0 to HW filter on device batadv0
8021q: adding VLAN 0 to HW filter on device batadv0
WARNING: CPU: 1 PID: 7912 at drivers/md/md.c:7219 md_ioctl+0x4023/0x59a0
drivers/md/md.c:7219
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7912 Comm: syz-executor.0 Not tainted 4.19.35 #3
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+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x51d kernel/panic.c:185
__warn.cold+0x20/0x54 kernel/panic.c:540
kobject: 'loop5' (000000005ae4f1a6): kobject_uevent_env
report_bug+0x263/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+0x204/0x360 arch/x86/kernel/traps.c:296
kobject: 'loop5' (000000005ae4f1a6): fill_kobj_path: path
= '/devices/virtual/block/loop5'
kobject: 'loop2' (000000007afde3f4): kobject_uevent_env
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
kobject: 'loop2' (000000007afde3f4): fill_kobj_path: path
= '/devices/virtual/block/loop2'
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:md_ioctl+0x4023/0x59a0 drivers/md/md.c:7219
Code: fd ff ff c7 80 40 01 00 00 00 00 00 00 e9 dd eb ff ff 48 8d 85 38 fe
ff ff 48 89 85 b8 fd ff ff e9 f5 da ff ff e8 7d 1d a0 fc <0f> 0b e9 f8 cc
ff ff e8 71 1d a0 fc 89 de bf 23 09 48 40 e8 e5 1e
RSP: 0018:ffff8880a593f950 EFLAGS: 00010293
kobject: 'loop1' (00000000680947af): kobject_uevent_env
RAX: ffff88809bbaa100 RBX: 0000000000000932 RCX: ffffffff84cae482
RDX: 0000000000000000 RSI: ffffffff84cb1793 RDI: 0000000000000007
RBP: ffff8880a593fbc0 R08: ffff88809bbaa100 R09: ffffed100fc239a2
R10: ffff8880a593f940 R11: ffff88807e11cd0f R12: 0000000000000932
R13: ffff88808fcd5600 R14: ffff88807e11cb68 R15: ffff88807e11cd08
kobject: 'loop1' (00000000680947af): fill_kobj_path: path
= '/devices/virtual/block/loop1'
__blkdev_driver_ioctl block/ioctl.c:303 [inline]
blkdev_ioctl+0xc4b/0x1ae0 block/ioctl.c:601
block_ioctl+0xee/0x130 fs/block_dev.c:1891
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:688
ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458c29
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fbe91821c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458c29
RDX: 0000000020000080 RSI: 0000000000000932 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbe918226d4
R13: 00000000004c0049 R14: 00000000004d2408 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches