syzbot


KMSAN: kernel-infoleak in _copy_to_iter (6)

Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 71ddeac8cd1d inet_diag: fix kernel-infoleak for UDP sockets
First crash: 387d, last: 276d
similar bugs (30):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: kernel-infoleak in _copy_to_iter (5) C 23883 504d 940d 22/24 fixed on 2021/11/10 00:50
upstream KMSAN: kernel-infoleak in _copy_to_iter C 285 1599d 1635d 9/24 fixed on 2018/08/08 18:10
upstream KMSAN: kernel-infoleak in _copy_to_iter (4) C 56 1467d 1471d 12/24 fixed on 2018/12/18 11:30
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) C 77587 now 275d 23/24 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: kernel-infoleak in _copy_to_iter (3) C 36 1502d 1513d 12/24 fixed on 2018/10/30 01:28
upstream KMSAN: kernel-infoleak in _copy_to_iter (2) C 7 1528d 1556d 12/24 fixed on 2018/10/08 09:31
upstream KMSAN: uninit-value in skb_release_data (3) C 10 142d 821d 0/24 auto-obsoleted due to no activity on 2022/11/17 07:20
upstream KMSAN: uninit-value in ipv6_find_tlv C 117 17h44m 1214d 0/24 upstream: reported C repro on 2019/08/13 14:48
upstream KMSAN: uninit-value in bpf_prog_run_generic_xdp 104 4d05h 21d 0/24 upstream: reported on 2022/11/18 11:39
upstream KMSAN: uninit-value in ax25cmp (2) C 51 79d 340d 0/24 closed as invalid on 2022/11/18 11:50
upstream KMSAN: uninit-value in can_send C 630 18d 36d 23/24 upstream: reported C repro on 2022/11/03 16:22
upstream KMSAN: uninit-value in inet_frag_find (2) 2 332d 340d 0/24 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: uninit-value in eth_type_trans (2) C 3030 39m 1052d 0/24 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: uninit-value in hsr_fill_frame_info (2) C 63 71d 58d 0/24 upstream: reported C repro on 2022/10/12 19:10
upstream KMSAN: uninit-value in snd_pcm_hw_rule_add (2) 18 175d 443d 0/24 auto-closed as invalid on 2022/09/15 02:38
upstream KMSAN: uninit-value in seq_printf (2) C 99 177d 443d 0/24 auto-closed as invalid on 2022/09/30 02:43
upstream KMSAN: uninit-value in nsim_udp_tunnel_unset_port C 114 308d 388d 0/24 auto-closed as invalid on 2022/09/27 06:37
upstream KMSAN: uninit-value in number (4) C 7189 16d 395d 0/24 closed as invalid on 2022/11/28 10:01
upstream KMSAN: uninit-value in p9pdu_vwritef 544 107d 336d 0/24 auto-obsoleted due to no activity on 2022/11/22 23:51
upstream KMSAN: uninit-value in __vmalloc_node_range 5 326d 371d 0/24 auto-closed as invalid on 2022/04/17 19:38
upstream KMSAN: uninit-value in ptr_to_id C 5 333d 354d 0/24 auto-closed as invalid on 2022/09/27 03:12
upstream KMSAN: uninit-value in esp6_init_state 2 327d 375d 0/24 auto-closed as invalid on 2022/04/16 22:31
upstream KMSAN: kernel-infoleak in copyout (2) C 6457 20h00m 988d 0/24 upstream: reported C repro on 2020/03/26 17:19
upstream KMSAN: uninit-value in ___bpf_prog_run (3) C 5 237d 239d 23/24 internal: reported C repro on 2022/04/14 08:35
upstream KMSAN: uninit-value in kobject_set_name_vargs 5 252d 381d 0/24 auto-closed as invalid on 2022/06/30 14:28
upstream KMSAN: uninit-value in hid_connect C 176 37d 388d 0/24 closed as invalid on 2022/11/03 08:52
upstream KMSAN: uninit-value in preempt_count_add C 6657 61d 61d 0/24 closed as invalid on 2022/10/10 13:29
upstream KMSAN: uninit-value in bcmp C 904 3d07h 1280d 0/24 upstream: reported C repro on 2019/06/08 15:03
upstream KMSAN: uninit-value in tipc_sk_lookup 8 310d 364d 0/24 auto-closed as invalid on 2022/05/03 21:09
upstream KMSAN: uninit-value in __skb_checksum_complete (5) C 636 10h16m 847d 0/24 upstream: reported C repro on 2020/08/14 15:09

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