Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.344518] ================================================================== [ 25.344729] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 25.344900] Read of size 1 at addr ffff8000809c7b5f by task kunit_try_catch/255 [ 25.345033] [ 25.345127] CPU: 1 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.345347] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.346088] Hardware name: linux,dummy-virt (DT) [ 25.346273] Call trace: [ 25.346488] show_stack+0x20/0x38 (C) [ 25.346982] dump_stack_lvl+0x8c/0xd0 [ 25.347262] print_report+0x310/0x608 [ 25.347448] kasan_report+0xdc/0x128 [ 25.347542] __asan_report_load1_noabort+0x20/0x30 [ 25.347660] kasan_alloca_oob_left+0x2b8/0x310 [ 25.348320] kunit_try_run_case+0x170/0x3f0 [ 25.348477] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.348612] kthread+0x328/0x630 [ 25.348779] ret_from_fork+0x10/0x20 [ 25.349119] [ 25.349282] The buggy address belongs to stack of task kunit_try_catch/255 [ 25.349482] [ 25.349929] The buggy address belongs to the virtual mapping at [ 25.349929] [ffff8000809c0000, ffff8000809c9000) created by: [ 25.349929] kernel_clone+0x150/0x7a8 [ 25.350425] [ 25.350654] The buggy address belongs to the physical page: [ 25.350794] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063be [ 25.351200] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.351476] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 25.351756] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 25.351945] page dumped because: kasan: bad access detected [ 25.352145] [ 25.352304] Memory state around the buggy address: [ 25.352458] ffff8000809c7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.352658] ffff8000809c7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.352864] >ffff8000809c7b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 25.353101] ^ [ 25.353439] ffff8000809c7b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 25.353664] ffff8000809c7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 25.353765] ==================================================================
[ 15.775315] ================================================================== [ 15.775816] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380 [ 15.776541] Read of size 1 at addr ffff888103a37c3f by task kunit_try_catch/271 [ 15.777050] [ 15.777283] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.777436] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.777454] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.777479] Call Trace: [ 15.777497] <TASK> [ 15.777518] dump_stack_lvl+0x73/0xb0 [ 15.777555] print_report+0xd1/0x650 [ 15.777593] ? __virt_addr_valid+0x1db/0x2d0 [ 15.777645] ? kasan_alloca_oob_left+0x320/0x380 [ 15.777694] ? kasan_addr_to_slab+0x11/0xa0 [ 15.777717] ? kasan_alloca_oob_left+0x320/0x380 [ 15.777740] kasan_report+0x141/0x180 [ 15.777764] ? kasan_alloca_oob_left+0x320/0x380 [ 15.777792] __asan_report_load1_noabort+0x18/0x20 [ 15.777813] kasan_alloca_oob_left+0x320/0x380 [ 15.777838] ? finish_task_switch.isra.0+0x153/0x700 [ 15.777866] ? rt_mutex_adjust_prio_chain+0x19ae/0x20e0 [ 15.777889] ? trace_hardirqs_on+0x37/0xe0 [ 15.777917] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 15.777943] ? __schedule+0x10cc/0x2b30 [ 15.777965] ? __pfx_read_tsc+0x10/0x10 [ 15.777987] ? ktime_get_ts64+0x86/0x230 [ 15.778014] kunit_try_run_case+0x1a5/0x480 [ 15.778042] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.778064] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.778088] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.778112] ? __kthread_parkme+0x82/0x180 [ 15.778135] ? preempt_count_sub+0x50/0x80 [ 15.778159] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.778184] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.778208] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.778231] kthread+0x337/0x6f0 [ 15.778248] ? trace_preempt_on+0x20/0xc0 [ 15.778271] ? __pfx_kthread+0x10/0x10 [ 15.778289] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.778310] ? calculate_sigpending+0x7b/0xa0 [ 15.778333] ? __pfx_kthread+0x10/0x10 [ 15.778350] ret_from_fork+0x41/0x80 [ 15.778372] ? __pfx_kthread+0x10/0x10 [ 15.778389] ret_from_fork_asm+0x1a/0x30 [ 15.778421] </TASK> [ 15.778434] [ 15.786458] The buggy address belongs to stack of task kunit_try_catch/271 [ 15.787445] [ 15.787712] The buggy address belongs to the physical page: [ 15.787956] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a37 [ 15.788369] flags: 0x200000000000000(node=0|zone=2) [ 15.788534] raw: 0200000000000000 ffffea00040e8dc8 ffffea00040e8dc8 0000000000000000 [ 15.788697] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 15.789693] page dumped because: kasan: bad access detected [ 15.789956] [ 15.790042] Memory state around the buggy address: [ 15.790149] ffff888103a37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.790607] ffff888103a37b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.791372] >ffff888103a37c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 15.791537] ^ [ 15.792262] ffff888103a37c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 15.792525] ffff888103a37d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 15.792979] ==================================================================