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: 137d, last: 1d21h
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 159d 279d 28/29 fixed on 2025/06/10 16:19
Last patch testing requests (3)
Created Duration User Patch Repo Result
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 (13):
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
2025/10/22 11:02 upstream 552c50713f27 252fbbad .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/10/15 19:19 upstream 1f4a222b0e33 82df6b00 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/08/28 17:20 upstream 07d9df80082b bee60a83 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/08/24 00:55 upstream 8d245acc1e88 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/08/19 07:22 upstream be48bcf004f9 6e8d317a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/08/15 09:19 upstream 24ea63ea3877 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/08/08 04:32 upstream 6e64f4580381 6a893178 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/07/17 00:06 upstream 155a3c003e55 44f8051e .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/07/15 11:18 upstream 155a3c003e55 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/07/08 22:03 upstream d006330be3f7 4d9fdfa4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
2025/06/22 16:28 upstream 739a6c93cc75 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto WARNING in release_mtd_partition
* Struck through repros no longer work on HEAD.