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: 0 PID: 413 Comm: syz-executor.0 Not tainted 5.4.265-syzkaller-04832-g4d7b888b5774 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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 1e 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 1e d3 fd 48 8b 44 24 20 49 89 06 RSP: 0018:ffff8881d97a70a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00 RBP: ffff8881d97a74b0 R08: ffffffff82469408 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103b2f4e2c R13: 0000000000010001 R14: 0000000000000000 R15: 1ffff1103b897704 FS: 00007f4ede7666c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4ede765ff8 CR3: 00000001ef165000 CR4: 00000000003406b0 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:2304 ___sys_sendmsg net/socket.c:2358 [inline] __sys_sendmsg+0x28b/0x380 net/socket.c:2404 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Modules linked in: ---[ end trace 55ced3001c4dd424 ]--- 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 1e 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 1e d3 fd 48 8b 44 24 20 49 89 06 RSP: 0018:ffff8881d97a70a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881f5c02a00 RBP: ffff8881d97a74b0 R08: ffffffff82469408 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: 1ffff1103b2f4e2c R13: 0000000000010001 R14: 0000000000000000 R15: 1ffff1103b897704 FS: 00007f4ede7666c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4ede765ff8 CR3: 00000001ef165000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) 4: 74 0a je 0x10 6: 48 8b 7c 24 20 mov 0x20(%rsp),%rdi b: e8 a5 1e d3 fd call 0xfdd31eb5 10: 48 8b 44 24 20 mov 0x20(%rsp),%rax 15: 4c 89 30 mov %r14,(%rax) 18: 4c 89 f0 mov %r14,%rax 1b: 48 c1 e8 03 shr $0x3,%rax 1f: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 26: fc ff df * 29: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2d: 74 08 je 0x37 2f: 4c 89 f7 mov %r14,%rdi 32: e8 7e 1e d3 fd call 0xfdd31eb5 37: 48 8b 44 24 20 mov 0x20(%rsp),%rax 3c: 49 89 06 mov %rax,(%r14)