Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.296083] ================================================================== [ 20.296412] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 20.296580] Read of size 1 at addr ffff800080a97c2a by task kunit_try_catch/249 [ 20.296634] [ 20.296685] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.296878] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.297104] Hardware name: linux,dummy-virt (DT) [ 20.297387] Call trace: [ 20.297474] show_stack+0x20/0x38 (C) [ 20.297621] dump_stack_lvl+0x8c/0xd0 [ 20.297676] print_report+0x310/0x608 [ 20.297742] kasan_report+0xdc/0x128 [ 20.297894] __asan_report_load1_noabort+0x20/0x30 [ 20.297969] kasan_stack_oob+0x238/0x270 [ 20.298036] kunit_try_run_case+0x170/0x3f0 [ 20.298088] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.298220] kthread+0x328/0x630 [ 20.298268] ret_from_fork+0x10/0x20 [ 20.298335] [ 20.298617] The buggy address belongs to stack of task kunit_try_catch/249 [ 20.298844] and is located at offset 138 in frame: [ 20.298958] kasan_stack_oob+0x0/0x270 [ 20.299609] [ 20.299763] This frame has 4 objects: [ 20.300130] [48, 49) '__assertion' [ 20.300287] [64, 72) 'array' [ 20.300379] [96, 112) '__assertion' [ 20.300447] [128, 138) 'stack_array' [ 20.300510] [ 20.300742] The buggy address belongs to the virtual mapping at [ 20.300742] [ffff800080a90000, ffff800080a99000) created by: [ 20.300742] kernel_clone+0x150/0x7a8 [ 20.300902] [ 20.300933] The buggy address belongs to the physical page: [ 20.301099] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107939 [ 20.301181] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.301262] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.301330] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.301373] page dumped because: kasan: bad access detected [ 20.301416] [ 20.301445] Memory state around the buggy address: [ 20.301480] ffff800080a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.301530] ffff800080a97b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 20.301574] >ffff800080a97c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 20.301611] ^ [ 20.301658] ffff800080a97c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 20.301702] ffff800080a97d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.301752] ==================================================================
[ 13.386663] ================================================================== [ 13.387364] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 13.387682] Read of size 1 at addr ffff8881039dfd02 by task kunit_try_catch/267 [ 13.388024] [ 13.388172] CPU: 0 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.388286] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.388300] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.388321] Call Trace: [ 13.388335] <TASK> [ 13.388350] dump_stack_lvl+0x73/0xb0 [ 13.388378] print_report+0xd1/0x650 [ 13.388401] ? __virt_addr_valid+0x1db/0x2d0 [ 13.388423] ? kasan_stack_oob+0x2b5/0x300 [ 13.388442] ? kasan_addr_to_slab+0x11/0xa0 [ 13.388474] ? kasan_stack_oob+0x2b5/0x300 [ 13.388495] kasan_report+0x141/0x180 [ 13.388518] ? kasan_stack_oob+0x2b5/0x300 [ 13.388543] __asan_report_load1_noabort+0x18/0x20 [ 13.388566] kasan_stack_oob+0x2b5/0x300 [ 13.388586] ? __pfx_kasan_stack_oob+0x10/0x10 [ 13.388605] ? finish_task_switch.isra.0+0x153/0x700 [ 13.388627] ? __switch_to+0x47/0xf50 [ 13.388652] ? __schedule+0x10cc/0x2b60 [ 13.388675] ? __pfx_read_tsc+0x10/0x10 [ 13.388710] ? ktime_get_ts64+0x86/0x230 [ 13.388734] kunit_try_run_case+0x1a5/0x480 [ 13.388758] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.388780] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.388803] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.388826] ? __kthread_parkme+0x82/0x180 [ 13.388846] ? preempt_count_sub+0x50/0x80 [ 13.388869] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.388892] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.388915] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.388937] kthread+0x337/0x6f0 [ 13.388957] ? trace_preempt_on+0x20/0xc0 [ 13.388980] ? __pfx_kthread+0x10/0x10 [ 13.389001] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.389022] ? calculate_sigpending+0x7b/0xa0 [ 13.389045] ? __pfx_kthread+0x10/0x10 [ 13.389067] ret_from_fork+0x116/0x1d0 [ 13.389086] ? __pfx_kthread+0x10/0x10 [ 13.389106] ret_from_fork_asm+0x1a/0x30 [ 13.389135] </TASK> [ 13.389147] [ 13.401756] The buggy address belongs to stack of task kunit_try_catch/267 [ 13.402713] and is located at offset 138 in frame: [ 13.402898] kasan_stack_oob+0x0/0x300 [ 13.403157] [ 13.403264] This frame has 4 objects: [ 13.403645] [48, 49) '__assertion' [ 13.403673] [64, 72) 'array' [ 13.403884] [96, 112) '__assertion' [ 13.404057] [128, 138) 'stack_array' [ 13.404225] [ 13.404527] The buggy address belongs to the physical page: [ 13.404714] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039df [ 13.405114] flags: 0x200000000000000(node=0|zone=2) [ 13.405303] raw: 0200000000000000 ffffea00040e77c8 ffffea00040e77c8 0000000000000000 [ 13.405668] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.406057] page dumped because: kasan: bad access detected [ 13.406423] [ 13.406575] Memory state around the buggy address: [ 13.406870] ffff8881039dfc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.407163] ffff8881039dfc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 13.407464] >ffff8881039dfd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.407877] ^ [ 13.408092] ffff8881039dfd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 13.408477] ffff8881039dfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.408781] ==================================================================