WARNING in md_alloc

Status: upstream: reported C repro on 2024/07/04 22:03
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+8ecba5ad1880c82079ac@syzkaller.appspotmail.com
First crash: 882d, last: 9h02m
▶ ▼ Bug presence (2)
Date Name Commit Repro Result
2024/07/05 linux-5.15.y (ToT) 4878aadf2d15 C [report] WARNING in md_alloc
2024/07/05 upstream (ToT) 661e504db04c C Didn't crash
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in md_alloc -1 2 1959d 1960d 0/1 auto-closed as invalid on 2021/11/20 23:35
upstream WARNING in md_alloc block -1 1 1967d 1963d 0/30 auto-closed as invalid on 2021/11/12 15:56
▶ ▼ Last patch testing requests (10)
Created Duration User Patch Repo Result
2026/08/31 23:19 14m retest repro linux-5.15.y report job log log
2026/08/31 23:19 20m retest repro linux-5.15.y report job log log
2026/07/22 01:44 21m retest repro linux-5.15.y report log
2026/07/22 01:44 20m retest repro linux-5.15.y report log
2026/07/07 09:20 17m retest repro linux-5.15.y report log
2026/07/07 09:20 19m retest repro linux-5.15.y report log
2026/07/07 09:20 53m retest repro linux-5.15.y report log
2026/07/07 09:20 15m retest repro linux-5.15.y report log
2026/05/24 09:13 16m retest repro linux-5.15.y report log
2026/05/07 10:52 22m retest repro linux-5.15.y report log
▶ ▼ Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/07/12 00:34 8h34m fix candidate upstream OK (1) job log
marked invalid by nogikh@google.com

Sample crash report:
R13: 00007f8652528038 R14: 00007f8652527fa0 R15: 00007fffc5587e68
 </TASK>
kobject_add_internal failed for md3 with -EEXIST, don't try to register things with the same name in the same directory.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4661 at block/genhd.c:554 device_add_disk+0x8d6/0xde0 block/genhd.c:552
Modules linked in:
CPU: 1 PID: 4661 Comm: syz.3.105 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:device_add_disk+0x8d6/0xde0 block/genhd.c:554
Code: 04 48 89 d8 48 c1 e8 03 42 0f b6 04 30 84 c0 0f 85 8f 03 00 00 8b 33 48 c7 c7 20 12 71 8d e8 e1 6b 37 00 eb 05 e8 ca b8 a4 fd <0f> 0b 41 bd 01 00 00 00 44 89 e8 48 83 c4 50 5b 41 5c 41 5d 41 5e
RSP: 0018:ffffc90003b77a00 EFLAGS: 00010293
RAX: ffffffff83d49ea6 RBX: ffff88805f813800 RCX: ffff88807b5c9dc0
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000103
RBP: 0000000000000009 R08: ffff888059d7a3bb R09: 1ffff1100b3af477
R10: dffffc0000000000 R11: ffffed100b3af478 R12: 1ffff1100b3af477
R13: 1ffff1100bf02714 R14: dffffc0000000000 R15: ffff888059d7a380
FS:  00007f86518f06c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb865475360 CR3: 0000000025d11000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 add_disk include/linux/genhd.h:200 [inline]
 md_alloc+0x80e/0xc10 drivers/md/md.c:5801
 add_named_array+0x1bd/0x290 drivers/md/md.c:-1
 param_attr_store+0x20a/0x300 kernel/params.c:594
 module_attr_store+0x5b/0x80 kernel/params.c:916
 kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
 call_write_iter include/linux/fs.h:2181 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x748/0xd70 fs/read_write.c:594
 ksys_write+0x153/0x260 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f865229bb59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f86518f0028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8652527fa0 RCX: 00007f865229bb59
RDX: 0000000000000003 RSI: 0000200000000080 RDI: 0000000000000003
RBP: 00007f865232c18b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8652528038 R14: 00007f8652527fa0 R15: 00007fffc5587e68
 </TASK>

