===================================================== BUG: KMSAN: uninit-value in update_stack_state+0x1ee/0xb40 arch/x86/kernel/unwind_frame.c:202 CPU: 1 PID: 27864 Comm: syz-executor.5 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+0x21c/0x280 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 update_stack_state+0x1ee/0xb40 arch/x86/kernel/unwind_frame.c:202 unwind_next_frame+0x8c6/0xed0 arch/x86/kernel/unwind_frame.c:305 arch_stack_walk+0x338/0x3d0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1a0 kernel/stacktrace.c:123 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 pskb_carve_inside_nonlinear net/core/skbuff.c:5956 [inline] pskb_carve+0x869/0x2ff0 net/core/skbuff.c:6024 pskb_extract+0x116/0x4c0 net/core/skbuff.c:6038 rds_tcp_data_recv+0x990/0x1920 net/rds/tcp_recv.c:218 tcp_read_sock+0xb52/0x26e0 net/ipv4/tcp.c:1646 rds_tcp_read_sock net/rds/tcp_recv.c:276 [inline] rds_tcp_data_ready+0x29d/0x6c0 net/rds/tcp_recv.c:325 tcp_data_ready net/ipv4/tcp_input.c:4795 [inline] tcp_rcv_established+0x43e4/0x4480 net/ipv4/tcp_input.c:5724 tcp_v6_do_rcv+0xa36/0x1fe0 net/ipv6/tcp_ipv6.c:1449 tcp_v6_rcv+0x56db/0x5a80 net/ipv6/tcp_ipv6.c:1682 ip6_protocol_deliver_rcu+0x14a2/0x2660 net/ipv6/ip6_input.c:433 ip6_input_finish net/ipv6/ip6_input.c:474 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip6_input+0x2dd/0x370 net/ipv6/ip6_input.c:483 dst_input include/net/dst.h:449 [inline] ip6_rcv_finish+0x5fc/0x7f0 net/ipv6/ip6_input.c:76 NF_HOOK include/linux/netfilter.h:307 [inline] ipv6_rcv+0x3bb/0x460 net/ipv6/ip6_input.c:307 __netif_receive_skb_one_core net/core/dev.c:5281 [inline] __netif_receive_skb+0x265/0x670 net/core/dev.c:5395 process_backlog+0x50d/0xba0 net/core/dev.c:6239 napi_poll+0x43b/0xfd0 net/core/dev.c:6684 net_rx_action+0x35c/0xd40 net/core/dev.c:6752 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293 asm_call_on_stack+0xf/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_call_function_single+0x107/0x130 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:601 RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:67 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffff88810534ab30 EFLAGS: 00000282 RAX: ffff888104b4acff RBX: 0000000000000008 RCX: 0000000000000000 RDX: 0000000000000008 RSI: 00000000ffffffff RDI: ffff888104b4ac18 RBP: ffff88810534ab60 R08: ffffea000000000f R09: ffff888104b4ac10 R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffff R13: 0000000000000008 R14: 0000000000000001 R15: ffff88810534ac10 __msan_poison_alloca+0x58/0x120 mm/kmsan/kmsan_instr.c:180 native_save_fl kernel/softirq.c:169 [inline] arch_local_save_flags arch/x86/include/asm/irqflags.h:79 [inline] arch_local_irq_save arch/x86/include/asm/irqflags.h:120 [inline] do_softirq kernel/softirq.c:333 [inline] __local_bh_enable_ip+0xea/0x1d0 kernel/softirq.c:190 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:723 [inline] ip6_finish_output2+0x24b4/0x2a70 net/ipv6/ip6_output.c:118 __ip6_finish_output+0x9c0/0xa90 net/ipv6/ip6_output.c:143 ip6_finish_output+0x14b/0x4b0 net/ipv6/ip6_output.c:153 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip6_output+0x68d/0x7f0 net/ipv6/ip6_output.c:176 dst_output include/net/dst.h:443 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip6_xmit+0x2475/0x2b40 net/ipv6/ip6_output.c:280 inet6_csk_xmit+0x47f/0x5a0 net/ipv6/inet6_connection_sock.c:135 __tcp_transmit_skb+0x4b9e/0x5d70 net/ipv4/tcp_output.c:1240 tcp_transmit_skb net/ipv4/tcp_output.c:1256 [inline] tcp_write_xmit+0x4f5b/0xe6a0 net/ipv4/tcp_output.c:2519 __tcp_push_pending_frames+0x150/0x5c0 net/ipv4/tcp_output.c:2694 tcp_push_pending_frames include/net/tcp.h:1857 [inline] tcp_data_snd_check net/ipv4/tcp_input.c:5264 [inline] tcp_rcv_established+0x23af/0x4480 net/ipv4/tcp_input.c:5672 tcp_v6_do_rcv+0xa36/0x1fe0 net/ipv6/tcp_ipv6.c:1449 sk_backlog_rcv include/net/sock.h:997 [inline] __release_sock+0x26c/0x690 net/core/sock.c:2550 release_sock+0x98/0x2d0 net/core/sock.c:3066 tcp_sendmsg+0xd6/0x100 net/ipv4/tcp.c:1442 inet6_sendmsg+0x15b/0x1d0 net/ipv6/af_inet6.c:638 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] __sys_sendto+0x9f8/0xca0 net/socket.c:1995 __do_sys_sendto net/socket.c:2007 [inline] __se_sys_sendto+0x107/0x130 net/socket.c:2003 __x64_sys_sendto+0x6e/0x90 net/socket.c:2003 do_syscall_64+0xad/0x160 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5f9 Code: Bad RIP value. RSP: 002b:00007f4545a27c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000002d200 RCX: 000000000045d5f9 RDX: 00000000fffffdef RSI: 0000000020000200 RDI: 0000000000000003 RBP: 000000000118cf98 R08: 0000000000000000 R09: 00000000000001f4 R10: 0000000000040080 R11: 0000000000000246 R12: 000000000118cf4c R13: 000000000169fb6f R14: 00007f4545a289c0 R15: 000000000118cf4c Local variable ----buff.i.i@nf_conntrack_tcp_packet created at: tcp_sack net/netfilter/nf_conntrack_proto_tcp.c:403 [inline] tcp_in_window net/netfilter/nf_conntrack_proto_tcp.c:489 [inline] nf_conntrack_tcp_packet+0x3400/0x8b70 net/netfilter/nf_conntrack_proto_tcp.c:1091 tcp_sack net/netfilter/nf_conntrack_proto_tcp.c:403 [inline] tcp_in_window net/netfilter/nf_conntrack_proto_tcp.c:489 [inline] nf_conntrack_tcp_packet+0x3400/0x8b70 net/netfilter/nf_conntrack_proto_tcp.c:1091 =====================================================