wlan0 speed is unknown, defaulting to 1000 ================================================================== BUG: KASAN: use-after-free in siw_query_port+0x2f4/0x3d8 drivers/infiniband/sw/siw/siw_verbs.c:177 Read of size 4 at addr ffff0001079bc0e0 by task kworker/1:0/22 CPU: 1 PID: 22 Comm: kworker/1:0 Not tainted 6.1.96-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Workqueue: infiniband ib_cache_event_task Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x174/0x4c0 mm/kasan/report.c:395 kasan_report+0xd4/0x130 mm/kasan/report.c:495 __asan_report_load4_noabort+0x2c/0x38 mm/kasan/report_generic.c:350 siw_query_port+0x2f4/0x3d8 drivers/infiniband/sw/siw/siw_verbs.c:177 iw_query_port drivers/infiniband/core/device.c:2056 [inline] ib_query_port+0x5b0/0x74c drivers/infiniband/core/device.c:2097 ib_cache_update+0x17c/0x914 drivers/infiniband/core/cache.c:1487 ib_cache_event_task+0xd8/0x1c4 drivers/infiniband/core/cache.c:1561 process_one_work+0x7ac/0x1404 kernel/workqueue.c:2292 worker_thread+0x8e4/0xfec kernel/workqueue.c:2439 kthread+0x250/0x2d8 kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 The buggy address belongs to the physical page: page:00000000f0222d4a refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1479bc flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000000 fffffc000416ab08 ffff0001b4370eb0 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0001079bbf80: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff0001079bc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff0001079bc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff0001079bc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff0001079bc180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================