ext4 filesystem being mounted at /root/syzkaller-testdir3029426803/syzkaller.4gg0kp/93/file0 supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: slab-use-after-free in crc16+0xcf/0xe0 lib/crc16.c:58 Read of size 1 at addr ffff88802cec8000 by task syz-executor.0/6997 CPU: 0 PID: 6997 Comm: syz-executor.0 Not tainted 6.3.0-rc1-syzkaller-00274-g134231664868 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 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+0x2c/0x3c0 mm/kasan/report.c:319 print_report mm/kasan/report.c:430 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:536 crc16+0xcf/0xe0 lib/crc16.c:58 ext4_group_desc_csum+0x623/0x820 fs/ext4/super.c:3189 ext4_group_desc_csum_set+0xc7/0x1a0 fs/ext4/super.c:3212 __ext4_new_inode+0x14d1/0x5690 fs/ext4/ialloc.c:1227 ext4_create+0x2da/0x4e0 fs/ext4/namei.c:2808 lookup_open.isra.0+0x105a/0x1400 fs/namei.c:3416 open_last_lookups fs/namei.c:3484 [inline] path_openat+0x975/0x2750 fs/namei.c:3712 do_filp_open+0x1ba/0x410 fs/namei.c:3742 do_sys_openat2+0x16d/0x4c0 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_openat fs/open.c:1380 [inline] __se_sys_openat fs/open.c:1375 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1375 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff6f7e8c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff6f8b5f168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ff6f7fabf80 RCX: 00007ff6f7e8c0f9 RDX: 000000000000275a RSI: 0000000020000180 RDI: ffffffffffffff9c RBP: 00007ff6f7ee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc6c8f6e4f R14: 00007ff6f8b5f300 R15: 0000000000022000 Allocated by task 6700: kasan_save_stack+0x22/0x40 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x7f/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook mm/slab.h:769 [inline] slab_alloc_node mm/slab.c:3257 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc+0x1b6/0x360 mm/slab.c:3452 vm_area_dup+0x21/0x1f0 kernel/fork.c:466 __split_vma+0x199/0x810 mm/mmap.c:2172 split_vma+0xc6/0x110 mm/mmap.c:2242 mprotect_fixup+0x771/0xa60 mm/mprotect.c:657 do_mprotect_pkey+0x926/0xbe0 mm/mprotect.c:831 __do_sys_mprotect mm/mprotect.c:852 [inline] __se_sys_mprotect mm/mprotect.c:849 [inline] __x64_sys_mprotect+0x78/0xb0 mm/mprotect.c:849 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88802cec8000 which belongs to the cache vm_area_struct of size 160 The buggy address is located 0 bytes inside of freed 160-byte region [ffff88802cec8000, ffff88802cec80a0) The buggy address belongs to the physical page: page:ffffea0000b3b200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802cec8ee0 pfn:0x2cec8 memcg:ffff88802cfdda01 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888140051700 ffffea0001f6bd10 ffffea00008216d0 raw: ffff88802cec8ee0 ffff88802cec8000 000000010000000e ffff88802cfdda01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2420c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 4825, tgid 4825 (dhcpcd-run-hook), ts 63185506035, free_ts 63182757531 prep_new_page mm/page_alloc.c:2552 [inline] get_page_from_freelist+0x1190/0x2ec0 mm/page_alloc.c:4325 __alloc_pages+0x1cb/0x530 mm/page_alloc.c:5591 __alloc_pages_node include/linux/gfp.h:237 [inline] kmem_getpages mm/slab.c:1360 [inline] cache_grow_begin+0x9b/0x3b0 mm/slab.c:2570 cache_alloc_refill+0x27f/0x380 mm/slab.c:2943 ____cache_alloc mm/slab.c:3019 [inline] ____cache_alloc mm/slab.c:3002 [inline] __do_cache_alloc mm/slab.c:3202 [inline] slab_alloc_node mm/slab.c:3250 [inline] slab_alloc mm/slab.c:3266 [inline] __kmem_cache_alloc_lru mm/slab.c:3443 [inline] kmem_cache_alloc+0x2f9/0x360 mm/slab.c:3452 vm_area_dup+0x21/0x1f0 kernel/fork.c:466 dup_mmap+0x67f/0x1230 kernel/fork.c:643 dup_mm kernel/fork.c:1550 [inline] copy_mm kernel/fork.c:1599 [inline] copy_process+0x713a/0x7640 kernel/fork.c:2269 kernel_clone+0xeb/0x970 kernel/fork.c:2684 __do_sys_clone+0xba/0x100 kernel/fork.c:2825 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1453 [inline] free_pcp_prepare+0x612/0xae0 mm/page_alloc.c:1503 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page_list+0x176/0xc60 mm/page_alloc.c:3528 release_pages+0xcd7/0x1380 mm/swap.c:1042 tlb_batch_pages_flush+0xa8/0x1a0 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x14b/0x7e0 mm/mmu_gather.c:391 exit_mmap+0x205/0x740 mm/mmap.c:3047 __mmput+0x128/0x4c0 kernel/fork.c:1209 mmput+0x60/0x70 kernel/fork.c:1231 exit_mm kernel/exit.c:563 [inline] do_exit+0x9d7/0x2a40 kernel/exit.c:856 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 __do_sys_exit_group kernel/exit.c:1030 [inline] __se_sys_exit_group kernel/exit.c:1028 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1028 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88802cec7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802cec7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88802cec8000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88802cec8080: fb fb fb fb fc fc fc fc fc fc fc fc fb fb fb fb ffff88802cec8100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================