================================================================== BUG: KASAN: slab-out-of-bounds in crc64_be_generic lib/crc/crc64-main.c:47 [inline] BUG: KASAN: slab-out-of-bounds in crc64_be+0xb8/0xe8 lib/crc/crc64-main.c:68 Read of size 1 at addr ffff0000dcfab028 by task syz.1.63/5231 CPU: 1 UID: 0 PID: 5231 Comm: syz.1.63 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 print_address_description+0xb0/0x238 mm/kasan/report.c:378 print_report+0x68/0x84 mm/kasan/report.c:482 kasan_report+0x8c/0xc4 mm/kasan/report.c:595 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 crc64_be_generic lib/crc/crc64-main.c:47 [inline] crc64_be+0xb8/0xe8 lib/crc/crc64-main.c:68 bch_crc64 drivers/md/bcache/util.h:529 [inline] read_super drivers/md/bcache/super.c:208 [inline] register_bcache+0x9a4/0x13d8 drivers/md/bcache/super.c:2601 kobj_attr_store+0x6c/0x90 lib/kobject.c:840 sysfs_kf_write+0xe0/0x108 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x260/0x3b8 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x51c/0xa0c fs/read_write.c:687 ksys_write+0x12c/0x228 fs/read_write.c:739 __do_sys_write fs/read_write.c:750 [inline] __se_sys_write fs/read_write.c:747 [inline] __arm64_sys_write+0x84/0x98 fs/read_write.c:747 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:738 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:757 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 Allocated by task 4676: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x40/0x78 mm/kasan/common.c:78 kasan_save_alloc_info+0x44/0x54 mm/kasan/generic.c:570 unpoison_slab_object mm/kasan/common.c:340 [inline] __kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:366 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4584 [inline] slab_alloc_node mm/slub.c:4917 [inline] kmem_cache_alloc_noprof+0x268/0x5d8 mm/slub.c:4931 kmem_alloc_batch+0x50/0x140 lib/debugobjects.c:371 fill_pool+0x174/0x3f8 lib/debugobjects.c:420 debug_objects_fill_pool+0x7c/0x8c lib/debugobjects.c:780 debug_object_activate+0x5c/0x240 lib/debugobjects.c:869 debug_rcu_head_queue kernel/rcu/rcu.h:236 [inline] __call_rcu_common kernel/rcu/tree.c:3144 [inline] call_rcu+0x54/0x75c kernel/rcu/tree.c:3279 slab_free_hook mm/slub.c:2641 [inline] slab_free mm/slub.c:6377 [inline] kmem_cache_free+0x47c/0x6b8 mm/slub.c:6504 vm_area_free+0x10c/0x17c mm/vma_init.c:151 remove_vma+0x120/0x138 mm/vma.c:473 tear_down_vmas+0x2dc/0x4f4 mm/mmap.c:1262 exit_mmap+0x3c8/0xad4 mm/mmap.c:1320 __mmput+0xe0/0x2e8 kernel/fork.c:1187 mmput+0x70/0xa8 kernel/fork.c:1210 exec_mm_put_old+0x134/0x14c fs/exec.c:916 setup_new_exec+0x154/0x1a8 fs/exec.c:1353 load_elf_binary+0x7bc/0x1dd0 fs/binfmt_elf.c:1024 search_binary_handler fs/exec.c:1694 [inline] exec_binprm fs/exec.c:1726 [inline] bprm_execve+0x7c8/0x1398 fs/exec.c:1778 do_execveat_common+0x3e0/0x52c fs/exec.c:1876 __do_sys_execve fs/exec.c:1949 [inline] __se_sys_execve fs/exec.c:1943 [inline] __arm64_sys_execve+0xa8/0xcc fs/exec.c:1943 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x64/0x260 arch/arm64/kernel/entry-common.c:738 el0t_64_sync_handler+0x48/0x148 arch/arm64/kernel/entry-common.c:757 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:590 The buggy address belongs to the object at ffff0000dcfab000 which belongs to the cache debug_objects_cache of size 40 The buggy address is located 0 bytes to the right of allocated 40-byte region [ffff0000dcfab000, ffff0000dcfab028) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11cfab flags: 0x5ffc00000000000(node=0|zone=2|lastcpupid=0x7ff) page_type: f5(slab) raw: 05ffc00000000000 ffff0000c000b8c0 dead000000000100 dead000000000122 raw: 0000000000000000 0000000800490049 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dcfaaf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff0000dcfaaf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff0000dcfab000: 00 00 00 00 00 fc fc 00 00 00 00 00 fc fc 00 00 ^ ffff0000dcfab080: 00 00 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 ffff0000dcfab100: 00 fc fc 00 00 00 00 00 fc fc 00 00 00 00 00 fc ================================================================== bcache: register_bcache() error : Bad checksum