Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.499996] ================================================================== [ 24.500273] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 24.500461] Read of size 1 at addr ffff800080a97c2a by task kunit_try_catch/251 [ 24.500611] [ 24.500752] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 24.501052] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.501140] Hardware name: linux,dummy-virt (DT) [ 24.501224] Call trace: [ 24.501306] show_stack+0x20/0x38 (C) [ 24.501445] dump_stack_lvl+0x8c/0xd0 [ 24.501593] print_report+0x310/0x608 [ 24.501739] kasan_report+0xdc/0x128 [ 24.501851] __asan_report_load1_noabort+0x20/0x30 [ 24.501975] kasan_stack_oob+0x238/0x270 [ 24.502086] kunit_try_run_case+0x170/0x3f0 [ 24.502292] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.502471] kthread+0x328/0x630 [ 24.502624] ret_from_fork+0x10/0x20 [ 24.502811] [ 24.502987] The buggy address belongs to stack of task kunit_try_catch/251 [ 24.503191] and is located at offset 138 in frame: [ 24.503269] kasan_stack_oob+0x0/0x270 [ 24.503575] [ 24.503830] This frame has 4 objects: [ 24.504111] [48, 49) '__assertion' [ 24.504234] [64, 72) 'array' [ 24.504340] [96, 112) '__assertion' [ 24.504433] [128, 138) 'stack_array' [ 24.504528] [ 24.504608] The buggy address belongs to the virtual mapping at [ 24.504608] [ffff800080a90000, ffff800080a99000) created by: [ 24.504608] kernel_clone+0x150/0x7a8 [ 24.504826] [ 24.504886] The buggy address belongs to the physical page: [ 24.504973] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e1 [ 24.505121] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.505355] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 24.505474] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 24.505627] page dumped because: kasan: bad access detected [ 24.505715] [ 24.505770] Memory state around the buggy address: [ 24.505862] ffff800080a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.505968] ffff800080a97b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 24.506108] >ffff800080a97c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 24.506217] ^ [ 24.506337] ffff800080a97c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 24.506506] ffff800080a97d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 24.506604] ==================================================================
[ 22.146809] ================================================================== [ 22.148127] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 22.148656] Read of size 1 at addr ffff88810396fd02 by task kunit_try_catch/269 [ 22.149643] [ 22.149912] CPU: 1 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 22.150809] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.150847] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.151389] Call Trace: [ 22.151417] <TASK> [ 22.151446] dump_stack_lvl+0x73/0xb0 [ 22.151492] print_report+0xd1/0x650 [ 22.151533] ? __virt_addr_valid+0x1db/0x2d0 [ 22.151570] ? kasan_stack_oob+0x2b5/0x300 [ 22.151604] ? kasan_addr_to_slab+0x11/0xa0 [ 22.151639] ? kasan_stack_oob+0x2b5/0x300 [ 22.151672] kasan_report+0x141/0x180 [ 22.151708] ? kasan_stack_oob+0x2b5/0x300 [ 22.151746] __asan_report_load1_noabort+0x18/0x20 [ 22.151779] kasan_stack_oob+0x2b5/0x300 [ 22.151812] ? __pfx_kasan_stack_oob+0x10/0x10 [ 22.151843] ? finish_task_switch.isra.0+0x153/0x700 [ 22.151895] ? __switch_to+0x5d9/0xf60 [ 22.151931] ? dequeue_task_fair+0x166/0x4e0 [ 22.152246] ? __schedule+0x10cc/0x2b60 [ 22.152324] ? __pfx_read_tsc+0x10/0x10 [ 22.152367] ? ktime_get_ts64+0x86/0x230 [ 22.152410] kunit_try_run_case+0x1a5/0x480 [ 22.152451] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.152489] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.152528] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.152565] ? __kthread_parkme+0x82/0x180 [ 22.152602] ? preempt_count_sub+0x50/0x80 [ 22.152640] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.152678] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.152716] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.152752] kthread+0x337/0x6f0 [ 22.152779] ? trace_preempt_on+0x20/0xc0 [ 22.152820] ? __pfx_kthread+0x10/0x10 [ 22.152846] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.152879] ? calculate_sigpending+0x7b/0xa0 [ 22.152912] ? __pfx_kthread+0x10/0x10 [ 22.152941] ret_from_fork+0x41/0x80 [ 22.153008] ? __pfx_kthread+0x10/0x10 [ 22.153081] ret_from_fork_asm+0x1a/0x30 [ 22.153175] </TASK> [ 22.153194] [ 22.172329] The buggy address belongs to stack of task kunit_try_catch/269 [ 22.173130] and is located at offset 138 in frame: [ 22.173780] kasan_stack_oob+0x0/0x300 [ 22.174629] [ 22.174902] This frame has 4 objects: [ 22.176102] [48, 49) '__assertion' [ 22.176184] [64, 72) 'array' [ 22.176578] [96, 112) '__assertion' [ 22.177094] [128, 138) 'stack_array' [ 22.177550] [ 22.178381] The buggy address belongs to the physical page: [ 22.178880] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10396f [ 22.180223] flags: 0x200000000000000(node=0|zone=2) [ 22.180721] raw: 0200000000000000 ffffea00040e5bc8 ffffea00040e5bc8 0000000000000000 [ 22.181505] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 22.182265] page dumped because: kasan: bad access detected [ 22.182693] [ 22.182938] Memory state around the buggy address: [ 22.183788] ffff88810396fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 22.184653] ffff88810396fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 22.185424] >ffff88810396fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 22.186177] ^ [ 22.186520] ffff88810396fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 22.187620] ffff88810396fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.188155] ==================================================================