===================================================== BUG: KMSAN: uninit-value in vmacache_find+0x296/0x740 mm/vmacache.c:73 CPU: 0 PID: 1418 Comm: syz-executor.5 Not tainted 5.7.0-rc4-syzkaller #0 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+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 vmacache_find+0x296/0x740 mm/vmacache.c:73 find_vma+0x7d/0x330 mm/mmap.c:2240 do_user_addr_fault+0x63f/0x1600 arch/x86/mm/fault.c:1445 do_page_fault+0x1ba/0x840 arch/x86/mm/fault.c:1555 page_fault+0x4e/0x60 arch/x86/entry/entry_64.S:1213 RIP: 0010:__put_user_4+0x1c/0x30 arch/x86/lib/putuser.S:70 Code: 1f 00 c3 90 66 2e 0f 1f 84 00 00 00 00 00 65 48 8b 1c 25 00 7d 01 00 48 8b 9b d0 1a 00 00 48 83 eb 03 48 39 d9 73 4a 0f 1f 00 <89> 01 31 c0 0f 1f 00 c3 66 90 66 2e 0f 1f 84 00 00 00 00 00 65 48 RSP: 0018:ffffa624811abb88 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00007fffffffeffd RCX: 0000000020007ff8 RDX: ffffb624811abdd0 RSI: 0000000000000004 RDI: ffffa624811abdd0 RBP: ffffa624811abe90 R08: 0000000000000002 R09: ffffa624811abb38 R10: 0000000000000004 R11: ffffffffb7ea2940 R12: 00000000000001a8 R13: 0000000020007fc0 R14: ffff9f6a890489d8 R15: 0000000000000000 __do_sys_sendmmsg net/socket.c:2535 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2532 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2532 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ca29 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f37eb58fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00000000004fc580 RCX: 000000000045ca29 RDX: 04000000000001a8 RSI: 0000000020007fc0 RDI: 0000000000000003 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000008dd R14: 00000000004cba1f R15: 00007f37eb5906d4 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 ___bpf_prog_run+0x6cbe/0x97a0 kernel/bpf/core.c:1391 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] __bpf_prog_run_save_cb include/linux/filter.h:693 [inline] bpf_prog_run_save_cb include/linux/filter.h:707 [inline] sk_filter_trim_cap+0x42a/0xcc0 net/core/filter.c:119 sk_filter include/linux/filter.h:833 [inline] sock_queue_rcv_skb+0x83/0x130 net/core/sock.c:487 packet_rcv_spkt+0x656/0x7c0 net/packet/af_packet.c:1851 dev_queue_xmit_nit+0x1199/0x1270 net/core/dev.c:2276 xmit_one net/core/dev.c:3473 [inline] dev_hard_start_xmit+0x20f/0xab0 net/core/dev.c:3493 sch_direct_xmit+0x512/0x18b0 net/sched/sch_generic.c:314 qdisc_restart net/sched/sch_generic.c:377 [inline] __qdisc_run+0x15ec/0x3350 net/sched/sch_generic.c:385 qdisc_run include/net/pkt_sched.h:134 [inline] __dev_xmit_skb net/core/dev.c:3668 [inline] __dev_queue_xmit+0x23b7/0x3b20 net/core/dev.c:4021 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 neigh_resolve_output+0xab0/0xb40 net/core/neighbour.c:1489 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x1acc/0x2610 net/ipv4/ip_output.c:228 __ip_finish_output+0xaa7/0xd80 net/ipv4/ip_output.c:306 ip_finish_output+0x166/0x410 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x593/0x680 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:435 [inline] ip_local_out net/ipv4/ip_output.c:125 [inline] ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1560 udp_send_skb+0x1046/0x18b0 net/ipv4/udp.c:891 udp_sendmsg+0x3bb5/0x4100 net/ipv4/udp.c:1178 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x1056/0x1350 net/socket.c:2362 ___sys_sendmsg net/socket.c:2416 [inline] __sys_sendmmsg+0x5fe/0xd60 net/socket.c:2506 __do_sys_sendmmsg net/socket.c:2535 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2532 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2532 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165 ___bpf_prog_run+0x6c64/0x97a0 kernel/bpf/core.c:1391 __bpf_prog_run32+0x101/0x170 kernel/bpf/core.c:1681 bpf_dispatcher_nop_func include/linux/bpf.h:545 [inline] __bpf_prog_run_save_cb include/linux/filter.h:693 [inline] bpf_prog_run_save_cb include/linux/filter.h:707 [inline] sk_filter_trim_cap+0x42a/0xcc0 net/core/filter.c:119 sk_filter include/linux/filter.h:833 [inline] sock_queue_rcv_skb+0x83/0x130 net/core/sock.c:487 packet_rcv_spkt+0x656/0x7c0 net/packet/af_packet.c:1851 dev_queue_xmit_nit+0x1199/0x1270 net/core/dev.c:2276 xmit_one net/core/dev.c:3473 [inline] dev_hard_start_xmit+0x20f/0xab0 net/core/dev.c:3493 sch_direct_xmit+0x512/0x18b0 net/sched/sch_generic.c:314 qdisc_restart net/sched/sch_generic.c:377 [inline] __qdisc_run+0x15ec/0x3350 net/sched/sch_generic.c:385 qdisc_run include/net/pkt_sched.h:134 [inline] __dev_xmit_skb net/core/dev.c:3668 [inline] __dev_queue_xmit+0x23b7/0x3b20 net/core/dev.c:4021 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4085 neigh_resolve_output+0xab0/0xb40 net/core/neighbour.c:1489 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x1acc/0x2610 net/ipv4/ip_output.c:228 __ip_finish_output+0xaa7/0xd80 net/ipv4/ip_output.c:306 ip_finish_output+0x166/0x410 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x593/0x680 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:435 [inline] ip_local_out net/ipv4/ip_output.c:125 [inline] ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1560 udp_send_skb+0x1046/0x18b0 net/ipv4/udp.c:891 udp_sendmsg+0x3bb5/0x4100 net/ipv4/udp.c:1178 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x1056/0x1350 net/socket.c:2362 ___sys_sendmsg net/socket.c:2416 [inline] __sys_sendmmsg+0x5fe/0xd60 net/socket.c:2506 __do_sys_sendmmsg net/socket.c:2535 [inline] __se_sys_sendmmsg+0xbd/0xe0 net/socket.c:2532 __x64_sys_sendmmsg+0x56/0x70 net/socket.c:2532 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Local variable ----regs@__bpf_prog_run32 created at: __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681 __bpf_prog_run32+0x87/0x170 kernel/bpf/core.c:1681 =====================================================