syzbot


WARNING in md_alloc

Status: auto-closed as invalid on 2021/11/12 15:56
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+2390fceae217ab729cf7@syzkaller.appspotmail.com
First crash: 1020d, last: 1020d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in md_alloc 0 (1) 2021/07/19 15:58
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in md_alloc 2 1012d 1013d 0/1 auto-closed as invalid on 2021/11/20 23:35

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2468 at block/genhd.c:523 __device_add_disk+0xb76/0xd10 block/genhd.c:523
Modules linked in:
CPU: 0 PID: 2468 Comm: syz-executor.5 Tainted: G        W         5.14.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__device_add_disk+0xb76/0xd10 block/genhd.c:523
Code: fb ff ff 4c 89 ef 89 44 24 28 e8 75 c8 f6 fd 8b 44 24 28 e9 7a fb ff ff 4c 89 ef e8 f4 c7 f6 fd e9 e0 fb ff ff e8 4a a8 b0 fd <0f> 0b e9 97 fb ff ff 4c 89 ff e8 0b c8 f6 fd e9 b1 f6 ff ff 48 8b
RSP: 0018:ffffc90018587a30 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff8880863cac00 RCX: ffffc90014873000
RDX: 0000000000040000 RSI: ffffffff83c4df76 RDI: 0000000000000003
RBP: ffff888027440400 R08: 0000000000000000 R09: ffffffff8bac1273
R10: ffffffff83c4db08 R11: 0000000000000000 R12: 0000000000000001
R13: ffff8880863cb09c R14: ffff8880274404a0 R15: 0000000000000000
FS:  00007f66b7003700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000544038 CR3: 000000003f471000 CR4: 00000000001526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 add_disk include/linux/genhd.h:217 [inline]
 md_alloc+0xa32/0x1190 drivers/md/md.c:5707
 md_probe+0x69/0x70 drivers/md/md.c:5738
 blk_request_module+0x111/0x1d0 block/genhd.c:660
 blkdev_get_no_open+0x1d5/0x250 fs/block_dev.c:1332
 blkdev_get_by_dev.part.0+0x25/0xdd0 fs/block_dev.c:1395
 blkdev_get_by_dev+0x6b/0x80 fs/block_dev.c:1448
 swsusp_check+0x4d/0x270 kernel/power/swap.c:1525
 software_resume.part.0+0x102/0x1f0 kernel/power/hibernate.c:977
 software_resume kernel/power/hibernate.c:86 [inline]
 resume_store+0x161/0x190 kernel/power/hibernate.c:1179
 kobj_attr_store+0x50/0x80 lib/kobject.c:856
 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:139
 kernfs_fop_write_iter+0x342/0x500 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:2114 [inline]
 new_sync_write+0x426/0x650 fs/read_write.c:518
 vfs_write+0x75a/0xa40 fs/read_write.c:605
 ksys_write+0x12d/0x250 fs/read_write.c:658
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
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:00007f66b7003188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000012 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007f66b70031d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 0000000000a9fb1f R14: 00007f66b7003300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/15 15:55 upstream 8096acd7442e b9a2f64e .config console log report info ci-upstream-kasan-gce WARNING in md_alloc
* Struck through repros no longer work on HEAD.