==================================================================
BUG: KASAN: use-after-free in crc16+0x216/0x2a0 lib/crc16.c:58
Read of size 1 at addr ffff888120092000 by task syz-executor170/23047
CPU: 0 PID: 23047 Comm: syz-executor170 Not tainted 5.15.92-syzkaller-03013-g5020746bff95 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/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+0x216/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_free_blocks+0x1c48/0x2ce0 fs/ext4/mballoc.c:6113
ext4_remove_blocks fs/ext4/extents.c:2525 [inline]
ext4_ext_rm_leaf fs/ext4/extents.c:2709 [inline]
ext4_ext_remove_space+0x29b2/0x4a60 fs/ext4/extents.c:2957
ext4_ext_truncate+0x19a/0x240 fs/ext4/extents.c:4419
ext4_truncate+0x96c/0xfa0 fs/ext4/inode.c:4276
ext4_evict_inode+0xcee/0x14e0 fs/ext4/inode.c:290
evict+0x2a3/0x630 fs/inode.c:587
iput_final fs/inode.c:1663 [inline]
iput+0x63b/0x7e0 fs/inode.c:1689
do_unlinkat+0x4db/0x910 fs/namei.c:4228
__do_sys_unlink fs/namei.c:4269 [inline]
__se_sys_unlink fs/namei.c:4267 [inline]
__x64_sys_unlink+0x49/0x50 fs/namei.c:4267
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:0x7f34e83ddbd9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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:00007f34e83892f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057
RAX: ffffffffffffffda RBX: 00007f34e84637a0 RCX: 00007f34e83ddbd9
RDX: 00007f34e83ddbd9 RSI: 00000000000f4240 RDI: 0000000020000000
RBP: 00007f34e842f95c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 3030303030303030 R14: e4948bda8b418d12 R15: 00007f34e84637a8
Allocated by task 1616:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:433 [inline]
__kasan_slab_alloc+0xb1/0xe0 mm/kasan/common.c:466
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_zalloc include/linux/slab.h:728 [inline]
locks_alloc_lock fs/locks.c:346 [inline]
flock_make_lock fs/locks.c:487 [inline]
__do_sys_flock fs/locks.c:2144 [inline]
__se_sys_flock+0x149/0x5a0 fs/locks.c:2125
__x64_sys_flock+0x5b/0x70 fs/locks.c:2125
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
Freed by task 1616:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4b/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x126/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1723 [inline]
slab_free_freelist_hook+0xbd/0x190 mm/slub.c:1749
slab_free mm/slub.c:3517 [inline]
kmem_cache_free+0x116/0x2e0 mm/slub.c:3533
locks_free_lock fs/locks.c:383 [inline]
__do_sys_flock fs/locks.c:2165 [inline]
__se_sys_flock+0x48d/0x5a0 fs/locks.c:2125
__x64_sys_flock+0x5b/0x70 fs/locks.c:2125
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
The buggy address belongs to the object at ffff888120092000
which belongs to the cache file_lock_cache of size 248
The buggy address is located 0 bytes inside of
248-byte region [ffff888120092000, ffff8881200920f8)
The buggy address belongs to the page:
page:ffffea0004802480 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x120092
flags: 0x4000000000000200(slab|zone=1)
raw: 4000000000000200 0000000000000000 0000000100000001 ffff8881003a7500
raw: 0000000000000000 00000000000d000d 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), pid 1624, ts 1446378834911, free_ts 1446365976540
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
kmem_cache_zalloc include/linux/slab.h:728 [inline]
locks_alloc_lock fs/locks.c:346 [inline]
flock_lock_inode+0x38a/0x14b0 fs/locks.c:1076
flock_lock_inode_wait fs/locks.c:2072 [inline]
locks_lock_inode_wait+0xf3/0x410 fs/locks.c:2099
locks_lock_file_wait include/linux/fs.h:1399 [inline]
__do_sys_flock fs/locks.c:2162 [inline]
__se_sys_flock+0x473/0x5a0 fs/locks.c:2125
__x64_sys_flock+0x5b/0x70 fs/locks.c:2125
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
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+0x39/0x100 mm/page_alloc.c:5642
__vunmap+0x7bc/0x8f0 mm/vmalloc.c:2652
free_work+0x5b/0x80 mm/vmalloc.c:96
process_one_work+0x6bb/0xc10 kernel/workqueue.c:2313
worker_thread+0xad5/0x12a0 kernel/workqueue.c:2460
kthread+0x421/0x510 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 :298
Memory state around the buggy address:
ffff888120091f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888120091f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888120092000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888120092080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc
ffff888120092100: fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb fb
==================================================================