wlan0 speed is unknown, defaulting to 1000 ================================================================== BUG: KASAN: use-after-free in siw_query_port+0x358/0x450 drivers/infiniband/sw/siw/siw_verbs.c:175 Read of size 4 at addr ffff8880603280d8 by task kworker/0:7/4301 CPU: 0 PID: 4301 Comm: kworker/0:7 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Workqueue: infiniband ib_cache_event_task Call Trace: dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106 print_address_description+0x60/0x2d0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xdf/0x130 mm/kasan/report.c:451 siw_query_port+0x358/0x450 drivers/infiniband/sw/siw/siw_verbs.c:175 ib_cache_update+0x1bb/0x980 drivers/infiniband/core/cache.c:1477 ib_cache_event_task+0xd4/0x1c0 drivers/infiniband/core/cache.c:1551 process_one_work+0x863/0x1000 kernel/workqueue.c:2310 worker_thread+0xaa8/0x12a0 kernel/workqueue.c:2457 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 The buggy address belongs to the page: page:ffffea000180ca00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60328 head:ffffea000180ca00 order:2 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010000(head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x140dc0(GFP_USER|__GFP_COMP|__GFP_ZERO), pid 6296, ts 272023251130, free_ts 271432541698 prep_new_page mm/page_alloc.c:2426 [inline] get_page_from_freelist+0x1b77/0x1c60 mm/page_alloc.c:4192 __alloc_pages+0x1e1/0x470 mm/page_alloc.c:5474 kmalloc_order+0x40/0x150 mm/slab_common.c:986 kmalloc_order_trace+0x14/0xf0 mm/slab_common.c:1002 kmalloc_large include/linux/slab.h:533 [inline] kmalloc include/linux/slab.h:597 [inline] f2fs_kmalloc fs/f2fs/f2fs.h:3203 [inline] f2fs_kzalloc fs/f2fs/f2fs.h:3209 [inline] create_discard_cmd_control fs/f2fs/segment.c:2148 [inline] f2fs_build_segment_manager+0x798/0x67b0 fs/f2fs/segment.c:5205 f2fs_fill_super+0x455c/0x6f00 fs/f2fs/super.c:4253 mount_bdev+0x287/0x3c0 fs/super.c:1400 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1530 do_new_mount+0x24a/0xa40 fs/namespace.c:3014 do_mount fs/namespace.c:3357 [inline] __do_sys_mount fs/namespace.c:3565 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1340 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317 free_unref_page+0x94/0x280 mm/page_alloc.c:3396 stack_depot_save+0x418/0x440 lib/stackdepot.c:335 kasan_save_stack mm/kasan/common.c:40 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xcc/0xf0 mm/kasan/common.c:522 kmalloc include/linux/slab.h:604 [inline] kzalloc include/linux/slab.h:735 [inline] snd_pcm_lib_malloc_pages+0x283/0x6a0 sound/core/pcm_memory.c:445 snd_pcm_hw_params+0x77c/0x1c30 sound/core/pcm_native.c:770 snd_pcm_oss_change_params_locked+0x1fb2/0x3e00 sound/core/oss/pcm_oss.c:965 snd_pcm_oss_make_ready_locked sound/core/oss/pcm_oss.c:1189 [inline] snd_pcm_oss_sync+0x363/0xc00 sound/core/oss/pcm_oss.c:1671 snd_pcm_oss_release+0xfe/0x240 sound/core/oss/pcm_oss.c:2587 __fput+0x234/0x930 fs/file_table.c:311 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 Memory state around the buggy address: ffff888060327f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888060328000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888060328080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888060328100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888060328180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================