Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.706624] ================================================================== [ 17.706776] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 17.706872] Read of size 1 at addr ffff800080a27b4a by task kunit_try_catch/254 [ 17.706943] [ 17.707008] CPU: 1 UID: 0 PID: 254 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.707099] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.707162] Hardware name: linux,dummy-virt (DT) [ 17.707271] Call trace: [ 17.707297] show_stack+0x20/0x38 (C) [ 17.707348] dump_stack_lvl+0x8c/0xd0 [ 17.707408] print_report+0x310/0x5d0 [ 17.707626] kasan_report+0xdc/0x128 [ 17.707680] __asan_report_load1_noabort+0x20/0x30 [ 17.707872] kasan_alloca_oob_right+0x2dc/0x340 [ 17.707968] kunit_try_run_case+0x170/0x3f0 [ 17.708021] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.708074] kthread+0x328/0x630 [ 17.708117] ret_from_fork+0x10/0x20 [ 17.708240] [ 17.708265] The buggy address belongs to stack of task kunit_try_catch/254 [ 17.708321] [ 17.708380] The buggy address ffff800080a27b4a belongs to a vmalloc virtual mapping [ 17.708597] The buggy address belongs to the physical page: [ 17.708635] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105982 [ 17.708771] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.708841] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 17.708893] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 17.708949] page dumped because: kasan: bad access detected [ 17.709040] [ 17.709152] Memory state around the buggy address: [ 17.709304] ffff800080a27a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.709523] ffff800080a27a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.709572] >ffff800080a27b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 17.709718] ^ [ 17.709870] ffff800080a27b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 17.709962] ffff800080a27c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 17.710110] ==================================================================
[ 14.377341] ================================================================== [ 14.378868] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 14.380042] Read of size 1 at addr ffff8881039b7c4a by task kunit_try_catch/270 [ 14.380934] [ 14.381072] CPU: 1 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.381118] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.381129] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.381150] Call Trace: [ 14.381162] <TASK> [ 14.381175] dump_stack_lvl+0x73/0xb0 [ 14.381207] print_report+0xd1/0x610 [ 14.381229] ? __virt_addr_valid+0x1db/0x2d0 [ 14.381252] ? kasan_alloca_oob_right+0x329/0x390 [ 14.381275] ? kasan_addr_to_slab+0x11/0xa0 [ 14.381297] ? kasan_alloca_oob_right+0x329/0x390 [ 14.381320] kasan_report+0x141/0x180 [ 14.381344] ? kasan_alloca_oob_right+0x329/0x390 [ 14.381373] __asan_report_load1_noabort+0x18/0x20 [ 14.381399] kasan_alloca_oob_right+0x329/0x390 [ 14.381422] ? __kasan_check_write+0x18/0x20 [ 14.381606] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.381636] ? finish_task_switch.isra.0+0x153/0x700 [ 14.381660] ? __schedule+0x200e/0x2b60 [ 14.381682] ? trace_hardirqs_on+0x37/0xe0 [ 14.381707] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 14.381777] ? __schedule+0x10cc/0x2b60 [ 14.381801] ? __pfx_read_tsc+0x10/0x10 [ 14.381822] ? ktime_get_ts64+0x86/0x230 [ 14.381847] kunit_try_run_case+0x1a5/0x480 [ 14.381874] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.381897] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.381922] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.381946] ? __kthread_parkme+0x82/0x180 [ 14.381968] ? preempt_count_sub+0x50/0x80 [ 14.381991] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.382016] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.382042] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.382068] kthread+0x337/0x6f0 [ 14.382087] ? trace_preempt_on+0x20/0xc0 [ 14.382110] ? __pfx_kthread+0x10/0x10 [ 14.382131] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.382154] ? calculate_sigpending+0x7b/0xa0 [ 14.382179] ? __pfx_kthread+0x10/0x10 [ 14.382203] ret_from_fork+0x116/0x1d0 [ 14.382224] ? __pfx_kthread+0x10/0x10 [ 14.382246] ret_from_fork_asm+0x1a/0x30 [ 14.382278] </TASK> [ 14.382288] [ 14.395067] The buggy address belongs to stack of task kunit_try_catch/270 [ 14.395642] [ 14.395761] The buggy address belongs to the physical page: [ 14.396006] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039b7 [ 14.396594] flags: 0x200000000000000(node=0|zone=2) [ 14.396918] raw: 0200000000000000 ffffea00040e6dc8 ffffea00040e6dc8 0000000000000000 [ 14.397580] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.397925] page dumped because: kasan: bad access detected [ 14.398163] [ 14.398253] Memory state around the buggy address: [ 14.398813] ffff8881039b7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.399128] ffff8881039b7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.399771] >ffff8881039b7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 14.400056] ^ [ 14.400304] ffff8881039b7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 14.400662] ffff8881039b7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.400966] ==================================================================