syzbot


KMSAN: kernel-infoleak in _copy_to_iter (6)

Status: fixed on 2022/03/08 16:11
Subsystems: net
[Documentation on labels]
Fix commit: 71ddeac8cd1d inet_diag: fix kernel-infoleak for UDP sockets
First crash: 1111d, last: 1000d
Similar bugs (35)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: kernel-infoleak in _copy_to_iter (5) net C 23883 1228d 1664d 20/28 fixed on 2021/11/10 00:50
upstream KMSAN: kernel-infoleak in _copy_to_iter net C 285 2323d 2359d 8/28 fixed on 2018/08/08 18:10
upstream KMSAN: kernel-infoleak in _copy_to_iter (4) net C 56 2191d 2195d 11/28 fixed on 2018/12/18 11:30
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) net C 138977 647d 999d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: kernel-infoleak in _copy_to_iter (8) mm C 21180 543d 637d 22/28 fixed on 2023/06/08 14:41
upstream KMSAN: kernel-infoleak in _copy_to_iter (3) net C 36 2226d 2237d 11/28 fixed on 2018/10/30 01:28
upstream KMSAN: kernel-infoleak in _copy_to_iter (2) net C 7 2252d 2280d 11/28 fixed on 2018/10/08 09:31
upstream KMSAN: uninit-value in skb_release_data (3) net C 10 866d 1545d 0/28 auto-obsoleted due to no activity on 2022/11/17 07:20
upstream KMSAN: uninit-value in hsr_register_frame_in net C 197 499d 2121d 0/28 auto-obsoleted due to no activity on 2024/02/18 18:09
upstream KMSAN: kernel-infoleak in copyout (2) net C 6723 543d 1712d 22/28 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in ipv6_find_tlv net C 271 584d 1938d 22/28 fixed on 2023/06/08 14:41
upstream KMSAN: uninit-value in bpf_prog_run_generic_xdp net C 966 1d20h 745d 0/28 upstream: reported C repro on 2022/11/18 11:39
upstream KMSAN: uninit-value in ax25cmp (2) hams C 51 803d 1064d 0/28 closed as invalid on 2022/11/18 11:50
upstream KMSAN: uninit-value in virtqueue_add (3) virt 13 759d 1052d 0/28 auto-obsoleted due to no activity on 2023/02/12 03:53
upstream KMSAN: kernel-infoleak in __skb_datagram_iter net 68 433d 538d 23/28 fixed on 2023/09/28 17:51
upstream KMSAN: uninit-value in can_send can C 630 742d 760d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in IP6_ECN_decapsulate net C 981 349d 2265d 25/28 fixed on 2023/12/21 03:45
upstream KMSAN: uninit-value in inet_frag_find (2) net 2 1056d 1064d 0/28 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: uninit-value in eth_type_trans (2) net C 5944 2h50m 1776d 0/28 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: uninit-value in hsr_fill_frame_info (2) net C 65 499d 782d 0/28 auto-obsoleted due to no activity on 2023/10/30 13:38
upstream KMSAN: uninit-value in snd_pcm_hw_rule_add (2) sound 18 899d 1167d 0/28 auto-closed as invalid on 2022/09/15 02:38
upstream KMSAN: uninit-value in seq_printf (2) fs C 99 901d 1167d 0/28 auto-closed as invalid on 2022/09/30 02:43
upstream KMSAN: uninit-value in nsim_udp_tunnel_unset_port kernel C 114 1032d 1112d 0/28 auto-closed as invalid on 2022/09/27 06:37
upstream KMSAN: uninit-value in number (4) kernel C 7189 740d 1118d 0/28 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in p9pdu_vwritef v9fs 544 830d 1060d 0/28 auto-obsoleted due to no activity on 2022/11/22 23:51
upstream KMSAN: uninit-value in __vmalloc_node_range block 5 1050d 1095d 0/28 auto-closed as invalid on 2022/04/17 19:38
upstream KMSAN: uninit-value in ptr_to_id fs C 5 1057d 1077d 0/28 auto-closed as invalid on 2022/09/27 03:12
upstream KMSAN: uninit-value in esp6_init_state net 2 1051d 1099d 0/28 auto-closed as invalid on 2022/04/16 22:31
upstream KMSAN: uninit-value in ___bpf_prog_run (3) bpf C 5 961d 963d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in kobject_set_name_vargs kernel 5 976d 1105d 0/28 auto-closed as invalid on 2022/06/30 14:28
upstream KMSAN: uninit-value in hid_connect kernel C 176 761d 1112d 0/28 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in preempt_count_add kernel C 6657 785d 785d 0/28 closed as invalid on 2022/10/10 13:29
upstream KMSAN: uninit-value in bcmp net C error done 907 683d 2004d 22/28 fixed on 2023/02/24 13:50
upstream KMSAN: uninit-value in tipc_sk_lookup tipc 8 1034d 1087d 0/28 auto-closed as invalid on 2022/05/03 21:09
upstream KMSAN: uninit-value in xfrm_state_find net C error done 215 563d 2362d 22/28 fixed on 2023/07/01 16:05

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:156 [inline]
BUG: KMSAN: kernel-infoleak in _copy_to_iter+0x69d/0x25c0 lib/iov_iter.c:670
 instrument_copy_to_user include/linux/instrumented.h:121 [inline]
 copyout lib/iov_iter.c:156 [inline]
 _copy_to_iter+0x69d/0x25c0 lib/iov_iter.c:670
 copy_to_iter include/linux/uio.h:155 [inline]
 simple_copy_to_iter+0xf3/0x140 net/core/datagram.c:519
 __skb_datagram_iter+0x2cb/0x1280 net/core/datagram.c:425
 skb_copy_datagram_iter+0xdc/0x270 net/core/datagram.c:533
 skb_copy_datagram_msg include/linux/skbuff.h:3657 [inline]
 netlink_recvmsg+0x660/0x1c60 net/netlink/af_netlink.c:1974
 sock_recvmsg_nosec net/socket.c:944 [inline]
 sock_recvmsg net/socket.c:962 [inline]
 sock_read_iter+0x5a9/0x630 net/socket.c:1035
 call_read_iter include/linux/fs.h:2156 [inline]
 new_sync_read fs/read_write.c:400 [inline]
 vfs_read+0x1631/0x1980 fs/read_write.c:481
 ksys_read+0x28c/0x520 fs/read_write.c:619
 __do_sys_read fs/read_write.c:629 [inline]
 __se_sys_read fs/read_write.c:627 [inline]
 __x64_sys_read+0xdb/0x120 fs/read_write.c:627
 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:524 [inline]
 slab_alloc_node mm/slub.c:3251 [inline]
 __kmalloc_node_track_caller+0xe0c/0x1510 mm/slub.c:4974
 kmalloc_reserve net/core/skbuff.c:354 [inline]
 __alloc_skb+0x545/0xf90 net/core/skbuff.c:426
 alloc_skb include/linux/skbuff.h:1126 [inline]
 netlink_dump+0x3d5/0x16a0 net/netlink/af_netlink.c:2245
 __netlink_dump_start+0xd1c/0xee0 net/netlink/af_netlink.c:2370
 netlink_dump_start include/linux/netlink.h:254 [inline]
 inet_diag_handler_cmd+0x2e7/0x400 net/ipv4/inet_diag.c:1343
 sock_diag_rcv_msg+0x24a/0x620
 netlink_rcv_skb+0x447/0x800 net/netlink/af_netlink.c:2491
 sock_diag_rcv+0x63/0x80 net/core/sock_diag.c:276
 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
 netlink_unicast+0x1095/0x1360 net/netlink/af_netlink.c:1345
 netlink_sendmsg+0x16f3/0x1870 net/netlink/af_netlink.c:1916
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg net/socket.c:724 [inline]
 sock_write_iter+0x594/0x690 net/socket.c:1057
 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+0x63f/0xe30 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 312 are uninitialized
