general protection fault in mtd_test_super

Status: upstream: reported C repro on 2026/09/28 06:34
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4ee1e7a44a80265aec1b@syzkaller.appspotmail.com
First crash: 21d, last: 1d07h
▶ ▼ Bug presence (2)
Date Name Commit Repro Result
2026/09/30 linux-5.15.y (ToT) 0248c33e835e C [report] general protection fault in mtd_test_super
2026/09/30 upstream (ToT) 551c722f4080 C Didn't crash
▶ ▼ Last patch testing requests (3)
Created Duration User Patch Repo Result
2026/10/18 11:36 15m retest repro linux-5.15.y report job log log
2026/10/18 11:36 16m retest repro linux-5.15.y report job log log
2026/10/18 11:36 13m retest repro linux-5.15.y report job log log

Sample crash report:
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: 4389 Comm: syz.3.24 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:ffffc900042afbd0 EFLAGS: 00010202

RAX: 0000000000000008 RBX: ffff8880221a8000 RCX: ffff888029431dc0
RDX: 0000000000000000 RSI: ffff88805975ac00 RDI: 0000000000000040
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000855f70 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff1100f034c2e
FS:  0000555575ba3500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc33f3166c8 CR3: 000000005aef7000 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:0x7f5a58aba159
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:00007ffd821dad28 EFLAGS: 00000246
 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5a58d41fa0 RCX: 00007f5a58aba159
RDX: 00002000000002c0 RSI: 0000200000000200 RDI: 00002000000000c0
RBP: 00007f5a58b5106b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000023000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5a58d41fac R14: 00007f5a58d41fa0 R15: 00007f5a58d41fa0
 </TASK>
Modules linked in:

---[ end trace 3e2e0307e504924b ]---
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:ffffc900042afbd0 EFLAGS: 00010202

RAX: 0000000000000008 RBX: ffff8880221a8000 RCX: ffff888029431dc0
RDX: 0000000000000000 RSI: ffff88805975ac00 RDI: 0000000000000040
RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000855f70 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff1100f034c2e
FS:  0000555575ba3500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc33f3166c8 CR3: 000000005aef7000 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

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/28 19:41 linux-5.15.y 0248c33e835e a3c7249d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mtd_test_super
2026/09/28 16:11 linux-5.15.y 0248c33e835e a3c7249d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mtd_test_super
2026/09/28 13:12 linux-5.15.y 0248c33e835e a3c7249d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mtd_test_super
2026/09/28 10:01 linux-5.15.y 0248c33e835e a3c7249d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mtd_test_super
2026/09/28 06:34 linux-5.15.y 0248c33e835e a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mtd_test_super
* Struck through repros no longer work on HEAD.