[v6.6] general protection fault in utf8nlookup

0 views
Skip to first unread message

syzbot

unread,
Jul 27, 2025, 1:37:32 PM7/27/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: dbcb8d8e4163 Linux 6.6.100
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16e52782580000
kernel config: https://syzkaller.appspot.com/x/.config?x=293251cfa8d8100
dashboard link: https://syzkaller.appspot.com/bug?extid=5171b60f0717a9477fa0
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d0b56817a2c3/disk-dbcb8d8e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f0d646b2f7fa/vmlinux-dbcb8d8e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1e0b752a5011/bzImage-dbcb8d8e.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5171b6...@syzkaller.appspotmail.com

EXT4-fs (loop3): mounted filesystem 76b65be2-f6da-4727-8c75-0525a5b65a09 r/w without journal. Quota mode: none.
ext4 filesystem being mounted at /151/mnt supports timestamps until 2038-01-19 (0x7fffffff)
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 8310 Comm: syz.3.587 Not tainted 6.6.100-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:utf8nlookup+0x39/0xa50 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 f2 36 f8 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 d8 7c 4f ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc90004a8f880 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 0000000000080000
RDX: ffffc9000cf8c000 RSI: 00000000000003ff RDI: 0000000000000400
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc90004a8fa18 R11: fffff52000951f46 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88805ef15c58 R15: dffffc0000000000
FS: 00007f0ff539a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff851a0d7e8 CR3: 0000000065d02000 CR4: 00000000003506e0
Call Trace:
<TASK>
utf8byte+0x34f/0x1370 fs/unicode/utf8-norm.c:-1
utf8_casefold+0x130/0x230 fs/unicode/utf8-core.c:109
ext4_fname_setup_ci_filename+0x1d5/0x430 fs/ext4/namei.c:1463
ext4_fname_prepare_lookup+0x213/0x3a0 fs/ext4/crypto.c:55
ext4_lookup_entry fs/ext4/namei.c:1767 [inline]
ext4_lookup+0xfa/0x6d0 fs/ext4/namei.c:1842
lookup_one_qstr_excl+0x112/0x250 fs/namei.c:1609
do_unlinkat+0x18c/0x570 fs/namei.c:4377
__do_sys_unlinkat fs/namei.c:4434 [inline]
__se_sys_unlinkat fs/namei.c:4427 [inline]
__x64_sys_unlinkat+0xd5/0xe0 fs/namei.c:4427
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0ff458e9a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0ff539a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f0ff47b5fa0 RCX: 00007f0ff458e9a9
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f0ff4610d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0ff47b5fa0 R15: 00007ffea4637a68
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:utf8nlookup+0x39/0xa50 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 f2 36 f8 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 d8 7c 4f ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc90004a8f880 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 0000000000080000
RDX: ffffc9000cf8c000 RSI: 00000000000003ff RDI: 0000000000000400
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc90004a8fa18 R11: fffff52000951f46 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff88805ef15c58 R15: dffffc0000000000
FS: 00007f0ff539a6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1472d5b2fe CR3: 0000000065d02000 CR4: 00000000003506f0
----------------
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 f2 36 f8 fe call 0xfef83711
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 d8 7c 4f ff call 0xff4f7d11
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 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

syzbot

unread,
Jul 27, 2025, 2:41:33 PM7/27/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: dbcb8d8e4163 Linux 6.6.100
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11132782580000
kernel config: https://syzkaller.appspot.com/x/.config?x=293251cfa8d8100
dashboard link: https://syzkaller.appspot.com/bug?extid=5171b60f0717a9477fa0
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17aa98a2580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=152dd8a2580000
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/701363dd3394/mount_0.gz
fsck result: OK (log: https://syzkaller.appspot.com/x/fsck.log?x=16c9a034580000)
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/cdcdbd461610/mount_6.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5171b6...@syzkaller.appspotmail.com

loop0: detected capacity change from 0 to 128
EXT4-fs (loop0): mounted filesystem 76b65be2-f6da-4727-8c75-0525a5b65a09 r/w without journal. Quota mode: none.
ext4 filesystem being mounted at /0/mnt supports timestamps until 2038-01-19 (0x7fffffff)
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 5954 Comm: syz.0.16 Not tainted 6.6.100-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:utf8nlookup+0x39/0xa50 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 f2 36 f8 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 d8 7c 4f ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc900032e7880 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88802b51bc00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc900032e7a18 R11: fffff5200065cf46 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888074779ae0 R15: dffffc0000000000
FS: 0000555584702500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f94827ff000 CR3: 000000001cfd9000 CR4: 00000000003506f0
Call Trace:
<TASK>
utf8byte+0x34f/0x1370 fs/unicode/utf8-norm.c:-1
utf8_casefold+0x130/0x230 fs/unicode/utf8-core.c:109
ext4_fname_setup_ci_filename+0x1d5/0x430 fs/ext4/namei.c:1463
ext4_fname_prepare_lookup+0x213/0x3a0 fs/ext4/crypto.c:55
ext4_lookup_entry fs/ext4/namei.c:1767 [inline]
ext4_lookup+0xfa/0x6d0 fs/ext4/namei.c:1842
lookup_one_qstr_excl+0x112/0x250 fs/namei.c:1609
do_unlinkat+0x18c/0x570 fs/namei.c:4377
__do_sys_unlinkat fs/namei.c:4434 [inline]
__se_sys_unlinkat fs/namei.c:4427 [inline]
__x64_sys_unlinkat+0xd5/0xe0 fs/namei.c:4427
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f948bb8e9a9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdff1ce908 EFLAGS: 00000246 ORIG_RAX: 0000000000000107
RAX: ffffffffffffffda RBX: 00007f948bdb5fa0 RCX: 00007f948bb8e9a9
RDX: 0000000000000000 RSI: 0000200000000380 RDI: ffffffffffffff9c
RBP: 00007f948bc10d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f948bdb5fa0 R14: 00007f948bdb5fa0 R15: 0000000000000003
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:utf8nlookup+0x39/0xa50 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 f2 36 f8 fe 49 8d 5d 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 d8 7c 4f ff 48 8b 1b 48 83 c3 30
RSP: 0018:ffffc900032e7880 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88802b51bc00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: ffffc900032e7a18 R11: fffff5200065cf46 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888074779ae0 R15: dffffc0000000000
FS: 0000555584702500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f73a4a67000 CR3: 000000001cfd9000 CR4: 00000000003506f0
----------------
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 f2 36 f8 fe call 0xfef83711
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 d8 7c 4f ff call 0xff4f7d11
39: 48 8b 1b mov (%rbx),%rbx
3c: 48 83 c3 30 add $0x30,%rbx


---
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.
Reply all
Reply to author
Forward
0 new messages