Memory access of size 312 starts at ffff88812ab54000
Data copied to user address 0000000020001440

CPU: 1 PID: 6365 Comm: syz-executor801 Not tainted 5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
=====================================================

Crashes (748):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/07 20:52 https://github.com/google/kmsan.git master 8b936c96768e 0230ba3e .config console log report syz C ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/08 15:58 https://github.com/google/kmsan.git master 724946410067 7bdd8b2c .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/07 03:11 https://github.com/google/kmsan.git master 724946410067 7bdd8b2c .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/05 19:24 https://github.com/google/kmsan.git master 724946410067 7bdd8b2c .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/05 01:08 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/03 23:28 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/03 15:10 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/03 05:39 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/02 21:48 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/02 16:06 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/01 15:11 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/01 08:59 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/28 14:04 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/28 08:17 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/27 21:06 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/26 19:48 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/26 06:43 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 05:40 https://github.com/google/kmsan.git master 724946410067 7c337266 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 04:31 https://github.com/google/kmsan.git master 724946410067 7c337266 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 18:08 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 16:18 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 13:49 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 12:04 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 02:42 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/23 00:41 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/22 10:09 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/21 08:35 https://github.com/google/kmsan.git master 724946410067 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/21 05:34 https://github.com/google/kmsan.git master 724946410067 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/21 03:42 https://github.com/google/kmsan.git master 724946410067 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/20 22:03 https://github.com/google/kmsan.git master 724946410067 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 17:32 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 14:34 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 12:20 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 04:57 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 03:00 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/02/17 20:35 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2021/11/17 20:49 https://github.com/google/kmsan.git master 6a4b0eb32d37 cafff8b6 .config console log report info ci-upstream-kmsan-gce KMSAN: kernel-infoleak in _copy_to_iter
2022/03/05 23:43 https://github.com/google/kmsan.git master 724946410067 7bdd8b2c .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/03/05 07:03 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/03/05 04:04 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/03/03 20:24 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/03/01 17:00 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/27 14:30 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 23:40 https://github.com/google/kmsan.git master 724946410067 45a13a73 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 15:21 https://github.com/google/kmsan.git master 724946410067 7c337266 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 11:40 https://github.com/google/kmsan.git master 724946410067 7c337266 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/25 09:03 https://github.com/google/kmsan.git master 724946410067 7c337266 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/24 18:42 https://github.com/google/kmsan.git master 724946410067 b28851a4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/22 16:24 https://github.com/google/kmsan.git master 724946410067 6e821dbf .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/20 15:39 https://github.com/google/kmsan.git master 724946410067 3cd800e4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
2022/02/18 10:42 https://github.com/google/kmsan.git master 85cfd6e539bd 3cd800e4 .config console log report info ci-upstream-kmsan-gce-386 KMSAN: kernel-infoleak in _copy_to_iter
* Struck through repros no longer work on HEAD.