================================================================== BUG: KASAN: slab-use-after-free in __list_del_entry_valid_or_report+0x18a/0x1d0 lib/list_debug.c:49 Read of size 8 at addr ffff88803b4c5c88 by task syz.0.17/6102 CPU: 1 UID: 0 PID: 6102 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1d0 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x18a/0x1d0 lib/list_debug.c:49 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] fuse_read_interrupt fs/fuse/dev.c:1267 [inline] fuse_dev_do_read+0x5fa/0x2420 fs/fuse/dev.c:1464 fuse_dev_read+0x15e/0x1e0 fs/fuse/dev.c:1586 io_iter_do_read io_uring/rw.c:835 [inline] __io_read+0x357/0x1470 io_uring/rw.c:952 io_read+0x8d/0x1f0 io_uring/rw.c:1031 __io_issue_sqe+0xe8/0x7a0 io_uring/io_uring.c:1387 io_issue_sqe+0x88/0x13e0 io_uring/io_uring.c:1410 io_queue_sqe io_uring/io_uring.c:1636 [inline] io_req_task_submit+0x15f/0x290 io_uring/io_uring.c:1050 io_poll_task_func+0xa2a/0xde0 io_uring/poll.c:361 io_handle_tw_list+0x194/0x580 io_uring/tw.c:72 tctx_task_work_run+0x59/0x330 io_uring/tw.c:132 tctx_task_work+0x7a/0xd0 io_uring/tw.c:150 task_work_run+0x150/0x240 kernel/task_work.c:233 get_signal+0x1bd/0x21e0 kernel/signal.c:2811 arch_do_signal_or_restart+0x91/0x7a0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:64 [inline] exit_to_user_mode_loop+0x86/0x4a0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:238 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:328 [inline] do_syscall_64+0x706/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0c9d79c819 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0c9e6b9028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: fffffffffffffffc RBX: 00007f0c9da16090 RCX: 00007f0c9d79c819 RDX: 0000000000040000 RSI: 0000200000000140 RDI: ffffffffffffff9c RBP: 00007f0c9d832c91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0c9da16128 R14: 00007f0c9da16090 R15: 00007ffeacb15388 Allocated by task 6102: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_noprof+0x241/0x6e0 mm/slub.c:4905 fuse_request_alloc+0x22/0x200 fs/fuse/dev.c:142 fuse_get_req+0x74a/0xfe0 fs/fuse/dev.c:225 __fuse_simple_request+0xb5/0xf00 fs/fuse/dev.c:688 fuse_simple_request fs/fuse/fuse_i.h:1262 [inline] fuse_lookup_name+0x2ad/0x760 fs/fuse/dir.c:578 fuse_lookup+0x209/0x550 fs/fuse/dir.c:625 fuse_atomic_open+0x2f8/0x450 fs/fuse/dir.c:944 atomic_open+0x179/0x430 fs/namei.c:4364 lookup_open.isra.0+0x46b/0x11b0 fs/namei.c:4477 open_last_lookups fs/namei.c:4611 [inline] path_openat+0xa98/0x31a0 fs/namei.c:4855 do_file_open+0x20e/0x430 fs/namei.c:4887 do_sys_openat2+0x10d/0x1e0 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_openat fs/open.c:1386 [inline] __se_sys_openat fs/open.c:1381 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1381 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 6102: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 kasan_save_free_info+0x3b/0x70 mm/kasan/generic.c:584 poison_slab_object mm/kasan/common.c:253 [inline] __kasan_slab_free+0x5f/0x80 mm/kasan/common.c:285 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:2689 [inline] slab_free mm/slub.c:6246 [inline] kmem_cache_free+0x127/0x6c0 mm/slub.c:6373 fuse_request_free fs/fuse/dev.c:151 [inline] fuse_put_request+0x1ed/0x320 fs/fuse/dev.c:287 __fuse_simple_request+0x589/0xf00 fs/fuse/dev.c:705 fuse_simple_request fs/fuse/fuse_i.h:1262 [inline] fuse_lookup_name+0x2ad/0x760 fs/fuse/dir.c:578 fuse_lookup+0x209/0x550 fs/fuse/dir.c:625 fuse_atomic_open+0x2f8/0x450 fs/fuse/dir.c:944 atomic_open+0x179/0x430 fs/namei.c:4364 lookup_open.isra.0+0x46b/0x11b0 fs/namei.c:4477 open_last_lookups fs/namei.c:4611 [inline] path_openat+0xa98/0x31a0 fs/namei.c:4855 do_file_open+0x20e/0x430 fs/namei.c:4887 do_sys_openat2+0x10d/0x1e0 fs/open.c:1364 do_sys_open fs/open.c:1370 [inline] __do_sys_openat fs/open.c:1386 [inline] __se_sys_openat fs/open.c:1381 [inline] __x64_sys_openat+0x12d/0x210 fs/open.c:1381 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x10b/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88803b4c5c70 which belongs to the cache fuse_request of size 216 The buggy address is located 24 bytes inside of freed 216-byte region [ffff88803b4c5c70, ffff88803b4c5d48) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88803b4c5d88 pfn:0x3b4c4 head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000240 ffff888022c16f00 ffff8880241f3288 ffff8880241f3288 raw: ffff88803b4c5d88 00000008001d001b 00000000f5000000 0000000000000000 head: 00fff00000000240 ffff888022c16f00 ffff8880241f3288 ffff8880241f3288 head: ffff88803b4c5d88 00000008001d001b 00000000f5000000 0000000000000000 head: 00fff00000000001 ffffffffffffff81 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6102, tgid 6100 (syz.0.17), ts 85702285189, free_ts 85689617793 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x153/0x170 mm/page_alloc.c:1860 prep_new_page mm/page_alloc.c:1868 [inline] get_page_from_freelist+0x11a6/0x33b0 mm/page_alloc.c:3948 __alloc_frozen_pages_noprof+0x27c/0x2bc0 mm/page_alloc.c:5228 alloc_slab_page mm/slub.c:3278 [inline] allocate_slab mm/slub.c:3467 [inline] new_slab+0xa6/0x6c0 mm/slub.c:3525 refill_objects+0x277/0x420 mm/slub.c:7251 refill_sheaf mm/slub.c:2816 [inline] __pcs_replace_empty_main+0x375/0x650 mm/slub.c:4651 alloc_from_pcs mm/slub.c:4749 [inline] slab_alloc_node mm/slub.c:4883 [inline] kmem_cache_alloc_noprof+0x480/0x6e0 mm/slub.c:4905 fuse_request_alloc+0x22/0x200 fs/fuse/dev.c:142 fuse_get_req+0x74a/0xfe0 fs/fuse/dev.c:225 __fuse_simple_request+0xb5/0xf00 fs/fuse/dev.c:688 fuse_simple_request fs/fuse/fuse_i.h:1262 [inline] fuse_lookup_name+0x2ad/0x760 fs/fuse/dir.c:578 fuse_lookup+0x209/0x550 fs/fuse/dir.c:625 fuse_atomic_open+0x2f8/0x450 fs/fuse/dir.c:944 atomic_open+0x179/0x430 fs/namei.c:4364 lookup_open.isra.0+0x46b/0x11b0 fs/namei.c:4477 open_last_lookups fs/namei.c:4611 [inline] path_openat+0xa98/0x31a0 fs/namei.c:4855 page last free pid 53 tgid 53 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] __free_pages_prepare mm/page_alloc.c:1404 [inline] __free_frozen_pages+0x747/0x1040 mm/page_alloc.c:2945 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:350 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4569 [inline] slab_alloc_node mm/slub.c:4898 [inline] kmem_cache_alloc_node_noprof+0x25a/0x6f0 mm/slub.c:4950 __alloc_skb+0x140/0x710 net/core/skbuff.c:702 alloc_skb include/linux/skbuff.h:1383 [inline] mld_newpack.isra.0+0x18e/0xa20 net/ipv6/mcast.c:1775 add_grhead+0x299/0x340 net/ipv6/mcast.c:1886 add_grec+0x1380/0x1920 net/ipv6/mcast.c:2025 mld_send_cr net/ipv6/mcast.c:2148 [inline] mld_ifc_work+0x3c5/0xc10 net/ipv6/mcast.c:2693 process_one_work+0xa0e/0x1980 kernel/workqueue.c:3302 process_scheduled_works kernel/workqueue.c:3385 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3466 kthread+0x370/0x450 kernel/kthread.c:436 ret_from_fork+0x72b/0xd50 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88803b4c5b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88803b4c5c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fa fb >ffff88803b4c5c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88803b4c5d00: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc ffff88803b4c5d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================