vcan0: j1939_tp_rxtimer: 0xffff88813d6bf000: abort rx timeout. Force session deactivation ===================================================== BUG: KMSAN: uninit-value in netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 CPU: 0 PID: 7927 Comm: in:imklog Not tainted 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 netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/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 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0x22f/0x280 kernel/softirq.c:422 irq_exit_rcu+0xe/0x10 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0xc6/0xf0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:650 RIP: 0010:syslog_print kernel/printk/printk.c:1475 [inline] RIP: 0010:do_syslog+0x2c91/0x30b0 kernel/printk/printk.c:1589 Code: 05 8c a9 b5 10 44 8b 7c 24 28 48 c7 c7 14 52 40 92 e8 03 76 b0 00 c6 00 00 c6 05 fd a8 b1 10 00 e8 14 12 01 00 fb 48 8b 04 24 <48> c7 00 00 00 00 00 4c 89 60 08 44 89 b8 90 0c 00 00 31 ff 48 89 RSP: 0018:ffff88812648b9d0 EFLAGS: 00000246 RAX: ffff888122b74908 RBX: 0000000000000074 RCX: ffff888122b73e80 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 000000000001b420 RBP: ffff88812648bbc8 R08: ffffea000000000f R09: ffff88813fffa000 R10: 0000000000000006 R11: 00000000ffffffff R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kmsg_read+0x18b/0x1f0 fs/proc/kmsg.c:40 pde_read fs/proc/inode.c:321 [inline] proc_reg_read+0x2d2/0x570 fs/proc/inode.c:331 vfs_read+0x533/0x15a0 fs/read_write.c:494 ksys_read+0x275/0x500 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read+0x92/0xb0 fs/read_write.c:642 __x64_sys_read+0x4a/0x70 fs/read_write.c:642 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f44b13ed22d Code: c1 20 00 00 75 10 b8 00 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 b8 00 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 97 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007f44aed89580 EFLAGS: 00000293 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f44b13ed22d RDX: 0000000000001fa0 RSI: 00007f44aed89da0 RDI: 0000000000000004 RBP: 0000559faf10a9d0 R08: 0000000000000000 R09: 0000000004000001 R10: 0000000000000001 R11: 0000000000000293 R12: 00007f44aed89da0 R13: 0000000000001fa0 R14: 0000000000001f9f R15: 00007f44aed89dfe 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 netif_receive_generic_xdp+0x61c/0x2590 net/core/dev.c:4699 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/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 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 alloc_skb include/linux/skbuff.h:1103 [inline] alloc_skb_with_frags+0x1f3/0xc10 net/core/skbuff.c:5948 sock_alloc_send_pskb+0xdc1/0xf90 net/core/sock.c:2362 sock_alloc_send_skb+0xca/0xe0 net/core/sock.c:2379 j1939_sk_alloc_skb net/can/j1939/socket.c:858 [inline] j1939_sk_send_loop net/can/j1939/socket.c:1040 [inline] j1939_sk_sendmsg+0xddd/0x2890 net/can/j1939/socket.c:1175 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0xcfc/0x12f0 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmmsg+0x84e/0x1010 net/socket.c:2483 __compat_sys_sendmmsg net/compat.c:361 [inline] __do_compat_sys_sendmmsg net/compat.c:368 [inline] __se_compat_sys_sendmmsg+0xcd/0xf0 net/compat.c:365 __ia32_compat_sys_sendmmsg+0x56/0x70 net/compat.c:365 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:167 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c ===================================================== vcan0: j1939_tp_rxtimer: 0xffff88813d6db200: rx timeout, send abort vcan0: j1939_xtp_rx_abort_one: 0xffff88813d6db200: 0x00000: (3) A timeout occurred and this is the connection abort to close the session. vcan0: j1939_tp_rxtimer: 0xffff888104a25800: rx timeout, send abort vcan0: j1939_tp_rxtimer: 0xffff888104a25800: abort rx timeout. Force session deactivation ===================================================== BUG: KMSAN: uninit-value in netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 CPU: 0 PID: 10049 Comm: syz-executor.3 Tainted: G B 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 netif_receive_generic_xdp+0x15c2/0x2590 net/core/dev.c:4751 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/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 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0x22f/0x280 kernel/softirq.c:422 irq_exit_rcu+0xe/0x10 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0xc6/0xf0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:650 RIP: 0010:__nr_to_section include/linux/mmzone.h:1301 [inline] RIP: 0010:pfn_valid include/linux/mmzone.h:1419 [inline] RIP: 0010:kmsan_virt_addr_valid mm/kmsan/kmsan_shadow.c:87 [inline] RIP: 0010:virt_to_page_or_null+0x56/0xf0 mm/kmsan/kmsan_shadow.c:125 Code: 89 d6 48 d3 ee 48 85 f6 75 44 48 89 d1 48 c1 e9 2e 75 3b 48 8b 0d 6a ef 05 10 48 85 c9 74 2f 48 89 d6 48 c1 ee 23 4c 8b 0c f1 <4d> 85 c9 74 1f 48 89 d1 48 c1 e9 1b 0f b6 f1 48 c1 e6 04 4c 89 c9 RSP: 0018:ffff8880539ebcf0 EFLAGS: 00000246 RAX: ffff8880d39ebdc0 RBX: ffff8880539ebdc0 RCX: ffff88823fff4000 RDX: 00000000539ebdc0 RSI: 0000000000000000 RDI: ffff8880539ebdc0 RBP: ffff8880539ebcf0 R08: ffffea000000000f R09: ffff88813fffa000 R10: 000000002346f84a R11: 0000000000000000 R12: 0000000000000754 R13: 0000000000000754 R14: 0000000000000001 R15: 0000000000000000 kmsan_get_metadata+0x116/0x180 mm/kmsan/kmsan_shadow.c:190 kmsan_get_shadow_origin_ptr+0x84/0xb0 mm/kmsan/kmsan_shadow.c:150 __msan_metadata_ptr_for_load_8+0x10/0x20 mm/kmsan/kmsan_instr.c:55 timespec64_add include/linux/time64.h:69 [inline] timens_add_monotonic include/linux/time_namespace.h:69 [inline] posix_get_monotonic_timespec+0x1c3/0x320 kernel/time/posix-timers.c:200 __do_sys_clock_gettime kernel/time/posix-timers.c:1092 [inline] __se_sys_clock_gettime+0x2d7/0x410 kernel/time/posix-timers.c:1082 __ia32_sys_clock_gettime+0x3e/0x60 kernel/time/posix-timers.c:1082 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:167 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fa7549 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:00000000ffa60aa0 EFLAGS: 00000297 ORIG_RAX: 0000000000000193 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00000000ffa60b7c RDX: 000000000005abe0 RSI: 00000000f7fa73ac RDI: 00000000ffa60b7c RBP: 00000000ffa60b18 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: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 netif_receive_generic_xdp+0x61c/0x2590 net/core/dev.c:4699 do_xdp_generic net/core/dev.c:4816 [inline] __netif_receive_skb_core+0x294a/0x65a0 net/core/dev.c:5207 __netif_receive_skb_one_core net/core/dev.c:5382 [inline] __netif_receive_skb+0xf2/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 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 alloc_skb include/linux/skbuff.h:1103 [inline] alloc_skb_with_frags+0x1f3/0xc10 net/core/skbuff.c:5948 sock_alloc_send_pskb+0xdc1/0xf90 net/core/sock.c:2362 sock_alloc_send_skb+0xca/0xe0 net/core/sock.c:2379 j1939_sk_alloc_skb net/can/j1939/socket.c:858 [inline] j1939_sk_send_loop net/can/j1939/socket.c:1040 [inline] j1939_sk_sendmsg+0xddd/0x2890 net/can/j1939/socket.c:1175 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg net/socket.c:674 [inline] ____sys_sendmsg+0xcfc/0x12f0 net/socket.c:2350 ___sys_sendmsg net/socket.c:2404 [inline] __sys_sendmmsg+0x84e/0x1010 net/socket.c:2483 __compat_sys_sendmmsg net/compat.c:361 [inline] __do_compat_sys_sendmmsg net/compat.c:368 [inline] __se_compat_sys_sendmmsg+0xcd/0xf0 net/compat.c:365 __ia32_compat_sys_sendmmsg+0x56/0x70 net/compat.c:365 do_syscall_32_irqs_on arch/x86/entry/common.c:79 [inline] __do_fast_syscall_32+0x127/0x180 arch/x86/entry/common.c:142 do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:167 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:210 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c =====================================================