Crashes (205):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/27 22:23 linux-5.15.y 4f2df9a01754 bff1a522 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/21 06:12 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/21 06:09 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/19 19:37 linux-5.15.y 29c6cdaac04a f138241c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/17 07:00 linux-5.15.y 29c6cdaac04a a3e64cfc .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/14 18:20 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/14 16:30 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/06 09:12 linux-5.15.y 700e62ea909a 5cecaf1f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/10/28 08:53 linux-5.15.y 792fbe1537d8 96923c60 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/09/17 08:39 linux-5.15.y 0248c33e835e 95928915 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/09/01 22:32 linux-5.15.y 28c35638ec51 587f6b29 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/08/13 06:52 linux-5.15.y aabd761612db 359b2492 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/06/09 02:20 linux-5.15.y dc027a595035 656e94c6 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2025/06/17 16:47 linux-5.15.y 1c700860e8bc cfebc887 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2025/06/17 15:56 linux-5.15.y 1c700860e8bc cfebc887 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2025/06/17 15:02 linux-5.15.y 1c700860e8bc cfebc887 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2024/08/01 08:36 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2024/07/04 22:02 linux-5.15.y 4878aadf2d15 3f2748a3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2025/02/19 08:16 linux-5.15.y c16c81c81336 9a14138f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in md_alloc
2026/09/11 08:59 linux-5.15.y 0996e0926f6b 1fe56c0a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/04 04:42 linux-5.15.y 9bdc23a21e3d 84897ebe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/04 03:03 linux-5.15.y 9bdc23a21e3d 84897ebe .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 23:53 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 23:53 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 21:58 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 18:21 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 15:51 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 08:39 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/02 06:04 linux-5.15.y 9bdc23a21e3d 35891725 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/12/01 18:25 linux-5.15.y 9bdc23a21e3d a6d1ba3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/29 17:23 linux-5.15.y 4f2df9a01754 e1f06033 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/29 13:52 linux-5.15.y 4f2df9a01754 e1f06033 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/29 00:09 linux-5.15.y 4f2df9a01754 e1f06033 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/28 20:20 linux-5.15.y 4f2df9a01754 e1f06033 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/28 17:11 linux-5.15.y 4f2df9a01754 e1f06033 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/27 19:06 linux-5.15.y 4f2df9a01754 bff1a522 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/27 05:17 linux-5.15.y 4f2df9a01754 f1f6b8bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/26 09:31 linux-5.15.y 4f2df9a01754 9a575fe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/26 08:26 linux-5.15.y 4f2df9a01754 9a575fe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/25 20:33 linux-5.15.y 4f2df9a01754 01ff072a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/24 23:50 linux-5.15.y 4f2df9a01754 50451a16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/24 23:50 linux-5.15.y 4f2df9a01754 50451a16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/24 22:41 linux-5.15.y 4f2df9a01754 50451a16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/24 20:29 linux-5.15.y 4f2df9a01754 50451a16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/24 07:41 linux-5.15.y 4f2df9a01754 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 21:56 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 16:59 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 14:43 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 11:57 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 06:28 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 06:26 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 01:36 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/22 00:12 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/21 12:53 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/21 01:20 linux-5.15.y 29c6cdaac04a b2c69459 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/20 03:01 linux-5.15.y 29c6cdaac04a 229865fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/18 11:52 linux-5.15.y 29c6cdaac04a eb4895d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/18 00:56 linux-5.15.y 29c6cdaac04a 122f94d5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/17 15:44 linux-5.15.y 29c6cdaac04a 43af6cac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/14 07:29 linux-5.15.y 29c6cdaac04a 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/13 22:52 linux-5.15.y 29c6cdaac04a be5d1971 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/13 20:18 linux-5.15.y 29c6cdaac04a be5d1971 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/12 15:30 linux-5.15.y 29c6cdaac04a 8d68b303 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
2026/11/12 10:50 linux-5.15.y 29c6cdaac04a 8d68b303 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in md_alloc
* Struck through repros no longer work on HEAD.