Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.073782] ================================================================== [ 20.073841] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 20.073894] Read of size 1 at addr ffff800080a37b4a by task kunit_try_catch/253 [ 20.073944] [ 20.074194] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 20.074335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.074405] Hardware name: linux,dummy-virt (DT) [ 20.074506] Call trace: [ 20.074543] show_stack+0x20/0x38 (C) [ 20.074618] dump_stack_lvl+0x8c/0xd0 [ 20.074668] print_report+0x310/0x608 [ 20.074715] kasan_report+0xdc/0x128 [ 20.074769] __asan_report_load1_noabort+0x20/0x30 [ 20.074823] kasan_alloca_oob_right+0x2dc/0x340 [ 20.074873] kunit_try_run_case+0x170/0x3f0 [ 20.074923] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.075069] kthread+0x328/0x630 [ 20.075123] ret_from_fork+0x10/0x20 [ 20.075219] [ 20.075270] The buggy address belongs to stack of task kunit_try_catch/253 [ 20.075361] [ 20.075401] The buggy address belongs to the virtual mapping at [ 20.075401] [ffff800080a30000, ffff800080a39000) created by: [ 20.075401] kernel_clone+0x150/0x7a8 [ 20.075480] [ 20.075504] The buggy address belongs to the physical page: [ 20.075537] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1068f7 [ 20.075590] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.075651] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.075781] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.075859] page dumped because: kasan: bad access detected [ 20.075921] [ 20.075941] Memory state around the buggy address: [ 20.075973] ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.076226] ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.076304] >ffff800080a37b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 20.076417] ^ [ 20.076472] ffff800080a37b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 20.076541] ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.076645] ==================================================================
[ 16.141141] ================================================================== [ 16.141588] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 16.142097] Read of size 1 at addr ffff888103bffc4a by task kunit_try_catch/271 [ 16.143816] [ 16.144007] CPU: 0 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 16.144106] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.144132] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.144175] Call Trace: [ 16.144229] <TASK> [ 16.144266] dump_stack_lvl+0x73/0xb0 [ 16.144325] print_report+0xd1/0x650 [ 16.144367] ? __virt_addr_valid+0x1db/0x2d0 [ 16.144409] ? kasan_alloca_oob_right+0x329/0x390 [ 16.144451] ? kasan_addr_to_slab+0x11/0xa0 [ 16.144486] ? kasan_alloca_oob_right+0x329/0x390 [ 16.144515] kasan_report+0x141/0x180 [ 16.144538] ? kasan_alloca_oob_right+0x329/0x390 [ 16.144566] __asan_report_load1_noabort+0x18/0x20 [ 16.144588] kasan_alloca_oob_right+0x329/0x390 [ 16.144610] ? __pfx_sched_clock_cpu+0x10/0x10 [ 16.144632] ? finish_task_switch.isra.0+0x153/0x700 [ 16.144654] ? rt_mutex_adjust_prio_chain+0x68e/0x20e0 [ 16.144680] ? trace_hardirqs_on+0x37/0xe0 [ 16.144704] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 16.144730] ? __schedule+0x10cc/0x2b60 [ 16.144751] ? __pfx_read_tsc+0x10/0x10 [ 16.144771] ? ktime_get_ts64+0x86/0x230 [ 16.144795] kunit_try_run_case+0x1a5/0x480 [ 16.144821] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.144842] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.144864] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.144886] ? __kthread_parkme+0x82/0x180 [ 16.144907] ? preempt_count_sub+0x50/0x80 [ 16.144930] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.144952] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.144974] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.144996] kthread+0x337/0x6f0 [ 16.145015] ? trace_preempt_on+0x20/0xc0 [ 16.145037] ? __pfx_kthread+0x10/0x10 [ 16.145057] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.145076] ? calculate_sigpending+0x7b/0xa0 [ 16.145101] ? __pfx_kthread+0x10/0x10 [ 16.145121] ret_from_fork+0x116/0x1d0 [ 16.145139] ? __pfx_kthread+0x10/0x10 [ 16.145158] ret_from_fork_asm+0x1a/0x30 [ 16.145190] </TASK> [ 16.145203] [ 16.157185] The buggy address belongs to stack of task kunit_try_catch/271 [ 16.157559] [ 16.157691] The buggy address belongs to the physical page: [ 16.157899] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bff [ 16.158934] flags: 0x200000000000000(node=0|zone=2) [ 16.159339] raw: 0200000000000000 ffffea00040effc8 ffffea00040effc8 0000000000000000 [ 16.159826] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.160170] page dumped because: kasan: bad access detected [ 16.160727] [ 16.160891] Memory state around the buggy address: [ 16.161154] ffff888103bffb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.162082] ffff888103bffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.162657] >ffff888103bffc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 16.163033] ^ [ 16.163390] ffff888103bffc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 16.164026] ffff888103bffd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.164664] ==================================================================