syzbot


KMSAN: uninit-value in aes_encrypt (5)

Status: upstream: reported C repro on 2024/04/28 10:32
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+aeb14e2539ffb6d21130@syzkaller.appspotmail.com
First crash: 493d, last: 3h33m
Discussions (9)
Title Replies (including bot) Last reply
[syzbot] Monthly ext4 report (Aug 2025) 0 (1) 2025/08/27 08:15
[syzbot] Monthly ext4 report (Apr 2025) 0 (1) 2025/04/24 13:06
[syzbot] Monthly ext4 report (Mar 2025) 0 (1) 2025/03/24 18:56
[syzbot] Monthly ext4 report (Feb 2025) 0 (1) 2025/02/21 09:41
[syzbot] Monthly ext4 report (Jan 2025) 0 (1) 2025/01/20 13:06
[syzbot] Monthly ext4 report (Dec 2024) 0 (1) 2024/12/19 18:40
[syzbot] Monthly ext4 report (Nov 2024) 0 (1) 2024/11/18 10:39
[PATCH] fs/ext4: Prevent encryption/decryption of unaligned blocks in aes_encrypt 2 (2) 2024/06/21 04:00
[syzbot] [crypto?] KMSAN: uninit-value in aes_encrypt (5) 1 (8) 2024/06/06 09:15
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in aes_encrypt crypto 7 C 2 2701d 2701d 0/29 closed as invalid on 2018/06/27 14:58
upstream KMSAN: uninit-value in aes_encrypt (4) net 7 C 15041 599d 1815d 0/29 auto-obsoleted due to no activity on 2024/03/19 00:25
upstream KMSAN: uninit-value in aes_encrypt (2) crypto 7 C 52 2107d 2136d 0/29 closed as dup on 2019/11/19 02:55
upstream KMSAN: uninit-value in aes_encrypt (3) crypto 7 C 2 1868d 1869d 0/29 closed as invalid on 2020/07/22 14:12
Last patch testing requests (11)
Created Duration User Patch Repo Result
2025/07/13 13:08 49m retest repro upstream report log
2025/07/13 13:08 20m retest repro upstream report log
2025/04/04 06:00 33m retest repro upstream report log
2025/04/04 06:00 27m retest repro upstream report log
2025/01/20 09:17 21m retest repro upstream report log
2025/01/20 09:17 1h48m retest repro upstream report log
2024/06/06 09:15 1h46m norkam41@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 45db3ab70092637967967bfd8e6144017638563c report log
2024/06/06 08:27 25m norkam41@gmail.com upstream error
2024/06/06 07:57 18m norkam41@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 45db3ab70092637967967bfd8e6144017638563c report log
2024/06/06 06:15 18m norkam41@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 45db3ab70092637967967bfd8e6144017638563c report log
2024/06/05 20:17 28m norkam41@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 45db3ab70092637967967bfd8e6144017638563c report log

Sample crash report:
ext4 filesystem being mounted at /root/mnt supports timestamps until 2038-01-19 (0x7fffffff)
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+0x1377/0x2e50 fs/ext4/page-io.c:525
 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1932
 mpage_map_and_submit_buffers fs/ext4/inode.c:2178 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2310 [inline]
 ext4_do_writepages+0x3713/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
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0xb2b/0x1540 fs/read_write.c:679
 ksys_pwrite64 fs/read_write.c:786 [inline]
 __do_sys_pwrite64 fs/read_write.c:794 [inline]
 __se_sys_pwrite64 fs/read_write.c:791 [inline]
 __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:791
 x64_sys_call+0xc16/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:19
 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_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+0x1377/0x2e50 fs/ext4/page-io.c:525
 mpage_submit_folio+0x360/0x490 fs/ext4/inode.c:1932
 mpage_map_and_submit_buffers fs/ext4/inode.c:2178 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2310 [inline]
 ext4_do_writepages+0x3713/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
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0xb2b/0x1540 fs/read_write.c:679
 ksys_pwrite64 fs/read_write.c:786 [inline]
 __do_sys_pwrite64 fs/read_write.c:794 [inline]
 __se_sys_pwrite64 fs/read_write.c:791 [inline]
 __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:791
 x64_sys_call+0xc16/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:19
 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:2265
 alloc_pages_noprof mm/mempolicy.c:2344 [inline]
 folio_alloc_noprof+0x1db/0x310 mm/mempolicy.c:2351
 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
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0xb2b/0x1540 fs/read_write.c:679
 ksys_pwrite64 fs/read_write.c:786 [inline]
 __do_sys_pwrite64 fs/read_write.c:794 [inline]
 __se_sys_pwrite64 fs/read_write.c:791 [inline]
 __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:791
 x64_sys_call+0xc16/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:19
 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: 5781 Comm: syz-executor375 Not tainted 6.13.0-rc1-syzkaller-00005-gceb8bf2ceaa7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
=====================================================

Crashes (930):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/04 07:02 upstream ceb8bf2ceaa7 b50eb251 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2024/05/10 04:01 upstream 45db3ab70092 de979bc2 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/30 01:16 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 22:14 upstream fb679c832b64 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 13:50 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 11:36 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 08:01 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 03:36 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/29 01:01 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/28 13:07 upstream 07d9df80082b 443c11c7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/28 11:20 upstream 07d9df80082b 443c11c7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/28 09:28 upstream 07d9df80082b e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/28 07:02 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/28 05:31 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 21:44 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 20:12 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 18:36 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 13:15 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 12:06 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 10:40 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/27 08:04 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 23:59 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 22:46 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 18:56 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 10:54 upstream fab1beda7597 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 07:32 upstream fab1beda7597 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 03:56 upstream b6add54ba618 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/26 02:42 upstream b6add54ba618 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/25 22:18 upstream b6add54ba618 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2024/04/28 09:48 upstream 5d12ed4bea43 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2024/04/24 10:25 upstream 9d1ddab261f3 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in aes_encrypt
2025/08/30 11:59 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/30 10:41 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/30 04:35 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/30 01:56 upstream fb679c832b64 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 23:23 upstream fb679c832b64 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 20:59 upstream fb679c832b64 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 16:44 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 15:22 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 09:56 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 05:55 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/29 02:14 upstream 07d9df80082b 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/28 04:10 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/27 23:31 upstream 39f90c196721 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/27 16:41 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/27 06:52 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/26 20:16 upstream fab1beda7597 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/26 12:47 upstream fab1beda7597 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/26 09:53 upstream fab1beda7597 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
2025/08/25 20:32 upstream b6add54ba618 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in aes_encrypt
* Struck through repros no longer work on HEAD.