================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0x2b/0x100 lib/list_debug.c:42 Read of size 8 at addr ffff8881c8fdfa80 by task syz-executor.2/6521 CPU: 1 PID: 6521 Comm: syz-executor.2 Not tainted 5.4.61-syzkaller-00890-g0ede4657b27f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x14a/0x1ce lib/dump_stack.c:118 print_address_description+0x93/0x620 mm/kasan/report.c:374 __kasan_report+0x16d/0x1e0 mm/kasan/report.c:506 kasan_report+0x36/0x60 mm/kasan/common.c:634 __list_del_entry_valid+0x2b/0x100 lib/list_debug.c:42 __list_del_entry include/linux/list.h:131 [inline] list_del_init include/linux/list.h:190 [inline] io_cancel_async_work+0x9b/0x280 fs/io_uring.c:3716 io_ring_ctx_wait_and_kill+0xaf/0x1380 fs/io_uring.c:3730 io_uring_release+0x59/0x70 fs/io_uring.c:3753 __fput+0x27d/0x6c0 fs/file_table.c:280 task_work_run+0x176/0x1a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x286/0x2e0 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d60a Code: 89 f5 41 54 49 89 fc 55 53 74 35 49 63 e8 48 63 da 4d 89 f9 49 89 e8 4d 63 d6 48 89 da 4c 89 ee 4c 89 e7 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 4e 5b 5d 41 5c 41 5d 41 5e 41 5f c3 0f 1f 00 RSP: 002b:00007f153bbcfbc8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: 0000000020fff000 RBX: 0000000000000003 RCX: 000000000045d60a RDX: 0000000000000003 RSI: 0000000000200000 RDI: 0000000020fff000 RBP: 000000000000000c R08: 000000000000000c R09: 0000000010000000 R10: 0000000000008011 R11: 0000000000000206 R12: 0000000020fff000 R13: 0000000000200000 R14: 0000000000008011 R15: 0000000010000000 Allocated by task 6516: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x12c/0x1c0 mm/kasan/common.c:510 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2793 [inline] slab_alloc mm/slub.c:2801 [inline] kmem_cache_alloc+0x1d5/0x260 mm/slub.c:2806 io_get_req+0x1e8/0x850 fs/io_uring.c:642 io_submit_sqe+0x83/0xe90 fs/io_uring.c:2560 io_ring_submit fs/io_uring.c:2948 [inline] __do_sys_io_uring_enter fs/io_uring.c:3825 [inline] __se_sys_io_uring_enter+0x922/0x1ff0 fs/io_uring.c:3786 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 7: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] kasan_set_free_info mm/kasan/common.c:332 [inline] __kasan_slab_free+0x181/0x230 mm/kasan/common.c:471 slab_free_hook mm/slub.c:1443 [inline] slab_free_freelist_hook+0xd0/0x150 mm/slub.c:1476 slab_free mm/slub.c:3041 [inline] kmem_cache_free+0xac/0x600 mm/slub.c:3057 io_put_req fs/io_uring.c:762 [inline] io_poll_complete_work+0x737/0x940 fs/io_uring.c:1835 process_one_work+0x777/0xf90 kernel/workqueue.c:2274 worker_thread+0xa8f/0x1430 kernel/workqueue.c:2420 kthread+0x317/0x340 kernel/kthread.c:268 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8881c8fdf980 which belongs to the cache io_kiocb of size 264 The buggy address is located 256 bytes inside of 264-byte region [ffff8881c8fdf980, ffff8881c8fdfa88) The buggy address belongs to the page: page:ffffea000723f780 refcount:1 mapcount:0 mapping:ffff8881dab9ac80 index:0xffff8881c8fdea80 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 dead000000000100 dead000000000122 ffff8881dab9ac80 raw: ffff8881c8fdea80 0000000080150014 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c8fdf980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c8fdfa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881c8fdfa80: fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881c8fdfb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881c8fdfb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================