EXT4-fs (loop1): mounted filesystem without journal. Opts: ,errors=continue ext4 filesystem being mounted at /root/syzkaller-testdir156925451/syzkaller.zIO4vW/915/bus supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: use-after-free in crc16+0x235/0x2d0 lib/crc16.c:58 Read of size 1 at addr ffff88810f337000 by task syz-executor.1/13862 CPU: 1 PID: 13862 Comm: syz-executor.1 Not tainted 5.10.161-syzkaller-00019-g416c4356f372 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack_lvl+0x1e2/0x24b lib/dump_stack.c:118 print_address_description+0x81/0x3c0 mm/kasan/report.c:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report+0x1a4/0x1f0 mm/kasan/report.c:436 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 crc16+0x235/0x2d0 lib/crc16.c:58 ext4_group_desc_csum+0x851/0xb50 fs/ext4/super.c:2850 ext4_group_desc_csum_set+0x1d6/0x270 fs/ext4/super.c:2873 ext4_free_blocks+0x1b9e/0x2ad0 fs/ext4/mballoc.c:5527 ext4_remove_blocks+0xaf1/0x1180 fs/ext4/extents.c:2520 ext4_ext_rm_leaf+0xaa8/0x18c0 fs/ext4/extents.c:2704 ext4_ext_remove_space+0xf25/0x22a0 fs/ext4/extents.c:2952 ext4_ext_truncate+0x18a/0x210 fs/ext4/extents.c:4413 ext4_truncate+0xba0/0x1270 fs/ext4/inode.c:4356 ext4_evict_inode+0xf1e/0x1730 fs/ext4/inode.c:288 evict+0x2a3/0x6c0 fs/inode.c:577 iput_final fs/inode.c:1655 [inline] iput+0x61f/0x7d0 fs/inode.c:1681 do_unlinkat+0x51a/0x920 fs/namei.c:3982 __do_sys_unlink fs/namei.c:4022 [inline] __se_sys_unlink fs/namei.c:4020 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4020 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f37f56600f9 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:00007f37f43d3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f37f577ff80 RCX: 00007f37f56600f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007f37f56bbae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff674bc56f R14: 00007f37f43d3300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea00043ccdc0 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x0 pfn:0x10f337 flags: 0x8000000000000000() raw: 8000000000000000 ffffea0005264dc8 ffffea00044bfcc8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffff7f 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 0, migratetype Unmovable, gfp_mask 0x100cc0(GFP_USER), pid 12810, ts 2668439400495, free_ts 2668486523508 set_page_owner include/linux/page_owner.h:35 [inline] post_alloc_hook mm/page_alloc.c:2386 [inline] prep_new_page mm/page_alloc.c:2392 [inline] get_page_from_freelist+0x755/0x810 mm/page_alloc.c:4073 __alloc_pages_nodemask+0x3b6/0x890 mm/page_alloc.c:5160 __alloc_pages include/linux/gfp.h:529 [inline] __alloc_pages_node include/linux/gfp.h:542 [inline] alloc_pages_node include/linux/gfp.h:556 [inline] alloc_pages include/linux/gfp.h:575 [inline] __get_free_pages+0xe/0x30 mm/page_alloc.c:5203 kasan_populate_vmalloc_pte+0x39/0x130 mm/kasan/shadow.c:260 apply_to_pte_range mm/memory.c:2487 [inline] apply_to_pmd_range mm/memory.c:2523 [inline] apply_to_pud_range mm/memory.c:2551 [inline] apply_to_p4d_range mm/memory.c:2579 [inline] __apply_to_page_range+0x758/0xa30 mm/memory.c:2606 apply_to_page_range+0x3b/0x50 mm/memory.c:2624 kasan_populate_vmalloc+0x65/0x70 mm/kasan/shadow.c:291 alloc_vmap_area+0x1895/0x19d0 mm/vmalloc.c:1236 __get_vm_area_node+0x170/0x200 mm/vmalloc.c:2084 __vmalloc_node_range+0xd5/0x6d0 mm/vmalloc.c:2561 __vmalloc_node mm/vmalloc.c:2609 [inline] vzalloc+0x78/0x90 mm/vmalloc.c:2662 alloc_counters+0x68/0x550 net/ipv4/netfilter/arp_tables.c:659 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:839 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0xe9c/0x18b0 net/ipv6/netfilter/ip6_tables.c:1672 nf_getsockopt+0x27a/0x2a0 net/netfilter/nf_sockopt.c:116 ipv6_getsockopt+0x1dd7/0x30c0 net/ipv6/ipv6_sockglue.c:1493 tcp_getsockopt+0x1d4/0x2bf0 net/ipv4/tcp.c:3976 page last free stack trace: reset_page_owner include/linux/page_owner.h:28 [inline] free_pages_prepare mm/page_alloc.c:1332 [inline] free_pcp_prepare+0x18c/0x1c0 mm/page_alloc.c:1406 free_unref_page_prepare mm/page_alloc.c:3293 [inline] free_unref_page mm/page_alloc.c:3347 [inline] free_the_page mm/page_alloc.c:5219 [inline] __free_pages+0x390/0x570 mm/page_alloc.c:5228 free_pages+0x7c/0x90 mm/page_alloc.c:5239 kasan_depopulate_vmalloc_pte+0x6a/0x90 mm/kasan/shadow.c:369 apply_to_pte_range mm/memory.c:2487 [inline] apply_to_pmd_range mm/memory.c:2523 [inline] apply_to_pud_range mm/memory.c:2551 [inline] apply_to_p4d_range mm/memory.c:2579 [inline] __apply_to_page_range+0x758/0xa30 mm/memory.c:2606 apply_to_existing_page_range+0x38/0x50 mm/memory.c:2855 kasan_release_vmalloc+0x9a/0xb0 mm/kasan/shadow.c:479 __purge_vmap_area_lazy+0x13c0/0x14e0 mm/vmalloc.c:1374 _vm_unmap_aliases+0x364/0x3e0 mm/vmalloc.c:1771 vm_unmap_aliases+0x19/0x20 mm/vmalloc.c:1794 change_page_attr_set_clr+0x2ce/0x6c0 arch/x86/mm/pat/set_memory.c:1732 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1789 [inline] set_memory_ro+0xa1/0xe0 arch/x86/mm/pat/set_memory.c:1935 bpf_jit_binary_lock_ro include/linux/filter.h:839 [inline] bpf_int_jit_compile+0x98e4/0x9e70 arch/x86/net/bpf_jit_comp.c:2127 bpf_prog_select_runtime+0x73e/0xa00 kernel/bpf/core.c:1869 bpf_prog_load+0x131b/0x1b70 kernel/bpf/syscall.c:2237 __do_sys_bpf+0x441/0x6c0 kernel/bpf/syscall.c:4429 Memory state around the buggy address: ffff88810f336f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88810f336f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88810f337000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88810f337080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88810f337100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================