Hello,
syzbot found the following issue on:
HEAD commit: 0248c33e835e Linux 5.15.221
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=173f325e580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=21845b39f8fc6be8
dashboard link:
https://syzkaller.appspot.com/bug?extid=4ee1e7a44a80265aec1b
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/cdcbd8738a16/disk-0248c33e.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/864175e96c3d/vmlinux-0248c33e.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/cb031d3f4011/bzImage-0248c33e.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+4ee1e7...@syzkaller.appspotmail.com
general protection fault, probably for non-canonical address 0xdffffc0000000008: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
CPU: 0 PID: 12927 Comm: syz.6.1866 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:mtd_test_super+0xa4/0x1d0 drivers/mtd/mtdsuper.c:36
Code: 41 5c 41 5e 41 5f 5d c3 e8 49 8c 4d fc 43 80 3c 27 00 74 08 4c 89 f7 e8 fa bf 92 fc 4d 8b 36 49 8d 7e 40 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 cd 00 00 00 41 8b 6e 40 49 83 c6 38 4c
RSP: 0018:ffffc900035cfbd0 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888022aa0000 RCX: ffff88802b8e9dc0
RDX: 0000000000000000 RSI: ffff88806062b800 RDI: 0000000000000040
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520006b9f70 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff1100d0f742e
FS: 00007f28279476c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2827925ff8 CR3: 0000000064a13000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
sget_fc+0x1f0/0x6f0 fs/super.c:548
mtd_get_sb+0x5a/0x2b0 drivers/mtd/mtdsuper.c:65
mtd_get_sb_by_nr drivers/mtd/mtdsuper.c:110 [inline]
get_tree_mtd+0x4e2/0x760 drivers/mtd/mtdsuper.c:180
romfs_get_tree+0x19/0x50 fs/romfs/super.c:560
vfs_get_tree+0x88/0x270 fs/super.c:1541
do_new_mount+0x247/0xa40 fs/namespace.c:3034
do_mount fs/namespace.c:3377 [inline]
__do_sys_mount fs/namespace.c:3585 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562
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:0x7f2829710159
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:00007f2827947028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2829998090 RCX: 00007f2829710159
RDX: 00002000000002c0 RSI: 0000200000000200 RDI: 00002000000000c0
RBP: 00007f28297a706b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000023000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2829998128 R14: 00007f2829998090 R15: 00007ffdc4d14fc8
</TASK>
Modules linked in:
---[ end trace 753072bfcda3fee6 ]---
RIP: 0010:mtd_test_super+0xa4/0x1d0 drivers/mtd/mtdsuper.c:36
Code: 41 5c 41 5e 41 5f 5d c3 e8 49 8c 4d fc 43 80 3c 27 00 74 08 4c 89 f7 e8 fa bf 92 fc 4d 8b 36 49 8d 7e 40 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 cd 00 00 00 41 8b 6e 40 49 83 c6 38 4c
RSP: 0018:ffffc900035cfbd0 EFLAGS: 00010202
RAX: 0000000000000008 RBX: ffff888022aa0000 RCX: ffff88802b8e9dc0
RDX: 0000000000000000 RSI: ffff88806062b800 RDI: 0000000000000040
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520006b9f70 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff1100d0f742e
FS: 00007f28279476c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2827925ff8 CR3: 0000000064a13000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 41 5c pop %r12
2: 41 5e pop %r14
4: 41 5f pop %r15
6: 5d pop %rbp
7: c3 ret
8: e8 49 8c 4d fc call 0xfc4d8c56
d: 43 80 3c 27 00 cmpb $0x0,(%r15,%r12,1)
12: 74 08 je 0x1c
14: 4c 89 f7 mov %r14,%rdi
17: e8 fa bf 92 fc call 0xfc92c016
1c: 4d 8b 36 mov (%r14),%r14
1f: 49 8d 7e 40 lea 0x40(%r14),%rdi
23: 48 89 f8 mov %rdi,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 cd 00 00 00 jne 0x104
37: 41 8b 6e 40 mov 0x40(%r14),%ebp
3b: 49 83 c6 38 add $0x38,%r14
3f: 4c rex.WR
---
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
syzk...@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 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