================================================================== BUG: KASAN: use-after-free in crc16+0x1fc/0x280 lib/crc16.c:58 Read of size 1 at addr ffff888132654000 by task syz-executor.5/7383 CPU: 1 PID: 7383 Comm: syz-executor.5 Not tainted 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 2755: 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 slab_post_alloc_hook mm/slab.h:584 [inline] slab_alloc_node mm/slub.c:2829 [inline] slab_alloc mm/slub.c:2837 [inline] kmem_cache_alloc+0xd0/0x220 mm/slub.c:2842 sk_prot_alloc+0x63/0x3e0 net/core/sock.c:1612 sk_alloc+0x30/0x3a0 net/core/sock.c:1676 tipc_sk_create+0xfb/0x18b0 net/tipc/socket.c:443 __sock_create+0x3cb/0x7a0 net/socket.c:1408 sock_create net/socket.c:1459 [inline] __sys_socket+0x132/0x370 net/socket.c:1501 __do_sys_socket net/socket.c:1510 [inline] __se_sys_socket net/socket.c:1508 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1508 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Freed by task 155: save_stack mm/kasan/common.c:70 [inline] set_track mm/kasan/common.c:78 [inline] kasan_set_free_info mm/kasan/common.c:345 [inline] __kasan_slab_free+0x178/0x230 mm/kasan/common.c:487 slab_free_hook mm/slub.c:1455 [inline] slab_free_freelist_hook mm/slub.c:1494 [inline] slab_free mm/slub.c:3080 [inline] kmem_cache_free+0xd5/0x290 mm/slub.c:3096 sk_prot_free net/core/sock.c:1657 [inline] __sk_destruct+0x460/0x5e0 net/core/sock.c:1745 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch+0x492/0xa00 kernel/rcu/tree.c:2167 rcu_core+0x4c8/0xcb0 kernel/rcu/tree.c:2387 __do_softirq+0x22e/0x630 kernel/softirq.c:292 The buggy address belongs to the object at ffff888132654000 which belongs to the cache TIPC of size 1072 The buggy address is located 0 bytes inside of 1072-byte region [ffff888132654000, ffff888132654430) The buggy address belongs to the page: page:ffffea0004c99500 refcount:1 mapcount:0 mapping:ffff8881f0a63400 index:0xffff8881326557c0 compound_mapcount: 0 flags: 0x8000000000010200(slab|head) raw: 8000000000010200 ffffea00079e5800 0000000400000004 ffff8881f0a63400 raw: ffff8881326557c0 00000000800d0000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 2, migratetype Unmovable, gfp_mask 0x1d20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL) 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+0x100/0x220 mm/slub.c:2842 sk_prot_alloc+0x63/0x3e0 net/core/sock.c:1612 sk_alloc+0x30/0x3a0 net/core/sock.c:1676 tipc_sk_create+0xfb/0x18b0 net/tipc/socket.c:443 __sock_create+0x3cb/0x7a0 net/socket.c:1408 sock_create net/socket.c:1459 [inline] __sys_socket+0x132/0x370 net/socket.c:1501 __do_sys_socket net/socket.c:1510 [inline] __se_sys_socket net/socket.c:1508 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1508 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_list+0x10a/0x590 mm/page_alloc.c:3154 release_pages+0xa06/0xa40 mm/swap.c:842 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:184 [inline] tlb_flush_mmu mm/mmu_gather.c:191 [inline] tlb_finish_mmu+0x177/0x320 mm/mmu_gather.c:272 exit_mmap+0x2dc/0x520 mm/mmap.c:3188 __mmput+0x34/0x250 kernel/fork.c:1090 exit_mm kernel/exit.c:489 [inline] do_exit+0xc08/0x2bc0 kernel/exit.c:799 do_group_exit+0x138/0x300 kernel/exit.c:910 get_signal+0xd94/0x13f0 kernel/signal.c:2735 do_signal+0xb0/0x11f0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0xc0/0x1a0 arch/x86/entry/common.c:159 prepare_exit_to_usermode+0x199/0x200 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x5c/0xc1 Memory state around the buggy address: ffff888132653f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888132653f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888132654000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888132654080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888132654100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================