general protection fault, probably for non-canonical address 0xdffffc000000005b: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000002d8-0x00000000000002df] CPU: 0 PID: 4972 Comm: syz.5.1853 Not tainted 6.1.141-syzkaller-00042-g96160a0e0aa1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__in6_dev_get include/net/addrconf.h:343 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:434 [inline] RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:781 Code: 7c 05 00 00 74 08 48 89 df e8 65 67 63 fd 48 89 d8 bb d8 02 00 00 48 03 18 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 3b 67 63 fd 48 8b 1b 48 85 db 0f 84 RSP: 0018:ffffc90001346940 EFLAGS: 00010202 RAX: 000000000000005b RBX: 00000000000002d8 RCX: dffffc0000000000 RDX: ffff8881252fd100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900013469f8 R08: ffffc90001346d20 R09: ffffc90001346d30 R10: 0000000000000000 R11: 1ffff92000268dc6 R12: 0000000000000201 R13: 1ffff110237c6e64 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f01ed7ff6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 000000010c441000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rt6_nh_find_match+0xd9/0x140 net/ipv6/route.c:821 nexthop_for_each_fib6_nh+0x107/0x200 net/ipv4/nexthop.c:1243 __find_rr_leaf+0x50f/0x900 net/ipv6/route.c:862 find_rr_leaf net/ipv6/route.c:890 [inline] rt6_select net/ipv6/route.c:934 [inline] fib6_table_lookup+0x2c1/0x9a0 net/ipv6/route.c:2223 ip6_pol_route+0x14c/0x1110 net/ipv6/route.c:2259 ip6_pol_route_output+0x51/0x80 net/ipv6/route.c:2634 pol_lookup_func include/net/ip6_fib.h:589 [inline] __fib6_rule_action net/ipv6/fib6_rules.c:233 [inline] fib6_rule_action+0x1d5/0x720 net/ipv6/fib6_rules.c:271 fib_rules_lookup+0x4ae/0x900 net/core/fib_rules.c:318 fib6_rule_lookup+0x179/0x580 net/ipv6/fib6_rules.c:108 ip6_route_output_flags_noref+0x283/0x340 net/ipv6/route.c:2666 ip6_route_output_flags+0x3c/0x200 net/ipv6/route.c:2679 ip6_route_output include/net/ip6_route.h:98 [inline] vti6_xmit net/ipv6/ip6_vti.c:474 [inline] vti6_tnl_xmit+0x6e2/0x1980 net/ipv6/ip6_vti.c:587 __netdev_start_xmit include/linux/netdevice.h:4929 [inline] netdev_start_xmit include/linux/netdevice.h:4943 [inline] xmit_one net/core/dev.c:3669 [inline] dev_hard_start_xmit+0x20b/0x750 net/core/dev.c:3685 __dev_queue_xmit+0x18d9/0x3420 net/core/dev.c:4345 dev_queue_xmit include/linux/netdevice.h:3084 [inline] __bpf_tx_skb net/core/filter.c:2133 [inline] __bpf_redirect_no_mac net/core/filter.c:2167 [inline] __bpf_redirect+0x8db/0x1130 net/core/filter.c:2190 ____bpf_clone_redirect net/core/filter.c:2463 [inline] bpf_clone_redirect+0x26a/0x3c0 net/core/filter.c:2433 bpf_prog_6893982b85ceadf7+0x56/0x5b bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline] __bpf_prog_run include/linux/filter.h:603 [inline] bpf_prog_run include/linux/filter.h:610 [inline] bpf_test_run+0x349/0x8d0 net/bpf/test_run.c:402 bpf_prog_test_run_skb+0xaec/0x1290 net/bpf/test_run.c:1183 bpf_prog_test_run+0x3e3/0x630 kernel/bpf/syscall.c:3665 __sys_bpf+0x56d/0x780 kernel/bpf/syscall.c:5020 __do_sys_bpf kernel/bpf/syscall.c:5106 [inline] __se_sys_bpf kernel/bpf/syscall.c:5104 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5104 x64_sys_call+0x488/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f01ed98e9a9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f01ed7ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f01edbb5fa0 RCX: 00007f01ed98e9a9 RDX: 000000000000002c RSI: 0000200000000080 RDI: 000000000000000a RBP: 00007f01eda10d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f01edbb5fa0 R15: 00007ffe1b842288 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__in6_dev_get include/net/addrconf.h:343 [inline] RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:434 [inline] RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:781 Code: 7c 05 00 00 74 08 48 89 df e8 65 67 63 fd 48 89 d8 bb d8 02 00 00 48 03 18 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 3b 67 63 fd 48 8b 1b 48 85 db 0f 84 RSP: 0018:ffffc90001346940 EFLAGS: 00010202 RAX: 000000000000005b RBX: 00000000000002d8 RCX: dffffc0000000000 RDX: ffff8881252fd100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900013469f8 R08: ffffc90001346d20 R09: ffffc90001346d30 R10: 0000000000000000 R11: 1ffff92000268dc6 R12: 0000000000000201 R13: 1ffff110237c6e64 R14: 0000000000000000 R15: 0000000000000002 FS: 00007f01ed7ff6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001000 CR3: 000000010c441000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 7c 05 jl 0x7 2: 00 00 add %al,(%rax) 4: 74 08 je 0xe 6: 48 89 df mov %rbx,%rdi 9: e8 65 67 63 fd call 0xfd636773 e: 48 89 d8 mov %rbx,%rax 11: bb d8 02 00 00 mov $0x2d8,%ebx 16: 48 03 18 add (%rax),%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 3b 67 63 fd call 0xfd636773 38: 48 8b 1b mov (%rbx),%rbx 3b: 48 85 db test %rbx,%rbx 3e: 0f .byte 0xf 3f: 84 .byte 0x84