From: syzbot <syzbot+c9d8bc9f8ccc03799e1f@syzkaller.appspotmail.com>
To: joern@lazybastard.org, linux-kernel@vger.kernel.org,
linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com,
richard@nod.at, syzkaller-bugs@googlegroups.com,
vigneshr@ti.com
Subject: [syzbot] [mtd?] memory leak in phram_setup
Date: Sat, 17 Oct 2026 13:55:34 -0700 [thread overview]
Message-ID: <6ad3e0c6.a6d1a155.34a93f.004a.GAE@google.com> (raw)
Hello,
syzbot found the following issue on:
HEAD commit: 24a19b953e2a Linux 7.3-rc7
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=15a128a5580000
kernel config: https://syzkaller.appspot.com/x/.config?x=eeccc827207f48ec
dashboard link: https://syzkaller.appspot.com/bug?extid=c9d8bc9f8ccc03799e1f
compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=110d73d1580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1025968e580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0f1e259089c6/disk-24a19b95.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6b65050296a3/vmlinux-24a19b95.xz
kernel image: https://storage.googleapis.com/syzbot-assets/cb73ff77ea56/bzImage-24a19b95.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+c9d8bc9f8ccc03799e1f@syzkaller.appspotmail.com
BUG: memory leak
unreferenced object 0xffff88810afde7f8 (size 8):
comm "syz.0.17", pid 5903, jiffies 4294943995
hex dump (first 8 bytes):
70 30 00 00 00 00 00 00 p0......
backtrace (crc 43334c2):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4696 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_node_track_caller_noprof+0x40d/0x560 mm/slub.c:5545
__kmemdup_nul mm/util.c:64 [inline]
kstrdup+0x3c/0x80 mm/util.c:84
parse_name drivers/mtd/devices/phram.c:224 [inline]
phram_setup+0x1c2/0x360 drivers/mtd/devices/phram.c:286
phram_param_call+0xe4/0x110 drivers/mtd/devices/phram.c:349
param_attr_store+0x99/0x130 kernel/params.c:591
module_attr_store+0x3d/0x60 kernel/params.c:906
sysfs_kf_write+0x94/0xb0 fs/sysfs/file.c:145
kernfs_fop_write_iter+0x1f1/0x2d0 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x3ae/0x720 fs/read_write.c:687
ksys_write+0xa5/0x170 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0xe9/0x530 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
BUG: memory leak
unreferenced object 0xffff88810afdebe8 (size 8):
comm "syz.0.18", pid 5905, jiffies 4294943995
hex dump (first 8 bytes):
70 30 00 00 00 00 00 00 p0......
backtrace (crc 43334c2):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4696 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_node_track_caller_noprof+0x40d/0x560 mm/slub.c:5545
__kmemdup_nul mm/util.c:64 [inline]
kstrdup+0x3c/0x80 mm/util.c:84
parse_name drivers/mtd/devices/phram.c:224 [inline]
phram_setup+0x1c2/0x360 drivers/mtd/devices/phram.c:286
phram_param_call+0xe4/0x110 drivers/mtd/devices/phram.c:349
param_attr_store+0x99/0x130 kernel/params.c:591
module_attr_store+0x3d/0x60 kernel/params.c:906
sysfs_kf_write+0x94/0xb0 fs/sysfs/file.c:145
kernfs_fop_write_iter+0x1f1/0x2d0 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x3ae/0x720 fs/read_write.c:687
ksys_write+0xa5/0x170 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0xe9/0x530 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
BUG: memory leak
unreferenced object 0xffff88810afde5b8 (size 8):
comm "syz.0.19", pid 5908, jiffies 4294943996
hex dump (first 8 bytes):
70 30 00 00 00 00 00 00 p0......
backtrace (crc 43334c2):
kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline]
slab_post_alloc_hook mm/slub.c:4696 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
__do_kmalloc_node mm/slub.c:5413 [inline]
__kmalloc_node_track_caller_noprof+0x40d/0x560 mm/slub.c:5545
__kmemdup_nul mm/util.c:64 [inline]
kstrdup+0x3c/0x80 mm/util.c:84
parse_name drivers/mtd/devices/phram.c:224 [inline]
phram_setup+0x1c2/0x360 drivers/mtd/devices/phram.c:286
phram_param_call+0xe4/0x110 drivers/mtd/devices/phram.c:349
param_attr_store+0x99/0x130 kernel/params.c:591
module_attr_store+0x3d/0x60 kernel/params.c:906
sysfs_kf_write+0x94/0xb0 fs/sysfs/file.c:145
kernfs_fop_write_iter+0x1f1/0x2d0 fs/kernfs/file.c:345
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x3ae/0x720 fs/read_write.c:687
ksys_write+0xa5/0x170 fs/read_write.c:739
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0xe9/0x530 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF
---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
next reply other threads:[~2026-10-17 20:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-17 20:55 syzbot [this message]
2026-10-17 23:32 ` Forwarded: [PATCH] mtd: phram: fix memory leak in phram_setup() syzbot
[not found] <20261017233219.7632-1-kartikey406@gmail.com>
2026-10-18 0:30 ` [syzbot] [mtd?] memory leak in phram_setup syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6ad3e0c6.a6d1a155.34a93f.004a.GAE@google.com \
--to=syzbot+c9d8bc9f8ccc03799e1f@syzkaller.appspotmail.com \
--cc=joern@lazybastard.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=syzkaller-bugs@googlegroups.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®