Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 27.924908] ================================================================== [ 27.925888] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 27.926347] Read of size 1 at addr ffff800080a57c2a by task kunit_try_catch/251 [ 27.926831] [ 27.926980] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 27.927177] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.927674] Hardware name: linux,dummy-virt (DT) [ 27.927765] Call trace: [ 27.927836] show_stack+0x20/0x38 (C) [ 27.927970] dump_stack_lvl+0x8c/0xd0 [ 27.928115] print_report+0x310/0x608 [ 27.928308] kasan_report+0xdc/0x128 [ 27.928498] __asan_report_load1_noabort+0x20/0x30 [ 27.928629] kasan_stack_oob+0x238/0x270 [ 27.928746] kunit_try_run_case+0x170/0x3f0 [ 27.928869] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 27.928996] kthread+0x328/0x630 [ 27.929106] ret_from_fork+0x10/0x20 [ 27.929290] [ 27.929507] The buggy address belongs to stack of task kunit_try_catch/251 [ 27.929756] and is located at offset 138 in frame: [ 27.930326] kasan_stack_oob+0x0/0x270 [ 27.930708] [ 27.930823] This frame has 4 objects: [ 27.931373] [48, 49) '__assertion' [ 27.931525] [64, 72) 'array' [ 27.931623] [96, 112) '__assertion' [ 27.931925] [128, 138) 'stack_array' [ 27.932098] [ 27.932210] The buggy address belongs to the virtual mapping at [ 27.932210] [ffff800080a50000, ffff800080a59000) created by: [ 27.932210] kernel_clone+0x150/0x7a8 [ 27.932405] [ 27.932521] The buggy address belongs to the physical page: [ 27.932748] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107057 [ 27.933159] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 27.933595] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 27.933737] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 27.934309] page dumped because: kasan: bad access detected [ 27.934793] [ 27.934845] Memory state around the buggy address: [ 27.935052] ffff800080a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.935208] ffff800080a57b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 27.935317] >ffff800080a57c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 27.935428] ^ [ 27.935612] ffff800080a57c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 27.935723] ffff800080a57d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 27.935973] ==================================================================
[ 19.921978] ================================================================== [ 19.923754] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 19.924544] Read of size 1 at addr ffff88810a76fd02 by task kunit_try_catch/270 [ 19.925524] [ 19.926051] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 19.926173] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.926297] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.926392] Call Trace: [ 19.926435] <TASK> [ 19.926505] dump_stack_lvl+0x73/0xb0 [ 19.926582] print_report+0xd1/0x650 [ 19.926882] ? __virt_addr_valid+0x1db/0x2d0 [ 19.926955] ? kasan_stack_oob+0x2b5/0x300 [ 19.926990] ? kasan_addr_to_slab+0x11/0xa0 [ 19.927020] ? kasan_stack_oob+0x2b5/0x300 [ 19.927050] kasan_report+0x141/0x180 [ 19.927084] ? kasan_stack_oob+0x2b5/0x300 [ 19.927120] __asan_report_load1_noabort+0x18/0x20 [ 19.927150] kasan_stack_oob+0x2b5/0x300 [ 19.927180] ? __pfx_kasan_stack_oob+0x10/0x10 [ 19.927211] ? finish_task_switch.isra.0+0x153/0x700 [ 19.927273] ? __switch_to+0x5d9/0xf60 [ 19.927306] ? dequeue_task_fair+0x156/0x4e0 [ 19.927340] ? __schedule+0x10cc/0x2b60 [ 19.927373] ? __pfx_read_tsc+0x10/0x10 [ 19.927401] ? ktime_get_ts64+0x86/0x230 [ 19.927435] kunit_try_run_case+0x1a5/0x480 [ 19.927470] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.927504] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.927538] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.927572] ? __kthread_parkme+0x82/0x180 [ 19.927653] ? preempt_count_sub+0x50/0x80 [ 19.927735] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.927772] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.927809] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.927844] kthread+0x337/0x6f0 [ 19.927868] ? trace_preempt_on+0x20/0xc0 [ 19.927905] ? __pfx_kthread+0x10/0x10 [ 19.927930] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.927961] ? calculate_sigpending+0x7b/0xa0 [ 19.927990] ? __pfx_kthread+0x10/0x10 [ 19.928014] ret_from_fork+0x41/0x80 [ 19.928045] ? __pfx_kthread+0x10/0x10 [ 19.928069] ret_from_fork_asm+0x1a/0x30 [ 19.928110] </TASK> [ 19.928125] [ 19.947218] The buggy address belongs to stack of task kunit_try_catch/270 [ 19.947980] and is located at offset 138 in frame: [ 19.948451] kasan_stack_oob+0x0/0x300 [ 19.949282] [ 19.949519] This frame has 4 objects: [ 19.950103] [48, 49) '__assertion' [ 19.950178] [64, 72) 'array' [ 19.951121] [96, 112) '__assertion' [ 19.951525] [128, 138) 'stack_array' [ 19.952089] [ 19.952840] The buggy address belongs to the physical page: [ 19.953377] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a76f [ 19.954122] flags: 0x200000000000000(node=0|zone=2) [ 19.954800] raw: 0200000000000000 ffffea000429dbc8 ffffea000429dbc8 0000000000000000 [ 19.955549] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 19.956554] page dumped because: kasan: bad access detected [ 19.957189] [ 19.957408] Memory state around the buggy address: [ 19.957850] ffff88810a76fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 19.958424] ffff88810a76fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 19.959079] >ffff88810a76fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 19.959590] ^ [ 19.960073] ffff88810a76fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 19.960836] ffff88810a76fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.961480] ==================================================================