fscrypt: Adiantum using implementation "adiantum(xchacha12-generic,aes-fixed-time,nhpoly1305-generic)" ===================================================== 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 cipher_crypt_one crypto/cipher.c:75 [inline] crypto_cipher_encrypt_one+0x116/0x210 crypto/cipher.c:82 adiantum_crypt+0x882/0xd20 crypto/adiantum.c:383 adiantum_encrypt+0x32/0x40 crypto/adiantum.c:419 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+0x1377/0x2e50 fs/ext4/page-io.c:525 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1932 mpage_process_page_bufs+0xb92/0xe30 fs/ext4/inode.c:2045 mpage_process_folio fs/ext4/inode.c:2099 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2168 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2310 [inline] ext4_do_writepages+0x351b/0x62c0 fs/ext4/inode.c:2735 ext4_writepages+0x312/0x830 fs/ext4/inode.c:2824 do_writepages+0x427/0xc30 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x6f2/0x7b0 mm/filemap.c:787 generic_buffers_fsync_noflush+0x7e/0x3c0 fs/buffer.c:600 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x5ae/0x1390 fs/ext4/fsync.c:151 vfs_fsync_range+0x1f9/0x260 fs/sync.c:187 generic_write_sync include/linux/fs.h:2904 [inline] ext4_buffered_write_iter+0x9a7/0xaa0 fs/ext4/file.c:305 ext4_file_write_iter+0x266/0x3820 do_iter_readv_writev+0x88a/0xa30 vfs_writev+0x56a/0x14f0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x262/0x460 fs/read_write.c:1195 __x64_sys_pwritev2+0x11f/0x1a0 fs/read_write.c:1195 x64_sys_call+0x368c/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: le128_add crypto/adiantum.c:191 [inline] adiantum_crypt+0xc15/0xd20 crypto/adiantum.c:379 adiantum_encrypt+0x32/0x40 crypto/adiantum.c:419 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+0x1377/0x2e50 fs/ext4/page-io.c:525 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1932 mpage_process_page_bufs+0xb92/0xe30 fs/ext4/inode.c:2045 mpage_process_folio fs/ext4/inode.c:2099 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2168 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2310 [inline] ext4_do_writepages+0x351b/0x62c0 fs/ext4/inode.c:2735 ext4_writepages+0x312/0x830 fs/ext4/inode.c:2824 do_writepages+0x427/0xc30 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x6f2/0x7b0 mm/filemap.c:787 generic_buffers_fsync_noflush+0x7e/0x3c0 fs/buffer.c:600 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x5ae/0x1390 fs/ext4/fsync.c:151 vfs_fsync_range+0x1f9/0x260 fs/sync.c:187 generic_write_sync include/linux/fs.h:2904 [inline] ext4_buffered_write_iter+0x9a7/0xaa0 fs/ext4/file.c:305 ext4_file_write_iter+0x266/0x3820 do_iter_readv_writev+0x88a/0xa30 vfs_writev+0x56a/0x14f0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x262/0x460 fs/read_write.c:1195 __x64_sys_pwritev2+0x11f/0x1a0 fs/read_write.c:1195 x64_sys_call+0x368c/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: adiantum_crypt+0x4e4/0xd20 crypto/adiantum.c:368 adiantum_encrypt+0x32/0x40 crypto/adiantum.c:419 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+0x1377/0x2e50 fs/ext4/page-io.c:525 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1932 mpage_process_page_bufs+0xb92/0xe30 fs/ext4/inode.c:2045 mpage_process_folio fs/ext4/inode.c:2099 [inline] mpage_map_and_submit_buffers fs/ext4/inode.c:2168 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2310 [inline] ext4_do_writepages+0x351b/0x62c0 fs/ext4/inode.c:2735 ext4_writepages+0x312/0x830 fs/ext4/inode.c:2824 do_writepages+0x427/0xc30 mm/page-writeback.c:2702 filemap_fdatawrite_wbc mm/filemap.c:397 [inline] __filemap_fdatawrite_range mm/filemap.c:430 [inline] file_write_and_wait_range+0x6f2/0x7b0 mm/filemap.c:787 generic_buffers_fsync_noflush+0x7e/0x3c0 fs/buffer.c:600 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x5ae/0x1390 fs/ext4/fsync.c:151 vfs_fsync_range+0x1f9/0x260 fs/sync.c:187 generic_write_sync include/linux/fs.h:2904 [inline] ext4_buffered_write_iter+0x9a7/0xaa0 fs/ext4/file.c:305 ext4_file_write_iter+0x266/0x3820 do_iter_readv_writev+0x88a/0xa30 vfs_writev+0x56a/0x14f0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x262/0x460 fs/read_write.c:1195 __x64_sys_pwritev2+0x11f/0x1a0 fs/read_write.c:1195 x64_sys_call+0x368c/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: __alloc_pages_noprof+0x9a7/0xe00 mm/page_alloc.c:4774 alloc_pages_mpol_noprof+0x299/0x990 mm/mempolicy.c:2269 alloc_pages_noprof mm/mempolicy.c:2348 [inline] folio_alloc_noprof+0x1db/0x310 mm/mempolicy.c:2355 filemap_alloc_folio_noprof+0xa6/0x440 mm/filemap.c:1009 __filemap_get_folio+0xac4/0x1550 mm/filemap.c:1951 ext4_write_begin+0x3e5/0x23d0 fs/ext4/inode.c:1182 ext4_da_write_begin+0x4cd/0xea0 fs/ext4/inode.c:2925 generic_perform_write+0x4d8/0x1080 mm/filemap.c:4055 ext4_buffered_write_iter+0x561/0xaa0 fs/ext4/file.c:299 ext4_file_write_iter+0x266/0x3820 do_iter_readv_writev+0x88a/0xa30 vfs_writev+0x56a/0x14f0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x262/0x460 fs/read_write.c:1195 __x64_sys_pwritev2+0x11f/0x1a0 fs/read_write.c:1195 x64_sys_call+0x368c/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:329 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 1 UID: 0 PID: 7897 Comm: syz.7.329 Not tainted 6.13.0-rc3-syzkaller-00017-gf44d154d6e3d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 =====================================================