syzbot


KMSAN: kernel-infoleak in _copy_to_iter (7)

Status: internal: reported C repro on 2022/03/09 07:32
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 633593a80898 sctp: fix kernel-infoleak for SCTP sockets
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 117d, last: 37m
similar bugs (18):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: kernel-infoleak in _copy_to_iter (5) C 23883 345d 781d 22/22 fixed on 2021/11/10 00:50
upstream KMSAN: kernel-infoleak in _copy_to_iter C 285 1441d 1476d 9/22 fixed on 2018/08/08 18:10
upstream KMSAN: kernel-infoleak in _copy_to_iter (4) C 56 1308d 1312d 12/22 fixed on 2018/12/18 11:30
upstream KMSAN: kernel-infoleak in _copy_to_iter (3) C 36 1343d 1354d 12/22 fixed on 2018/10/30 01:28
upstream KMSAN: kernel-infoleak in _copy_to_iter (2) C 7 1370d 1397d 12/22 fixed on 2018/10/08 09:31
upstream KMSAN: kernel-infoleak in _copy_to_iter (6) C 748 117d 206d 22/22 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in ___bpf_prog_run (3) C 5 79d 80d 21/22 internal: reported C repro on 2022/04/14 08:35
upstream KMSAN: uninit-value in bcmp C 885 19d 1121d 0/22 upstream: reported C repro on 2019/06/08 15:03
upstream KMSAN: uninit-value in tipc_sk_lookup 8 151d 205d 0/22 auto-closed as invalid on 2022/05/03 21:09
upstream KMSAN: uninit-value in ipv6_find_tlv C 16 53d 1055d 0/22 upstream: reported C repro on 2019/08/13 14:48
upstream KMSAN: uninit-value in inet_frag_find (2) 2 173d 181d 0/22 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: uninit-value in eth_type_trans (2) C 1896 3h32m 893d 0/22 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: kernel-infoleak in vcs_read (2) C 1370 1h27m 942d 0/22 upstream: reported C repro on 2019/12/04 15:25
upstream KMSAN: uninit-value in kobject_set_name_vargs 5 93d 223d 0/22 auto-closed as invalid on 2022/06/30 14:28
upstream KASAN: stack-out-of-bounds Read in __show_regs C unreliable unreliable 71 2h47m 382d 0/22 upstream: reported C repro on 2021/06/17 03:08
upstream KMSAN: uninit-value in hsr_get_node 304 451d 692d 0/22 auto-closed as invalid on 2021/07/08 06:23
upstream KMSAN: uninit-value in p9pdu_readf 14 152d 267d 22/22 fixed on 2022/03/08 16:11
upstream KMSAN: uninit-value in asix_mdio_read (3) C 1582 48d 113d 21/22 upstream: reported C repro on 2022/03/13 07:35

Sample crash report:
=====================================================
BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:121 [inline]
BUG: KMSAN: kernel-infoleak in copyout lib/iov_iter.c:154 [inline]
BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x6ef/0x25a0 lib/iov_iter.c:668
 instrument_copy_to_user include/linux/instrumented.h:121 [inline]
 copyout lib/iov_iter.c:154 [inline]
 _copy_to_iter+0x6ef/0x25a0 lib/iov_iter.c:668
 copy_to_iter include/linux/uio.h:162 [inline]
 simple_copy_to_iter+0xf3/0x140 net/core/datagram.c:519
 __skb_datagram_iter+0x2d5/0x11b0 net/core/datagram.c:425
 skb_copy_datagram_iter+0xdc/0x270 net/core/datagram.c:533
 skb_copy_datagram_msg include/linux/skbuff.h:3696 [inline]
 netlink_recvmsg+0x669/0x1c80 net/netlink/af_netlink.c:1977
 sock_recvmsg_nosec net/socket.c:948 [inline]
 sock_recvmsg net/socket.c:966 [inline]
 __sys_recvfrom+0x795/0xa10 net/socket.c:2097
 __do_sys_recvfrom net/socket.c:2115 [inline]
 __se_sys_recvfrom net/socket.c:2111 [inline]
 __x64_sys_recvfrom+0x19d/0x210 net/socket.c:2111
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Uninit was created at:
 slab_post_alloc_hook mm/slab.h:737 [inline]
 slab_alloc_node mm/slub.c:3247 [inline]
 __kmalloc_node_track_caller+0xe0c/0x1510 mm/slub.c:4975
 kmalloc_reserve net/core/skbuff.c:354 [inline]
 __alloc_skb+0x545/0xf90 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1158 [inline]
 netlink_dump+0x3e5/0x16c0 net/netlink/af_netlink.c:2248
 __netlink_dump_start+0xcf8/0xe90 net/netlink/af_netlink.c:2373
 netlink_dump_start include/linux/netlink.h:254 [inline]
 inet_diag_handler_cmd+0x2e7/0x400 net/ipv4/inet_diag.c:1341
 sock_diag_rcv_msg+0x24a/0x620
 netlink_rcv_skb+0x40c/0x7e0 net/netlink/af_netlink.c:2494
 sock_diag_rcv+0x63/0x80 net/core/sock_diag.c:277
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x1093/0x1360 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x14d9/0x1720 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg net/socket.c:725 [inline]
 sock_write_iter+0x594/0x690 net/socket.c:1061
 do_iter_readv_writev+0xa7f/0xc70
 do_iter_write+0x52c/0x1500 fs/read_write.c:851
 vfs_writev fs/read_write.c:924 [inline]
 do_writev+0x645/0xe00 fs/read_write.c:967
 __do_sys_writev fs/read_write.c:1040 [inline]
 __se_sys_writev fs/read_write.c:1037 [inline]
 __x64_sys_writev+0xe5/0x120 fs/read_write.c:1037
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x44/0xae

