================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: null-ptr-deref in atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline] BUG: KASAN: null-ptr-deref in flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736 Read of size 8 at addr 0000000000000329 by task syz-executor.2/9910 CPU: 1 PID: 9910 Comm: syz-executor.2 Tainted: G W 5.15.149-syzkaller-00165-g85445b5a2107 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:431 [inline] kasan_report+0x16f/0x1c0 mm/kasan/report.c:444 kasan_check_range+0x293/0x2a0 mm/kasan/generic.c:189 __kasan_check_read+0x11/0x20 mm/kasan/shadow.c:31 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic64_read include/linux/atomic/atomic-instrumented.h:605 [inline] flush_tlb_func+0x43/0x550 arch/x86/mm/tlb.c:736 flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628 generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544 __sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248 sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646 RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:434 [inline] RIP: 0010:find_match+0xc1/0xe70 net/ipv6/route.c:738 Code: 00 4c 89 7d d0 49 03 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 12 e7 5a fd 48 8b 1b <48> 85 db 0f 84 06 0b 00 00 48 81 c3 08 04 00 00 48 89 d8 48 c1 e8 RSP: 0000:ffffc900001d01c8 EFLAGS: 00000246 RAX: 1ffff110225f845e RBX: ffff888106bdd000 RCX: dffffc0000000000 RDX: ffff888116e2e2c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900001d0270 R08: ffffffff84578963 R09: ffffc900001d0530 R10: ffffc900001d0520 R11: dffffc0000000001 R12: 1ffff11024b50e16 R13: 0000000000000003 R14: 0000000000000000 R15: ffff888125a870b0 __find_rr_leaf+0x276/0xb70 net/ipv6/route.c:826 find_rr_leaf net/ipv6/route.c:847 [inline] rt6_select net/ipv6/route.c:891 [inline] fib6_table_lookup+0x338/0xaf0 net/ipv6/route.c:2185 ip6_pol_route+0x151/0x14b0 net/ipv6/route.c:2221 ip6_pol_route_input+0x55/0x80 net/ipv6/route.c:2279 pol_lookup_func include/net/ip6_fib.h:592 [inline] fib6_rule_lookup+0x25a/0x620 net/ipv6/fib6_rules.c:115 ip6_route_input_lookup net/ipv6/route.c:2291 [inline] ip6_route_input+0x724/0xb60 net/ipv6/route.c:2587 ip6_rcv_finish_core net/ipv6/ip6_input.c:66 [inline] ip6_rcv_finish+0x150/0x350 net/ipv6/ip6_input.c:77 NF_HOOK include/linux/netfilter.h:305 [inline] ipv6_rcv+0xeb/0x270 net/ipv6/ip6_input.c:300 __netif_receive_skb_one_core net/core/dev.c:5492 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5606 process_backlog+0x31c/0x650 net/core/dev.c:6483 __napi_poll+0xc4/0x5a0 net/core/dev.c:7042 napi_poll net/core/dev.c:7109 [inline] net_rx_action+0x47d/0xc50 net/core/dev.c:7196 __do_softirq+0x26d/0x5bf kernel/softirq.c:565 do_softirq+0xf6/0x150 kernel/softirq.c:452 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210 sock_hash_delete_elem+0x2a2/0x2f0 net/core/sock_map.c:945 bpf_prog_bc4ba9860fbb0da4+0x3e/0xe44 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917 __bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38 trace_tlb_flush include/trace/events/tlb.h:38 [inline] switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629 context_switch kernel/sched/core.c:5137 [inline] __schedule+0xb2b/0x1590 kernel/sched/core.c:6512 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 exit_to_user_mode_loop+0x4d/0xe0 kernel/entry/common.c:163 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0033:0x7fbed390eacd Code: Unable to access opcode bytes at RIP 0x7fbed390eaa3. RSP: 002b:00007ffc6f1d7480 EFLAGS: 00000216 RAX: 00007fbed33aefe8 RBX: 00007fbed330cbd0 RCX: ffffffff8237cb02 RDX: ffffffff8187cfa8 RSI: ffffffff816a36f4 RDI: 00007fbed340e180 RBP: 00007fbed32d5010 R08: 00007fbed33718c0 R09: 000000008187cb33 R10: 000000000000fd72 R11: 000000008187cb33 R12: 00007fbed32d5008 R13: 0000000000000020 R14: 00000000001ffff8 R15: 00007fbed3a8a018 ================================================================== general protection fault, probably for non-canonical address 0xdffffc0000000065: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000328-0x000000000000032f] CPU: 1 PID: 9910 Comm: syz-executor.2 Tainted: G B W 5.15.149-syzkaller-00165-g85445b5a2107 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline] RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736 Code: 8b 35 2a 96 cd 7e 65 66 44 8b 25 31 96 cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 fd 97 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 07 96 7c 00 4c 8b 3b 66 44 89 65 RSP: 0000:ffffc900001cfff0 EFLAGS: 00010006 RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888116e2e2c0 RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff RBP: ffffc900001d0060 R08: ffffffff8141701b R09: 0000000000000003 R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000 R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000 FS: 00005555556cb480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001100 CR3: 000000010f6a2000 CR4: 00000000003506a0 Call Trace: flush_smp_call_function_queue+0x222/0x6a0 kernel/smp.c:628 generic_smp_call_function_single_interrupt+0x13/0x20 kernel/smp.c:544 __sysvec_call_function_single+0x63/0x1b0 arch/x86/kernel/smp.c:248 sysvec_call_function_single+0x41/0xb0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x1b/0x20 arch/x86/include/asm/idtentry.h:646 RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:434 [inline] RIP: 0010:find_match+0xc1/0xe70 net/ipv6/route.c:738 Code: 00 4c 89 7d d0 49 03 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 12 e7 5a fd 48 8b 1b <48> 85 db 0f 84 06 0b 00 00 48 81 c3 08 04 00 00 48 89 d8 48 c1 e8 RSP: 0000:ffffc900001d01c8 EFLAGS: 00000246 RAX: 1ffff110225f845e RBX: ffff888106bdd000 RCX: dffffc0000000000 RDX: ffff888116e2e2c0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900001d0270 R08: ffffffff84578963 R09: ffffc900001d0530 R10: ffffc900001d0520 R11: dffffc0000000001 R12: 1ffff11024b50e16 R13: 0000000000000003 R14: 0000000000000000 R15: ffff888125a870b0 __find_rr_leaf+0x276/0xb70 net/ipv6/route.c:826 find_rr_leaf net/ipv6/route.c:847 [inline] rt6_select net/ipv6/route.c:891 [inline] fib6_table_lookup+0x338/0xaf0 net/ipv6/route.c:2185 ip6_pol_route+0x151/0x14b0 net/ipv6/route.c:2221 ip6_pol_route_input+0x55/0x80 net/ipv6/route.c:2279 pol_lookup_func include/net/ip6_fib.h:592 [inline] fib6_rule_lookup+0x25a/0x620 net/ipv6/fib6_rules.c:115 ip6_route_input_lookup net/ipv6/route.c:2291 [inline] ip6_route_input+0x724/0xb60 net/ipv6/route.c:2587 ip6_rcv_finish_core net/ipv6/ip6_input.c:66 [inline] ip6_rcv_finish+0x150/0x350 net/ipv6/ip6_input.c:77 NF_HOOK include/linux/netfilter.h:305 [inline] ipv6_rcv+0xeb/0x270 net/ipv6/ip6_input.c:300 __netif_receive_skb_one_core net/core/dev.c:5492 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5606 process_backlog+0x31c/0x650 net/core/dev.c:6483 __napi_poll+0xc4/0x5a0 net/core/dev.c:7042 napi_poll net/core/dev.c:7109 [inline] net_rx_action+0x47d/0xc50 net/core/dev.c:7196 __do_softirq+0x26d/0x5bf kernel/softirq.c:565 do_softirq+0xf6/0x150 kernel/softirq.c:452 __local_bh_enable_ip+0x75/0x80 kernel/softirq.c:379 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline] _raw_spin_unlock_bh+0x51/0x60 kernel/locking/spinlock.c:210 sock_hash_delete_elem+0x2a2/0x2f0 net/core/sock_map.c:945 bpf_prog_bc4ba9860fbb0da4+0x3e/0xe44 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:625 [inline] bpf_prog_run include/linux/filter.h:632 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:1880 [inline] bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1917 __bpf_trace_tlb_flush+0x23/0x30 include/trace/events/tlb.h:38 trace_tlb_flush include/trace/events/tlb.h:38 [inline] switch_mm_irqs_off+0x616/0x9b0 arch/x86/mm/tlb.c:629 context_switch kernel/sched/core.c:5137 [inline] __schedule+0xb2b/0x1590 kernel/sched/core.c:6512 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 exit_to_user_mode_loop+0x4d/0xe0 kernel/entry/common.c:163 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 sysvec_apic_timer_interrupt+0x55/0xc0 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0033:0x7fbed390eacd Code: Unable to access opcode bytes at RIP 0x7fbed390eaa3. RSP: 002b:00007ffc6f1d7480 EFLAGS: 00000216 RAX: 00007fbed33aefe8 RBX: 00007fbed330cbd0 RCX: ffffffff8237cb02 RDX: ffffffff8187cfa8 RSI: ffffffff816a36f4 RDI: 00007fbed340e180 RBP: 00007fbed32d5010 R08: 00007fbed33718c0 R09: 000000008187cb33 R10: 000000000000fd72 R11: 000000008187cb33 R12: 00007fbed32d5008 R13: 0000000000000020 R14: 00000000001ffff8 R15: 00007fbed3a8a018 Modules linked in: ---[ end trace 23736590a5f53144 ]--- RIP: 0010:arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] RIP: 0010:atomic64_read include/linux/atomic/atomic-instrumented.h:606 [inline] RIP: 0010:flush_tlb_func+0x4a/0x550 arch/x86/mm/tlb.c:736 Code: 8b 35 2a 96 cd 7e 65 66 44 8b 25 31 96 cd 7e 49 8d 9e 28 03 00 00 48 89 df be 08 00 00 00 e8 fd 97 7c 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 07 96 7c 00 4c 8b 3b 66 44 89 65 RSP: 0000:ffffc900001cfff0 EFLAGS: 00010006 RAX: 0000000000000065 RBX: 0000000000000329 RCX: ffff888116e2e2c0 RDX: 0000000080010104 RSI: 0000000000000096 RDI: 00000000ffffffff RBP: ffffc900001d0060 R08: ffffffff8141701b R09: 0000000000000003 R10: fffffbfff0e5284c R11: dffffc0000000001 R12: 1ffff1103ee20000 R13: ffff8881f7037180 R14: 0000000000000001 R15: dffffc0000000000 FS: 00005555556cb480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001100 CR3: 000000010f6a2000 CR4: 00000000003506a0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 4c 89 7d d0 mov %r15,-0x30(%rbp) 4: 49 03 1f add (%r15),%rbx 7: 48 89 d8 mov %rbx,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 15: fc ff df 18: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) 1c: 74 08 je 0x26 1e: 48 89 df mov %rbx,%rdi 21: e8 12 e7 5a fd call 0xfd5ae738 26: 48 8b 1b mov (%rbx),%rbx * 29: 48 85 db test %rbx,%rbx <-- trapping instruction 2c: 0f 84 06 0b 00 00 je 0xb38 32: 48 81 c3 08 04 00 00 add $0x408,%rbx 39: 48 89 d8 mov %rbx,%rax 3c: 48 rex.W 3d: c1 .byte 0xc1 3e: e8 .byte 0xe8