syzbot


WARNING in fscrypt_fname_siphash

Status: upstream: reported C repro on 2024/10/20 08:52
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+0095e55ed9774db43786@syzkaller.appspotmail.com
First crash: 206d, last: 9d10h
Fix commit to backport (bisect log) :
tree: upstream
commit 985b67cd86392310d9e9326de941c22fc9340eec
Author: Lizhi Xu <lizhi.xu@windriver.com>
Date: Wed Jun 5 01:23:35 2024 +0000

  ext4: filesystems without casefold feature cannot be mounted with siphash

  
Bug presence (2)
Date Name Commit Repro Result
2024/10/24 linux-5.15.y (ToT) 74cdd62cb470 C [report] WARNING in fscrypt_fname_siphash
2024/10/24 upstream (ToT) c2ee9f594da8 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in fscrypt_fname_siphash ext4 fscrypt C unreliable 32 256d 349d 28/28 fixed on 2024/10/22 11:57
linux-6.1 WARNING in fscrypt_fname_siphash 1 352d 352d 0/3 auto-obsoleted due to no activity on 2024/09/04 07:37
linux-6.1 WARNING in fscrypt_fname_siphash (2) origin:lts-only C done 10 9d10h 185d 0/3 upstream: reported C repro on 2024/11/10 06:13
Last patch testing requests (5)
Created Duration User Patch Repo Result
2025/03/31 10:24 11m retest repro linux-5.15.y report log
2025/03/16 02:31 10m retest repro linux-5.15.y report log
2025/01/18 09:43 55m retest repro linux-5.15.y report log
2025/01/04 01:59 10m retest repro linux-5.15.y report log
2024/11/09 01:00 14m retest repro linux-5.15.y report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/10/29 13:28 12h02m (2) fix candidate upstream OK (1) job log

Sample crash report:
EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode
EXT4-fs (loop0): 1 truncate cleaned up
EXT4-fs (loop0): mounted filesystem without journal. Opts: test_dummy_encryption,usrquota,nombcache,,errors=continue. Quota mode: writeback.
fscrypt: AES-256-CTS-CBC using implementation "cts-cbc-aes-aesni"
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4165 at fs/crypto/fname.c:543 fscrypt_fname_siphash+0xb9/0xf0 fs/crypto/fname.c:-1
Modules linked in:
CPU: 0 PID: 4165 Comm: syz-executor564 Not tainted 5.15.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:fscrypt_fname_siphash+0xb9/0xf0 fs/crypto/fname.c:543
Code: 42 0f b6 04 28 84 c0 75 38 41 8b 34 24 49 83 c6 40 4c 89 ff 4c 89 f2 5b 41 5c 41 5d 41 5e 41 5f e9 5c 9f 4a 02 e8 47 7e 92 ff <0f> 0b eb aa 89 d9 80 e1 07 38 c1 7c 8c 48 89 df e8 92 71 dc ff eb
RSP: 0018:ffffc90002f1f470 EFLAGS: 00010293
RAX: ffffffff81ee1f99 RBX: 0000000000000000 RCX: ffff888021b9bb80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002f1f630 R08: ffffffff81ee1f3e R09: ffffffff8219de69
R10: 0000000000000007 R11: ffff888021b9bb80 R12: ffffc90002f1f5c0
R13: dffffc0000000000 R14: ffff888072261000 R15: ffff88807bec4868
FS:  000055557cf58480(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000713b9000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ext4fs_dirhash+0xdd2/0x14c0 fs/ext4/hash.c:268
 ext4fs_dirhash+0x1b8/0x320 fs/ext4/hash.c:322
 htree_dirblock_to_tree+0x723/0x10d0 fs/ext4/namei.c:1125
 ext4_htree_fill_tree+0x73d/0x13f0 fs/ext4/namei.c:1220
 ext4_dx_readdir fs/ext4/dir.c:609 [inline]
 ext4_readdir+0x2f8e/0x3970 fs/ext4/dir.c:145
 iterate_dir+0x224/0x570 fs/readdir.c:-1
 __do_sys_getdents64 fs/readdir.c:369 [inline]
 __se_sys_getdents64+0x209/0x4f0 fs/readdir.c:354
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f458f9c6ef9
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:00007ffc713ffa28 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 68636163626d6f6e RCX: 00007f458f9c6ef9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007ffc713ffa38 R08: 00007f458f992e70 R09: 00007f458f992e70
R10: 00007f458f992e70 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc713ffc98 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/12 20:34 linux-5.15.y f7347f400572 0bd6db41 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2024/10/20 09:42 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2024/10/20 09:18 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/05/05 08:39 linux-5.15.y 16fdf2c7111b b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/28 11:39 linux-5.15.y f7347f400572 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/28 11:39 linux-5.15.y f7347f400572 c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/18 04:06 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/18 04:06 linux-5.15.y f7347f400572 2a20f901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/12 20:11 linux-5.15.y f7347f400572 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2025/04/12 20:10 linux-5.15.y f7347f400572 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2024/11/10 10:38 linux-5.15.y 3c17fc483905 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2024/11/10 10:38 linux-5.15.y 3c17fc483905 6b856513 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
2024/10/20 08:51 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in fscrypt_fname_siphash
* Struck through repros no longer work on HEAD.