Bytes 68-71 of 2508 are uninitialized
Memory access of size 2508 starts at ffff888114f9b000
Data copied to user address 00007f7fe09ff2e0

CPU: 1 PID: 3478 Comm: syz-executor306 Not tainted 5.17.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================

Crashes (381):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2022/03/08 22:47 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config log report syz C KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce 2022/06/25 13:36 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report syz C KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 08:40 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce 2022/06/26 01:14 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce 2022/03/08 21:34 https://github.com/google/kmsan.git master 724946410067 9e8eaa75 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/07/04 02:21 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/07/03 14:49 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/07/01 06:01 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/30 10:22 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/25 12:12 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/25 07:38 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/24 21:49 https://github.com/google/kmsan.git master 4b28366af7d9 a5dbd430 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/24 15:30 https://github.com/google/kmsan.git master 4b28366af7d9 a5dbd430 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/24 07:01 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce-386 2022/06/23 04:50 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: kernel-infoleak in _copy_to_iter
ci-upstream-kmsan-gce 2022/07/04 07:32 https://github.com/google/kmsan.git master 97117d69c353 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/07/03 13:20 https://github.com/google/kmsan.git master 97117d69c353 1434eec0 .config log report info KMSAN: uninit-value in hsr_forward_skb
ci-upstream-kmsan-gce 2022/07/03 04:46 https://github.com/google/kmsan.git master 97117d69c353 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/07/02 02:35 https://github.com/google/kmsan.git master 97117d69c353 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/29 02:36 https://github.com/google/kmsan.git master ec1cbf8b060e 496a8536 .config log report info KMSAN: uninit-value in validate_xmit_skb
ci-upstream-kmsan-gce 2022/06/28 07:52 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/28 03:51 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 23:56 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 19:53 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 18:04 https://github.com/google/kmsan.git master 4b28366af7d9 ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 11:15 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/27 05:12 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/26 12:31 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/26 09:17 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 23:17 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 21:19 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 19:17 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 09:25 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 05:10 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/25 00:03 https://github.com/google/kmsan.git master 4b28366af7d9 a5dbd430 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/24 10:26 https://github.com/google/kmsan.git master 4b28366af7d9 a5dbd430 .config log report info KMSAN: uninit-value in validate_xmit_skb
ci-upstream-kmsan-gce 2022/06/23 21:21 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/23 13:07 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/23 03:35 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce 2022/06/18 01:47 https://github.com/google/kmsan.git master 2d0ce79ea812 cb58b3b2 .config log report info KMSAN: uninit-value in geneve_rx
ci-upstream-kmsan-gce-386 2022/07/03 09:08 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/07/01 23:09 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/07/01 03:53 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: uninit-value in hsr_get_node
ci-upstream-kmsan-gce-386 2022/06/30 21:50 https://github.com/google/kmsan.git master ec1cbf8b060e 1434eec0 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/06/29 02:48 https://github.com/google/kmsan.git master ec1cbf8b060e 496a8536 .config log report info KMSAN: uninit-value in validate_xmit_skb
ci-upstream-kmsan-gce-386 2022/06/27 21:11 https://github.com/google/kmsan.git master d60755a5e2cb ef82eb2c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/06/26 16:42 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/06/25 13:35 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in hsr_get_node
ci-upstream-kmsan-gce-386 2022/06/25 02:58 https://github.com/google/kmsan.git master 4b28366af7d9 a371c43c .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/06/23 09:58 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: uninit-value in validate_xmit_skb
ci-upstream-kmsan-gce-386 2022/06/22 22:54 https://github.com/google/kmsan.git master 4b28366af7d9 912f5df7 .config log report info KMSAN: uninit-value in show_regs
ci-upstream-kmsan-gce-386 2022/04/20 19:47 https://github.com/google/kmsan.git master 33d9269ef6e0 160a3f31 .config log report info KMSAN: kernel-infoleak-after-free in _copy_to_iter