syzbot


WARNING in release_mtd_partition (2)

Status: upstream: reported C repro on 2025/06/24 18:50
Subsystems: mtd
[Documentation on labels]
Reported-by: syzbot+e9c76b56dc05023b8117@syzkaller.appspotmail.com
First crash: 306d, last: 10h22m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mtd?] WARNING in release_mtd_partition (2) 0 (1) 2025/06/24 18:50
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in release_mtd_partition mtd -1 C 8 327d 448d 28/29 fixed on 2025/06/10 16:19
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/12/06 15:21 15m retest repro upstream report log
2025/11/05 11:34 15m retest repro upstream report log
2025/09/14 18:03 15m retest repro upstream report log
2025/07/06 17:46 14m retest repro upstream report log

Sample crash report:
RDX: 0000000000000000 RSI: 0000000000001269 RDI: 0000000000000001
RBP: 00007ffc3ddc41e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ff2179e5fa0 R14: 00007ff2179e5fa0 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6015 at drivers/mtd/mtdpart.c:37 release_mtd_partition+0x71/0x90 drivers/mtd/mtdpart.c:37
Modules linked in:
CPU: 0 UID: 0 PID: 6015 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:release_mtd_partition+0x71/0x90 drivers/mtd/mtdpart.c:37
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 1e 48 8b 7b 38 e8 8f 3c d7 fb 48 89 df 5b 5d e9 85 3c d7 fb e8 80 1b 7b fb 90 <0f> 0b 90 eb c2 e8 35 ad e2 fb eb db 48 89 ef e8 2b ad e2 fb eb a5
RSP: 0018:ffffc90003547830 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88803230c000 RCX: ffffffff8b5e1ae0
RDX: ffff888030e65ac0 RSI: ffffffff86418ce0 RDI: ffff88803230c000
RBP: ffff88803230c650 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff888027c31f20 R15: 0000000000000000
FS:  000055558c416500(0000) GS:ffff8881249e1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000000000c0 CR3: 0000000074d26000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 mtd_release+0xa0/0xd0 drivers/mtd/mtdcore.c:101
 device_release+0xa4/0x240 drivers/base/core.c:2565
 kobject_cleanup lib/kobject.c:689 [inline]
 kobject_release lib/kobject.c:720 [inline]
 kref_put include/linux/kref.h:65 [inline]
 kobject_put+0x1e7/0x5a0 lib/kobject.c:737
 put_device+0x1f/0x30 drivers/base/core.c:3797
 add_mtd_device+0xc47/0x1850 drivers/mtd/mtdcore.c:802
 mtd_add_partition+0x30c/0x670 drivers/mtd/mtdpart.c:279
 mtdchar_blkpg_ioctl+0x20b/0x250 drivers/mtd/mtdchar.c:562
 mtdchar_ioctl+0xbc4/0x2090 drivers/mtd/mtdchar.c:1216
 mtdchar_unlocked_ioctl+0xb0/0xf0 drivers/mtd/mtdchar.c:1239
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl fs/ioctl.c:583 [inline]
 __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff21778eec9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc3ddc4188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff2179e5fa0 RCX: 00007ff21778eec9
RDX: 0000000000000000 RSI: 0000000000001269 RDI: 0000000000000001
RBP: 00007ffc3ddc41e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ff2179e5fa0 R14: 00007ff2179e5fa0 R15: 0000000000000003
 </TASK>

Crashes (195):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/15 20:43 upstream 1f4a222b0e33 82df6b00 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/06/22 17:45 upstream 739a6c93cc75 d6cdfb8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/19 20:10 upstream faeab166167f 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/19 14:39 upstream faeab166167f 303e2802 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/17 21:13 upstream 43cfbdda5af6 24ecfc1e .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/09 15:14 upstream 7f87a5ea75f0 38c8e246 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/07 03:23 upstream bfe62a454542 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/04/04 10:28 upstream 631919fb12fe 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in release_mtd_partition
2026/04/02 00:50 upstream 9147566d8016 0cb124d5 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/03/28 13:36 upstream 7df48e363130 ef441708 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/03/20 16:05 upstream 0e4f8f1a3d08 2f245add .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in release_mtd_partition
2026/01/18 19:18 upstream e84d960149e7 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in release_mtd_partition
2026/04/24 16:16 upstream dd6c438c3e64 629ff21a .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/24 07:59 upstream dd6c438c3e64 9cfb3ca7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in release_mtd_partition
2026/04/23 03:26 upstream 2a4c0c11c019 b10da5ec .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/20 23:08 upstream c1f49dea2b8f e65da4ee .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in release_mtd_partition
2026/04/20 14:25 upstream c1f49dea2b8f e65da4ee .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/20 00:14 upstream bea8d77e45a8 303e2802 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/18 23:01 upstream eb5249b12507 303e2802 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/17 17:37 upstream 43cfbdda5af6 24ecfc1e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/17 01:18 upstream 3cd8b194bf34 de0a551d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/16 19:26 upstream 1d51b370a0f8 4743f87d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in release_mtd_partition
2026/04/16 03:17 upstream 40286d6379aa df15c5f3 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/13 18:28 upstream 26ff969926a0 9530ccf9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/12 04:06 upstream e753c16cb3dd 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/12 02:51 upstream e753c16cb3dd 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/10 22:29 upstream 7c6c4ed80b87 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/09 19:06 upstream a55f7f5f29b3 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/07 01:48 upstream bfe62a454542 4440e7c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/06 23:22 upstream bfe62a454542 4440e7c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/06 13:36 upstream 591cd656a1bf 4440e7c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/04 08:39 upstream 631919fb12fe 4440e7c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/01 03:15 upstream d0c3bcd5b897 ef441708 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/28 06:18 upstream 7df48e363130 ef441708 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/27 13:03 upstream 46b513250491 ef441708 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/27 11:43 upstream 46b513250491 ef441708 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/24 22:05 upstream e3c33bc767b5 74e70d19 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/24 12:35 upstream c369299895a5 74e70d19 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/23 22:54 upstream c369299895a5 5e3db351 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/23 12:33 upstream c369299895a5 5e3db351 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/23 06:57 upstream 8d8bd2a5aa98 5b92003d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/21 05:04 upstream 42bddab0563f 5b92003d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in release_mtd_partition
2026/03/20 14:08 upstream 0e4f8f1a3d08 85bf2a64 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/19 21:41 upstream e9825d1c7957 bd6dcb30 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/03/13 17:14 upstream 0257f64bdac7 351cb5cf .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/04/14 07:12 upstream 26ff969926a0 1a086e7c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/04/12 18:14 upstream f5459048c38a 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/04/10 01:37 upstream a55f7f5f29b3 38c8e246 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/04/05 01:14 upstream 7ca6d1cfec80 4440e7c2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/03/28 05:03 upstream 7df48e363130 ef441708 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/03/21 00:53 upstream 0e4f8f1a3d08 85bf2a64 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/03/15 02:26 upstream 69237f8c1f69 ee8d34d6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2025/12/22 00:38 linux-next cc3aa43b44bd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in release_mtd_partition
* Struck through repros no longer work on HEAD.