===================================================== 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+0x15d/0x2c0 crypto/ecb.c:40 crypto_lskcipher_crypt_sg crypto/lskcipher.c:212 [inline] crypto_lskcipher_encrypt_sg+0x28d/0x410 crypto/lskcipher.c:226 crypto_skcipher_encrypt+0x10d/0x1c0 crypto/skcipher.c:669 xts_encrypt+0x3c4/0x540 crypto/xts.c:269 crypto_skcipher_encrypt+0x189/0x1c0 crypto/skcipher.c:671 fscrypt_crypt_data_unit+0x4ea/0x8d0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x422/0x8f0 fs/crypto/crypto.c:207 ext4_bio_write_folio+0x13d9/0x2db0 fs/ext4/page-io.c:526 mpage_submit_folio fs/ext4/inode.c:1875 [inline] mpage_process_page_bufs+0xf16/0x1320 fs/ext4/inode.c:1988 mpage_prepare_extent_to_map+0x19c9/0x2710 fs/ext4/inode.c:2496 ext4_do_writepages+0x111e/0x67e0 fs/ext4/inode.c:2638 ext4_writepages+0x30c/0x810 fs/ext4/inode.c:2774 do_writepages+0x426/0x870 mm/page-writeback.c:2553 __writeback_single_inode+0x10d/0x12b0 fs/fs-writeback.c:1625 writeback_sb_inodes+0xb73/0x1c00 fs/fs-writeback.c:1916 wb_writeback+0x4a1/0xdf0 fs/fs-writeback.c:2092 wb_do_writeback fs/fs-writeback.c:2239 [inline] wb_workfn+0x3a4/0x1710 fs/fs-writeback.c:2279 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2700 worker_thread+0xf45/0x1490 kernel/workqueue.c:2781 kthread+0x3ed/0x540 kernel/kthread.c:388 ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Uninit was stored to memory at: le128_xor include/crypto/b128ops.h:69 [inline] xts_xor_tweak+0x4ae/0xbe0 crypto/xts.c:123 xts_xor_tweak_pre crypto/xts.c:135 [inline] xts_encrypt+0x296/0x540 crypto/xts.c:268 crypto_skcipher_encrypt+0x189/0x1c0 crypto/skcipher.c:671 fscrypt_crypt_data_unit+0x4ea/0x8d0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x422/0x8f0 fs/crypto/crypto.c:207 ext4_bio_write_folio+0x13d9/0x2db0 fs/ext4/page-io.c:526 mpage_submit_folio fs/ext4/inode.c:1875 [inline] mpage_process_page_bufs+0xf16/0x1320 fs/ext4/inode.c:1988 mpage_prepare_extent_to_map+0x19c9/0x2710 fs/ext4/inode.c:2496 ext4_do_writepages+0x111e/0x67e0 fs/ext4/inode.c:2638 ext4_writepages+0x30c/0x810 fs/ext4/inode.c:2774 do_writepages+0x426/0x870 mm/page-writeback.c:2553 __writeback_single_inode+0x10d/0x12b0 fs/fs-writeback.c:1625 writeback_sb_inodes+0xb73/0x1c00 fs/fs-writeback.c:1916 wb_writeback+0x4a1/0xdf0 fs/fs-writeback.c:2092 wb_do_writeback fs/fs-writeback.c:2239 [inline] wb_workfn+0x3a4/0x1710 fs/fs-writeback.c:2279 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x104e/0x1e70 kernel/workqueue.c:2700 worker_thread+0xf45/0x1490 kernel/workqueue.c:2781 kthread+0x3ed/0x540 kernel/kthread.c:388 ret_from_fork+0x66/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Uninit was created at: __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4591 alloc_pages_mpol+0x62b/0x9d0 mm/mempolicy.c:2133 alloc_pages mm/mempolicy.c:2204 [inline] folio_alloc+0x1da/0x380 mm/mempolicy.c:2211 filemap_alloc_folio+0xa5/0x430 mm/filemap.c:974 __filemap_get_folio+0xa5a/0x1760 mm/filemap.c:1918 ext4_write_begin+0x3e5/0x2230 fs/ext4/inode.c:1157 ext4_da_write_begin+0x4cd/0xec0 fs/ext4/inode.c:2875 generic_perform_write+0x3f5/0xc40 mm/filemap.c:3927 ext4_buffered_write_iter+0x564/0xaa0 fs/ext4/file.c:299 ext4_file_write_iter+0x20f/0x3460 call_write_iter include/linux/fs.h:2084 [inline] iter_file_splice_write+0xdcc/0x1a20 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x33b/0x7d0 fs/splice.c:1164 splice_direct_to_actor+0x91d/0x1410 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x1fd/0x340 fs/splice.c:1233 do_sendfile+0x9aa/0x1920 fs/read_write.c:1295 __do_compat_sys_sendfile fs/read_write.c:1383 [inline] __se_compat_sys_sendfile+0x244/0x2d0 fs/read_write.c:1366 __ia32_compat_sys_sendfile+0xbd/0x110 fs/read_write.c:1366 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:321 do_fast_syscall_32+0x37/0x70 arch/x86/entry/common.c:346 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:384 entry_SYSENTER_compat_after_hwframe+0x70/0x7a CPU: 1 PID: 1545 Comm: kworker/u4:8 Not tainted 6.7.0-syzkaller-00119-g5db8752c3b81 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: writeback wb_workfn (flush-7:3) =====================================================