Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.121008] ================================================================== [ 23.121228] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 23.121375] Read of size 1 at addr ffff8000809c7c2a by task kunit_try_catch/259 [ 23.121491] [ 23.121579] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 23.121797] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.122300] Hardware name: linux,dummy-virt (DT) [ 23.122481] Call trace: [ 23.122533] show_stack+0x20/0x38 (C) [ 23.122666] dump_stack_lvl+0x8c/0xd0 [ 23.122807] print_report+0x310/0x608 [ 23.122924] kasan_report+0xdc/0x128 [ 23.123099] __asan_report_load1_noabort+0x20/0x30 [ 23.123227] kasan_stack_oob+0x238/0x270 [ 23.123344] kunit_try_run_case+0x170/0x3f0 [ 23.123459] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.123599] kthread+0x328/0x630 [ 23.123702] ret_from_fork+0x10/0x20 [ 23.123817] [ 23.124046] The buggy address belongs to stack of task kunit_try_catch/259 [ 23.124411] and is located at offset 138 in frame: [ 23.124721] kasan_stack_oob+0x0/0x270 [ 23.125004] [ 23.125328] This frame has 4 objects: [ 23.125657] [48, 49) '__assertion' [ 23.125764] [64, 72) 'array' [ 23.125839] [96, 112) '__assertion' [ 23.125979] [128, 138) 'stack_array' [ 23.126147] [ 23.126229] The buggy address belongs to the virtual mapping at [ 23.126229] [ffff8000809c0000, ffff8000809c9000) created by: [ 23.126229] kernel_clone+0x150/0x7a8 [ 23.126642] [ 23.126713] The buggy address belongs to the physical page: [ 23.126799] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107781 [ 23.126924] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.127122] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 23.127242] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 23.127343] page dumped because: kasan: bad access detected [ 23.127422] [ 23.127729] Memory state around the buggy address: [ 23.127895] ffff8000809c7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.128066] ffff8000809c7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 23.128195] >ffff8000809c7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 23.128321] ^ [ 23.128414] ffff8000809c7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 23.128593] ffff8000809c7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 23.128712] ==================================================================
[ 12.951930] ================================================================== [ 12.953304] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 12.954298] Read of size 1 at addr ffff8881029d7d02 by task kunit_try_catch/275 [ 12.954597] [ 12.954786] CPU: 0 UID: 0 PID: 275 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 12.954844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.954857] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.954878] Call Trace: [ 12.954891] <TASK> [ 12.954908] dump_stack_lvl+0x73/0xb0 [ 12.954937] print_report+0xd1/0x650 [ 12.954959] ? __virt_addr_valid+0x1db/0x2d0 [ 12.954983] ? kasan_stack_oob+0x2b5/0x300 [ 12.955001] ? kasan_addr_to_slab+0x11/0xa0 [ 12.955021] ? kasan_stack_oob+0x2b5/0x300 [ 12.955040] kasan_report+0x141/0x180 [ 12.955061] ? kasan_stack_oob+0x2b5/0x300 [ 12.955084] __asan_report_load1_noabort+0x18/0x20 [ 12.955107] kasan_stack_oob+0x2b5/0x300 [ 12.955127] ? __pfx_kasan_stack_oob+0x10/0x10 [ 12.955145] ? finish_task_switch.isra.0+0x153/0x700 [ 12.955167] ? __switch_to+0x47/0xf50 [ 12.955193] ? __schedule+0x10cc/0x2b60 [ 12.955224] ? __pfx_read_tsc+0x10/0x10 [ 12.955245] ? ktime_get_ts64+0x86/0x230 [ 12.955270] kunit_try_run_case+0x1a5/0x480 [ 12.955295] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.955315] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.955337] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.955358] ? __kthread_parkme+0x82/0x180 [ 12.955378] ? preempt_count_sub+0x50/0x80 [ 12.955400] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.955422] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.955444] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.955466] kthread+0x337/0x6f0 [ 12.955485] ? trace_preempt_on+0x20/0xc0 [ 12.955507] ? __pfx_kthread+0x10/0x10 [ 12.955527] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.955546] ? calculate_sigpending+0x7b/0xa0 [ 12.955569] ? __pfx_kthread+0x10/0x10 [ 12.955589] ret_from_fork+0x116/0x1d0 [ 12.955607] ? __pfx_kthread+0x10/0x10 [ 12.955626] ret_from_fork_asm+0x1a/0x30 [ 12.955655] </TASK> [ 12.955665] [ 12.968744] The buggy address belongs to stack of task kunit_try_catch/275 [ 12.969253] and is located at offset 138 in frame: [ 12.969416] kasan_stack_oob+0x0/0x300 [ 12.969852] [ 12.970062] This frame has 4 objects: [ 12.970525] [48, 49) '__assertion' [ 12.970548] [64, 72) 'array' [ 12.970930] [96, 112) '__assertion' [ 12.971280] [128, 138) 'stack_array' [ 12.971626] [ 12.972177] The buggy address belongs to the physical page: [ 12.972762] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029d7 [ 12.973012] flags: 0x200000000000000(node=0|zone=2) [ 12.973181] raw: 0200000000000000 ffffea00040a75c8 ffffea00040a75c8 0000000000000000 [ 12.973508] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.973796] page dumped because: kasan: bad access detected [ 12.974004] [ 12.974085] Memory state around the buggy address: [ 12.974456] ffff8881029d7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 12.974807] ffff8881029d7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 12.975106] >ffff8881029d7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 12.975442] ^ [ 12.975564] ffff8881029d7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 12.976022] ffff8881029d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.976376] ==================================================================