syzbot


KMSAN: uninit-value in af_alg_free_resources

Status: fixed on 2023/10/12 12:48
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+cba21d50095623218389@syzkaller.appspotmail.com
Fix commit: 080aa61e370b crypto: fix uninit-value in af_alg_free_resources
First crash: 313d, last: 272d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] crypto: fix uninit-value in af_alg_free_resources 6 (6) 2023/08/18 13:21
[syzbot] [crypto?] KMSAN: uninit-value in af_alg_free_resources 3 (5) 2023/08/13 12:09
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/07/14 14:56 33m paskripkin@gmail.com patch upstream OK log

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in af_alg_free_sg crypto/af_alg.c:545 [inline]
BUG: KMSAN: uninit-value in af_alg_free_areq_sgls crypto/af_alg.c:778 [inline]
BUG: KMSAN: uninit-value in af_alg_free_resources+0x3d1/0xf60 crypto/af_alg.c:1117
 af_alg_free_sg crypto/af_alg.c:545 [inline]
 af_alg_free_areq_sgls crypto/af_alg.c:778 [inline]
 af_alg_free_resources+0x3d1/0xf60 crypto/af_alg.c:1117
 _skcipher_recvmsg crypto/algif_skcipher.c:144 [inline]
 skcipher_recvmsg+0x6a0/0x1a20 crypto/algif_skcipher.c:157
 sock_recvmsg_nosec net/socket.c:1020 [inline]
 sock_recvmsg net/socket.c:1041 [inline]
 __sys_recvfrom+0x505/0x810 net/socket.c:2186
 __do_sys_recvfrom net/socket.c:2204 [inline]
 __se_sys_recvfrom net/socket.c:2200 [inline]
 __x64_sys_recvfrom+0x126/0x1d0 net/socket.c:2200
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

Uninit was created at:
 slab_post_alloc_hook+0x12f/0xb70 mm/slab.h:767
 slab_alloc_node mm/slub.c:3470 [inline]
 __kmem_cache_alloc_node+0x536/0x8d0 mm/slub.c:3509
 __do_kmalloc_node mm/slab_common.c:984 [inline]
 __kmalloc+0x121/0x3c0 mm/slab_common.c:998
 kmalloc include/linux/slab.h:586 [inline]
 sock_kmalloc+0x128/0x1c0 net/core/sock.c:2683
 af_alg_alloc_areq+0x41/0x2a0 crypto/af_alg.c:1188
 _skcipher_recvmsg crypto/algif_skcipher.c:71 [inline]
 skcipher_recvmsg+0x514/0x1a20 crypto/algif_skcipher.c:157
 sock_recvmsg_nosec net/socket.c:1020 [inline]
 sock_recvmsg net/socket.c:1041 [inline]
 __sys_recvfrom+0x505/0x810 net/socket.c:2186
 __do_sys_recvfrom net/socket.c:2204 [inline]
 __se_sys_recvfrom net/socket.c:2200 [inline]
 __x64_sys_recvfrom+0x126/0x1d0 net/socket.c:2200
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

CPU: 0 PID: 5031 Comm: syz-executor370 Not tainted 6.5.0-rc1-syzkaller-00006-g3f01e9fed845 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
=====================================================

Crashes (156):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/11 15:13 upstream 3f01e9fed845 f8780940 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/19 17:18 upstream 4e7ffde6984a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/19 15:38 upstream 4e7ffde6984a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/19 11:35 upstream 4e7ffde6984a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/19 05:32 upstream 8abd7287db92 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/18 23:31 upstream 8abd7287db92 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/18 16:57 upstream 0e8860d2125f d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/18 12:14 upstream 0e8860d2125f 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/17 05:53 upstream 4853c74bd7ab 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/16 14:56 upstream 4853c74bd7ab 7773e940 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/16 06:36 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 23:48 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 21:46 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 10:36 upstream 91aa6c412d7f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 08:00 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 07:00 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 03:04 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/15 01:15 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/14 19:17 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/14 16:06 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/14 14:30 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/14 10:01 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/14 02:00 upstream 4c75bf7e4a0e 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/13 04:54 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/12 23:35 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/12 11:52 upstream f8de32cc060b 39990d51 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/10 14:49 upstream cacc6e22932f 4df3089c .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/10 03:19 upstream 13b937206866 13ca4cd6 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/07 06:59 upstream 52a93d39b17d 4ffcc9ef .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/07 02:53 upstream f0ab9f34e59e 4ffcc9ef .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/06 19:38 upstream f0ab9f34e59e 4ffcc9ef .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/05 09:28 upstream e6fda526d9db 4ffcc9ef .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/05 05:19 upstream e6fda526d9db 4ffcc9ef .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/04 04:07 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/03 23:10 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/03 21:26 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/03 14:26 upstream ec351c8f2e62 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/02 17:47 upstream 5d0c230f1de8 39a91c18 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/02 09:21 upstream 5d0c230f1de8 df07ffe8 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/02 04:56 upstream 5d0c230f1de8 df07ffe8 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/02 03:50 upstream 5d0c230f1de8 df07ffe8 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/01 23:49 upstream 5d0c230f1de8 df07ffe8 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/01 21:21 upstream 5d0c230f1de8 df07ffe8 .config console log report info ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/08/20 22:49 upstream 706a74159504 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in af_alg_free_resources
2023/08/20 15:37 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in af_alg_free_resources
2023/08/20 12:59 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in af_alg_free_resources
2023/08/14 06:52 upstream 4c75bf7e4a0e 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in af_alg_free_resources
2023/07/10 11:03 https://github.com/google/kmsan.git master d1d7f15cd819 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in af_alg_free_resources
2023/07/22 14:17 upstream d192f5382581 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in crypto_gcm_init_common
* Struck through repros no longer work on HEAD.