netlink: 188 bytes leftover after parsing attributes in process `syz-executor.0'. ================================================================== BUG: KMSAN: kernel-infoleak in copyout+0x16b/0x1f0 lib/iov_iter.c:144 CPU: 1 PID: 10889 Comm: syz-executor.0 Not tainted 5.1.0-rc7+ #5 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x130/0x2a0 mm/kmsan/kmsan.c:619 kmsan_internal_check_memory+0x544/0xa80 mm/kmsan/kmsan.c:684 kmsan_copy_to_user+0xa9/0xb0 mm/kmsan/kmsan_hooks.c:492 copyout+0x16b/0x1f0 lib/iov_iter.c:144 _copy_to_iter+0x36a/0x2690 lib/iov_iter.c:615 copy_to_iter include/linux/uio.h:150 [inline] simple_copy_to_iter+0x92/0xb0 net/core/datagram.c:516 __skb_datagram_iter+0x256/0xe70 net/core/datagram.c:424 skb_copy_datagram_iter+0x29c/0x2b0 net/core/datagram.c:530 skb_copy_datagram_msg include/linux/skbuff.h:3398 [inline] netlink_recvmsg+0x68c/0x18e0 net/netlink/af_netlink.c:1984 sock_recvmsg_nosec net/socket.c:881 [inline] sock_recvmsg net/socket.c:888 [inline] sock_read_iter+0x438/0x4c0 net/socket.c:966 call_read_iter include/linux/fs.h:1860 [inline] new_sync_read fs/read_write.c:406 [inline] __vfs_read+0x9af/0xbe0 fs/read_write.c:418 vfs_read+0x359/0x6f0 fs/read_write.c:452 ksys_read+0x1c5/0x440 fs/read_write.c:579 __do_sys_read fs/read_write.c:589 [inline] __se_sys_read+0x92/0xb0 fs/read_write.c:587 __x64_sys_read+0x4a/0x70 fs/read_write.c:587 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x458da9 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa66a88bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9 RDX: 0000000000001000 RSI: 0000000020000400 RDI: 0000000000000003 RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa66a88c6d4 R13: 00000000004c5c17 R14: 00000000004da0a0 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:174 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:183 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2771 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4399 __kmalloc_reserve net/core/skbuff.c:140 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:208 alloc_skb include/linux/skbuff.h:1059 [inline] nlmsg_new include/net/netlink.h:658 [inline] ip6addrlbl_get+0x7f3/0x1550 net/ipv6/addrlabel.c:600 rtnetlink_rcv_msg+0x99b/0x15e0 net/core/rtnetlink.c:5183 netlink_rcv_skb+0x431/0x620 net/netlink/af_netlink.c:2486 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5210 netlink_unicast_kernel net/netlink/af_netlink.c:1311 [inline] netlink_unicast+0xf3e/0x1020 net/netlink/af_netlink.c:1337 netlink_sendmsg+0x127e/0x12f0 net/netlink/af_netlink.c:1926 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] sock_write_iter+0x3f3/0x4e0 net/socket.c:988 call_write_iter include/linux/fs.h:1866 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x95a/0xc10 fs/read_write.c:487 vfs_write+0x481/0x920 fs/read_write.c:549 ksys_write+0x1c5/0x440 fs/read_write.c:599 __do_sys_write fs/read_write.c:611 [inline] __se_sys_write+0x92/0xb0 fs/read_write.c:608 __x64_sys_write+0x4a/0x70 fs/read_write.c:608 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Byte 17 of 56 is uninitialized Memory access of size 56 starts at ffff88804aab0600 Data copied to user address 0000000020000400 ==================================================================