================================================================== BUG: KASAN: use-after-free in crc16+0xcf/0xe0 lib/crc16.c:58 Read of size 1 at addr ffff888066abc000 by task syz-executor.0/12732 CPU: 0 PID: 12732 Comm: syz-executor.0 Not tainted 6.2.0-syzkaller-05251-g5b7c4cabbb65 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x28/0x360 mm/kasan/report.c:306 print_report mm/kasan/report.c:417 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:517 crc16+0xcf/0xe0 lib/crc16.c:58 ext4_group_desc_csum+0x623/0x820 fs/ext4/super.c:3176 ext4_group_desc_csum_set+0xc7/0x1a0 fs/ext4/super.c:3199 ext4_mb_clear_bb fs/ext4/mballoc.c:6027 [inline] ext4_free_blocks+0x1033/0x23a0 fs/ext4/mballoc.c:6173 ext4_remove_blocks fs/ext4/extents.c:2527 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2710 [inline] ext4_ext_remove_space+0x353d/0x4760 fs/ext4/extents.c:2958 ext4_ext_truncate+0x34b/0x400 fs/ext4/extents.c:4416 ext4_truncate+0x1033/0x1620 fs/ext4/inode.c:4344 ext4_evict_inode+0xb43/0x1b50 fs/ext4/inode.c:286 evict+0x2ed/0x6b0 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput.part.0+0x59b/0x8a0 fs/inode.c:1774 iput+0x5c/0x80 fs/inode.c:1764 do_unlinkat+0x42e/0x670 fs/namei.c:4323 __do_sys_unlink fs/namei.c:4364 [inline] __se_sys_unlink fs/namei.c:4362 [inline] __ia32_sys_unlink+0xca/0x110 fs/namei.c:4362 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7fca579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fc55cc EFLAGS: 00000296 ORIG_RAX: 000000000000000a RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the physical page: page:ffffea00019aaf00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x66abc flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 ffffea000125fa88 ffffea0001d08988 0000000000000000 raw: 0000000000000000 0000000000190000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 12553, tgid 12551 (syz-executor.2), ts 512313076108, free_ts 513155751789 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x119c/0x2d00 mm/page_alloc.c:4283 __alloc_pages+0x1cb/0x5c0 mm/page_alloc.c:5549 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2287 alloc_slab_page mm/slub.c:1851 [inline] allocate_slab+0x25f/0x390 mm/slub.c:1998 new_slab mm/slub.c:2051 [inline] ___slab_alloc+0xa91/0x1400 mm/slub.c:3193 __kmem_cache_alloc_bulk mm/slub.c:3951 [inline] kmem_cache_alloc_bulk+0x23d/0x730 mm/slub.c:4026 __io_alloc_req_refill+0x263/0x720 io_uring/io_uring.c:1076 io_alloc_req io_uring/io_uring.h:361 [inline] io_submit_sqes+0xeec/0x1f20 io_uring/io_uring.c:2439 __do_sys_io_uring_enter+0x975/0x2810 io_uring/io_uring.c:3458 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare+0x66a/0xc30 mm/page_alloc.c:1496 free_unref_page_prepare mm/page_alloc.c:3369 [inline] free_unref_page+0x1d/0x490 mm/page_alloc.c:3464 __unfreeze_partials+0x17c/0x1a0 mm/slub.c:2637 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x192/0x220 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x66/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slab.h:761 [inline] slab_alloc_node mm/slub.c:3452 [inline] slab_alloc mm/slub.c:3460 [inline] __kmem_cache_alloc_lru mm/slub.c:3467 [inline] kmem_cache_alloc+0x175/0x320 mm/slub.c:3476 vm_area_dup+0x7d/0x380 kernel/fork.c:466 dup_mmap+0x655/0x10d0 kernel/fork.c:643 dup_mm kernel/fork.c:1553 [inline] copy_mm kernel/fork.c:1602 [inline] copy_process+0x71bf/0x76c0 kernel/fork.c:2272 kernel_clone+0xeb/0xa10 kernel/fork.c:2687 __do_compat_sys_ia32_clone+0x9e/0xd0 arch/x86/kernel/sys_ia32.c:254 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 Memory state around the buggy address: ffff888066abbf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888066abbf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888066abc000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888066abc080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888066abc100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 10 06 adc %al,(%rsi) 2: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 6: 10 07 adc %al,(%rdi) 8: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi c: 10 08 adc %cl,(%rax) e: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1e: 00 51 52 add %dl,0x52(%rcx) 21: 55 push %rbp 22: 89 e5 mov %esp,%ebp 24: 0f 34 sysenter 26: cd 80 int $0x80 * 28: 5d pop %rbp <-- trapping instruction 29: 5a pop %rdx 2a: 59 pop %rcx 2b: c3 retq 2c: 90 nop 2d: 90 nop 2e: 90 nop 2f: 90 nop 30: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi