================================================================== BUG: KASAN: use-after-free in __list_del_entry_valid+0x2b/0x100 lib/list_debug.c:42 Read of size 8 at addr ffff8881d0f52880 by task syz-executor.2/2892 CPU: 0 PID: 2892 Comm: syz-executor.2 Not tainted 5.4.62-syzkaller-01109-g3f20ba7d5d1d #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+0x1b0/0x21e lib/dump_stack.c:118 print_address_description+0x96/0x5d0 mm/kasan/report.c:374 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:506 kasan_report+0x27/0x50 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:3725 io_ring_ctx_wait_and_kill+0xaf/0x1380 fs/io_uring.c:3739 io_uring_release+0x59/0x70 fs/io_uring.c:3762 __fput+0x27d/0x6c0 fs/file_table.c:280 task_work_run+0x176/0x1a0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0xbe2/0x26b0 kernel/exit.c:808 do_group_exit+0x155/0x2b0 kernel/exit.c:906 get_signal+0x13ec/0x1f00 kernel/signal.c:2743 do_signal+0x83/0x5b0 arch/x86/kernel/signal.c:815 exit_to_usermode_loop arch/x86/entry/common.c:159 [inline] prepare_exit_to_usermode+0x207/0x2e0 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5b9 Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffb02f1dcf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000118cf48 RCX: 000000000045d5b9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000118cf48 RBP: 000000000118cf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007ffd3cddf08f R14: 00007ffb02f1e9c0 R15: 000000000118cf4c Allocated by task 2892: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x117/0x1b0 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/0x250 mm/slub.c:2806 io_get_req+0x1e8/0x850 fs/io_uring.c:642 io_submit_sqe+0x83/0xe90 fs/io_uring.c:2569 io_ring_submit fs/io_uring.c:2957 [inline] __do_sys_io_uring_enter fs/io_uring.c:3834 [inline] __se_sys_io_uring_enter+0x8ce/0x1f80 fs/io_uring.c:3795 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 380: 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+0x168/0x220 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/0x5c0 mm/slub.c:3057 io_put_req fs/io_uring.c:762 [inline] io_poll_complete_work+0x725/0x930 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 ffff8881d0f52780 which belongs to the cache io_kiocb of size 264 The buggy address is located 256 bytes inside of 264-byte region [ffff8881d0f52780, ffff8881d0f52888) The buggy address belongs to the page: page:ffffea000743d480 refcount:1 mapcount:0 mapping:ffff8881d920db80 index:0xffff8881d0f52300 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea0007432700 0000000300000003 ffff8881d920db80 raw: ffff8881d0f52300 000000008015000b 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d0f52780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d0f52800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881d0f52880: fb fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8881d0f52900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d0f52980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================