syzbot


KMSAN: uninit-value in sctp_inq_pop (2)

Status: upstream: reported C repro on 2022/01/08 08:00
Subsystems: sctp
[Documentation on labels]
Reported-by: syzbot+70a42f45e76bede082be@syzkaller.appspotmail.com
First crash: 919d, last: 2d23h
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] sctp: fix uninit-value in sctp_inq_pop() 4 (4) 2023/09/08 04:48
[syzbot] KMSAN: uninit-value in sctp_inq_pop (2) 0 (1) 2022/01/08 08:00
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in sctp_inq_pop sctp 3 1065d 1104d 0/26 auto-closed as invalid on 2021/10/24 08:36
upstream KMSAN: kernel-infoleak in copyout (2) net C 6723 353d 1521d 22/26 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in nf_nat_setup_info (2) netfilter C 764 789d 869d 0/26 auto-obsoleted due to no activity on 2022/09/28 07:28
upstream KMSAN: kernel-infoleak in __skb_datagram_iter net 68 242d 347d 23/26 fixed on 2023/09/28 17:51
upstream KMSAN: uninit-value in eth_type_trans (2) net C 4732 7h10m 1585d 0/26 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: kernel-infoleak in move_addr_to_user (6) tipc C 4 849d 887d 20/26 fixed on 2022/03/08 16:11
Last patch testing requests (6)
Created Duration User Patch Repo Result
2023/08/28 16:57 25m n.zhandarovich@fintech.ru patch https://github.com/google/kmsan.git master OK log
2023/08/14 18:13 17m andrew.kanner@gmail.com patch https://github.com/google/kmsan.git master report log
2023/08/14 17:41 20m andrew.kanner@gmail.com patch https://github.com/google/kmsan.git master report log
2023/08/01 16:24 22m andrew.kanner@gmail.com https://github.com/google/kmsan.git master report log
2022/05/11 02:41 20m k.kahurani@gmail.com patch https://github.com/google/kmsan.git master OK
2022/05/08 15:20 12m (78) k.kahurani@gmail.com patch https://github.com/google/kmsan.git master report log

