===================================================== BUG: KMSAN: kernel-infoleak in kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:251 CPU: 0 PID: 26021 Comm: syz-executor.2 Not tainted 5.13.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x24c/0x2e0 lib/dump_stack.c:120 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:121 kmsan_internal_check_memory+0x1f5/0x500 mm/kmsan/kmsan.c:399 kmsan_copy_to_user+0x9c/0xb0 mm/kmsan/kmsan_hooks.c:251 instrument_copy_to_user include/linux/instrumented.h:121 [inline] copyout lib/iov_iter.c:189 [inline] _copy_to_iter+0x2a2d/0x3da0 lib/iov_iter.c:661 copy_to_iter include/linux/uio.h:145 [inline] simple_copy_to_iter+0xf6/0x150 net/core/datagram.c:519 __skb_datagram_iter+0x2cb/0x1210 net/core/datagram.c:425 skb_copy_datagram_iter+0xd8/0x200 net/core/datagram.c:533 skb_copy_datagram_msg include/linux/skbuff.h:3602 [inline] netlink_recvmsg+0x772/0x1bc0 net/netlink/af_netlink.c:1987 ____sys_recvmsg+0x57f/0xd50 net/socket.c:888 ___sys_recvmsg net/socket.c:2598 [inline] __sys_recvmsg+0x585/0xce0 net/socket.c:2628 __compat_sys_recvmsg net/compat.c:375 [inline] __do_compat_sys_recvmsg net/compat.c:382 [inline] __se_compat_sys_recvmsg+0xa7/0xc0 net/compat.c:379 __ia32_compat_sys_recvmsg+0x4a/0x70 net/compat.c:379 do_syscall_32_irqs_on arch/x86/entry/common.c:84 [inline] __do_fast_syscall_32+0x132/0x1b0 arch/x86/entry/common.c:149 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:179 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:222 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f8a549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f55845fc EFLAGS: 00000296 ORIG_RAX: 0000000000000174 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000020000480 RDX: 0000000000012042 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1688 netlink_trim+0x3da/0x430 net/netlink/af_netlink.c:1296 netlink_unicast+0x11c/0x14a0 net/netlink/af_netlink.c:1330 rtnetlink_send+0x25f/0x3a0 net/core/rtnetlink.c:718 tcf_add_notify net/sched/act_api.c:1497 [inline] tcf_action_add net/sched/act_api.c:1522 [inline] tc_ctl_action+0x9e5/0x11e0 net/sched/act_api.c:1572 rtnetlink_rcv_msg+0x143b/0x18e0 net/core/rtnetlink.c:5566 netlink_rcv_skb+0x6fa/0x810 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5584 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x11d6/0x14a0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x1740/0x1840 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0xcfc/0x12f0 net/socket.c:2337 ___sys_sendmsg net/socket.c:2391 [inline] __sys_sendmsg+0x714/0x830 net/socket.c:2420 __compat_sys_sendmsg net/compat.c:347 [inline] __do_compat_sys_sendmsg net/compat.c:354 [inline] __se_compat_sys_sendmsg+0xa7/0xc0 net/compat.c:351 __ia32_compat_sys_sendmsg+0x4a/0x70 net/compat.c:351 do_syscall_32_irqs_on arch/x86/entry/common.c:84 [inline] __do_fast_syscall_32+0x132/0x1b0 arch/x86/entry/common.c:149 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:179 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:222 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:120 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:288 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:225 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:245 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 __nla_put lib/nlattr.c:994 [inline] nla_put+0x2eb/0x3c0 lib/nlattr.c:1052 tcf_ife_dump+0x36a/0x15a0 net/sched/act_ife.c:659 tcf_action_dump_old net/sched/act_api.c:812 [inline] tcf_action_dump_1+0xa6f/0xbe0 net/sched/act_api.c:843 tcf_action_dump+0x351/0x640 net/sched/act_api.c:868 tca_get_fill+0x5f2/0x960 net/sched/act_api.c:1212 tcf_add_notify net/sched/act_api.c:1490 [inline] tcf_action_add net/sched/act_api.c:1522 [inline] tc_ctl_action+0x8ff/0x11e0 net/sched/act_api.c:1572 rtnetlink_rcv_msg+0x143b/0x18e0 net/core/rtnetlink.c:5566 netlink_rcv_skb+0x6fa/0x810 net/netlink/af_netlink.c:2504 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:5584 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x11d6/0x14a0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x1740/0x1840 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0xcfc/0x12f0 net/socket.c:2337 ___sys_sendmsg net/socket.c:2391 [inline] __sys_sendmsg+0x714/0x830 net/socket.c:2420 __compat_sys_sendmsg net/compat.c:347 [inline] __do_compat_sys_sendmsg net/compat.c:354 [inline] __se_compat_sys_sendmsg+0xa7/0xc0 net/compat.c:351 __ia32_compat_sys_sendmsg+0x4a/0x70 net/compat.c:351 do_syscall_32_irqs_on arch/x86/entry/common.c:84 [inline] __do_fast_syscall_32+0x132/0x1b0 arch/x86/entry/common.c:149 do_fast_syscall_32+0x77/0xd0 arch/x86/entry/common.c:179 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:222 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Local variable ----opt@tcf_ife_dump created at: tcf_ife_dump+0x126/0x15a0 net/sched/act_ife.c:646 tcf_ife_dump+0x126/0x15a0 net/sched/act_ife.c:646 Bytes 124-125 of 176 are uninitialized Memory access of size 176 starts at ffff8881476db01a Data copied to user address 00000000200001c0 =====================================================