===================================================== BUG: KMSAN: uninit-value in subshift lib/crypto/aes.c:149 [inline] BUG: KMSAN: uninit-value in aes_encrypt+0x15cc/0x1db0 lib/crypto/aes.c:282 subshift lib/crypto/aes.c:149 [inline] aes_encrypt+0x15cc/0x1db0 lib/crypto/aes.c:282 aesti_encrypt+0x7d/0xf0 crypto/aes_ti.c:31 crypto_ecb_crypt crypto/ecb.c:23 [inline] crypto_ecb_encrypt2+0x18a/0x300 crypto/ecb.c:40 crypto_lskcipher_crypt_sg+0x3bd/0x8a0 crypto/lskcipher.c:188 crypto_lskcipher_encrypt_sg+0x8a/0xc0 crypto/lskcipher.c:207 crypto_skcipher_encrypt+0x119/0x1e0 crypto/skcipher.c:443 xts_encrypt+0x3c4/0x550 crypto/xts.c:269 crypto_skcipher_encrypt+0x1a0/0x1e0 crypto/skcipher.c:444 fscrypt_crypt_data_unit+0x4ee/0x8f0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x3af/0x740 fs/crypto/crypto.c:205 ext4_bio_write_folio+0x137a/0x2e80 fs/ext4/page-io.c:552 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1937 mpage_process_page_bufs+0xb94/0xe30 fs/ext4/inode.c:2050 mpage_prepare_extent_to_map+0x17ab/0x22b0 fs/ext4/inode.c:2551 ext4_do_writepages+0x1235/0x6390 fs/ext4/inode.c:2692 ext4_writepages+0x37a/0x8d0 fs/ext4/inode.c:2829 do_writepages+0x427/0xc30 mm/page-writeback.c:2656 __writeback_single_inode+0x103/0x1290 fs/fs-writeback.c:1680 writeback_sb_inodes+0xac4/0x1c90 fs/fs-writeback.c:1976 wb_writeback+0x4df/0xcb0 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x40b/0x1970 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xc1d/0x1e80 kernel/workqueue.c:3319 worker_thread+0xea3/0x1500 kernel/workqueue.c:3400 kthread+0x6ce/0xf10 kernel/kthread.c:464 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Uninit was stored to memory at: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1098 at kernel/stacktrace.c:29 stack_trace_print+0x102/0x120 kernel/stacktrace.c:29 Modules linked in: CPU: 0 UID: 0 PID: 1098 Comm: kworker/u8:7 Not tainted 6.15.0-rc2-syzkaller-00404-g8560697b23dc #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:3) RIP: 0010:stack_trace_print+0x102/0x120 kernel/stacktrace.c:29 Code: 4b 8d 04 2e 48 ff c0 49 ff c6 48 83 f8 01 0f 85 58 ff ff ff eb 17 31 ff e8 7b 0d bf 00 e9 54 ff ff ff e8 71 0d bf 00 eb bc 90 <0f> 0b 90 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc RSP: 0018:ffff88810a472090 EFLAGS: 00010046 RAX: ffff88810a482c18 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff88810a4720c0 R08: 0000000000000000 R09: 0000000000000000 R10: ffff888109c720d8 R11: 0000000000000001 R12: 0000000000000000 R13: 00000000abcd0200 R14: ffff88810a4720f0 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881aaf5e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000057fd099c CR3: 000000004506a000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kmsan_print_origin+0xad/0x320 mm/kmsan/report.c:133 kmsan_report+0x1d9/0x2d0 mm/kmsan/report.c:196 __msan_warning+0x95/0x120 mm/kmsan/instrumentation.c:318 subshift lib/crypto/aes.c:149 [inline] aes_encrypt+0x15cc/0x1db0 lib/crypto/aes.c:282 aesti_encrypt+0x7d/0xf0 crypto/aes_ti.c:31 crypto_ecb_crypt crypto/ecb.c:23 [inline] crypto_ecb_encrypt2+0x18a/0x300 crypto/ecb.c:40 crypto_lskcipher_crypt_sg+0x3bd/0x8a0 crypto/lskcipher.c:188 crypto_lskcipher_encrypt_sg+0x8a/0xc0 crypto/lskcipher.c:207 crypto_skcipher_encrypt+0x119/0x1e0 crypto/skcipher.c:443 xts_encrypt+0x3c4/0x550 crypto/xts.c:269 crypto_skcipher_encrypt+0x1a0/0x1e0 crypto/skcipher.c:444 fscrypt_crypt_data_unit+0x4ee/0x8f0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x3af/0x740 fs/crypto/crypto.c:205 ext4_bio_write_folio+0x137a/0x2e80 fs/ext4/page-io.c:552 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1937 mpage_process_page_bufs+0xb94/0xe30 fs/ext4/inode.c:2050 mpage_prepare_extent_to_map+0x17ab/0x22b0 fs/ext4/inode.c:2551 ext4_do_writepages+0x1235/0x6390 fs/ext4/inode.c:2692 ext4_writepages+0x37a/0x8d0 fs/ext4/inode.c:2829 do_writepages+0x427/0xc30 mm/page-writeback.c:2656 __writeback_single_inode+0x103/0x1290 fs/fs-writeback.c:1680 writeback_sb_inodes+0xac4/0x1c90 fs/fs-writeback.c:1976 wb_writeback+0x4df/0xcb0 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x40b/0x1970 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xc1d/0x1e80 kernel/workqueue.c:3319 worker_thread+0xea3/0x1500 kernel/workqueue.c:3400 kthread+0x6ce/0xf10 kernel/kthread.c:464 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---[ end trace 0000000000000000 ]--- Uninit was created at: __alloc_frozen_pages_noprof+0x6a0/0xe30 mm/page_alloc.c:5005 alloc_pages_mpol+0x4cd/0x890 mm/mempolicy.c:2301 alloc_frozen_pages_noprof mm/mempolicy.c:2372 [inline] alloc_pages_noprof mm/mempolicy.c:2392 [inline] folio_alloc_noprof+0x1dc/0x350 mm/mempolicy.c:2402 filemap_alloc_folio_noprof+0xa6/0x440 mm/filemap.c:1007 __filemap_get_folio+0xb40/0x18e0 mm/filemap.c:1969 ext4_write_begin+0x46c/0x2470 fs/ext4/inode.c:1187 ext4_da_write_begin+0x691/0xf10 fs/ext4/inode.c:2932 generic_perform_write+0x405/0x1060 mm/filemap.c:4103 ext4_buffered_write_iter+0x561/0xbd0 fs/ext4/file.c:299 ext4_file_write_iter+0x2c7/0x3a30 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:591 [inline] vfs_write+0xb34/0x1540 fs/read_write.c:684 ksys_write+0x240/0x4b0 fs/read_write.c:736 __do_sys_write fs/read_write.c:747 [inline] __se_sys_write fs/read_write.c:744 [inline] __ia32_sys_write+0x91/0xe0 fs/read_write.c:744 ia32_sys_call+0x2e7b/0x41f0 arch/x86/include/generated/asm/syscalls_32.h:5 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xb0/0x110 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x38/0x80 arch/x86/entry/syscall_32.c:331 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/syscall_32.c:369 entry_SYSENTER_compat_after_hwframe+0x84/0x8e CPU: 0 UID: 0 PID: 1098 Comm: kworker/u8:7 Tainted: G W 6.15.0-rc2-syzkaller-00404-g8560697b23dc #0 PREEMPT(undef) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: writeback wb_workfn (flush-7:3) =====================================================