syzbot


WARNING in fscrypt_fname_siphash

Status: upstream: reported C repro on 2024/05/29 20:41
Subsystems: ext4 fscrypt
[Documentation on labels]
Reported-by: syzbot+340581ba9dceb7e06fb3@syzkaller.appspotmail.com
Fix commit: 985b67cd8639 ext4: filesystems without casefold feature cannot be mounted with siphash
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu-native-arm64-kvm]
First crash: 139d, last: 41d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit 2c61f32124b0c8868ac8579bb626ea579f2e08bb
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date: Mon Mar 8 09:48:42 2021 +0000

  PCI: microchip: Make some symbols static

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 6.11 18/76] ext4: filesystems without casefold feature cannot be mounted with siphash 1 (1) 2024/10/04 18:16
[PATCH AUTOSEL 6.11 234/244] ext4: filesystems without casefold feature cannot be mounted with siphash 1 (1) 2024/09/25 11:27
[PATCH] ext4: add casefolded file check 24 (24) 2024/09/05 14:53
[syzbot] [fscrypt?] WARNING in fscrypt_fname_siphash 0 (2) 2024/05/30 06:32
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in fscrypt_fname_siphash 1 138d 138d 0/3 auto-obsoleted due to no activity on 2024/09/04 07:37
Last patch testing requests (11)
Created Duration User Patch Repo Result
2024/08/20 06:39 23m retest repro upstream OK log
2024/08/20 06:39 23m retest repro upstream OK log
2024/08/20 06:39 19m retest repro upstream OK log
2024/08/20 05:36 23m retest repro upstream OK log
2024/07/14 07:22 15m retest repro linux-next report log
2024/06/25 06:17 18m retest repro upstream report log
2024/06/11 05:32 13m retest repro upstream report log
2024/06/11 05:32 13m retest repro upstream report log
2024/06/11 05:32 12m retest repro upstream report log
2024/06/11 05:25 9m retest repro upstream report log
2024/05/30 06:32 11m lizhi.xu@windriver.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 74eca356f6d4 error
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2024/07/11 10:47 5h39m bisect upstream OK (1) job log log
2024/05/26 03:25 5h00m bisect upstream OK (1) job log log
marked invalid by tytso@google.com

Sample crash report:
EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.
fscrypt: AES-256-CBC-CTS using implementation "cts-cbc-aes-aesni"
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5220 at fs/crypto/fname.c:567 fscrypt_fname_siphash+0xc2/0x100 fs/crypto/fname.c:567
Modules linked in:
CPU: 0 UID: 0 PID: 5220 Comm: syz-executor324 Not tainted 6.11.0-rc5-syzkaller-00219-g1934261d8974 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:fscrypt_fname_siphash+0xc2/0x100 fs/crypto/fname.c:567
Code: 0f b6 04 28 84 c0 75 3d 41 8b 34 24 49 83 c6 40 4c 89 ff 4c 89 f2 5b 41 5c 41 5d 41 5e 41 5f e9 e4 c1 85 09 e8 ef 80 6f ff 90 <0f> 0b 90 eb a8 89 d9 80 e1 07 38 c1 7c 86 48 89 df e8 88 a2 d3 ff
RSP: 0018:ffffc900034c7430 EFLAGS: 00010293
RAX: ffffffff82240af1 RBX: 0000000000000000 RCX: ffff88802e9bda00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900034c75f0 R08: ffffffff82240a95 R09: ffffffff8254c6d8
R10: 0000000000000007 R11: ffff88802e9bda00 R12: ffffc900034c7580
R13: dffffc0000000000 R14: ffff88804b6ab000 R15: ffff88807d31dc68
FS:  00005555736f2380(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020023000 CR3: 000000004b338000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ext4fs_dirhash+0x3db/0x1530 fs/ext4/hash.c:268
 ext4fs_dirhash+0x193/0x320 fs/ext4/hash.c:322
 htree_dirblock_to_tree+0x727/0x10e0 fs/ext4/namei.c:1125
 ext4_htree_fill_tree+0x744/0x1400 fs/ext4/namei.c:1220
 ext4_dx_readdir fs/ext4/dir.c:597 [inline]
 ext4_readdir+0x2b1c/0x3500 fs/ext4/dir.c:142
 iterate_dir+0x57a/0x810 fs/readdir.c:108
 __do_sys_getdents64 fs/readdir.c:407 [inline]
 __se_sys_getdents64+0x20d/0x4f0 fs/readdir.c:392
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2de5668a39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffccec1a248 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 6f72746e6f632f2e RCX: 00007f2de5668a39
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f2de56db610 R08: 0000000000000000 R09: 00007ffccec1a418
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffccec1a408 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/31 18:21 upstream 1934261d8974 1eda0d14 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/08/25 12:39 upstream 780bdc1ba776 d7d32352 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/25 20:42 upstream 56fb6f92854f c2e07261 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream WARNING in fscrypt_fname_siphash
2024/05/25 20:48 linux-next 3689b0ef08b7 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in fscrypt_fname_siphash
2024/05/26 02:50 upstream 74eca356f6d4 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/26 01:20 upstream 74eca356f6d4 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/25 21:06 upstream 56fb6f92854f a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/25 20:57 upstream 56fb6f92854f a10a183e .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu2-arm32 WARNING in fscrypt_fname_siphash
2024/06/30 06:55 upstream 8282d5af7be8 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/06/29 18:08 upstream de0a9f448633 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in fscrypt_fname_siphash
2024/06/29 13:02 upstream de0a9f448633 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/27 10:34 upstream 1613e604df0c a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in fscrypt_fname_siphash
2024/05/27 10:34 upstream 1613e604df0c a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in fscrypt_fname_siphash
2024/05/27 07:29 upstream 6fbf71854e2d a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in fscrypt_fname_siphash
2024/05/27 07:26 upstream 6fbf71854e2d a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in fscrypt_fname_siphash
2024/05/25 23:23 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in fscrypt_fname_siphash
2024/05/25 23:23 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in fscrypt_fname_siphash
2024/05/25 23:23 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in fscrypt_fname_siphash
2024/05/25 20:36 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/25 20:35 upstream 56fb6f92854f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in fscrypt_fname_siphash
2024/05/25 20:34 upstream 56fb6f92854f c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in fscrypt_fname_siphash
2024/05/28 05:23 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in fscrypt_fname_siphash
2024/05/28 05:22 upstream 2bfcfd584ff5 f550015e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in fscrypt_fname_siphash
2024/05/27 07:29 upstream 1613e604df0c c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in fscrypt_fname_siphash
2024/05/27 07:29 upstream 1613e604df0c c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in fscrypt_fname_siphash
2024/05/27 07:28 upstream 1613e604df0c c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in fscrypt_fname_siphash
2024/05/27 07:28 upstream 1613e604df0c c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in fscrypt_fname_siphash
2024/05/27 07:26 upstream 1613e604df0c c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in fscrypt_fname_siphash
2024/05/25 20:33 upstream 56fb6f92854f a10a183e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in fscrypt_fname_siphash
2024/05/25 20:33 upstream 56fb6f92854f a10a183e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm32 WARNING in fscrypt_fname_siphash
2024/05/27 07:32 linux-next 3689b0ef08b7 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in fscrypt_fname_siphash
2024/05/25 20:32 linux-next 3689b0ef08b7 a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in fscrypt_fname_siphash
* Struck through repros no longer work on HEAD.