Date
June 24, 2025, 12:47 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.188142] ================================================================== [ 23.188354] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 23.188557] Read of size 1 at addr fff00000c657b000 by task kunit_try_catch/142 [ 23.188791] [ 23.189046] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT [ 23.189315] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.189401] Hardware name: linux,dummy-virt (DT) [ 23.189547] Call trace: [ 23.189616] show_stack+0x20/0x38 (C) [ 23.189875] dump_stack_lvl+0x8c/0xd0 [ 23.190065] print_report+0x118/0x608 [ 23.190294] kasan_report+0xdc/0x128 [ 23.190524] __asan_report_load1_noabort+0x20/0x30 [ 23.190763] kmalloc_node_oob_right+0x2f4/0x330 [ 23.190981] kunit_try_run_case+0x170/0x3f0 [ 23.191130] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.191366] kthread+0x328/0x630 [ 23.191550] ret_from_fork+0x10/0x20 [ 23.192201] [ 23.192252] Allocated by task 142: [ 23.192331] kasan_save_stack+0x3c/0x68 [ 23.192505] kasan_save_track+0x20/0x40 [ 23.192612] kasan_save_alloc_info+0x40/0x58 [ 23.192768] __kasan_kmalloc+0xd4/0xd8 [ 23.192918] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 23.193063] kmalloc_node_oob_right+0xbc/0x330 [ 23.193255] kunit_try_run_case+0x170/0x3f0 [ 23.193653] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.193989] kthread+0x328/0x630 [ 23.194218] ret_from_fork+0x10/0x20 [ 23.194791] [ 23.194854] The buggy address belongs to the object at fff00000c657a000 [ 23.194854] which belongs to the cache kmalloc-4k of size 4096 [ 23.195649] The buggy address is located 0 bytes to the right of [ 23.195649] allocated 4096-byte region [fff00000c657a000, fff00000c657b000) [ 23.195809] [ 23.195898] The buggy address belongs to the physical page: [ 23.196056] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106578 [ 23.196650] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 23.197456] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 23.198940] page_type: f5(slab) [ 23.199036] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 23.199151] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 23.200519] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 23.201009] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 23.201843] head: 0bfffe0000000003 ffffc1ffc3195e01 00000000ffffffff 00000000ffffffff [ 23.202024] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 23.202158] page dumped because: kasan: bad access detected [ 23.202246] [ 23.202297] Memory state around the buggy address: [ 23.202407] fff00000c657af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.202551] fff00000c657af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.202670] >fff00000c657b000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.202934] ^ [ 23.203115] fff00000c657b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.203222] fff00000c657b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.203318] ==================================================================
[ 10.938717] ================================================================== [ 10.939226] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 10.939720] Read of size 1 at addr ffff8881025ed000 by task kunit_try_catch/160 [ 10.940091] [ 10.940247] CPU: 0 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc2 #1 PREEMPT(voluntary) [ 10.940380] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.940402] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.940439] Call Trace: [ 10.940464] <TASK> [ 10.940497] dump_stack_lvl+0x73/0xb0 [ 10.940731] print_report+0xd1/0x650 [ 10.940772] ? __virt_addr_valid+0x1db/0x2d0 [ 10.940796] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.940815] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.940838] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.940857] kasan_report+0x141/0x180 [ 10.940900] ? kmalloc_node_oob_right+0x369/0x3c0 [ 10.940943] __asan_report_load1_noabort+0x18/0x20 [ 10.940979] kmalloc_node_oob_right+0x369/0x3c0 [ 10.941014] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 10.941054] ? __schedule+0x10cc/0x2b60 [ 10.941094] ? __pfx_read_tsc+0x10/0x10 [ 10.941129] ? ktime_get_ts64+0x86/0x230 [ 10.941161] kunit_try_run_case+0x1a5/0x480 [ 10.941186] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.941208] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.941231] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.941253] ? __kthread_parkme+0x82/0x180 [ 10.941275] ? preempt_count_sub+0x50/0x80 [ 10.941299] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.941321] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.941342] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.941364] kthread+0x337/0x6f0 [ 10.941379] ? trace_preempt_on+0x20/0xc0 [ 10.941402] ? __pfx_kthread+0x10/0x10 [ 10.941419] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.941439] ? calculate_sigpending+0x7b/0xa0 [ 10.941460] ? __pfx_kthread+0x10/0x10 [ 10.941477] ret_from_fork+0x41/0x80 [ 10.941496] ? __pfx_kthread+0x10/0x10 [ 10.941513] ret_from_fork_asm+0x1a/0x30 [ 10.941546] </TASK> [ 10.941594] [ 10.951100] Allocated by task 160: [ 10.951413] kasan_save_stack+0x45/0x70 [ 10.952059] kasan_save_track+0x18/0x40 [ 10.952221] kasan_save_alloc_info+0x3b/0x50 [ 10.952511] __kasan_kmalloc+0xb7/0xc0 [ 10.952782] __kmalloc_cache_node_noprof+0x188/0x420 [ 10.953445] kmalloc_node_oob_right+0xab/0x3c0 [ 10.953861] kunit_try_run_case+0x1a5/0x480 [ 10.954179] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.954651] kthread+0x337/0x6f0 [ 10.954935] ret_from_fork+0x41/0x80 [ 10.955114] ret_from_fork_asm+0x1a/0x30 [ 10.955326] [ 10.955470] The buggy address belongs to the object at ffff8881025ec000 [ 10.955470] which belongs to the cache kmalloc-4k of size 4096 [ 10.956118] The buggy address is located 0 bytes to the right of [ 10.956118] allocated 4096-byte region [ffff8881025ec000, ffff8881025ed000) [ 10.957013] [ 10.957141] The buggy address belongs to the physical page: [ 10.957539] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025e8 [ 10.958742] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.959129] flags: 0x200000000000040(head|node=0|zone=2) [ 10.959496] page_type: f5(slab) [ 10.959719] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.960117] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.960449] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 10.960766] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 10.961014] head: 0200000000000003 ffffea0004097a01 00000000ffffffff 00000000ffffffff [ 10.961375] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.961979] page dumped because: kasan: bad access detected [ 10.962274] [ 10.962378] Memory state around the buggy address: [ 10.962598] ffff8881025ecf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.962804] ffff8881025ecf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.963028] >ffff8881025ed000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.963938] ^ [ 10.964092] ffff8881025ed080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.964601] ffff8881025ed100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.965101] ==================================================================