Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.387013] ================================================================== [ 33.387214] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 33.387762] Read of size 1 at addr fff00000c687d000 by task kunit_try_catch/142 [ 33.387998] [ 33.388145] CPU: 1 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 33.388510] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.388647] Hardware name: linux,dummy-virt (DT) [ 33.388751] Call trace: [ 33.388818] show_stack+0x20/0x38 (C) [ 33.389171] dump_stack_lvl+0x8c/0xd0 [ 33.389376] print_report+0x118/0x5f0 [ 33.389898] kasan_report+0xc8/0x118 [ 33.390087] __asan_report_load1_noabort+0x20/0x30 [ 33.390354] kmalloc_node_oob_right+0x2f4/0x330 [ 33.390561] kunit_try_run_case+0x14c/0x3d0 [ 33.390720] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.390890] kthread+0x318/0x618 [ 33.391068] ret_from_fork+0x10/0x20 [ 33.391215] [ 33.391641] Allocated by task 142: [ 33.391862] kasan_save_stack+0x3c/0x68 [ 33.391944] kasan_save_track+0x20/0x40 [ 33.392008] kasan_save_alloc_info+0x40/0x58 [ 33.392188] __kasan_kmalloc+0xd4/0xd8 [ 33.392362] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 33.392502] kmalloc_node_oob_right+0xbc/0x330 [ 33.392626] kunit_try_run_case+0x14c/0x3d0 [ 33.392746] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.393208] kthread+0x318/0x618 [ 33.393380] ret_from_fork+0x10/0x20 [ 33.393533] [ 33.393623] The buggy address belongs to the object at fff00000c687c000 [ 33.393623] which belongs to the cache kmalloc-4k of size 4096 [ 33.393866] The buggy address is located 0 bytes to the right of [ 33.393866] allocated 4096-byte region [fff00000c687c000, fff00000c687d000) [ 33.394183] [ 33.394286] The buggy address belongs to the physical page: [ 33.394512] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106878 [ 33.395145] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 33.395303] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 33.395523] page_type: f5(slab) [ 33.395714] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 33.395892] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 33.396134] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 33.396348] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 33.396512] head: 0bfffe0000000003 ffffc1ffc31a1e01 00000000ffffffff 00000000ffffffff [ 33.397214] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 33.397496] page dumped because: kasan: bad access detected [ 33.397602] [ 33.397657] Memory state around the buggy address: [ 33.397750] fff00000c687cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.397881] fff00000c687cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.398011] >fff00000c687d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.398144] ^ [ 33.398226] fff00000c687d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.398354] fff00000c687d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.399101] ==================================================================
[ 20.462026] ================================================================== [ 20.462864] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 20.463724] Read of size 1 at addr ffff888103839000 by task kunit_try_catch/161 [ 20.464417] [ 20.465301] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 20.465401] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.465434] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.465488] Call Trace: [ 20.465518] <TASK> [ 20.465591] dump_stack_lvl+0x73/0xb0 [ 20.465677] print_report+0xd1/0x660 [ 20.465872] ? __virt_addr_valid+0x1db/0x2d0 [ 20.465959] ? kasan_complete_mode_report_info+0x2a/0x200 [ 20.465999] kasan_report+0x104/0x140 [ 20.466031] ? kmalloc_node_oob_right+0x369/0x3c0 [ 20.466067] ? kmalloc_node_oob_right+0x369/0x3c0 [ 20.466134] __asan_report_load1_noabort+0x18/0x20 [ 20.466171] kmalloc_node_oob_right+0x369/0x3c0 [ 20.466207] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 20.466242] ? __schedule+0xd46/0x29c0 [ 20.466274] ? __pfx_read_tsc+0x10/0x10 [ 20.466304] ? ktime_get_ts64+0x86/0x240 [ 20.466341] kunit_try_run_case+0x1b2/0x490 [ 20.466377] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.466407] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.466438] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.466469] ? __kthread_parkme+0x82/0x160 [ 20.466500] ? preempt_count_sub+0x50/0x80 [ 20.466536] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.466569] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.466601] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.466633] kthread+0x323/0x710 [ 20.466662] ? trace_preempt_on+0x20/0xc0 [ 20.466696] ? __pfx_kthread+0x10/0x10 [ 20.466757] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.466788] ? calculate_sigpending+0x7b/0xa0 [ 20.466818] ? __pfx_kthread+0x10/0x10 [ 20.466850] ret_from_fork+0x41/0x80 [ 20.466881] ? __pfx_kthread+0x10/0x10 [ 20.466912] ret_from_fork_asm+0x1a/0x30 [ 20.466958] </TASK> [ 20.466974] [ 20.485867] Allocated by task 161: [ 20.486258] kasan_save_stack+0x3d/0x60 [ 20.486603] kasan_save_track+0x18/0x40 [ 20.487421] kasan_save_alloc_info+0x3b/0x50 [ 20.487746] __kasan_kmalloc+0xb7/0xc0 [ 20.488185] __kmalloc_cache_node_noprof+0x182/0x420 [ 20.488648] kmalloc_node_oob_right+0xab/0x3c0 [ 20.489817] kunit_try_run_case+0x1b2/0x490 [ 20.490211] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.490611] kthread+0x323/0x710 [ 20.491561] ret_from_fork+0x41/0x80 [ 20.492038] ret_from_fork_asm+0x1a/0x30 [ 20.492638] [ 20.492974] The buggy address belongs to the object at ffff888103838000 [ 20.492974] which belongs to the cache kmalloc-4k of size 4096 [ 20.493645] The buggy address is located 0 bytes to the right of [ 20.493645] allocated 4096-byte region [ffff888103838000, ffff888103839000) [ 20.494942] [ 20.495191] The buggy address belongs to the physical page: [ 20.495870] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103838 [ 20.496982] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 20.497701] flags: 0x200000000000040(head|node=0|zone=2) [ 20.498444] page_type: f5(slab) [ 20.498868] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 20.499430] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 20.500227] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 20.500944] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 20.501595] head: 0200000000000003 ffffea00040e0e01 00000000ffffffff 00000000ffffffff [ 20.502316] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 20.502855] page dumped because: kasan: bad access detected [ 20.503394] [ 20.503676] Memory state around the buggy address: [ 20.504084] ffff888103838f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.504753] ffff888103838f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.505225] >ffff888103839000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.505857] ^ [ 20.506269] ffff888103839080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.506750] ffff888103839100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.507431] ==================================================================