================================================================== BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline] BUG: KASAN: use-after-free in atomic64_read include/asm-generic/atomic-instrumented.h:837 [inline] BUG: KASAN: use-after-free in atomic_long_read include/asm-generic/atomic-long.h:29 [inline] BUG: KASAN: use-after-free in __mutex_unlock_slowpath+0x88/0x520 kernel/locking/mutex.c:1227 Read of size 8 at addr ffff88805bdac008 by task iou-sqp-10148/10152 CPU: 0 PID: 10152 Comm: iou-sqp-10148 Not tainted 5.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x176/0x24e lib/dump_stack.c:120 print_address_description+0x5f/0x3a0 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report+0x15e/0x210 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:135 [inline] kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:186 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic64_read include/asm-generic/atomic-instrumented.h:837 [inline] atomic_long_read include/asm-generic/atomic-long.h:29 [inline] __mutex_unlock_slowpath+0x88/0x520 kernel/locking/mutex.c:1227 io_sq_thread+0x1510/0x1520 fs/io_uring.c:6773 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 10148: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc+0xc2/0xf0 mm/kasan/common.c:506 kasan_kmalloc include/linux/kasan.h:233 [inline] kmem_cache_alloc_trace+0x21b/0x350 mm/slub.c:2934 kmalloc include/linux/slab.h:554 [inline] kzalloc include/linux/slab.h:684 [inline] io_get_sq_data fs/io_uring.c:7177 [inline] io_sq_offload_create fs/io_uring.c:7873 [inline] io_uring_create fs/io_uring.c:9401 [inline] io_uring_setup fs/io_uring.c:9484 [inline] __do_sys_io_uring_setup fs/io_uring.c:9490 [inline] __se_sys_io_uring_setup+0x1230/0x2980 fs/io_uring.c:9487 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Freed by task 25: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x3d/0x70 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:357 ____kasan_slab_free+0x100/0x140 mm/kasan/common.c:360 kasan_slab_free include/linux/kasan.h:199 [inline] slab_free_hook mm/slub.c:1562 [inline] slab_free_freelist_hook+0x171/0x270 mm/slub.c:1600 slab_free mm/slub.c:3161 [inline] kfree+0xcf/0x2d0 mm/slub.c:4213 io_put_sq_data fs/io_uring.c:7116 [inline] io_sq_thread_finish+0x56a/0x5c0 fs/io_uring.c:7139 io_ring_ctx_free fs/io_uring.c:8408 [inline] io_ring_exit_work+0x85/0x750 fs/io_uring.c:8539 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff88805bdac000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 8 bytes inside of 1024-byte region [ffff88805bdac000, ffff88805bdac400) The buggy address belongs to the page: page:000000002fbd9e5b refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88805bdac800 pfn:0x5bda8 head:000000002fbd9e5b order:3 compound_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head) raw: 00fff00000010200 ffffea0001755a08 ffffea000180c208 ffff888010841dc0 raw: ffff88805bdac800 000000000010000a 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805bdabf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88805bdabf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88805bdac000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805bdac080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805bdac100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================