Date
July 17, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.302697] ================================================================== [ 16.302766] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.302833] Read of size 1 at addr fff00000c78e9000 by task kunit_try_catch/140 [ 16.302926] [ 16.302966] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.303046] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.303071] Hardware name: linux,dummy-virt (DT) [ 16.303220] Call trace: [ 16.303252] show_stack+0x20/0x38 (C) [ 16.303366] dump_stack_lvl+0x8c/0xd0 [ 16.303642] print_report+0x118/0x5d0 [ 16.303694] kasan_report+0xdc/0x128 [ 16.303738] __asan_report_load1_noabort+0x20/0x30 [ 16.303787] kmalloc_node_oob_right+0x2f4/0x330 [ 16.303833] kunit_try_run_case+0x170/0x3f0 [ 16.303893] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.303944] kthread+0x328/0x630 [ 16.303985] ret_from_fork+0x10/0x20 [ 16.304032] [ 16.304049] Allocated by task 140: [ 16.304077] kasan_save_stack+0x3c/0x68 [ 16.304117] kasan_save_track+0x20/0x40 [ 16.304153] kasan_save_alloc_info+0x40/0x58 [ 16.304190] __kasan_kmalloc+0xd4/0xd8 [ 16.304225] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.304264] kmalloc_node_oob_right+0xbc/0x330 [ 16.304299] kunit_try_run_case+0x170/0x3f0 [ 16.305232] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.305733] kthread+0x328/0x630 [ 16.305795] ret_from_fork+0x10/0x20 [ 16.305846] [ 16.305879] The buggy address belongs to the object at fff00000c78e8000 [ 16.305879] which belongs to the cache kmalloc-4k of size 4096 [ 16.306316] The buggy address is located 0 bytes to the right of [ 16.306316] allocated 4096-byte region [fff00000c78e8000, fff00000c78e9000) [ 16.306417] [ 16.306925] The buggy address belongs to the physical page: [ 16.307143] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e8 [ 16.308110] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.308195] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.308512] page_type: f5(slab) [ 16.308669] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.308825] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.308954] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.309125] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.309318] head: 0bfffe0000000003 ffffc1ffc31e3a01 00000000ffffffff 00000000ffffffff [ 16.309445] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.309811] page dumped because: kasan: bad access detected [ 16.309997] [ 16.310194] Memory state around the buggy address: [ 16.310240] fff00000c78e8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.310283] fff00000c78e8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.310323] >fff00000c78e9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.310359] ^ [ 16.310386] fff00000c78e9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.310426] fff00000c78e9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.310490] ==================================================================
[ 11.607296] ================================================================== [ 11.608188] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.608926] Read of size 1 at addr ffff888102af7000 by task kunit_try_catch/157 [ 11.609349] [ 11.609455] CPU: 0 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.609503] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.609515] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.609537] Call Trace: [ 11.609550] <TASK> [ 11.609568] dump_stack_lvl+0x73/0xb0 [ 11.609599] print_report+0xd1/0x610 [ 11.609621] ? __virt_addr_valid+0x1db/0x2d0 [ 11.609645] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.609668] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.609690] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.609713] kasan_report+0x141/0x180 [ 11.609735] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.609763] __asan_report_load1_noabort+0x18/0x20 [ 11.609786] kmalloc_node_oob_right+0x369/0x3c0 [ 11.609821] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.609845] ? __schedule+0x10cc/0x2b60 [ 11.609867] ? __pfx_read_tsc+0x10/0x10 [ 11.609888] ? ktime_get_ts64+0x86/0x230 [ 11.609914] kunit_try_run_case+0x1a5/0x480 [ 11.609940] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.609961] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.609985] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.610008] ? __kthread_parkme+0x82/0x180 [ 11.610028] ? preempt_count_sub+0x50/0x80 [ 11.610065] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.610088] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.610111] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.610134] kthread+0x337/0x6f0 [ 11.610152] ? trace_preempt_on+0x20/0xc0 [ 11.610176] ? __pfx_kthread+0x10/0x10 [ 11.610195] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.610221] ? calculate_sigpending+0x7b/0xa0 [ 11.610246] ? __pfx_kthread+0x10/0x10 [ 11.610266] ret_from_fork+0x116/0x1d0 [ 11.610284] ? __pfx_kthread+0x10/0x10 [ 11.610304] ret_from_fork_asm+0x1a/0x30 [ 11.610337] </TASK> [ 11.610347] [ 11.623617] Allocated by task 157: [ 11.623756] kasan_save_stack+0x45/0x70 [ 11.623907] kasan_save_track+0x18/0x40 [ 11.624074] kasan_save_alloc_info+0x3b/0x50 [ 11.624229] __kasan_kmalloc+0xb7/0xc0 [ 11.624363] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.624540] kmalloc_node_oob_right+0xab/0x3c0 [ 11.625005] kunit_try_run_case+0x1a5/0x480 [ 11.625378] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.625895] kthread+0x337/0x6f0 [ 11.626258] ret_from_fork+0x116/0x1d0 [ 11.626588] ret_from_fork_asm+0x1a/0x30 [ 11.626970] [ 11.627275] The buggy address belongs to the object at ffff888102af6000 [ 11.627275] which belongs to the cache kmalloc-4k of size 4096 [ 11.628578] The buggy address is located 0 bytes to the right of [ 11.628578] allocated 4096-byte region [ffff888102af6000, ffff888102af7000) [ 11.629621] [ 11.629836] The buggy address belongs to the physical page: [ 11.630444] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102af0 [ 11.630937] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.631663] flags: 0x200000000000040(head|node=0|zone=2) [ 11.632346] page_type: f5(slab) [ 11.632687] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.633173] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.633444] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.633718] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.633981] head: 0200000000000003 ffffea00040abc01 00000000ffffffff 00000000ffffffff [ 11.634520] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.635316] page dumped because: kasan: bad access detected [ 11.635947] [ 11.636151] Memory state around the buggy address: [ 11.636714] ffff888102af6f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.636989] ffff888102af6f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.637433] >ffff888102af7000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.638109] ^ [ 11.638236] ffff888102af7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.638750] ffff888102af7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.639543] ==================================================================