loop2: detected capacity change from 0 to 2048 ext4 filesystem being mounted at /root/syzkaller-testdir1447792173/syzkaller.I4c6nw/303/bus supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: use-after-free in crc16+0x1c0/0x280 Read of size 1 at addr ffff88801d2e0000 by task syz-executor.2/14004 CPU: 1 PID: 14004 Comm: syz-executor.2 Not tainted 6.2.0-rc6-syzkaller-00258-gdb27c22251e7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: dump_stack_lvl+0x1b5/0x2a0 print_report+0x163/0x4c0 kasan_report+0xce/0x100 crc16+0x1c0/0x280 ext4_group_desc_csum+0x84c/0xb60 ext4_group_desc_csum_set+0x19b/0x240 ext4_free_blocks+0x1b95/0x2e80 ext4_ext_remove_space+0x284a/0x5250 ext4_ext_truncate+0x176/0x210 ext4_truncate+0xafa/0x1450 ext4_setattr+0x1196/0x1ad0 notify_change+0xdd1/0x1080 do_truncate+0x207/0x2f0 path_openat+0x278f/0x2e30 do_filp_open+0x26d/0x500 do_sys_openat2+0x128/0x4f0 __x64_sys_creat+0x123/0x160 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6da708c0c9 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:00007f6da7d22168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f6da71abf80 RCX: 00007f6da708c0c9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 00007f6da70e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdab1fd95f R14: 00007f6da7d22300 R15: 0000000000022000 Allocated by task 13979: kasan_set_track+0x40/0x70 __kasan_slab_alloc+0x69/0x80 slab_post_alloc_hook+0x68/0x390 kmem_cache_alloc_bulk+0x349/0x420 mas_alloc_nodes+0x381/0x640 mas_preallocate+0x131/0x350 mmap_region+0x13c2/0x1f30 do_mmap+0x8c9/0xf70 vm_mmap_pgoff+0x1ab/0x2d0 ksys_mmap_pgoff+0x4f9/0x6d0 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 13979: kasan_set_track+0x40/0x70 kasan_save_free_info+0x2b/0x40 ____kasan_slab_free+0xd6/0x120 kmem_cache_free_bulk+0x502/0x760 mas_destroy+0x2818/0x3330 mas_store_prealloc+0x34e/0x450 mmap_region+0x1534/0x1f30 do_mmap+0x8c9/0xf70 vm_mmap_pgoff+0x1ab/0x2d0 ksys_mmap_pgoff+0x4f9/0x6d0 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88801d2e0000 which belongs to the cache maple_node of size 256 The buggy address is located 0 bytes inside of 256-byte region [ffff88801d2e0000, ffff88801d2e0100) The buggy address belongs to the physical page: page:ffffea000074b800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1d2e0 head:ffffea000074b800 order:1 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000010200 ffff8880124cd000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated 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 13979, tgid 13979 (udevadm), ts 411077506312, free_ts 410982669416 get_page_from_freelist+0x3403/0x3580 __alloc_pages+0x291/0x7e0 alloc_slab_page+0x6a/0x160 new_slab+0x84/0x2f0 ___slab_alloc+0xa07/0x1000 kmem_cache_alloc_bulk+0x157/0x420 mas_alloc_nodes+0x381/0x640 mas_preallocate+0x131/0x350 mmap_region+0x13c2/0x1f30 do_mmap+0x8c9/0xf70 vm_mmap_pgoff+0x1ab/0x2d0 ksys_mmap_pgoff+0x4f9/0x6d0 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: free_unref_page_prepare+0xf3a/0x1040 free_unref_page+0x37/0x3f0 __unfreeze_partials+0x1b1/0x1f0 put_cpu_partial+0x106/0x170 qlist_free_all+0x22/0x60 kasan_quarantine_reduce+0x15a/0x170 __kasan_slab_alloc+0x23/0x80 slab_post_alloc_hook+0x68/0x390 kmem_cache_alloc+0x12c/0x280 getname_flags+0xbc/0x4e0 user_path_at_empty+0x2e/0x180 do_readlinkat+0x10a/0x3c0 __x64_sys_readlink+0x7f/0x90 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88801d2dff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801d2dff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801d2e0000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801d2e0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801d2e0100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================