================================================================== BUG: KASAN: slab-use-after-free in __ethtool_get_link_ksettings+0x60/0x174 net/ethtool/ioctl.c:444 Read of size 8 at addr ffff0000d940e2f0 by task kworker/0:5/4811 CPU: 0 UID: 0 PID: 4811 Comm: kworker/0:5 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026 Workqueue: events smc_ib_port_event_work Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 __ethtool_get_link_ksettings+0x60/0x174 net/ethtool/ioctl.c:444 ipvlan_ethtool_get_link_ksettings+0x48/0x58 drivers/net/ipvlan/ipvlan_main.c:413 __ethtool_get_link_ksettings+0x118/0x174 net/ethtool/ioctl.c:451 ib_get_eth_speed+0x154/0x6b0 drivers/infiniband/core/verbs.c:2055 rxe_query_port+0x98/0x36c drivers/infiniband/sw/rxe/rxe_verbs.c:62 __ib_query_port drivers/infiniband/core/device.c:2121 [inline] ib_query_port+0x168/0x770 drivers/infiniband/core/device.c:2153 smc_ib_remember_port_attr net/smc/smc_ib.c:364 [inline] smc_ib_port_event_work+0x104/0x8ac net/smc/smc_ib.c:388 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 Allocated by task 4714: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x9c/0xb4 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5295 [inline] __kvmalloc_node_noprof+0x3d8/0x880 mm/slub.c:6832 alloc_netdev_mqs+0xac/0xe60 net/core/dev.c:12029 rtnl_create_link+0x2c8/0xb94 net/core/rtnetlink.c:3672 rtnl_newlink_create+0x210/0x768 net/core/rtnetlink.c:3854 __rtnl_newlink net/core/rtnetlink.c:3995 [inline] rtnl_newlink+0xdc4/0x113c net/core/rtnetlink.c:4110 rtnetlink_rcv_msg+0x66c/0x9c8 net/core/rtnetlink.c:6996 netlink_rcv_skb+0x22c/0x410 net/netlink/af_netlink.c:2550 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7023 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x610/0x800 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x63c/0x920 net/netlink/af_netlink.c:1894 sock_sendmsg_nosec net/socket.c:787 [inline] __sock_sendmsg+0xc8/0x138 net/socket.c:802 __sys_sendto+0x254/0x338 net/socket.c:2265 __do_sys_sendto net/socket.c:2272 [inline] __se_sys_sendto net/socket.c:2268 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2268 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xe8/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:740 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:759 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:594 Freed by task 6600: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_free_info+0x58/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x74/0xa4 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6250 [inline] kfree+0x188/0x690 mm/slub.c:6565 kvfree+0x30/0x40 mm/slub.c:6881 netdev_release+0x88/0xb0 net/core/net-sysfs.c:2237 device_release+0xa8/0x1c8 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1dc/0x4bc lib/kobject.c:737 netdev_run_todo+0xab4/0xc48 net/core/dev.c:11730 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:157 default_device_exit_batch+0x584/0x600 net/core/dev.c:13077 ops_exit_list net/core/net_namespace.c:205 [inline] ops_undo_list+0x428/0x818 net/core/net_namespace.c:252 cleanup_net+0x470/0x6b8 net/core/net_namespace.c:702 process_one_work kernel/workqueue.c:3314 [inline] process_scheduled_works+0x79c/0x1098 kernel/workqueue.c:3397 worker_thread+0x754/0xba0 kernel/workqueue.c:3478 kthread+0x2f8/0x3c8 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:842 The buggy address belongs to the object at ffff0000d940e000 which belongs to the cache kmalloc-cg-4k of size 4096 The buggy address is located 752 bytes inside of freed 4096-byte region [ffff0000d940e000, ffff0000d940f000) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x119408 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff0000d3690f41 flags: 0x5ffc00000000040(head|node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000040 ffff0000c001d500 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800040004 00000000f5000000 ffff0000d3690f41 head: 05ffc00000000040 ffff0000c001d500 dead000000000100 dead000000000122 head: 0000000000000000 0000000800040004 00000000f5000000 ffff0000d3690f41 head: 05ffc00000000003 fffffdffc3650201 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000d940e180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d940e200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff0000d940e280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000d940e300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000d940e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================