syzbot


BUG: unable to handle kernel paging request in sha256_avx2_finup

Status: moderation: reported on 2025/01/24 18:10
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+86c9f7a2015488fc69ba@syzkaller.appspotmail.com
First crash: 15d, last: 15d

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs3(loop0): Different NTFS sector size (2048) and media sector size (512).
process 'syz.0.0' launched './file1' with NULL argv: empty string added
BUG: unable to handle page fault for address: ffffff8e7c75c7f8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD e73a067 P4D e73a067 PUD 0 
Oops: Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5317 Comm: syz.0.0 Not tainted 6.13.0-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:crypto_shash_digestsize include/crypto/hash.h:747 [inline]
RIP: 0010:sha256_base_finish include/crypto/sha256_base.h:129 [inline]
RIP: 0010:sha256_finup arch/x86/crypto/sha256_ssse3_glue.c:92 [inline]
RIP: 0010:sha256_avx2_finup+0x2a8/0x510 arch/x86/crypto/sha256_ssse3_glue.c:262
Code: df e8 fc 82 ac 00 48 b9 00 00 00 00 00 fc ff df 48 8b 1b 48 83 c3 f8 48 89 d8 48 c1 e8 03 0f b6 04 08 84 c0 0f 85 46 02 00 00 <44> 8b 33 31 ff 44 89 f6 e8 4b 1c 46 00 45 85 f6 0f 84 12 01 00 00
RSP: 0018:ffffc9000d157188 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffff8e7c75c7f8 RCX: dffffc0000000000
RDX: ffffc9000eb7a000 RSI: 0000000000002957 RDI: 0000000000002958
RBP: ffffc9000d1572c0 R08: ffffffff8140b688 R09: 00000000a07214a0
R10: 0000000058292cb5 R11: 000000000460263e R12: ffffc9000d1572c8
R13: ffffc9000d1572f0 R14: ffffc9000d1572fa R15: 1ffff92001a2ae5d
FS:  00007fe576df66c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff8e7c75c7f8 CR3: 0000000044516000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:498 [inline]
 ima_calc_file_shash security/integrity/ima/ima_crypto.c:511 [inline]
 ima_calc_file_hash+0xd8c/0x1b30 security/integrity/ima/ima_crypto.c:568
 ima_collect_measurement+0x520/0xb10 security/integrity/ima/ima_api.c:293
 process_measurement+0x1351/0x1fb0 security/integrity/ima/ima_main.c:372
 ima_bprm_check+0xfd/0x200 security/integrity/ima/ima_main.c:547
 security_bprm_check+0xd2/0x250 security/security.c:1296
 search_binary_handler fs/exec.c:1736 [inline]
 exec_binprm fs/exec.c:1790 [inline]
 bprm_execve+0xa53/0x17a0 fs/exec.c:1842
 do_execveat_common+0x55f/0x6f0 fs/exec.c:1949
 do_execveat fs/exec.c:2034 [inline]
 __do_sys_execveat fs/exec.c:2108 [inline]
 __se_sys_execveat fs/exec.c:2102 [inline]
 __x64_sys_execveat+0xc4/0xe0 fs/exec.c:2102
 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:0x7fe575f85d29
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:00007fe576df6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000142
RAX: ffffffffffffffda RBX: 00007fe576175fa0 RCX: 00007fe575f85d29
RDX: 0000000000000000 RSI: 0000000020000480 RDI: ffffffffffffff9c
RBP: 00007fe576001b08 R08: 0000000000001000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe576175fa0 R15: 00007ffcce29cbc8
 </TASK>
Modules linked in:
CR2: ffffff8e7c75c7f8
---[ end trace 0000000000000000 ]---
RIP: 0010:crypto_shash_digestsize include/crypto/hash.h:747 [inline]
RIP: 0010:sha256_base_finish include/crypto/sha256_base.h:129 [inline]
RIP: 0010:sha256_finup arch/x86/crypto/sha256_ssse3_glue.c:92 [inline]
RIP: 0010:sha256_avx2_finup+0x2a8/0x510 arch/x86/crypto/sha256_ssse3_glue.c:262
Code: df e8 fc 82 ac 00 48 b9 00 00 00 00 00 fc ff df 48 8b 1b 48 83 c3 f8 48 89 d8 48 c1 e8 03 0f b6 04 08 84 c0 0f 85 46 02 00 00 <44> 8b 33 31 ff 44 89 f6 e8 4b 1c 46 00 45 85 f6 0f 84 12 01 00 00
RSP: 0018:ffffc9000d157188 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffff8e7c75c7f8 RCX: dffffc0000000000
RDX: ffffc9000eb7a000 RSI: 0000000000002957 RDI: 0000000000002958
RBP: ffffc9000d1572c0 R08: ffffffff8140b688 R09: 00000000a07214a0
R10: 0000000058292cb5 R11: 000000000460263e R12: ffffc9000d1572c8
R13: ffffc9000d1572f0 R14: ffffc9000d1572fa R15: 1ffff92001a2ae5d
FS:  00007fe576df66c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffff8e7c75c7f8 CR3: 0000000044516000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	e8 fc 82 ac 00       	call   0xac8301
   5:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
   c:	fc ff df
   f:	48 8b 1b             	mov    (%rbx),%rbx
  12:	48 83 c3 f8          	add    $0xfffffffffffffff8,%rbx
  16:	48 89 d8             	mov    %rbx,%rax
  19:	48 c1 e8 03          	shr    $0x3,%rax
  1d:	0f b6 04 08          	movzbl (%rax,%rcx,1),%eax
  21:	84 c0                	test   %al,%al
  23:	0f 85 46 02 00 00    	jne    0x26f
* 29:	44 8b 33             	mov    (%rbx),%r14d <-- trapping instruction
  2c:	31 ff                	xor    %edi,%edi
  2e:	44 89 f6             	mov    %r14d,%esi
  31:	e8 4b 1c 46 00       	call   0x461c81
  36:	45 85 f6             	test   %r14d,%r14d
  39:	0f 84 12 01 00 00    	je     0x151

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/20 18:01 upstream ffd294d346d1 6e87cfa2 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in sha256_avx2_finup
* Struck through repros no longer work on HEAD.