Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.795023] ================================================================== [ 17.795092] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 17.795148] Read of size 1 at addr fff00000c653f000 by task kunit_try_catch/140 [ 17.795260] [ 17.795631] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.796123] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.796160] Hardware name: linux,dummy-virt (DT) [ 17.796198] Call trace: [ 17.796220] show_stack+0x20/0x38 (C) [ 17.796598] dump_stack_lvl+0x8c/0xd0 [ 17.796953] print_report+0x118/0x608 [ 17.797000] kasan_report+0xdc/0x128 [ 17.797077] __asan_report_load1_noabort+0x20/0x30 [ 17.797140] kmalloc_node_oob_right+0x2f4/0x330 [ 17.797417] kunit_try_run_case+0x170/0x3f0 [ 17.797469] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.797521] kthread+0x328/0x630 [ 17.797562] ret_from_fork+0x10/0x20 [ 17.797620] [ 17.798102] Allocated by task 140: [ 17.798205] kasan_save_stack+0x3c/0x68 [ 17.798361] kasan_save_track+0x20/0x40 [ 17.798412] kasan_save_alloc_info+0x40/0x58 [ 17.798595] __kasan_kmalloc+0xd4/0xd8 [ 17.798790] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 17.798861] kmalloc_node_oob_right+0xbc/0x330 [ 17.799214] kunit_try_run_case+0x170/0x3f0 [ 17.799254] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.799295] kthread+0x328/0x630 [ 17.799758] ret_from_fork+0x10/0x20 [ 17.800283] [ 17.800307] The buggy address belongs to the object at fff00000c653e000 [ 17.800307] which belongs to the cache kmalloc-4k of size 4096 [ 17.800661] The buggy address is located 0 bytes to the right of [ 17.800661] allocated 4096-byte region [fff00000c653e000, fff00000c653f000) [ 17.800848] [ 17.800869] The buggy address belongs to the physical page: [ 17.800942] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106538 [ 17.802220] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.802478] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.802724] page_type: f5(slab) [ 17.802777] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.802838] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.802898] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 17.803174] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.803224] head: 0bfffe0000000003 ffffc1ffc3194e01 00000000ffffffff 00000000ffffffff [ 17.803688] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.803886] page dumped because: kasan: bad access detected [ 17.803921] [ 17.804211] Memory state around the buggy address: [ 17.804439] fff00000c653ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.804738] fff00000c653ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.804785] >fff00000c653f000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.805205] ^ [ 17.805241] fff00000c653f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.805284] fff00000c653f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.805554] ==================================================================
[ 10.784222] ================================================================== [ 10.784774] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.785373] Read of size 1 at addr ffff8881038a9000 by task kunit_try_catch/159 [ 10.785769] [ 10.785905] CPU: 1 UID: 0 PID: 159 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.785949] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.785961] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.785980] Call Trace: [ 10.786004] <TASK> [ 10.786022] dump_stack_lvl+0x73/0xb0 [ 10.786054] print_report+0xd1/0x650 [ 10.786089] ? __virt_addr_valid+0x1db/0x2d0 [ 10.786113] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.786135] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.786155] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.786178] kasan_report+0x141/0x180 [ 10.786198] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.786226] __asan_report_load1_noabort+0x18/0x20 [ 10.786258] kmalloc_node_oob_right+0x369/0x3c0 [ 10.786281] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.786304] ? __schedule+0x10cc/0x2b60 [ 10.786335] ? __pfx_read_tsc+0x10/0x10 [ 10.786357] ? ktime_get_ts64+0x86/0x230 [ 10.786391] kunit_try_run_case+0x1a5/0x480 [ 10.786417] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.786438] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.786461] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.786490] ? __kthread_parkme+0x82/0x180 [ 10.786510] ? preempt_count_sub+0x50/0x80 [ 10.786534] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.786566] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.786627] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.786651] kthread+0x337/0x6f0 [ 10.786670] ? trace_preempt_on+0x20/0xc0 [ 10.786693] ? __pfx_kthread+0x10/0x10 [ 10.786713] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.786733] ? calculate_sigpending+0x7b/0xa0 [ 10.786756] ? __pfx_kthread+0x10/0x10 [ 10.786777] ret_from_fork+0x116/0x1d0 [ 10.786794] ? __pfx_kthread+0x10/0x10 [ 10.786813] ret_from_fork_asm+0x1a/0x30 [ 10.786843] </TASK> [ 10.786854] [ 10.794980] Allocated by task 159: [ 10.795173] kasan_save_stack+0x45/0x70 [ 10.795406] kasan_save_track+0x18/0x40 [ 10.795544] kasan_save_alloc_info+0x3b/0x50 [ 10.795835] __kasan_kmalloc+0xb7/0xc0 [ 10.796037] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.796226] kmalloc_node_oob_right+0xab/0x3c0 [ 10.796451] kunit_try_run_case+0x1a5/0x480 [ 10.796724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.797029] kthread+0x337/0x6f0 [ 10.797190] ret_from_fork+0x116/0x1d0 [ 10.797397] ret_from_fork_asm+0x1a/0x30 [ 10.797631] [ 10.797735] The buggy address belongs to the object at ffff8881038a8000 [ 10.797735] which belongs to the cache kmalloc-4k of size 4096 [ 10.798305] The buggy address is located 0 bytes to the right of [ 10.798305] allocated 4096-byte region [ffff8881038a8000, ffff8881038a9000) [ 10.798959] [ 10.799059] The buggy address belongs to the physical page: [ 10.799354] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038a8 [ 10.799807] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.800622] flags: 0x200000000000040(head|node=0|zone=2) [ 10.801014] page_type: f5(slab) [ 10.801214] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.801526] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.802075] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.802347] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.802649] head: 0200000000000003 ffffea00040e2a01 00000000ffffffff 00000000ffffffff [ 10.803118] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.803532] page dumped because: kasan: bad access detected [ 10.803901] [ 10.803992] Memory state around the buggy address: [ 10.804167] ffff8881038a8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.804494] ffff8881038a8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.805067] >ffff8881038a9000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.805363] ^ [ 10.805509] ffff8881038a9080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.805724] ffff8881038a9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.806058] ==================================================================