* [syzbot] [ext4?] general protection fault in utf8nlookup (2)
@ 2026-11-30 2:39 syzbot
0 siblings, 0 replies; only message in thread
From: syzbot @ 2026-11-30 2:39 UTC (permalink / raw)
To: djwong, jack, krisman, linux-ext4, linux-fsdevel, linux-kernel,
syzkaller-bugs, tytso
Hello,
syzbot found the following issue on:
HEAD commit: 4f069ab1ec24 Merge tag 'scsi-fixes' of git://git.kernel.or..
git tree: upstream
console+strace: https://syzkaller.appspot.com/x/log.txt?x=136c28e9580000
kernel config: https://syzkaller.appspot.com/x/.config?x=fc1834b4a2e3ba54
dashboard link: https://syzkaller.appspot.com/bug?extid=68178aa1e39c8606392e
compiler: Debian clang version 22.1.8 (1~deb13u5), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1626c3bd580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14ee707e580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/66ff8e791620/disk-4f069ab1.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/35a2aede79e4/vmlinux-4f069ab1.xz
kernel image: https://storage.googleapis.com/syzbot-assets/408f236d215b/bzImage-4f069ab1.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/2f066f5ff899/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=163a0611580000)
The issue was bisected by AI to:
commit 04a91570ac67760301e5458d65eaf1342ecca314
Author: Theodore Ts'o <tytso@mit.edu>
Date: Wed Sep 17 03:22:49 2025 +0000
ext4: implemet new ioctls to set and get superblock parameters
reasoning: https://syzkaller.appspot.com/ai_job?id=6527b76a-ea78-44f2-b547-71ab4018729e
AI-generated root cause summary:
ext4_ioctl_set_tune_sb() (EXT4_IOC_SET_TUNE_SB_PARAM) permits enabling
EXT4_FEATURE_INCOMPAT_CASEFOLD on an already-mounted ext4 filesystem via
ext4_sb_setparams(), setting es->s_feature_incompat, es->s_encoding, and
es->s_encoding_flags without initializing sb->s_encoding (which is normally only
loaded at mount time by ext4_encoding_init()). Because
ext4_has_feature_casefold(sb) then returns true while sb->s_encoding remains
NULL, EXT4_CASEFOLD_FL (S_CASEFOLD) can be enabled on a directory via
ext4_ioctl_setflags() (or accepted for an on-disk inode by __ext4_iget()).
Subsequent lookups on that directory enter ext4_fname_setup_ci_filename(), which
passes the NULL dir->i_sb->s_encoding to utf8_casefold(), leading to a
NULL-pointer dereference of um->tables (offset 0x18) in utf8nlookup().
full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=68178aa1e39c8606392e
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+68178aa1e39c8606392e@syzkaller.appspotmail.com
The bisection result may be wrong.
If you agree with it, please also add:
Fixes: 04a91570ac67 ("ext4: implemet new ioctls to set and get superblock parameters")
EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 5619 Comm: syz-executor296 Not tainted syzkaller #0 PREEMPT_{RT,(full)}
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:utf8nlookup+0x39/0xa60 fs/unicode/utf8-norm.c:306
Code: 89 44 24 10 49 89 ce 48 89 14 24 89 f5 49 89 fd 49 bf 00 00 00 00 00 fc ff df e8 32 07 c9 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 98 07 3d ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc90004cbf568 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88801cbb8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc90004cbf6f8 R11: fffff52000997ee2 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff8880400838d0 R15: dffffc0000000000
FS: 000055555c16c4c0(0000) GS:ffff8881246fa000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000387ec000 CR4: 00000000003526f0
Call Trace:
<TASK>
utf8byte+0x342/0x13b0 fs/unicode/utf8-norm.c:-1
utf8_casefold+0x145/0x260 fs/unicode/utf8-core.c:110
ext4_fname_setup_ci_filename+0x23c/0x460 fs/ext4/namei.c:1226
ext4_fname_prepare_lookup+0x32e/0x4f0 fs/ext4/crypto.c:54
ext4_lookup_entry fs/ext4/namei.c:1547 [inline]
ext4_lookup+0x129/0x710 fs/ext4/namei.c:1619
__lookup_slow+0x1fb/0x2f0 fs/namei.c:1925
lookup_slow+0x59/0x80 fs/namei.c:1942
walk_component fs/namei.c:2288 [inline]
lookup_last fs/namei.c:2795 [inline]
path_lookupat+0x3f5/0x8c0 fs/namei.c:2819
filename_lookup+0x265/0x5d0 fs/namei.c:2848
user_path_at+0x40/0x160 fs/namei.c:3647
do_mount fs/namespace.c:4347 [inline]
__do_sys_mount fs/namespace.c:4563 [inline]
__se_sys_mount+0x2dc/0x420 fs/namespace.c:4540
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc021bf6249
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff02f621b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc021bf6249
RDX: 0000000000000000 RSI: 0000200000004680 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000001202010 R11: 0000000000000246 R12: 00007fff02f62200
R13: 0000000000000002 R14: 431bde82d7b634db R15: 00007fc021c5504b
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:utf8nlookup+0x39/0xa60 fs/unicode/utf8-norm.c:306
Code: 89 44 24 10 49 89 ce 48 89 14 24 89 f5 49 89 fd 49 bf 00 00 00 00 00 fc ff df e8 32 07 c9 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 98 07 3d ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc90004cbf568 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88801cbb8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc90004cbf6f8 R11: fffff52000997ee2 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff8880400838d0 R15: dffffc0000000000
FS: 000055555c16c4c0(0000) GS:ffff8881246fa000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000387ec000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: 89 44 24 10 mov %eax,0x10(%rsp)
4: 49 89 ce mov %rcx,%r14
7: 48 89 14 24 mov %rdx,(%rsp)
b: 89 f5 mov %esi,%ebp
d: 49 89 fd mov %rdi,%r13
10: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15
17: fc ff df
1a: e8 32 07 c9 fe call 0xfec90751
1f: 49 8d 5d 18 lea 0x18(%r13),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 98 07 3d ff call 0xff3d07d1
39: 48 8b 1b mov (%rbx),%rbx
3c: 48 83 c3 30 add $0x30,%rbx
---
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.
For information about bisection process see: https://goo.gl/tpsmEJ#ai-bisection
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-30 2:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 2:39 [syzbot] [ext4?] general protection fault in utf8nlookup (2) syzbot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox