Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.868859] ================================================================== [ 16.869040] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.869172] Read of size 1 at addr fff00000c78d1000 by task kunit_try_catch/140 [ 16.869275] [ 16.869362] CPU: 0 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 16.869636] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.869695] Hardware name: linux,dummy-virt (DT) [ 16.869760] Call trace: [ 16.869825] show_stack+0x20/0x38 (C) [ 16.869957] dump_stack_lvl+0x8c/0xd0 [ 16.870067] print_report+0x118/0x608 [ 16.870626] kasan_report+0xdc/0x128 [ 16.870783] __asan_report_load1_noabort+0x20/0x30 [ 16.870984] kmalloc_node_oob_right+0x2f4/0x330 [ 16.871208] kunit_try_run_case+0x170/0x3f0 [ 16.871480] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.871802] kthread+0x328/0x630 [ 16.871930] ret_from_fork+0x10/0x20 [ 16.872476] [ 16.872518] Allocated by task 140: [ 16.872585] kasan_save_stack+0x3c/0x68 [ 16.872677] kasan_save_track+0x20/0x40 [ 16.872755] kasan_save_alloc_info+0x40/0x58 [ 16.872839] __kasan_kmalloc+0xd4/0xd8 [ 16.873470] __kmalloc_cache_node_noprof+0x168/0x3d0 [ 16.874201] kmalloc_node_oob_right+0xbc/0x330 [ 16.874495] kunit_try_run_case+0x170/0x3f0 [ 16.874679] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.875272] kthread+0x328/0x630 [ 16.875369] ret_from_fork+0x10/0x20 [ 16.875432] [ 16.875955] The buggy address belongs to the object at fff00000c78d0000 [ 16.875955] which belongs to the cache kmalloc-4k of size 4096 [ 16.876100] The buggy address is located 0 bytes to the right of [ 16.876100] allocated 4096-byte region [fff00000c78d0000, fff00000c78d1000) [ 16.876240] [ 16.876285] The buggy address belongs to the physical page: [ 16.877415] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078d0 [ 16.878133] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.878443] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.878708] page_type: f5(slab) [ 16.878803] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.878916] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.879276] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.879456] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.879554] head: 0bfffe0000000003 ffffc1ffc31e3401 00000000ffffffff 00000000ffffffff [ 16.879733] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.879964] page dumped because: kasan: bad access detected [ 16.880207] [ 16.880275] Memory state around the buggy address: [ 16.880512] fff00000c78d0f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.880652] fff00000c78d0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.881045] >fff00000c78d1000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.881189] ^ [ 16.881299] fff00000c78d1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.881510] fff00000c78d1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.881643] ==================================================================
[ 10.371840] ================================================================== [ 10.373245] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.374262] Read of size 1 at addr ffff888103909000 by task kunit_try_catch/158 [ 10.374773] [ 10.374875] CPU: 1 UID: 0 PID: 158 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.374923] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.374936] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.374960] Call Trace: [ 10.374972] <TASK> [ 10.374989] dump_stack_lvl+0x73/0xb0 [ 10.375014] print_report+0xd1/0x650 [ 10.375036] ? __virt_addr_valid+0x1db/0x2d0 [ 10.375058] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.375081] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.375103] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.375127] kasan_report+0x141/0x180 [ 10.375148] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.375177] __asan_report_load1_noabort+0x18/0x20 [ 10.375197] kmalloc_node_oob_right+0x369/0x3c0 [ 10.375221] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.375246] ? __schedule+0x10cc/0x2b60 [ 10.375268] ? __pfx_read_tsc+0x10/0x10 [ 10.375288] ? ktime_get_ts64+0x86/0x230 [ 10.375311] kunit_try_run_case+0x1a5/0x480 [ 10.375331] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.375350] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.375374] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.375411] ? __kthread_parkme+0x82/0x180 [ 10.375431] ? preempt_count_sub+0x50/0x80 [ 10.375454] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.375475] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.375498] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.375523] kthread+0x337/0x6f0 [ 10.375541] ? trace_preempt_on+0x20/0xc0 [ 10.375563] ? __pfx_kthread+0x10/0x10 [ 10.375583] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.375605] ? calculate_sigpending+0x7b/0xa0 [ 10.375627] ? __pfx_kthread+0x10/0x10 [ 10.375648] ret_from_fork+0x116/0x1d0 [ 10.375666] ? __pfx_kthread+0x10/0x10 [ 10.375686] ret_from_fork_asm+0x1a/0x30 [ 10.375716] </TASK> [ 10.375725] [ 10.384516] Allocated by task 158: [ 10.384863] kasan_save_stack+0x45/0x70 [ 10.385199] kasan_save_track+0x18/0x40 [ 10.385389] kasan_save_alloc_info+0x3b/0x50 [ 10.385596] __kasan_kmalloc+0xb7/0xc0 [ 10.385944] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.386320] kmalloc_node_oob_right+0xab/0x3c0 [ 10.386507] kunit_try_run_case+0x1a5/0x480 [ 10.386847] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.387132] kthread+0x337/0x6f0 [ 10.387271] ret_from_fork+0x116/0x1d0 [ 10.387471] ret_from_fork_asm+0x1a/0x30 [ 10.387674] [ 10.388061] The buggy address belongs to the object at ffff888103908000 [ 10.388061] which belongs to the cache kmalloc-4k of size 4096 [ 10.388652] The buggy address is located 0 bytes to the right of [ 10.388652] allocated 4096-byte region [ffff888103908000, ffff888103909000) [ 10.389584] [ 10.389732] The buggy address belongs to the physical page: [ 10.390264] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103908 [ 10.390973] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.391459] flags: 0x200000000000040(head|node=0|zone=2) [ 10.391836] page_type: f5(slab) [ 10.392006] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.392431] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.392802] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.393164] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.393489] head: 0200000000000003 ffffea00040e4201 00000000ffffffff 00000000ffffffff [ 10.393942] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.394288] page dumped because: kasan: bad access detected [ 10.394612] [ 10.394759] Memory state around the buggy address: [ 10.394970] ffff888103908f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.395333] ffff888103908f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.395590] >ffff888103909000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.395926] ^ [ 10.396122] ffff888103909080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.396497] ffff888103909100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.396987] ==================================================================