From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796006370; b=mntacEGI1en/+MF8CxOaRKRBU3g7l/dqWVWhSMEYvljcDYWas7ERLVEDfmyeD7AHTU2p R1tpcatk1Bsk97r9f8hww/euYEjcJV8VHThNmQysYAozSQjDR9VKmt5o6vI8LrTqDxrjC jaOFXIwgRLX0UBcYyCzDES/jD0KNn23hT4bawFSoXQAXmOgN84bFyyv2xR9bJWEJDVoRt KEvebTTmiBUe8IKLVnFUast/CKxTNo6n3xx1v7Kr7VKKjLS4KD7RalW5KcuttPC7gidYd aQFzeg79bT1sacRNyJZGsWkzuaC2FxD/S58X85Qadrzd/nqGUI0v7GLcJIptVLlRpFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796006370; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:MIME-Version:X-Received:Date: X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID: Subject:From:To:Content-Type; bh=3jVANVF8MBFdJaDE0Z7MB/e6zYyVP+L0RgP31Vjagtc=; b=RHrkS1C+gi8T5tDyq+OgJiUdXNufWRAKhnEMQvIm8OQSqSEmB11VtMk5u10TuegR2mVT 4JtSF1mEFtP1VBIvZA/9eN0cVpLwI+9b0yKBKL9s4GtVjlj9qBPIkTboyFqu8veikugdO zWXQszZBuZ9l3P3hShgmegsUlpNSREl5FrUoYD443H0OSPnHyxsGb+thfeEIXbX8BOy6E KoAo//IVezMtPSyMgZxLSbYJmLzVeT1s0qPw4fRRxLaI9x6oiADZPDtLv9fqth4hSmi+H 9Q9miiD9ynFR1XrrcD4csFOPtJv8GTsB1Ov15s/oom0wUrUIZKKL2j2gStPLXbyRDvg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.remote-ip=209.85.160.70 Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 529F3606A31D for ; Mon, 30 Nov 2026 02:39:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 529F3606A31D Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-4aaa152fbecso8976981fac.2 for ; Sun, 29 Nov 2026 18:39:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796006369; x=1796611169; h=content-type:to:from:subject:message-id:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3jVANVF8MBFdJaDE0Z7MB/e6zYyVP+L0RgP31Vjagtc=; b=rNerbaejS6/7YlMXboK7sTLG8QtY1zJiRluZDwrgcj/hK0xh11/UBU5L/GZZsIZu7V OXsvJ4zAMdA6STeMkc1Tqmi7GGQsirslic/5MRrlBvvjwrn/3Btu1YMpB12sipzMZ9oR N0A3Nz82hi9ZS2n/HPCetuxhSUOa8AGb+mkjvubHBsAJ4sm/q5nZ4+6kcSBP/itsVtAG DuIDAaq1sY2Aiq/FC9k4Exs/Cy3Wzb017iqqktyhuCnt20rEFqZM8FSUSJVv+ZFD268f XjyFG7UiFKPP3Iq4Q/+HfvUPkqQpgx8aOSUKpwmB2Jc00i9ogROMYYzhSNwbom13GhJ6 zYMA== X-Forwarded-Encrypted: i=1; AL+hErHK7H4ToHzap46bxfLJc6MSSICOmNEY57bme/5xwewSGF6LejnXsDSFyUc/j3OnnbLGuDrYe9Jg1Q29JshG@vger.kernel.org X-Gm-Message-State: APuU4Z/4MhB0zo61GuZHlKRf5AWXmnF6L5ESGX3/DQZPf/STo99ZYtvf dqkDy0/GhL5t3Pj1xKDHhrHz32A3qLeJ9vWFAwXb8nL3hLJ2lrcdApNrBqKjyE0TNWoHMuIfsW4 Fj85hUjPdMvI5XIDiHkToNcmMaK4TSc9sxk8loLKaYALcA37YNSZSieqyjmg= X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Received: by 2002:a05:6808:3008:b0:567:e971:200c with SMTP id 5614622812f47-57a0bb56e1dmr31727929b6e.41.1796006369390; Sun, 29 Nov 2026 18:39:29 -0800 (PST) Date: Sun, 29 Nov 2026 18:39:29 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6b0ce1e1.8ccee5ca.1045fd.02b4.GAE@google.com> Subject: [syzbot] [ext4?] general protection fault in utf8nlookup (2) From: syzbot To: djwong@kernel.org, jack@suse.cz, krisman@kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, tytso@mit.edu Content-Type: text/plain; charset="UTF-8" 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 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: 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 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