Title | Replies (including bot) | Last reply |
---|---|---|
[syzbot] [bcachefs?] KASAN: slab-use-after-free Read in bch2_copygc (2) | 0 (1) | 2025/09/15 23:46 |
syzbot |
sign-in | mailing list | source | docs |
Title | Replies (including bot) | Last reply |
---|---|---|
[syzbot] [bcachefs?] KASAN: slab-use-after-free Read in bch2_copygc (2) | 0 (1) | 2025/09/15 23:46 |
Kernel | Title | Rank 🛈 | Repro | Cause bisect | Fix bisect | Count | Last | Reported | Patched | Status |
---|---|---|---|---|---|---|---|---|---|---|
upstream | KASAN: slab-use-after-free Read in bch2_copygc bcachefs | 19 | C | done | 25 | 40d | 98d | 29/29 | fixed on 2025/09/04 16:56 | |
upstream | KMSAN: uninit-value in bch2_copygc bcachefs | 7 | C | 88 | 275d | 339d | 0/29 | auto-obsoleted due to no activity on 2025/03/22 22:59 | ||
upstream | KMSAN: uninit-value in bch2_copygc (2) bcachefs | 7 | 1 | 201d | 197d | 28/29 | fixed on 2025/06/10 16:19 |
bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing running recovery pass check_extents_to_backpointers (17), currently at check_unreachable_inodes (34) ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: slab-use-after-free in bch2_bucket_bitmap_test fs/bcachefs/backpointers.h:194 [inline] BUG: KASAN: slab-use-after-free in bch2_bucket_is_movable fs/bcachefs/movinggc.c:78 [inline] BUG: KASAN: slab-use-after-free in bch2_copygc_get_buckets fs/bcachefs/movinggc.c:157 [inline] BUG: KASAN: slab-use-after-free in bch2_copygc+0x105d/0x4510 fs/bcachefs/movinggc.c:221 Read of size 8 at addr ffff888042e53e40 by task bch-copygc/loop/5375 CPU: 0 UID: 0 PID: 5375 Comm: bch-copygc/loop Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xca/0x240 mm/kasan/report.c:482 kasan_report+0x118/0x150 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:-1 [inline] kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] bch2_bucket_bitmap_test fs/bcachefs/backpointers.h:194 [inline] bch2_bucket_is_movable fs/bcachefs/movinggc.c:78 [inline] bch2_copygc_get_buckets fs/bcachefs/movinggc.c:157 [inline] bch2_copygc+0x105d/0x4510 fs/bcachefs/movinggc.c:221 bch2_copygc_thread+0x97a/0xe00 fs/bcachefs/movinggc.c:409 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> Allocated by task 5375: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:388 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:405 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4376 [inline] __kvmalloc_node_noprof+0x30d/0x5f0 mm/slub.c:5067 kvmalloc_array_node_noprof include/linux/slab.h:1065 [inline] bch2_bucket_bitmap_set+0x9a/0x1d0 fs/bcachefs/backpointers.c:1351 check_bucket_backpointer_mismatch+0x1bdf/0x23a0 fs/bcachefs/backpointers.c:964 check_bucket_backpointer_pos_mismatch fs/bcachefs/backpointers.c:1193 [inline] bch2_check_bucket_backpointer_mismatch+0x36c/0x690 fs/bcachefs/backpointers.c:1205 __bch2_move_data_phys+0x17a7/0x1c50 fs/bcachefs/move.c:922 bch2_evacuate_bucket+0x228/0x3a0 fs/bcachefs/move.c:1082 bch2_copygc+0x3be3/0x4510 fs/bcachefs/movinggc.c:234 bch2_copygc_thread+0x97a/0xe00 fs/bcachefs/movinggc.c:409 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff888042e53e40 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 0 bytes inside of freed 16-byte region [ffff888042e53e40, ffff888042e53e50) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x42e53 anon flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88801a841640 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000800080 00000000f5000000 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9, tgid 9 (kworker/0:0), ts 65139321729, free_ts 63820287139 create_dummy_stack mm/page_owner.c:94 [inline] register_dummy_stack+0x89/0xe0 mm/page_owner.c:100 init_page_owner+0x2e/0x620 mm/page_owner.c:118 invoke_init_callbacks mm/page_ext.c:148 [inline] page_ext_init+0x511/0x550 mm/page_ext.c:486 mm_core_init+0x56/0x70 mm/mm_init.c:2789 page last free pid 15 tgid 15 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1395 [inline] __free_frozen_pages+0xbc4/0xd30 mm/page_alloc.c:2895 pagetable_free include/linux/mm.h:2898 [inline] pagetable_dtor_free include/linux/mm.h:2996 [inline] __tlb_remove_table+0x2d2/0x3b0 include/asm-generic/tlb.h:220 __tlb_remove_table_free mm/mmu_gather.c:227 [inline] tlb_remove_table_rcu+0x85/0x100 mm/mmu_gather.c:290 rcu_do_batch kernel/rcu/tree.c:2605 [inline] rcu_core+0xcab/0x1770 kernel/rcu/tree.c:2861 handle_softirqs+0x286/0x870 kernel/softirq.c:579 run_ksoftirqd+0x9b/0x100 kernel/softirq.c:968 smpboot_thread_fn+0x53f/0xa60 kernel/smpboot.c:160 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x439/0x7d0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff888042e53d00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ffff888042e53d80: fa fb fc fc fa fb fc fc 00 00 fc fc 00 00 fc fc >ffff888042e53e00: 00 00 fc fc 00 00 fc fc fb fb fc fc fa fb fc fc ^ ffff888042e53e80: fa fb fc fc 00 05 fc fc 00 00 fc fc 00 00 fc fc ffff888042e53f00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc ==================================================================
Time | Kernel | Commit | Syzkaller | Config | Log | Report | Syz repro | C repro | VM info | Assets (help?) | Manager | Title |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2025/09/30 10:56 | upstream | 449c2b302c8e | 86341da6 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/27 20:05 | upstream | fec734e8d564 | 001c9061 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/26 09:38 | upstream | 4ff71af020ae | 0abd0691 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/24 07:40 | upstream | cec1e6e5d1ab | 0abd0691 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/23 23:03 | upstream | cec1e6e5d1ab | e667a34f | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/23 08:06 | upstream | cec1e6e5d1ab | 0ac7291c | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/20 02:21 | upstream | 1522b530ac3e | 67c37560 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/20 01:20 | upstream | 1522b530ac3e | 67c37560 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/16 11:37 | upstream | 46a51f4f5eda | e2beed91 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/16 00:46 | upstream | 46a51f4f5eda | e2beed91 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/15 23:46 | upstream | f83ec76bf285 | e2beed91 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/13 10:02 | upstream | 22f20375f5b7 | e2beed91 | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/09 00:24 | upstream | f777d1112ee5 | d291dd2d | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/07 01:21 | upstream | b236920731dd | d291dd2d | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/06 12:49 | upstream | d1d10cea0895 | d291dd2d | .config | console log | report | [disk image (non-bootable)] [vmlinux] [kernel image] | ci-snapshot-upstream-root | KASAN: slab-use-after-free Read in bch2_copygc | |||
2025/09/27 21:55 | git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci | 2213e57a69f0 | 001c9061 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-gce-arm64 | KASAN: slab-use-after-free Read in bch2_copygc | ||
2025/09/27 10:09 | git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci | 2213e57a69f0 | 001c9061 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-gce-arm64 | KASAN: slab-use-after-free Read in bch2_copygc | ||
2025/09/21 10:45 | git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci | 506ba4ea4cf5 | 67c37560 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-gce-arm64 | KASAN: slab-use-after-free Read in bch2_copygc | ||
2025/09/21 03:30 | git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci | 506ba4ea4cf5 | 67c37560 | .config | console log | report | info | [disk image] [vmlinux] [kernel image] | ci-upstream-gce-arm64 | KASAN: slab-use-after-free Read in bch2_copygc |