netlink: 'syz.5.4322': attribute type 1 has an invalid length. Oops: general protection fault, probably for non-canonical address 0xdffffc000000003c: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000001e0-0x00000000000001e7] CPU: 0 UID: 0 PID: 21131 Comm: syz.5.4322 Not tainted 6.15.0-syzkaller-07787-g27eab4c64423 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__ethtool_get_link_ksettings+0x7e/0x190 net/ethtool/ioctl.c:443 Code: 02 00 00 4c 89 fd 48 c1 ed 03 42 80 7c 2d 00 00 74 08 4c 89 ff e8 12 0a 97 f8 41 bc e0 01 00 00 4d 03 27 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 f3 09 97 f8 49 83 3c 24 00 74 4e RSP: 0018:ffffc9000443eb08 EFLAGS: 00010206 RAX: 000000000000003c RBX: ffffc9000443eb80 RCX: ffff88802b8ada00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff1100f8c5c5d R08: ffffffff8f50a7a7 R09: 1ffffffff1ea14f4 R10: dffffc0000000000 R11: fffffbfff1ea14f5 R12: 00000000000001e0 R13: dffffc0000000000 R14: ffff88807c62e000 R15: ffff88807c62e2e8 FS: 00007f89b3f636c0(0000) GS:ffff888125c66000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f3417d2d8 CR3: 000000005cabc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ib_get_eth_speed+0x15e/0x7b0 drivers/infiniband/core/verbs.c:1996 rxe_query_port+0x93/0x3b0 drivers/infiniband/sw/rxe/rxe_verbs.c:62 __ib_query_port drivers/infiniband/core/device.c:2111 [inline] ib_query_port+0x16d/0x830 drivers/infiniband/core/device.c:2143 fill_port_info+0x1b9/0x5b0 drivers/infiniband/core/nldev.c:357 nldev_port_get_dumpit+0x57f/0x8a0 drivers/infiniband/core/nldev.c:1312 netlink_dump+0x62a/0xe20 net/netlink/af_netlink.c:2309 __netlink_dump_start+0x5cb/0x7e0 net/netlink/af_netlink.c:2424 netlink_dump_start include/linux/netlink.h:341 [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+0x749/0x980 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1313 [inline] netlink_unicast+0x758/0x8d0 net/netlink/af_netlink.c:1339 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:712 [inline] __sock_sendmsg+0x219/0x270 net/socket.c:727 ____sys_sendmsg+0x505/0x830 net/socket.c:2566 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2620 __sys_sendmsg net/socket.c:2652 [inline] __do_sys_sendmsg net/socket.c:2657 [inline] __se_sys_sendmsg net/socket.c:2655 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2655 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f89b318e969 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:00007f89b3f63038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f89b33b6080 RCX: 00007f89b318e969 RDX: 0000000000000000 RSI: 0000200000000480 RDI: 0000000000000004 RBP: 00007f89b3210ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f89b33b6080 R15: 00007ffdbf31e678 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ethtool_get_link_ksettings+0x7e/0x190 net/ethtool/ioctl.c:443 Code: 02 00 00 4c 89 fd 48 c1 ed 03 42 80 7c 2d 00 00 74 08 4c 89 ff e8 12 0a 97 f8 41 bc e0 01 00 00 4d 03 27 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 f3 09 97 f8 49 83 3c 24 00 74 4e RSP: 0018:ffffc9000443eb08 EFLAGS: 00010206 RAX: 000000000000003c RBX: ffffc9000443eb80 RCX: ffff88802b8ada00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff1100f8c5c5d R08: ffffffff8f50a7a7 R09: 1ffffffff1ea14f4 R10: dffffc0000000000 R11: fffffbfff1ea14f5 R12: 00000000000001e0 R13: dffffc0000000000 R14: ffff88807c62e000 R15: ffff88807c62e2e8 FS: 00007f89b3f636c0(0000) GS:ffff888125d66000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3f3417fab8 CR3: 000000005cabc000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 00 4c 89 fd add %cl,-0x3(%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 ff mov %r15,%rdi 15: e8 12 0a 97 f8 call 0xf8970a2c 1a: 41 bc e0 01 00 00 mov $0x1e0,%r12d 20: 4d 03 27 add (%r15),%r12 23: 4c 89 e0 mov %r12,%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: 4c 89 e7 mov %r12,%rdi 34: e8 f3 09 97 f8 call 0xf8970a2c 39: 49 83 3c 24 00 cmpq $0x0,(%r12) 3e: 74 4e je 0x8e