Sample crash report:
netlink: 44 bytes leftover after parsing attributes in process `syz-executor192'.
=====================================================
BUG: KMSAN: uninit-value in sctp_inq_pop+0x15b3/0x1920 net/sctp/inqueue.c:211
 sctp_inq_pop+0x15b3/0x1920 net/sctp/inqueue.c:211
 sctp_assoc_bh_rcv+0x1a7/0xc50 net/sctp/associola.c:997
 sctp_inq_push+0x2ec/0x380 net/sctp/inqueue.c:88
 sctp_backlog_rcv+0x397/0xdb0 net/sctp/input.c:331
 sk_backlog_rcv include/net/sock.h:1092 [inline]
 __release_sock+0x207/0x570 net/core/sock.c:2972
 release_sock+0x6b/0x200 net/core/sock.c:3538
 sctp_wait_for_connect+0x486/0x810 net/sctp/socket.c:9343
 sctp_sendmsg_to_asoc+0x1ea7/0x1ee0 net/sctp/socket.c:1884
 sctp_sendmsg+0x32b4/0x4a70 net/sctp/socket.c:2030
 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:850
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 __sys_sendto+0x735/0xa10 net/socket.c:2191
 __do_sys_sendto net/socket.c:2203 [inline]
 __se_sys_sendto net/socket.c:2199 [inline]
 __x64_sys_sendto+0x125/0x1c0 net/socket.c:2199
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

Uninit was stored to memory at:
 sctp_inq_pop+0x153a/0x1920 net/sctp/inqueue.c:207
 sctp_assoc_bh_rcv+0x1a7/0xc50 net/sctp/associola.c:997
 sctp_inq_push+0x2ec/0x380 net/sctp/inqueue.c:88
 sctp_backlog_rcv+0x397/0xdb0 net/sctp/input.c:331
 sk_backlog_rcv include/net/sock.h:1092 [inline]
 __release_sock+0x207/0x570 net/core/sock.c:2972
 release_sock+0x6b/0x200 net/core/sock.c:3538
 sctp_wait_for_connect+0x486/0x810 net/sctp/socket.c:9343
 sctp_sendmsg_to_asoc+0x1ea7/0x1ee0 net/sctp/socket.c:1884
 sctp_sendmsg+0x32b4/0x4a70 net/sctp/socket.c:2030
 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:850
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 __sys_sendto+0x735/0xa10 net/socket.c:2191
 __do_sys_sendto net/socket.c:2203 [inline]
 __se_sys_sendto net/socket.c:2199 [inline]
 __x64_sys_sendto+0x125/0x1c0 net/socket.c:2199
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

Uninit was created at:
 slab_post_alloc_hook mm/slub.c:3819 [inline]
 slab_alloc_node mm/slub.c:3860 [inline]
 __do_kmalloc_node mm/slub.c:3980 [inline]
 __kmalloc_node_track_caller+0x705/0x1000 mm/slub.c:4001
 kmalloc_reserve+0x249/0x4a0 net/core/skbuff.c:582
 __alloc_skb+0x352/0x790 net/core/skbuff.c:651
 alloc_skb include/linux/skbuff.h:1296 [inline]
 sctp_packet_pack net/sctp/output.c:472 [inline]
 sctp_packet_transmit+0x1782/0x4310 net/sctp/output.c:621
 sctp_outq_flush_transports net/sctp/outqueue.c:1173 [inline]
 sctp_outq_flush+0x1b2f/0x6540 net/sctp/outqueue.c:1221
 sctp_outq_uncork+0x9c/0xb0 net/sctp/outqueue.c:764
 sctp_side_effects net/sctp/sm_sideeffect.c:1198 [inline]
 sctp_do_sm+0x8c1a/0x9390 net/sctp/sm_sideeffect.c:1169
 sctp_assoc_bh_rcv+0x8fe/0xc50 net/sctp/associola.c:1051
 sctp_inq_push+0x2ec/0x380 net/sctp/inqueue.c:88
 sctp_backlog_rcv+0x397/0xdb0 net/sctp/input.c:331
 sk_backlog_rcv include/net/sock.h:1092 [inline]
 __release_sock+0x207/0x570 net/core/sock.c:2972
 release_sock+0x6b/0x200 net/core/sock.c:3538
 sctp_wait_for_connect+0x486/0x810 net/sctp/socket.c:9343
 sctp_sendmsg_to_asoc+0x1ea7/0x1ee0 net/sctp/socket.c:1884
 sctp_sendmsg+0x32b4/0x4a70 net/sctp/socket.c:2030
 inet_sendmsg+0x105/0x190 net/ipv4/af_inet.c:850
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 __sys_sendto+0x735/0xa10 net/socket.c:2191
 __do_sys_sendto net/socket.c:2203 [inline]
 __se_sys_sendto net/socket.c:2199 [inline]
 __x64_sys_sendto+0x125/0x1c0 net/socket.c:2199
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

CPU: 0 PID: 5016 Comm: syz-executor192 Not tainted 6.8.0-rc5-syzkaller-00381-g70ff1fe626a1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
=====================================================

Crashes (2915):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/26 10:50 upstream 70ff1fe626a1 8d446f15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2023/10/22 16:19 upstream 1acfd2bd3f0d 361b23dc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2023/07/10 03:00 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2022/08/22 05:50 https://github.com/google/kmsan.git master 1b070a5d1a2c 26a13b38 .config strace log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2022/05/13 22:16 https://github.com/google/kmsan.git master d6e2c8c7eb40 107f6434 .config strace log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2022/01/04 02:03 https://github.com/google/kmsan.git master 81c325bbf94e 4a3f34f2 .config console log report syz C ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2024/05/23 09:27 upstream 614da38e2f7a 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/16 09:46 upstream 614da38e2f7a ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/12 12:54 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/11 08:49 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/11 04:41 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/10 15:24 upstream 448b3fe5a0ea f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/09 21:48 upstream 45db3ab70092 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/08 06:54 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/08 02:31 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/08 02:31 upstream dccb07f2914c 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/06 10:06 upstream dd5a440a31fa 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/04 11:51 upstream 3d25a941ea50 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/03 10:05 upstream f03359bca01b 375d4445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/05/03 08:13 upstream 49a73b1652c5 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/14 02:15 upstream fa4022cb7361 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/11 18:44 upstream e8c39d0f57f3 478efa7f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/11 00:26 upstream 2c71fdf02a95 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/09 04:28 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/08 16:04 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 22:26 upstream 9fe30842a90b ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 17:30 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 16:11 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 14:00 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 08:42 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 05:09 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 03:54 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/04 09:14 upstream c85af715cac0 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/03 18:35 upstream 3e92c1e6cd87 fed899ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2024/04/02 04:25 upstream 026e680b0a08 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in sctp_inq_pop
2023/12/19 03:10 upstream 2cf4f94d8e86 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce KMSAN: uninit-value in sctp_inq_pop
2024/05/18 23:14 upstream 101b7a97143a c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/05/18 00:28 upstream 101b7a97143a a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/05/16 14:39 upstream 101b7a97143a ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/05/13 03:59 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/05/10 21:58 upstream f4345f05c0df f7c35481 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/22 06:07 upstream 48cf398f15fc af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/14 15:10 upstream 7efd0a74039f c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/13 22:42 upstream fa4022cb7361 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/12 09:28 upstream 586b5dfb51b9 27de0a5c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/09 17:20 upstream 20cb38a7af88 56086b24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/09 06:33 upstream 20cb38a7af88 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/08 10:16 upstream fec50db7033e ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 21:09 upstream 9fe30842a90b ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/07 01:34 upstream f2f80ac80987 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/05 14:42 upstream 8cb4a9a82b21 18ea8213 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/05 08:54 upstream 8cb4a9a82b21 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/03 00:48 upstream b1e6ec0a0fd0 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2024/04/02 02:16 upstream 026e680b0a08 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386-root KMSAN: uninit-value in sctp_inq_pop
2023/12/20 03:38 upstream 55cb5f43689d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in sctp_inq_pop
2021/11/19 07:31 https://github.com/google/kmsan.git master 412af9cd936d 31a30fc0 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in sctp_inq_pop
* Struck through repros no longer work on HEAD.