===================================================== BUG: KMSAN: uninit-value in udplite_error net/netfilter/nf_conntrack_proto_udp.c:162 [inline] BUG: KMSAN: uninit-value in nf_conntrack_udplite_packet+0x6cc/0x12d0 net/netfilter/nf_conntrack_proto_udp.c:188 CPU: 0 PID: 26347 Comm: syz-executor.1 Tainted: G W 5.12.0-rc6-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:118 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197 udplite_error net/netfilter/nf_conntrack_proto_udp.c:162 [inline] nf_conntrack_udplite_packet+0x6cc/0x12d0 net/netfilter/nf_conntrack_proto_udp.c:188 nf_conntrack_handle_packet net/netfilter/nf_conntrack_core.c:1769 [inline] nf_conntrack_in+0x104b/0x296d net/netfilter/nf_conntrack_core.c:1847 ipv4_conntrack_local+0x225/0x3b0 net/netfilter/nf_conntrack_proto.c:200 nf_hook_entry_hookfn include/linux/netfilter.h:136 [inline] nf_hook_slow+0x17b/0x460 net/netfilter/core.c:589 nf_hook include/linux/netfilter.h:256 [inline] __ip_local_out+0x78c/0x840 net/ipv4/ip_output.c:115 ip_local_out net/ipv4/ip_output.c:124 [inline] ip_send_skb+0xb1/0x350 net/ipv4/ip_output.c:1568 udp_send_skb+0x152d/0x1bc0 net/ipv4/udp.c:953 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f81c439e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 0000000080000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 0000000000a9fb1f R14: 00007f81c439e300 R15: 0000000000022000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147 udp_send_skb+0x1767/0x1bc0 net/ipv4/udp.c:948 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 skb_copy_from_linear_data_offset include/linux/skbuff.h:3727 [inline] skb_copy_bits+0x293/0x1040 net/core/skbuff.c:2255 tpacket_rcv+0x550a/0x8010 net/packet/af_packet.c:2338 __netif_receive_skb_one_core net/core/dev.c:5384 [inline] __netif_receive_skb+0x1ec/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1685 __skb_cow include/linux/skbuff.h:3232 [inline] skb_cow_head include/linux/skbuff.h:3266 [inline] batadv_skb_head_push+0x2cc/0x410 net/batman-adv/soft-interface.c:73 batadv_send_skb_packet+0x1ed/0x970 net/batman-adv/send.c:86 batadv_send_broadcast_skb+0x76/0x90 net/batman-adv/send.c:127 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:393 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:419 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0xb2d/0xef0 net/batman-adv/bat_iv_ogm.c:1711 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609 kmalloc_reserve net/core/skbuff.c:353 [inline] __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424 __netdev_alloc_skb+0x45d/0x810 net/core/skbuff.c:491 __netdev_alloc_skb_ip_align include/linux/skbuff.h:2884 [inline] netdev_alloc_skb_ip_align include/linux/skbuff.h:2894 [inline] batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline] batadv_iv_ogm_queue_add+0x1376/0x1c40 net/batman-adv/bat_iv_ogm.c:670 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:849 [inline] batadv_iv_ogm_schedule+0x12cd/0x16b0 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0xd6e/0xef0 net/batman-adv/bat_iv_ogm.c:1723 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 ===================================================== ===================================================== BUG: KMSAN: uninit-value in kmsan_check_skb+0x3c/0x240 mm/kmsan/kmsan_hooks.c:275 CPU: 0 PID: 26347 Comm: syz-executor.1 Tainted: G B W 5.12.0-rc6-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:118 kmsan_internal_check_memory+0x48c/0x520 mm/kmsan/kmsan.c:437 kmsan_check_skb+0x3c/0x240 mm/kmsan/kmsan_hooks.c:275 pfifo_fast_dequeue+0x1031/0x1190 net/sched/sch_generic.c:659 dequeue_skb+0x4ad/0x3680 net/sched/sch_generic.c:264 qdisc_restart net/sched/sch_generic.c:367 [inline] __qdisc_run+0x101/0x490 net/sched/sch_generic.c:385 qdisc_run include/net/pkt_sched.h:136 [inline] __dev_xmit_skb net/core/dev.c:3807 [inline] __dev_queue_xmit+0x26ad/0x4600 net/core/dev.c:4162 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227 neigh_resolve_output+0xc65/0xcf0 net/core/neighbour.c:1491 neigh_output include/net/neighbour.h:510 [inline] ip_finish_output2+0x1d16/0x2930 net/ipv4/ip_output.c:230 ip_do_fragment+0x3673/0x3b40 net/ipv4/ip_output.c:858 ip_fragment+0x31e/0x4a0 net/ipv4/ip_output.c:594 __ip_finish_output+0xb80/0x1050 net/ipv4/ip_output.c:306 ip_finish_output+0x329/0x480 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x32e/0x6d0 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0x194/0x350 net/ipv4/ip_output.c:1568 udp_send_skb+0x152d/0x1bc0 net/ipv4/udp.c:953 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f81c439e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 0000000080000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 0000000000a9fb1f R14: 00007f81c439e300 R15: 0000000000022000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 __msan_chain_origin+0x54/0xa0 mm/kmsan/kmsan_instr.c:147 udp_send_skb+0x1767/0x1bc0 net/ipv4/udp.c:948 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 skb_copy_from_linear_data_offset include/linux/skbuff.h:3727 [inline] skb_copy_bits+0x293/0x1040 net/core/skbuff.c:2255 tpacket_rcv+0x550a/0x8010 net/packet/af_packet.c:2338 __netif_receive_skb_one_core net/core/dev.c:5384 [inline] __netif_receive_skb+0x1ec/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1685 __skb_cow include/linux/skbuff.h:3232 [inline] skb_cow_head include/linux/skbuff.h:3266 [inline] batadv_skb_head_push+0x2cc/0x410 net/batman-adv/soft-interface.c:73 batadv_send_skb_packet+0x1ed/0x970 net/batman-adv/send.c:86 batadv_send_broadcast_skb+0x76/0x90 net/batman-adv/send.c:127 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:393 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:419 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0xb2d/0xef0 net/batman-adv/bat_iv_ogm.c:1711 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609 kmalloc_reserve net/core/skbuff.c:353 [inline] __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424 __netdev_alloc_skb+0x45d/0x810 net/core/skbuff.c:491 __netdev_alloc_skb_ip_align include/linux/skbuff.h:2884 [inline] netdev_alloc_skb_ip_align include/linux/skbuff.h:2894 [inline] batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline] batadv_iv_ogm_queue_add+0x1376/0x1c40 net/batman-adv/bat_iv_ogm.c:670 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:849 [inline] batadv_iv_ogm_schedule+0x12cd/0x16b0 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0xd6e/0xef0 net/batman-adv/bat_iv_ogm.c:1723 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Bytes 40-41 of 42 are uninitialized Memory access of size 42 starts at ffff888012220c02 ===================================================== ===================================================== BUG: KMSAN: uninit-value in kmsan_check_skb+0x15d/0x240 mm/kmsan/kmsan_hooks.c:285 CPU: 0 PID: 26347 Comm: syz-executor.1 Tainted: G B W 5.12.0-rc6-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:118 kmsan_internal_check_memory+0x212/0x520 mm/kmsan/kmsan.c:402 kmsan_check_skb+0x15d/0x240 mm/kmsan/kmsan_hooks.c:285 pfifo_fast_dequeue+0x1031/0x1190 net/sched/sch_generic.c:659 dequeue_skb+0x4ad/0x3680 net/sched/sch_generic.c:264 qdisc_restart net/sched/sch_generic.c:367 [inline] __qdisc_run+0x101/0x490 net/sched/sch_generic.c:385 qdisc_run include/net/pkt_sched.h:136 [inline] __dev_xmit_skb net/core/dev.c:3807 [inline] __dev_queue_xmit+0x26ad/0x4600 net/core/dev.c:4162 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0x2438/0x2930 net/ipv4/ip_output.c:230 ip_do_fragment+0x3673/0x3b40 net/ipv4/ip_output.c:858 ip_fragment+0x31e/0x4a0 net/ipv4/ip_output.c:594 __ip_finish_output+0xb80/0x1050 net/ipv4/ip_output.c:306 ip_finish_output+0x329/0x480 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x32e/0x6d0 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0x194/0x350 net/ipv4/ip_output.c:1568 udp_send_skb+0x152d/0x1bc0 net/ipv4/udp.c:953 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f81c439e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 0000000080000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 0000000000a9fb1f R14: 00007f81c439e300 R15: 0000000000022000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 skb_copy_from_linear_data_offset include/linux/skbuff.h:3727 [inline] skb_copy_bits+0x293/0x1040 net/core/skbuff.c:2255 tpacket_rcv+0x550a/0x8010 net/packet/af_packet.c:2338 __netif_receive_skb_one_core net/core/dev.c:5384 [inline] __netif_receive_skb+0x1ec/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1685 __skb_cow include/linux/skbuff.h:3232 [inline] skb_cow_head include/linux/skbuff.h:3266 [inline] batadv_skb_head_push+0x2cc/0x410 net/batman-adv/soft-interface.c:73 batadv_send_skb_packet+0x1ed/0x970 net/batman-adv/send.c:86 batadv_send_broadcast_skb+0x76/0x90 net/batman-adv/send.c:127 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:393 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:419 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0xb2d/0xef0 net/batman-adv/bat_iv_ogm.c:1711 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609 kmalloc_reserve net/core/skbuff.c:353 [inline] __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424 __netdev_alloc_skb+0x45d/0x810 net/core/skbuff.c:491 __netdev_alloc_skb_ip_align include/linux/skbuff.h:2884 [inline] netdev_alloc_skb_ip_align include/linux/skbuff.h:2894 [inline] batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline] batadv_iv_ogm_queue_add+0x1376/0x1c40 net/batman-adv/bat_iv_ogm.c:670 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:849 [inline] batadv_iv_ogm_schedule+0x12cd/0x16b0 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0xd6e/0xef0 net/batman-adv/bat_iv_ogm.c:1723 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Bytes 118-119 of 1031 are uninitialized Memory access of size 1031 starts at ffff888103378000 ===================================================== ===================================================== BUG: KMSAN: uninit-value in kmsan_check_skb+0x15d/0x240 mm/kmsan/kmsan_hooks.c:285 CPU: 0 PID: 26347 Comm: syz-executor.1 Tainted: G B W 5.12.0-rc6-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:118 kmsan_internal_check_memory+0x212/0x520 mm/kmsan/kmsan.c:402 kmsan_check_skb+0x15d/0x240 mm/kmsan/kmsan_hooks.c:285 pfifo_fast_dequeue+0x1031/0x1190 net/sched/sch_generic.c:659 dequeue_skb+0x4ad/0x3680 net/sched/sch_generic.c:264 qdisc_restart net/sched/sch_generic.c:367 [inline] __qdisc_run+0x101/0x490 net/sched/sch_generic.c:385 qdisc_run include/net/pkt_sched.h:136 [inline] __dev_xmit_skb net/core/dev.c:3807 [inline] __dev_queue_xmit+0x26ad/0x4600 net/core/dev.c:4162 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4227 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0x2438/0x2930 net/ipv4/ip_output.c:230 ip_do_fragment+0x3673/0x3b40 net/ipv4/ip_output.c:858 ip_fragment+0x31e/0x4a0 net/ipv4/ip_output.c:594 __ip_finish_output+0xb80/0x1050 net/ipv4/ip_output.c:306 ip_finish_output+0x329/0x480 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:290 [inline] ip_output+0x32e/0x6d0 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:448 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] ip_send_skb+0x194/0x350 net/ipv4/ip_output.c:1568 udp_send_skb+0x152d/0x1bc0 net/ipv4/udp.c:953 udp_push_pending_frames net/ipv4/udp.c:981 [inline] udp_sendpage+0x7f2/0xba0 net/ipv4/udp.c:1352 inet_sendpage+0x1da/0x2f0 net/ipv4/af_inet.c:835 kernel_sendpage+0x47a/0x590 net/socket.c:3631 sock_sendpage+0x161/0x1a0 net/socket.c:947 pipe_to_sendpage+0x3e4/0x520 fs/splice.c:364 splice_from_pipe_feed fs/splice.c:418 [inline] __splice_from_pipe+0x5e3/0xff0 fs/splice.c:562 splice_from_pipe fs/splice.c:597 [inline] generic_splice_sendpage+0x1d5/0x2c0 fs/splice.c:746 do_splice_from fs/splice.c:767 [inline] do_splice+0x23c3/0x2c10 fs/splice.c:1079 __do_splice fs/splice.c:1144 [inline] __do_sys_splice fs/splice.c:1350 [inline] __se_sys_splice+0x8fa/0xb50 fs/splice.c:1332 __x64_sys_splice+0x6e/0x90 fs/splice.c:1332 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f81c439e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000113 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000006 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 0000000080000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 0000000000a9fb1f R14: 00007f81c439e300 R15: 0000000000022000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 skb_copy_from_linear_data_offset include/linux/skbuff.h:3727 [inline] skb_copy_bits+0x293/0x1040 net/core/skbuff.c:2255 tpacket_rcv+0x550a/0x8010 net/packet/af_packet.c:2338 __netif_receive_skb_one_core net/core/dev.c:5384 [inline] __netif_receive_skb+0x1ec/0x640 net/core/dev.c:5498 process_backlog+0x517/0xbd0 net/core/dev.c:6365 __napi_poll+0x13e/0xca0 net/core/dev.c:6912 napi_poll net/core/dev.c:6979 [inline] net_rx_action+0x726/0x14a0 net/core/dev.c:7065 __do_softirq+0x1b9/0x715 kernel/softirq.c:345 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:289 kmsan_memcpy_memmove_metadata+0x25e/0x2d0 mm/kmsan/kmsan.c:226 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:246 __msan_memcpy+0x46/0x60 mm/kmsan/kmsan_instr.c:110 pskb_expand_head+0x3d6/0x1e20 net/core/skbuff.c:1685 __skb_cow include/linux/skbuff.h:3232 [inline] skb_cow_head include/linux/skbuff.h:3266 [inline] batadv_skb_head_push+0x2cc/0x410 net/batman-adv/soft-interface.c:73 batadv_send_skb_packet+0x1ed/0x970 net/batman-adv/send.c:86 batadv_send_broadcast_skb+0x76/0x90 net/batman-adv/send.c:127 batadv_iv_ogm_send_to_if net/batman-adv/bat_iv_ogm.c:393 [inline] batadv_iv_ogm_emit net/batman-adv/bat_iv_ogm.c:419 [inline] batadv_iv_send_outstanding_bat_ogm_packet+0xb2d/0xef0 net/batman-adv/bat_iv_ogm.c:1711 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:121 [inline] kmsan_internal_poison_shadow+0x5c/0xf0 mm/kmsan/kmsan.c:104 kmsan_slab_alloc+0x8e/0xe0 mm/kmsan/kmsan_hooks.c:76 slab_alloc_node mm/slub.c:2922 [inline] __kmalloc_node_track_caller+0xa4f/0x1470 mm/slub.c:4609 kmalloc_reserve net/core/skbuff.c:353 [inline] __alloc_skb+0x4dd/0xe90 net/core/skbuff.c:424 __netdev_alloc_skb+0x45d/0x810 net/core/skbuff.c:491 __netdev_alloc_skb_ip_align include/linux/skbuff.h:2884 [inline] netdev_alloc_skb_ip_align include/linux/skbuff.h:2894 [inline] batadv_iv_ogm_aggregate_new net/batman-adv/bat_iv_ogm.c:558 [inline] batadv_iv_ogm_queue_add+0x1376/0x1c40 net/batman-adv/bat_iv_ogm.c:670 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:849 [inline] batadv_iv_ogm_schedule+0x12cd/0x16b0 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0xd6e/0xef0 net/batman-adv/bat_iv_ogm.c:1723 process_one_work+0x1219/0x1fe0 kernel/workqueue.c:2275 worker_thread+0x10ec/0x2340 kernel/workqueue.c:2421 kthread+0x521/0x560 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Bytes 126-127 of 1031 are uninitialized Memory access of size 1031 starts at ffff888103378000 =====================================================