EXT4-fs (loop5): mounted filesystem without journal. Opts: ,errors=continue ext4 filesystem being mounted at /root/syzkaller-testdir3912552906/syzkaller.pK2FJM/11/bus supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1fc/0x280 lib/crc16.c:58 Read of size 1 at addr ffff8881e5c8603a by task syz-executor.5/24118 CPU: 1 PID: 24118 Comm: syz-executor.5 Tainted: G W 5.4.225-syzkaller-00005-g66c3e3ab77a2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x241 lib/dump_stack.c:118 print_address_description+0x8c/0x600 mm/kasan/report.c:384 __kasan_report+0xf3/0x120 mm/kasan/report.c:516 kasan_report+0x30/0x60 mm/kasan/common.c:653 crc16+0x1fc/0x280 lib/crc16.c:58 ext4_group_desc_csum+0x90b/0xc40 fs/ext4/super.c:2544 ext4_group_desc_csum_set+0x197/0x230 fs/ext4/super.c:2567 ext4_free_blocks+0x138d/0x2310 fs/ext4/mballoc.c:4950 ext4_remove_blocks fs/ext4/extents.c:2708 [inline] ext4_ext_rm_leaf fs/ext4/extents.c:2879 [inline] ext4_ext_remove_space+0x259c/0x4ba0 fs/ext4/extents.c:3124 ext4_truncate+0xb26/0x12c0 fs/ext4/inode.c:4647 ext4_evict_inode+0x12e3/0x1b60 fs/ext4/inode.c:306 evict+0x29b/0x6a0 fs/inode.c:575 do_unlinkat+0x48e/0x8b0 fs/namei.c:4150 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Allocated by task 168: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] __kasan_kmalloc+0x130/0x1d0 mm/kasan/common.c:529 kmalloc include/linux/slab.h:561 [inline] simple_xattr_alloc+0x3a/0x90 fs/xattr.c:890 shmem_initxattrs+0x8a/0x1e0 mm/shmem.c:3164 security_inode_init_security+0x252/0x390 security/security.c:1009 shmem_mknod+0xb0/0x1a0 mm/shmem.c:2849 lookup_open fs/namei.c:3309 [inline] do_last fs/namei.c:3401 [inline] path_openat+0x181b/0x3480 fs/namei.c:3614 do_filp_open+0x20b/0x450 fs/namei.c:3644 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff8881e5c86000 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 58 bytes inside of 64-byte region [ffff8881e5c86000, ffff8881e5c86040) The buggy address belongs to the page: page:ffffea0007972180 refcount:1 mapcount:0 mapping:ffff8881f5c03180 index:0xffff8881e5c86d00 flags: 0x8000000000000200(slab) raw: 8000000000000200 ffffea0007c296c8 ffffea0007c3c608 ffff8881f5c03180 raw: ffff8881e5c86d00 0000000000200006 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY) set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook mm/page_alloc.c:2165 [inline] prep_new_page+0x18f/0x370 mm/page_alloc.c:2171 get_page_from_freelist+0x2ce8/0x2d70 mm/page_alloc.c:3794 __alloc_pages_nodemask+0x393/0x840 mm/page_alloc.c:4891 alloc_slab_page+0x39/0x3c0 mm/slub.c:343 allocate_slab mm/slub.c:1683 [inline] new_slab+0x97/0x440 mm/slub.c:1749 new_slab_objects mm/slub.c:2505 [inline] ___slab_alloc+0x2fe/0x490 mm/slub.c:2667 __slab_alloc+0x5a/0x90 mm/slub.c:2707 slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc_trace+0x128/0x240 mm/slub.c:2854 kmalloc include/linux/slab.h:556 [inline] kernfs_get_open_node fs/kernfs/file.c:571 [inline] kernfs_fop_open+0x849/0xac0 fs/kernfs/file.c:717 do_dentry_open+0x961/0x1120 fs/open.c:796 do_last fs/namei.c:3495 [inline] path_openat+0x2992/0x3480 fs/namei.c:3614 do_filp_open+0x20b/0x450 fs/namei.c:3644 do_sys_open+0x39c/0x810 fs/open.c:1113 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1176 [inline] free_pcp_prepare mm/page_alloc.c:1233 [inline] free_unref_page_prepare+0x297/0x380 mm/page_alloc.c:3085 free_unref_page mm/page_alloc.c:3134 [inline] free_the_page mm/page_alloc.c:4951 [inline] __free_pages mm/page_alloc.c:4959 [inline] free_pages+0x114/0x1b0 mm/page_alloc.c:4967 selinux_genfs_get_sid+0x217/0x260 security/selinux/hooks.c:1376 inode_doinit_with_dentry+0x892/0x1050 security/selinux/hooks.c:1571 security_d_instantiate+0x97/0xf0 security/security.c:1895 d_splice_alias+0x6b/0x3b0 fs/dcache.c:3010 kernfs_iop_lookup+0x17c/0x200 fs/kernfs/dir.c:1111 __lookup_slow+0x306/0x460 fs/namei.c:1748 lookup_slow+0x53/0x70 fs/namei.c:1765 walk_component+0x2dc/0x590 fs/namei.c:1885 lookup_last fs/namei.c:2348 [inline] path_lookupat+0x182/0x3f0 fs/namei.c:2393 filename_lookup+0x253/0x6e0 fs/namei.c:2423 user_path_at include/linux/namei.h:49 [inline] vfs_statx+0x115/0x210 fs/stat.c:187 vfs_fstatat include/linux/fs.h:3372 [inline] __do_sys_newfstatat fs/stat.c:367 [inline] __se_sys_newfstatat+0xce/0x770 fs/stat.c:361 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Memory state around the buggy address: ffff8881e5c85f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881e5c85f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881e5c86000: 00 00 00 00 00 00 00 02 fc fc fc fc fc fc fc fc ^ ffff8881e5c86080: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8881e5c86100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================