WARNING in md_alloc

7 views
Skip to first unread message

syzbot

unread,
Jul 22, 2021, 1:23:17 PM7/22/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 4938296e03bd Linux 4.19.198
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=113154fc300000
kernel config: https://syzkaller.appspot.com/x/.config?x=9013c716691ad1fe
dashboard link: https://syzkaller.appspot.com/bug?extid=9be7c6405d0e6a327bc1
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9be7c6...@syzkaller.appspotmail.com

RDX: 0000000000000012 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f12ec07f1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe6448465f R14: 00007f12ec07f300 R15: 0000000000022000
------------[ cut here ]------------
WARNING: CPU: 1 PID: 24345 at block/genhd.c:719 __device_add_disk.cold+0x69/0x188 block/genhd.c:719
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 24345 Comm: syz-executor.4 Not tainted 4.19.198-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 b8 05 00 00 e9 75 29 6b fb e8 13 bb 66 f9 48 c7 c7 20 72 b2 88 e8 1d 76 f7 ff <0f> 0b e9 9d 35 6b fb e8 fb ba 66 f9 48 c7 c7 20 72 b2 88 e8 05 76
RSP: 0018:ffff88804c2bf6b8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814dfcf1 RDI: ffffed1009857ec9
RBP: ffff88804320f700 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88804320f790
R13: ffff88804320fd58 R14: 00000000fffffff4 R15: ffff88804320f704
add_disk include/linux/genhd.h:409 [inline]
md_alloc+0x981/0x1090 drivers/md/md.c:5408
md_probe+0x35/0x40 drivers/md/md.c:5436
kobj_lookup+0x268/0x460 drivers/base/map.c:124
get_gendisk+0x48/0x380 block/genhd.c:856
bdev_get_gendisk fs/block_dev.c:1080 [inline]
__blkdev_get+0x461/0x1480 fs/block_dev.c:1473
blkdev_get+0xb0/0x940 fs/block_dev.c:1627
blkdev_get_by_dev+0x3b/0x70 fs/block_dev.c:1752
swsusp_check+0x4d/0x280 kernel/power/swap.c:1516
software_resume+0x1c6/0x390 kernel/power/hibernate.c:870
resume_store+0xf9/0x130 kernel/power/hibernate.c:1072
kobj_attr_store+0x50/0x80 lib/kobject.c:811
sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:140
kernfs_fop_write+0x2b0/0x470 fs/kernfs/file.c:316
__vfs_write+0xf7/0x770 fs/read_write.c:485
vfs_write+0x1f3/0x540 fs/read_write.c:549
ksys_write+0x12b/0x2a0 fs/read_write.c:599
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f12ec07f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9
RDX: 0000000000000012 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f12ec07f1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffe6448465f R14: 00007f12ec07f300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Nov 20, 2021, 6:35:12 PM11/20/21
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages