=====================================================
BUG: KMSAN: uninit-value in __skb_checksum_complete+0x37f/0x540 net/core/skbuff.c:2850
CPU: 1 PID: 10398 Comm: syz-executor.4 Not tainted 5.8.0-rc5-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+0x1df/0x240 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
__skb_checksum_complete+0x37f/0x540 net/core/skbuff.c:2850
nf_ip_checksum+0x53b/0x740 net/netfilter/utils.c:36
nf_nat_icmp_reply_translation+0x2ba/0x980 net/netfilter/nf_nat_proto.c:578
nf_nat_ipv4_fn net/netfilter/nf_nat_proto.c:637 [inline]
nf_nat_ipv4_local_fn+0x215/0x830 net/netfilter/nf_nat_proto.c:708
nf_hook_entry_hookfn include/linux/netfilter.h:135 [inline]
nf_hook_slow+0x16e/0x400 net/netfilter/core.c:512
nf_hook include/linux/netfilter.h:262 [inline]
__ip_local_out+0x69b/0x800 net/ipv4/ip_output.c:114
ip_local_out net/ipv4/ip_output.c:123 [inline]
ip_send_skb net/ipv4/ip_output.c:1560 [inline]
ip_push_pending_frames+0x16f/0x460 net/ipv4/ip_output.c:1580
icmp_push_reply+0x660/0x710 net/ipv4/icmp.c:390
__icmp_send+0x23ca/0x3150 net/ipv4/icmp.c:740
ipv4_send_dest_unreach net/ipv4/route.c:1221 [inline]
ipv4_link_failure+0x7be/0xb70 net/ipv4/route.c:1228
dst_link_failure include/net/dst.h:426 [inline]
arp_error_report+0x106/0x1a0 net/ipv4/arp.c:293
neigh_invalidate+0x33f/0x8c0 net/core/neighbour.c:993
neigh_timer_handler+0xb0b/0x1520 net/core/neighbour.c:1080
call_timer_fn+0x218/0x510 kernel/time/timer.c:1404
expire_timers kernel/time/timer.c:1449 [inline]
__run_timers+0xd20/0x11c0 kernel/time/timer.c:1773
run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786
__do_softirq+0x311/0x83d kernel/softirq.c:293
asm_call_on_stack+0x12/0x20 arch/x86/entry/entry_64.S:711
__run_on_irqstack arch/x86/include/asm/irq_stack.h:23 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline]
do_softirq_own_stack+0x7c/0xa0 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:390 [inline]
__irq_exit_rcu+0x226/0x270 kernel/softirq.c:420
irq_exit_rcu+0xe/0x10 kernel/softirq.c:432
sysvec_apic_timer_interrupt+0x107/0x130 arch/x86/kernel/apic/apic.c:1091
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:593
RIP: 0010:kmsan_get_metadata+0x24/0x180 mm/kmsan/kmsan_shadow.c:186
Code: 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 53 41 89 d6 48 89 fb 48 83 e3 fc 85 d2 48 0f 44 df 40 f6 c7 03 48 0f 44 df 48 89 df f7 e1 ff ff 84 c0 75 0c 48 89 df e8 1b e2 ff ff 84 c0 74 6e f6
RSP: 0018:ffffa6d2d20ff2b8 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffffa6d2d20ff69c RCX: 0000000000000004
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffa6d2d20ff69c
RBP: ffffa6d2d20ff2d0 R08: ffffd8a48000000f R09: ffff8cdc2d5fb000
R10: 0000000000000004 R11: 0000000000000000 R12: ffff8cdc2d5fc680
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
kmsan_get_shadow_origin_ptr+0x6c/0xb0 mm/kmsan/kmsan_shadow.c:149
__msan_metadata_ptr_for_load_4+0x10/0x20 mm/kmsan/kmsan_instr.c:54
zone_watermark_fast mm/page_alloc.c:3764 [inline]
get_page_from_freelist+0x538/0x19f0 mm/page_alloc.c:3763
__alloc_pages_nodemask+0x967/0x5dc0 mm/page_alloc.c:4858
alloc_pages_current+0x672/0x990 mm/mempolicy.c:2292
alloc_pages include/linux/gfp.h:545 [inline]
__vmalloc_area_node mm/vmalloc.c:2489 [inline]
__vmalloc_node_range+0x875/0x11f0 mm/vmalloc.c:2555
__vmalloc_node mm/vmalloc.c:2598 [inline]
vzalloc+0x117/0x130 mm/vmalloc.c:2651
alloc_counters+0x99/0x8c0 net/ipv6/netfilter/ip6_tables.c:816
copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:838 [inline]
get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline]
do_ip6t_get_ctl+0x7da/0x1030 net/ipv6/netfilter/ip6_tables.c:1709
nf_sockopt net/netfilter/nf_sockopt.c:104 [inline]
nf_getsockopt+0x481/0x4e0 net/netfilter/nf_sockopt.c:122
ipv6_getsockopt+0x262/0x510 net/ipv6/ipv6_sockglue.c:1468
tcp_getsockopt+0x1c6/0x1f0 net/ipv4/tcp.c:3893
sock_common_getsockopt+0x13f/0x180 net/core/sock.c:3221
__sys_getsockopt+0x533/0x7b0 net/socket.c:2172
__do_sys_getsockopt net/socket.c:2187 [inline]
__se_sys_getsockopt+0xe1/0x100 net/socket.c:2184
__x64_sys_getsockopt+0x62/0x80 net/socket.c:2184
do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45ed0a
Code: Bad RIP value.
RSP: 002b:0000000000c9f618 EFLAGS: 00000216 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000c9f640 RCX: 000000000045ed0a
RDX: 0000000000000041 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 0000000000743ca0 R08: 0000000000c9f63c R09: 0000000000004000
R10: 0000000000c9f740 R11: 0000000000000216 R12: 0000000000000003
R13: 0000000000000000 R14: 0000000000000029 R15: 00000000007421a0
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
kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247
kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267
__msan_memcpy+0x43/0x50 mm/kmsan/kmsan_instr.c:116
csum_partial_copy+0xae/0x100 lib/checksum.c:154
skb_copy_and_csum_bits+0x757/0x1130 net/core/skbuff.c:2766
icmp_glue_bits+0x166/0x380 net/ipv4/icmp.c:353
__ip_append_data+0x47c4/0x5630 net/ipv4/ip_output.c:1131
ip_append_data+0x328/0x480 net/ipv4/ip_output.c:1315
icmp_push_reply+0x206/0x710 net/ipv4/icmp.c:371
__icmp_send+0x23ca/0x3150 net/ipv4/icmp.c:740
ipv4_send_dest_unreach net/ipv4/route.c:1221 [inline]
ipv4_link_failure+0x7be/0xb70 net/ipv4/route.c:1228
dst_link_failure include/net/dst.h:426 [inline]
arp_error_report+0x106/0x1a0 net/ipv4/arp.c:293
neigh_invalidate+0x33f/0x8c0 net/core/neighbour.c:993
neigh_timer_handler+0xb0b/0x1520 net/core/neighbour.c:1080
call_timer_fn+0x218/0x510 kernel/time/timer.c:1404
expire_timers kernel/time/timer.c:1449 [inline]
__run_timers+0xd20/0x11c0 kernel/time/timer.c:1773
run_timer_softirq+0x2d/0x50 kernel/time/timer.c:1786
__do_softirq+0x311/0x83d kernel/softirq.c:293
Uninit was created at:
kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:144
kmsan_internal_alloc_meta_for_pages mm/kmsan/kmsan_shadow.c:269 [inline]
kmsan_alloc_page+0xb9/0x180 mm/kmsan/kmsan_shadow.c:293
__alloc_pages_nodemask+0x56a2/0x5dc0 mm/page_alloc.c:4889
alloc_pages_current+0x672/0x990 mm/mempolicy.c:2292
alloc_pages include/linux/gfp.h:545 [inline]
push_pipe+0x605/0xb70 lib/iov_iter.c:537
__pipe_get_pages lib/iov_iter.c:1278 [inline]
pipe_get_pages_alloc lib/iov_iter.c:1385 [inline]
iov_iter_get_pages_alloc+0x18a9/0x21c0 lib/iov_iter.c:1403
default_file_splice_read fs/splice.c:385 [inline]
do_splice_to+0x4fc/0x14f0 fs/splice.c:871
splice_direct_to_actor+0x45c/0xf50 fs/splice.c:950
do_splice_direct+0x342/0x580 fs/splice.c:1059
do_sendfile+0x101b/0x1d40 fs/read_write.c:1540
__do_sys_sendfile64 fs/read_write.c:1601 [inline]
__se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1587
__x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1587
do_syscall_64+0xb0/0x150 arch/x86/entry/common.c:386
entry_SYSCALL_64_after_hwframe+0x44/0xa9
=====================================================