================================================================== 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+0x8e/0x610 kernel/locking/mutex.c:1227 Read of size 8 at addr ffff8880294c6808 by task iou-sqp-9847/9849 CPU: 0 PID: 9849 Comm: iou-sqp-9847 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+0x141/0x1d7 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 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+0x8e/0x610 kernel/locking/mutex.c:1227 io_sq_thread+0x11f9/0x1a00 fs/io_uring.c:6773 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 9847: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc mm/kasan/common.c:506 [inline] ____kasan_kmalloc mm/kasan/common.c:465 [inline] __kasan_kmalloc+0x96/0xc0 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:233 [inline] kmem_cache_alloc_trace+0x1f5/0x440 mm/slab.c:3570 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+0x161f/0x2930 fs/io_uring.c:9484 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+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:357 ____kasan_slab_free mm/kasan/common.c:360 [inline] ____kasan_slab_free mm/kasan/common.c:325 [inline] __kasan_slab_free+0xc7/0x100 mm/kasan/common.c:367 kasan_slab_free include/linux/kasan.h:199 [inline] __cache_free mm/slab.c:3440 [inline] kfree+0x104/0x2b0 mm/slab.c:3796 io_put_sq_data fs/io_uring.c:7116 [inline] io_sq_thread_finish+0x50b/0x650 fs/io_uring.c:7139 io_ring_ctx_free fs/io_uring.c:8408 [inline] io_ring_exit_work+0x82/0x9a0 fs/io_uring.c:8539 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff8880294c6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 8 bytes inside of 1024-byte region [ffff8880294c6800, ffff8880294c6c00) The buggy address belongs to the page: page:000000000dcc18a3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x294c6 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00006c3708 ffffea00006c4d88 ffff888010840700 raw: 0000000000000000 ffff8880294c6000 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880294c6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880294c6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880294c6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880294c6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880294c6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================