do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 413 Comm: syz-executor.0 Not tainted 5.4.268-syzkaller-04870-gd0d34dcb02cc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1134 [inline] RIP: 0010:nexthop_add net/ipv4/nexthop.c:1319 [inline] RIP: 0010:rtm_new_nexthop+0x24d4/0x6ae0 net/ipv4/nexthop.c:1518 Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 20 e8 a5 1b d3 fd 48 8b 44 24 20 4c 89 30 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 7e 1b d3 fd 48 8b 44 24 20 49 89 06 RSP: 0018:ffff8881ef3bf0a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00 RBP: ffff8881ef3bf4b0 R08: ffffffff82469848 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103de77e2c R13: 0000000000010001 R14: 0000000000000000 R15: 1ffff1103b84bb84 FS: 00007f7d73b6d6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d73b6cff8 CR3: 00000001efb55000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rtnetlink_rcv_msg+0x983/0xc70 net/core/rtnetlink.c:5291 netlink_rcv_skb+0x1d5/0x420 net/netlink/af_netlink.c:2481 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x936/0xb20 net/netlink/af_netlink.c:1347 netlink_sendmsg+0xa18/0xcf0 net/netlink/af_netlink.c:1915 sock_sendmsg_nosec net/socket.c:638 [inline] __sock_sendmsg net/socket.c:650 [inline] ____sys_sendmsg+0x5ac/0x8f0 net/socket.c:2306 ___sys_sendmsg net/socket.c:2360 [inline] __sys_sendmsg+0x28b/0x380 net/socket.c:2406 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Modules linked in: ---[ end trace f5f2c6dc8d852ef6 ]--- RIP: 0010:nexthop_create_group net/ipv4/nexthop.c:1134 [inline] RIP: 0010:nexthop_add net/ipv4/nexthop.c:1319 [inline] RIP: 0010:rtm_new_nexthop+0x24d4/0x6ae0 net/ipv4/nexthop.c:1518 Code: 00 80 3c 01 00 74 0a 48 8b 7c 24 20 e8 a5 1b d3 fd 48 8b 44 24 20 4c 89 30 4c 89 f0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 f7 e8 7e 1b d3 fd 48 8b 44 24 20 49 89 06 RSP: 0018:ffff8881ef3bf0a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00 RBP: ffff8881ef3bf4b0 R08: ffffffff82469848 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103de77e2c R13: 0000000000010001 R14: 0000000000000000 R15: 1ffff1103b84bb84 FS: 00007f7d73b6d6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7d73b6cff8 CR3: 00000001efb55000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 80 3c 01 00 74 add %al,0x7400013c(%rax) 6: 0a 48 8b or -0x75(%rax),%cl 9: 7c 24 jl 0x2f b: 20 e8 and %ch,%al d: a5 movsl %ds:(%rsi),%es:(%rdi) e: 1b d3 sbb %ebx,%edx 10: fd std 11: 48 8b 44 24 20 mov 0x20(%rsp),%rax 16: 4c 89 30 mov %r14,(%rax) 19: 4c 89 f0 mov %r14,%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: 4c 89 f7 mov %r14,%rdi 33: e8 7e 1b d3 fd call 0xfdd31bb6 38: 48 8b 44 24 20 mov 0x20(%rsp),%rax 3d: 49 89 06 mov %rax,(%r14)