netlink: 8 bytes leftover after parsing attributes in process `syz.4.2398'. Oops: general protection fault, probably for non-canonical address 0xdffffc000000003b: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000001d8-0x00000000000001df] CPU: 0 UID: 0 PID: 13491 Comm: syz.4.2398 Not tainted 6.12.0-rc3-syzkaller-00140-g07d6bf634bc8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__ethtool_get_link_ksettings+0x7e/0x190 net/ethtool/ioctl.c:442 Code: 03 00 00 4c 89 e5 48 c1 ed 03 42 80 7c 2d 00 00 74 08 4c 89 e7 e8 42 74 29 f8 bb d8 01 00 00 49 03 1c 24 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 23 74 29 f8 48 83 3b 00 74 4d 49 RSP: 0018:ffffc900040f6b28 EFLAGS: 00010202 RAX: 000000000000003b RBX: 00000000000001d8 RCX: 0000000000040000 RDX: ffffc9000a25c000 RSI: 00000000000029a0 RDI: 00000000000029a1 RBP: 1ffff1100c5fac61 R08: ffffffff89d526b9 R09: 1ffffffff1f9a574 R10: dffffc0000000000 R11: fffffbfff1f9a575 R12: ffff888062fd6308 R13: dffffc0000000000 R14: ffffc900040f6ba0 R15: ffff888062fd6000 FS: 00007fa35f9b06c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d93308178 CR3: 000000002cde0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ib_get_eth_speed+0x160/0x800 drivers/infiniband/core/verbs.c:1996 rxe_query_port+0x76/0x260 drivers/infiniband/sw/rxe/rxe_verbs.c:55 __ib_query_port drivers/infiniband/core/device.c:2111 [inline] ib_query_port+0x166/0x7d0 drivers/infiniband/core/device.c:2143 fill_port_info+0x24f/0x9f0 drivers/infiniband/core/nldev.c:356 nldev_port_get_dumpit+0x547/0x8a0 drivers/infiniband/core/nldev.c:1311 netlink_dump+0x647/0xd80 net/netlink/af_netlink.c:2326 __netlink_dump_start+0x5a2/0x790 net/netlink/af_netlink.c:2441 netlink_dump_start include/linux/netlink.h:339 [inline] rdma_nl_rcv_msg drivers/infiniband/core/netlink.c:190 [inline] rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x796/0x9e0 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x292/0x380 net/socket.c:2690 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa35eb7dff9 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:00007fa35f9b0038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fa35ed35f80 RCX: 00007fa35eb7dff9 RDX: 0000000000000000 RSI: 0000000020000480 RDI: 0000000000000003 RBP: 00007fa35ebf0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa35ed35f80 R15: 00007ffd7867eec8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ethtool_get_link_ksettings+0x7e/0x190 net/ethtool/ioctl.c:442 Code: 03 00 00 4c 89 e5 48 c1 ed 03 42 80 7c 2d 00 00 74 08 4c 89 e7 e8 42 74 29 f8 bb d8 01 00 00 49 03 1c 24 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 23 74 29 f8 48 83 3b 00 74 4d 49 RSP: 0018:ffffc900040f6b28 EFLAGS: 00010202 RAX: 000000000000003b RBX: 00000000000001d8 RCX: 0000000000040000 RDX: ffffc9000a25c000 RSI: 00000000000029a0 RDI: 00000000000029a1 RBP: 1ffff1100c5fac61 R08: ffffffff89d526b9 R09: 1ffffffff1f9a574 R10: dffffc0000000000 R11: fffffbfff1f9a575 R12: ffff888062fd6308 R13: dffffc0000000000 R14: ffffc900040f6ba0 R15: ffff888062fd6000 FS: 00007fa35f9b06c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d93308178 CR3: 000000002cde0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 00 add (%rax),%eax 2: 00 4c 89 e5 add %cl,-0x1b(%rcx,%rcx,4) 6: 48 c1 ed 03 shr $0x3,%rbp a: 42 80 7c 2d 00 00 cmpb $0x0,0x0(%rbp,%r13,1) 10: 74 08 je 0x1a 12: 4c 89 e7 mov %r12,%rdi 15: e8 42 74 29 f8 call 0xf829745c 1a: bb d8 01 00 00 mov $0x1d8,%ebx 1f: 49 03 1c 24 add (%r12),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 23 74 29 f8 call 0xf829745c 39: 48 83 3b 00 cmpq $0x0,(%rbx) 3d: 74 4d je 0x8c 3f: 49 rex.WB