Date
June 20, 2025, 12:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.146405] ================================================================== [ 31.146654] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 31.146821] Read of size 1 at addr fff00000c5949000 by task kunit_try_catch/151 [ 31.146952] [ 31.147043] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT [ 31.147755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.147836] Hardware name: linux,dummy-virt (DT) [ 31.148013] Call trace: [ 31.148204] show_stack+0x20/0x38 (C) [ 31.148507] dump_stack_lvl+0x8c/0xd0 [ 31.148783] print_report+0x118/0x608 [ 31.149147] kasan_report+0xdc/0x128 [ 31.149402] __asan_report_load1_noabort+0x20/0x30 [ 31.149673] kmalloc_node_oob_right+0x2f4/0x330 [ 31.149907] kunit_try_run_case+0x170/0x3f0 [ 31.150184] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.150462] kthread+0x328/0x630 [ 31.150767] ret_from_fork+0x10/0x20 [ 31.150974] [ 31.151053] Allocated by task 151: [ 31.151282] kasan_save_stack+0x3c/0x68 [ 31.151577] kasan_save_track+0x20/0x40 [ 31.151813] kasan_save_alloc_info+0x40/0x58 [ 31.151994] __kasan_kmalloc+0xd4/0xd8 [ 31.152093] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 31.152756] kmalloc_node_oob_right+0xbc/0x330 [ 31.153032] kunit_try_run_case+0x170/0x3f0 [ 31.153279] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.153506] kthread+0x328/0x630 [ 31.153573] ret_from_fork+0x10/0x20 [ 31.153652] [ 31.153690] The buggy address belongs to the object at fff00000c5948000 [ 31.153690] which belongs to the cache kmalloc-4k of size 4096 [ 31.153823] The buggy address is located 0 bytes to the right of [ 31.153823] allocated 4096-byte region [fff00000c5948000, fff00000c5949000) [ 31.154532] [ 31.154672] The buggy address belongs to the physical page: [ 31.154915] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105948 [ 31.155281] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.155414] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.155630] page_type: f5(slab) [ 31.155737] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 31.155868] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 31.156011] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 31.156142] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 31.156269] head: 0bfffe0000000003 ffffc1ffc3165201 00000000ffffffff 00000000ffffffff [ 31.156994] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 31.158351] page dumped because: kasan: bad access detected [ 31.158518] [ 31.158588] Memory state around the buggy address: [ 31.158717] fff00000c5948f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.158832] fff00000c5948f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.158951] >fff00000c5949000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.159055] ^ [ 31.159137] fff00000c5949080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.159253] fff00000c5949100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.159361] ==================================================================
[ 24.700100] ================================================================== [ 24.700729] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 24.701362] Read of size 1 at addr ffff888102bd5000 by task kunit_try_catch/169 [ 24.701795] [ 24.701986] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250620 #1 PREEMPT(voluntary) [ 24.702080] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.702097] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.702123] Call Trace: [ 24.702140] <TASK> [ 24.702166] dump_stack_lvl+0x73/0xb0 [ 24.702218] print_report+0xd1/0x650 [ 24.702264] ? __virt_addr_valid+0x1db/0x2d0 [ 24.702315] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.702360] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.702415] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.702567] kasan_report+0x141/0x180 [ 24.702628] ? kmalloc_node_oob_right+0x369/0x3c0 [ 24.702683] __asan_report_load1_noabort+0x18/0x20 [ 24.702729] kmalloc_node_oob_right+0x369/0x3c0 [ 24.702780] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 24.702833] ? __schedule+0x10cc/0x2b60 [ 24.702884] ? __pfx_read_tsc+0x10/0x10 [ 24.702934] ? ktime_get_ts64+0x86/0x230 [ 24.702993] kunit_try_run_case+0x1a5/0x480 [ 24.703051] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.703099] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.703182] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.703236] ? __kthread_parkme+0x82/0x180 [ 24.703286] ? preempt_count_sub+0x50/0x80 [ 24.703330] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.703356] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.703382] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.703406] kthread+0x337/0x6f0 [ 24.703428] ? trace_preempt_on+0x20/0xc0 [ 24.703478] ? __pfx_kthread+0x10/0x10 [ 24.703501] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.703524] ? calculate_sigpending+0x7b/0xa0 [ 24.703550] ? __pfx_kthread+0x10/0x10 [ 24.703573] ret_from_fork+0x116/0x1d0 [ 24.703593] ? __pfx_kthread+0x10/0x10 [ 24.703614] ret_from_fork_asm+0x1a/0x30 [ 24.703647] </TASK> [ 24.703661] [ 24.712945] Allocated by task 169: [ 24.713347] kasan_save_stack+0x45/0x70 [ 24.713737] kasan_save_track+0x18/0x40 [ 24.713995] kasan_save_alloc_info+0x3b/0x50 [ 24.714360] __kasan_kmalloc+0xb7/0xc0 [ 24.714550] __kmalloc_cache_node_noprof+0x188/0x420 [ 24.714762] kmalloc_node_oob_right+0xab/0x3c0 [ 24.714960] kunit_try_run_case+0x1a5/0x480 [ 24.715136] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.715426] kthread+0x337/0x6f0 [ 24.715765] ret_from_fork+0x116/0x1d0 [ 24.716081] ret_from_fork_asm+0x1a/0x30 [ 24.716452] [ 24.716620] The buggy address belongs to the object at ffff888102bd4000 [ 24.716620] which belongs to the cache kmalloc-4k of size 4096 [ 24.717604] The buggy address is located 0 bytes to the right of [ 24.717604] allocated 4096-byte region [ffff888102bd4000, ffff888102bd5000) [ 24.718180] [ 24.718299] The buggy address belongs to the physical page: [ 24.718734] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102bd0 [ 24.719988] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.720674] flags: 0x200000000000040(head|node=0|zone=2) [ 24.721400] page_type: f5(slab) [ 24.721708] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 24.722303] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.722843] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 24.723487] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 24.723782] head: 0200000000000003 ffffea00040af401 00000000ffffffff 00000000ffffffff [ 24.724063] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.724402] page dumped because: kasan: bad access detected [ 24.724838] [ 24.725015] Memory state around the buggy address: [ 24.725477] ffff888102bd4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.726033] ffff888102bd4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.726492] >ffff888102bd5000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.726752] ^ [ 24.727032] ffff888102bd5080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.727599] ffff888102bd5100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.728017] ==================================================================