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: 225d, last: 114d
similar bugs (17):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: kernel-infoleak in _copy_to_iter (5) C 23883 342d 778d 22/22 fixed on 2021/11/10 00:50
upstream KMSAN: kernel-infoleak in _copy_to_iter C 285 1437d 1473d 9/22 fixed on 2018/08/08 18:10
upstream KMSAN: kernel-infoleak in _copy_to_iter (4) C 56 1305d 1309d 12/22 fixed on 2018/12/18 11:30
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) C 365 1h07m 113d 21/22 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: kernel-infoleak in _copy_to_iter (3) C 36 1340d 1351d 12/22 fixed on 2018/10/30 01:28
upstream KMSAN: kernel-infoleak in _copy_to_iter (2) C 7 1366d 1394d 12/22 fixed on 2018/10/08 09:31
upstream KMSAN: uninit-value in ipv6_find_tlv C 16 49d 1052d 0/22 upstream: reported C repro on 2019/08/13 14:48
upstream KMSAN: uninit-value in inet_frag_find (2) 2 170d 178d 0/22 auto-closed as invalid on 2022/04/11 17:13
upstream KMSAN: uninit-value in eth_type_trans (2) C 1856 2h12m 890d 0/22 upstream: reported C repro on 2020/01/22 16:47
upstream KMSAN: uninit-value in p9pdu_vwritef 296 4h18m 174d 0/22 upstream: reported on 2022/01/07 12:50
upstream KMSAN: uninit-value in __vmalloc_node_range 5 164d 209d 0/22 auto-closed as invalid on 2022/04/17 19:38
upstream KMSAN: uninit-value in esp6_init_state 2 165d 213d 0/22 auto-closed as invalid on 2022/04/16 22:31
upstream KMSAN: uninit-value in ___bpf_prog_run (3) C 5 75d 77d 21/22 internal: reported C repro on 2022/04/14 08:35
upstream KMSAN: uninit-value in kobject_set_name_vargs 5 90d 219d 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 61 16h28m 378d 0/22 upstream: reported C repro on 2021/06/17 03:08
upstream KMSAN: uninit-value in bcmp C 885 16d 1118d 0/22 upstream: reported C repro on 2019/06/08 15:03
upstream KMSAN: uninit-value in tipc_sk_lookup 8 148d 201d 0/22 auto-closed as invalid on 2022/05/03 21: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