Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.509543] ================================================================== [ 18.510081] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 18.510206] Read of size 1 at addr fff00000c7889000 by task kunit_try_catch/141 [ 18.510300] [ 18.510371] CPU: 0 UID: 0 PID: 141 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.510561] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.510618] Hardware name: linux,dummy-virt (DT) [ 18.510686] Call trace: [ 18.510735] show_stack+0x20/0x38 (C) [ 18.510844] dump_stack_lvl+0x8c/0xd0 [ 18.510949] print_report+0x118/0x608 [ 18.511048] kasan_report+0xdc/0x128 [ 18.511162] __asan_report_load1_noabort+0x20/0x30 [ 18.511319] kmalloc_node_oob_right+0x2f4/0x330 [ 18.511446] kunit_try_run_case+0x170/0x3f0 [ 18.511551] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.511666] kthread+0x328/0x630 [ 18.511776] ret_from_fork+0x10/0x20 [ 18.511921] [ 18.511979] Allocated by task 141: [ 18.512062] kasan_save_stack+0x3c/0x68 [ 18.512180] kasan_save_track+0x20/0x40 [ 18.512283] kasan_save_alloc_info+0x40/0x58 [ 18.512375] __kasan_kmalloc+0xd4/0xd8 [ 18.512445] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 18.512933] kmalloc_node_oob_right+0xbc/0x330 [ 18.513194] kunit_try_run_case+0x170/0x3f0 [ 18.513488] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.513587] kthread+0x328/0x630 [ 18.513654] ret_from_fork+0x10/0x20 [ 18.513728] [ 18.513767] The buggy address belongs to the object at fff00000c7888000 [ 18.513767] which belongs to the cache kmalloc-4k of size 4096 [ 18.514255] The buggy address is located 0 bytes to the right of [ 18.514255] allocated 4096-byte region [fff00000c7888000, fff00000c7889000) [ 18.514474] [ 18.514519] The buggy address belongs to the physical page: [ 18.514652] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107888 [ 18.515225] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.515374] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.515600] page_type: f5(slab) [ 18.515715] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.515828] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.515948] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 18.516073] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 18.516195] head: 0bfffe0000000003 ffffc1ffc31e2201 00000000ffffffff 00000000ffffffff [ 18.516290] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.516629] page dumped because: kasan: bad access detected [ 18.516811] [ 18.516877] Memory state around the buggy address: [ 18.516953] fff00000c7888f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.517062] fff00000c7888f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.517145] >fff00000c7889000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.517223] ^ [ 18.517515] fff00000c7889080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.517739] fff00000c7889100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.517837] ==================================================================
[ 12.820307] ================================================================== [ 12.820992] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 12.821351] Read of size 1 at addr ffff8881029f5000 by task kunit_try_catch/157 [ 12.821694] [ 12.821844] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.821900] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.821914] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.821940] Call Trace: [ 12.821954] <TASK> [ 12.821974] dump_stack_lvl+0x73/0xb0 [ 12.822023] print_report+0xd1/0x650 [ 12.822049] ? __virt_addr_valid+0x1db/0x2d0 [ 12.822091] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.822118] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.822143] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.822171] kasan_report+0x141/0x180 [ 12.822206] ? kmalloc_node_oob_right+0x369/0x3c0 [ 12.822239] __asan_report_load1_noabort+0x18/0x20 [ 12.822279] kmalloc_node_oob_right+0x369/0x3c0 [ 12.822307] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 12.822336] ? __schedule+0x10cc/0x2b60 [ 12.822362] ? __pfx_read_tsc+0x10/0x10 [ 12.822386] ? ktime_get_ts64+0x86/0x230 [ 12.822415] kunit_try_run_case+0x1a5/0x480 [ 12.822449] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.822474] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.822501] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.822527] ? __kthread_parkme+0x82/0x180 [ 12.822551] ? preempt_count_sub+0x50/0x80 [ 12.822589] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.822617] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.822665] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.822691] kthread+0x337/0x6f0 [ 12.822714] ? trace_preempt_on+0x20/0xc0 [ 12.822753] ? __pfx_kthread+0x10/0x10 [ 12.822797] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.822834] ? calculate_sigpending+0x7b/0xa0 [ 12.822863] ? __pfx_kthread+0x10/0x10 [ 12.822888] ret_from_fork+0x116/0x1d0 [ 12.822909] ? __pfx_kthread+0x10/0x10 [ 12.822933] ret_from_fork_asm+0x1a/0x30 [ 12.822969] </TASK> [ 12.822982] [ 12.834156] Allocated by task 157: [ 12.834440] kasan_save_stack+0x45/0x70 [ 12.834746] kasan_save_track+0x18/0x40 [ 12.834977] kasan_save_alloc_info+0x3b/0x50 [ 12.835228] __kasan_kmalloc+0xb7/0xc0 [ 12.835408] __kmalloc_cache_node_noprof+0x188/0x420 [ 12.835601] kmalloc_node_oob_right+0xab/0x3c0 [ 12.836215] kunit_try_run_case+0x1a5/0x480 [ 12.836782] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.837020] kthread+0x337/0x6f0 [ 12.837227] ret_from_fork+0x116/0x1d0 [ 12.837457] ret_from_fork_asm+0x1a/0x30 [ 12.838256] [ 12.838548] The buggy address belongs to the object at ffff8881029f4000 [ 12.838548] which belongs to the cache kmalloc-4k of size 4096 [ 12.839608] The buggy address is located 0 bytes to the right of [ 12.839608] allocated 4096-byte region [ffff8881029f4000, ffff8881029f5000) [ 12.840851] [ 12.841128] The buggy address belongs to the physical page: [ 12.841499] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f0 [ 12.842269] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.842679] flags: 0x200000000000040(head|node=0|zone=2) [ 12.843120] page_type: f5(slab) [ 12.843351] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.844243] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.844776] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 12.845377] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 12.845929] head: 0200000000000003 ffffea00040a7c01 00000000ffffffff 00000000ffffffff [ 12.846419] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.847122] page dumped because: kasan: bad access detected [ 12.847631] [ 12.847750] Memory state around the buggy address: [ 12.848026] ffff8881029f4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.848475] ffff8881029f4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.848941] >ffff8881029f5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.849590] ^ [ 12.850067] ffff8881029f5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.850447] ffff8881029f5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.851024] ==================================================================