fscrypt: AES-256-XTS using implementation "xts(ecb(aes-fixed-time))" ===================================================== 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+0x36b/0x7f0 crypto/lskcipher.c:188 crypto_lskcipher_encrypt_sg+0x8a/0xc0 crypto/lskcipher.c:207 crypto_skcipher_encrypt+0x119/0x1e0 crypto/skcipher.c:642 xts_encrypt+0x3c4/0x550 crypto/xts.c:269 crypto_skcipher_encrypt+0x1a0/0x1e0 crypto/skcipher.c:643 fscrypt_crypt_data_unit+0x4ee/0x8f0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x422/0x900 fs/crypto/crypto.c:207 ext4_bio_write_folio+0x13db/0x2e40 fs/ext4/page-io.c:526 mpage_submit_folio+0x351/0x4a0 fs/ext4/inode.c:1869 mpage_process_page_bufs+0xb92/0xe30 fs/ext4/inode.c:1982 mpage_prepare_extent_to_map+0x1702/0x22c0 fs/ext4/inode.c:2490 ext4_do_writepages+0x1b0f/0x62e0 fs/ext4/inode.c:2677 ext4_writepages+0x312/0x830 fs/ext4/inode.c:2768 do_writepages+0x427/0xc30 mm/page-writeback.c:2613 filemap_fdatawrite_wbc+0x1d8/0x270 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x1bf/0x370 mm/filemap.c:788 generic_buffers_fsync_noflush+0x84/0x3e0 fs/buffer.c:602 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x5ba/0x13a0 fs/ext4/fsync.c:151 vfs_fsync_range+0x20d/0x270 fs/sync.c:188 generic_write_sync include/linux/fs.h:2811 [inline] ext4_buffered_write_iter+0x9ad/0xaa0 fs/ext4/file.c:305 ext4_file_write_iter+0x208/0x3450 do_iter_readv_writev+0x7e6/0x960 vfs_writev+0x574/0x1450 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_compat_sys_pwritev2 fs/read_write.c:1218 [inline] __se_compat_sys_pwritev2+0x2a8/0x490 fs/read_write.c:1210 __ia32_compat_sys_pwritev2+0x11d/0x1a0 fs/read_write.c:1210 ia32_sys_call+0x918/0x40a0 arch/x86/include/generated/asm/syscalls_32.h:380 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Uninit was stored to memory at: le128_xor include/crypto/b128ops.h:69 [inline] xts_xor_tweak+0x4ae/0xbf0 crypto/xts.c:123 xts_xor_tweak_pre crypto/xts.c:135 [inline] xts_encrypt+0x296/0x550 crypto/xts.c:268 crypto_skcipher_encrypt+0x1a0/0x1e0 crypto/skcipher.c:643 fscrypt_crypt_data_unit+0x4ee/0x8f0 fs/crypto/crypto.c:144 fscrypt_encrypt_pagecache_blocks+0x422/0x900 fs/crypto/crypto.c:207 ext4_bio_write_folio+0x13db/0x2e40 fs/ext4/page-io.c:526 mpage_submit_folio+0x351/0x4a0 fs/ext4/inode.c:1869 mpage_process_page_bufs+0xb92/0xe30 fs/ext4/inode.c:1982 mpage_prepare_extent_to_map+0x1702/0x22c0 fs/ext4/inode.c:2490 ext4_do_writepages+0x1b0f/0x62e0 fs/ext4/inode.c:2677 ext4_writepages+0x312/0x830 fs/ext4/inode.c:2768 do_writepages+0x427/0xc30 mm/page-writeback.c:2613 filemap_fdatawrite_wbc+0x1d8/0x270 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x1bf/0x370 mm/filemap.c:788 generic_buffers_fsync_noflush+0x84/0x3e0 fs/buffer.c:602 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x5ba/0x13a0 fs/ext4/fsync.c:151 vfs_fsync_range+0x20d/0x270 fs/sync.c:188 generic_write_sync include/linux/fs.h:2811 [inline] ext4_buffered_write_iter+0x9ad/0xaa0 fs/ext4/file.c:305 ext4_file_write_iter+0x208/0x3450 do_iter_readv_writev+0x7e6/0x960 vfs_writev+0x574/0x1450 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_compat_sys_pwritev2 fs/read_write.c:1218 [inline] __se_compat_sys_pwritev2+0x2a8/0x490 fs/read_write.c:1210 __ia32_compat_sys_pwritev2+0x11d/0x1a0 fs/read_write.c:1210 ia32_sys_call+0x918/0x40a0 arch/x86/include/generated/asm/syscalls_32.h:380 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e Uninit was created at: __alloc_pages+0x9d6/0xe70 mm/page_alloc.c:4598 alloc_pages_mpol+0x299/0x990 mm/mempolicy.c:2264 alloc_pages mm/mempolicy.c:2335 [inline] folio_alloc+0x1d0/0x230 mm/mempolicy.c:2342 filemap_alloc_folio+0xa6/0x440 mm/filemap.c:984 __filemap_get_folio+0xa10/0x14b0 mm/filemap.c:1926 ext4_write_begin+0x3e5/0x2230 fs/ext4/inode.c:1159 generic_perform_write+0x400/0xc60 mm/filemap.c:3974 ext4_buffered_write_iter+0x564/0xaa0 fs/ext4/file.c:299 ext4_file_write_iter+0x208/0x3450 do_iter_readv_writev+0x7e6/0x960 vfs_writev+0x574/0x1450 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_compat_sys_pwritev2 fs/read_write.c:1218 [inline] __se_compat_sys_pwritev2+0x2a8/0x490 fs/read_write.c:1210 __ia32_compat_sys_pwritev2+0x11d/0x1a0 fs/read_write.c:1210 ia32_sys_call+0x918/0x40a0 arch/x86/include/generated/asm/syscalls_32.h:380 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0xb4/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x38/0x80 arch/x86/entry/common.c:411 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:449 entry_SYSENTER_compat_after_hwframe+0x84/0x8e CPU: 1 PID: 7704 Comm: syz-executor.1 Not tainted 6.9.0-syzkaller-02339-g101b7a97143a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 =====================================================