================================================================== BUG: KASAN: use-after-free in crc16+0x1ce/0x2a0 lib/crc16.c:58 Read of size 1 at addr ffff88811c07e000 by task syz-executor.1/2880 CPU: 0 PID: 2880 Comm: syz-executor.1 Not tainted 5.15.98-syzkaller-00348-g7364b7abbafb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 print_address_description+0x87/0x3b0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:427 [inline] kasan_report+0x179/0x1c0 mm/kasan/report.c:444 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306 crc16+0x1ce/0x2a0 lib/crc16.c:58 ext4_group_desc_csum+0x882/0xb90 fs/ext4/super.c:2840 ext4_group_desc_csum_set+0x1d8/0x270 fs/ext4/super.c:2863 __ext4_new_inode+0x2554/0x4230 fs/ext4/ialloc.c:1228 ext4_create+0x275/0x550 fs/ext4/namei.c:2809 lookup_open fs/namei.c:3334 [inline] open_last_lookups fs/namei.c:3404 [inline] path_openat+0x136e/0x2ef0 fs/namei.c:3612 do_filp_open+0x21c/0x460 fs/namei.c:3642 do_sys_openat2+0x13b/0x500 fs/open.c:1234 do_sys_open fs/open.c:1250 [inline] __do_sys_openat fs/open.c:1266 [inline] __se_sys_openat fs/open.c:1261 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1261 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb9af0e8169 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:00007fb9a5b3a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb9af208050 RCX: 00007fb9af0e8169 RDX: 0000000000000241 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 00007fb9af143ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5f8ddcdf R14: 00007fb9a5b3a300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea0004701f80 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 pfn:0x11c07e flags: 0x4000000000000000(zone=1) raw: 4000000000000000 ffffea0004be3288 ffffea0005c0a708 0000000000000000 raw: 0000000000000001 0000000000000001 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 0x112a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_HARDWALL), pid 20008, ts 3085378540101, free_ts 3103916466141 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1a3/0x1b0 mm/page_alloc.c:2502 prep_new_page mm/page_alloc.c:2508 [inline] get_page_from_freelist+0x2c14/0x2cf0 mm/page_alloc.c:4291 __alloc_pages+0x386/0x7b0 mm/page_alloc.c:5569 allocate_slab mm/slub.c:1930 [inline] new_slab+0x92/0x490 mm/slub.c:1993 ___slab_alloc+0x39e/0x830 mm/slub.c:3026 __slab_alloc+0x4a/0x90 mm/slub.c:3113 slab_alloc_node mm/slub.c:3204 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0x134/0x200 mm/slub.c:3251 dst_alloc+0x164/0x1e0 net/core/dst.c:92 rt_dst_alloc net/ipv4/route.c:1634 [inline] __mkroute_output net/ipv4/route.c:2599 [inline] ip_route_output_key_hash_rcu+0x129a/0x20b0 net/ipv4/route.c:2823 ip_route_output_key_hash+0x142/0x210 net/ipv4/route.c:2651 icmp_route_lookup+0x300/0x8a0 net/ipv4/icmp.c:509 __icmp_send+0xca7/0x1490 net/ipv4/icmp.c:742 icmp_send include/net/icmp.h:43 [inline] ip_protocol_deliver_rcu+0x681/0x710 net/ipv4/ip_input.c:215 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:310 [inline] ip_local_deliver+0x2c6/0x590 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:460 [inline] ip_rcv_finish net/ipv4/ip_input.c:447 [inline] NF_HOOK include/linux/netfilter.h:310 [inline] ip_rcv+0x16e/0x310 net/ipv4/ip_input.c:566 __netif_receive_skb_one_core net/core/dev.c:5463 [inline] __netif_receive_skb+0x1c6/0x530 net/core/dev.c:5577 page last free stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] free_pages_prepare mm/page_alloc.c:1370 [inline] free_pcp_prepare mm/page_alloc.c:1442 [inline] free_unref_page_prepare+0x7c8/0x7d0 mm/page_alloc.c:3441 free_unref_page+0xac/0x2c0 mm/page_alloc.c:3521 free_the_page mm/page_alloc.c:711 [inline] __free_pages+0x61/0xf0 mm/page_alloc.c:5645 __free_slab+0xec/0x1d0 mm/slub.c:2018 free_slab mm/slub.c:2033 [inline] discard_slab mm/slub.c:2039 [inline] __unfreeze_partials+0x165/0x1a0 mm/slub.c:2525 put_cpu_partial+0xc4/0x120 mm/slub.c:2605 __slab_free+0x1c8/0x290 mm/slub.c:3386 do_slab_free mm/slub.c:3505 [inline] ___cache_free+0x109/0x120 mm/slub.c:3524 qlink_free+0x4d/0x90 mm/kasan/quarantine.c:157 qlist_free_all+0x44/0xb0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x15a/0x180 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:443 kasan_slab_alloc include/linux/kasan.h:217 [inline] slab_post_alloc_hook+0x53/0x2c0 mm/slab.h:550 slab_alloc_node mm/slub.c:3238 [inline] slab_alloc mm/slub.c:3246 [inline] kmem_cache_alloc+0xf5/0x200 mm/slub.c:3251 kmem_cache_alloc_node include/linux/slab.h:479 [inline] __alloc_skb+0xbe/0x550 net/core/skbuff.c:416 alloc_skb include/linux/skbuff.h:1182 [inline] alloc_skb_with_frags+0xa6/0x680 net/core/skbuff.c:6140 Memory state around the buggy address: ffff88811c07df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88811c07df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88811c07e000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88811c07e080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88811c07e100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== EXT4-fs error (device loop1) in ext4_reserve_inode_write:5805: Corrupt filesystem EXT4-fs error (device loop1) in ext4_reserve_inode_write:5805: Corrupt filesystem EXT4-fs error (device loop1): ext4_evict_inode:283: inode #19: comm syz-executor.1: mark_inode_dirty error EXT4-fs warning (device loop1): ext4_evict_inode:286: couldn't mark inode dirty (err -117)