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: 239d, last: 2h04m
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 260d 381d 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 (102):
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/01/27 02:49 upstream fcb70a56f4d8 efb3e894 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/01/21 18:16 upstream 6c790212c588 d1b870e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/01/19 21:41 upstream 24d479d26b25 d1b870e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto 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/01/04 11:48 upstream aacb0a6d604a d1b870e1 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2026/02/16 19:31 upstream 0f2acd3148e0 84656fa6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/16 03:10 upstream 26a4cfaff82a 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/16 03:08 upstream 26a4cfaff82a 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/16 01:27 upstream 26a4cfaff82a 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/14 23:27 upstream 3e48a11675c5 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/13 19:03 upstream cee73b1e840c 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/11 08:22 upstream dc855b77719f 441e25b7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/10 02:52 upstream 8a5203c630c6 4ab09a02 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/08 18:59 upstream e98f34af6116 4c131dc4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/07 12:40 upstream 2687c848e578 f20fc9f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/07 06:45 upstream 2687c848e578 f20fc9f9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/04 22:48 upstream 5fd0a1df5d05 ea10c935 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/04 15:49 upstream 5fd0a1df5d05 ea10c935 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/02/04 00:40 upstream de0674d9bc69 42b01fab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/30 03:41 upstream 4d310797262f bfa73b7b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/29 07:51 upstream 8dfce8991b95 0adc945e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/29 03:28 upstream 8dfce8991b95 0adc945e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/26 11:29 upstream 63804fed149a 55756628 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/22 17:44 upstream a66191c590b3 a16aed1d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/22 02:22 upstream cf38b2340c0e d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/19 09:29 upstream 24d479d26b25 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/18 03:38 upstream d12453c7e281 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/16 02:18 upstream 603c05a1639f d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/14 09:45 upstream c537e12daeec d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/12 17:33 upstream 0f61b1860cc3 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/06 22:14 upstream f0b9d8eb98df d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/06 17:49 upstream 7f98ab9da046 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/04 01:18 upstream aacb0a6d604a d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in release_mtd_partition
2026/01/04 00:56 upstream aacb0a6d604a d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in release_mtd_partition
2026/02/15 15:42 upstream ca4ee40bf13d 1e62d198 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/12 23:28 upstream 37a93dd5c49b 504cb1bf .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/10 21:31 upstream 72c395024dac a076df6f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/09 17:06 upstream 05f7e89ab973 df949cd9 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/06 21:15 upstream b7ff7151e653 97745f52 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/04 09:30 upstream de0674d9bc69 42b01fab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/02/04 06:07 upstream de0674d9bc69 42b01fab .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/31 10:27 upstream 283073725700 c75a2f6e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/30 16:23 upstream 4d310797262f ea6dba22 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/24 05:23 upstream 3a622041d78b 4f25b9b4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/16 22:27 upstream 983d014aafb1 d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/09 01:47 upstream 79b95d74470d d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in release_mtd_partition
2026/01/04 07:21 upstream aacb0a6d604a d1b870e1 .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.