==================================================================
BUG: KFENCE: use-after-free read in __ethtool_get_link_ksettings+0x64/0x170

Use-after-free read at 0xffff88823c4642e8 (in kfence-#49):
 __ethtool_get_link_ksettings+0x64/0x170
 ib_get_eth_speed+0x180/0x7f0
 rxe_query_port+0x93/0x3d0
 ib_query_port+0x170/0x830
 smc_ib_port_event_work+0x15a/0x940
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0xda6/0x1360
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

kfence-#49: 0xffff88823c464000-0xffff88823c464da7, size=3496, cache=kmalloc-cg-4k

allocated by task 5816 on cpu 1 at 73.971060s (472.722814s ago):
 __kvmalloc_node_noprof+0x23e/0x8d0
 alloc_netdev_mqs+0xa6/0x11b0
 rtnl_create_link+0x31f/0xd70
 rtnl_newlink_create+0x277/0xb70
 rtnl_newlink+0x1666/0x1be0
 rtnetlink_rcv_msg+0x7d5/0xbe0
 netlink_rcv_skb+0x232/0x4b0
 netlink_unicast+0x80f/0x9b0
 netlink_sendmsg+0x813/0xb40
 __sys_sendto+0x709/0x7a0
 __x64_sys_sendto+0xde/0x100
 do_syscall_64+0xe2/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

freed by task 12 on cpu 1 at 546.630213s (0.088874s ago):
 device_release+0x9e/0x1d0
 kobject_put+0x228/0x560
 netdev_run_todo+0xc75/0xde0
 default_device_exit_batch+0x986/0xa00
 ops_undo_list+0x52b/0x940
 cleanup_net+0x4df/0x7b0
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0xda6/0x1360
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30

CPU: 0 UID: 0 PID: 9655 Comm: kworker/0:10 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events smc_ib_port_event_work
RIP: 0010:__ethtool_get_link_ksettings+0x64/0x170
Code: 00 00 00 fc ff df 4d 8d be e8 02 00 00 4c 89 fd 48 c1 ed 03 42 80 7c 2d 00 00 74 08 4c 89 ff e8 22 db 7e f8 41 bc f8 01 00 00 <4d> 03 27 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 03
RSP: 0018:ffffc900042377a8 EFLAGS: 00010246
RAX: ffffffff89ade846 RBX: ffffc90004237820 RCX: ffff88811d859d40
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 1ffff1104788c85d R08: ffffffff8f9ae727 R09: 1ffffffff1f35ce4
R10: dffffc0000000000 R11: fffffbfff1f35ce5 R12: 00000000000001f8
R13: dffffc0000000000 R14: ffff88823c464000 R15: ffff88823c4642e8
FS:  0000000000000000(0000) GS:ffff88818e0ec000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff88823c4642e8 CR3: 0000000173cba000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 ib_get_eth_speed+0x180/0x7f0
 rxe_query_port+0x93/0x3d0
 ib_query_port+0x170/0x830
 smc_ib_port_event_work+0x15a/0x940
 process_scheduled_works+0xaec/0x17a0
 worker_thread+0xda6/0x1360
 kthread+0x726/0x8b0
 ret_from_fork+0x51b/0xa40
 ret_from_fork_asm+0x1a/0x30
 </TASK>
==================================================================
