Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.446517] ================================================================== [ 21.446579] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 21.446655] Read of size 1 at addr ffff800080a37b4a by task kunit_try_catch/253 [ 21.446709] [ 21.446742] CPU: 0 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 21.446826] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.446853] Hardware name: linux,dummy-virt (DT) [ 21.446899] Call trace: [ 21.446923] show_stack+0x20/0x38 (C) [ 21.446974] dump_stack_lvl+0x8c/0xd0 [ 21.447024] print_report+0x310/0x608 [ 21.447070] kasan_report+0xdc/0x128 [ 21.447128] __asan_report_load1_noabort+0x20/0x30 [ 21.447495] kasan_alloca_oob_right+0x2dc/0x340 [ 21.447787] kunit_try_run_case+0x170/0x3f0 [ 21.447848] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.447935] kthread+0x328/0x630 [ 21.448008] ret_from_fork+0x10/0x20 [ 21.448382] [ 21.449149] The buggy address belongs to stack of task kunit_try_catch/253 [ 21.449319] [ 21.449387] The buggy address belongs to the virtual mapping at [ 21.449387] [ffff800080a30000, ffff800080a39000) created by: [ 21.449387] kernel_clone+0x150/0x7a8 [ 21.449480] [ 21.449516] The buggy address belongs to the physical page: [ 21.449569] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106357 [ 21.449819] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.449998] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.450205] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.450341] page dumped because: kasan: bad access detected [ 21.450551] [ 21.450977] Memory state around the buggy address: [ 21.451557] ffff800080a37a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.451634] ffff800080a37a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.451683] >ffff800080a37b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 21.451725] ^ [ 21.451764] ffff800080a37b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 21.452014] ffff800080a37c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 21.452076] ==================================================================
[ 14.385117] ================================================================== [ 14.385592] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 14.385948] Read of size 1 at addr ffff888103abfc4a by task kunit_try_catch/271 [ 14.386368] [ 14.386477] CPU: 1 UID: 0 PID: 271 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.386525] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.386537] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.386558] Call Trace: [ 14.386574] <TASK> [ 14.386591] dump_stack_lvl+0x73/0xb0 [ 14.386636] print_report+0xd1/0x650 [ 14.386659] ? __virt_addr_valid+0x1db/0x2d0 [ 14.386684] ? kasan_alloca_oob_right+0x329/0x390 [ 14.386708] ? kasan_addr_to_slab+0x11/0xa0 [ 14.386728] ? kasan_alloca_oob_right+0x329/0x390 [ 14.386752] kasan_report+0x141/0x180 [ 14.386774] ? kasan_alloca_oob_right+0x329/0x390 [ 14.386801] __asan_report_load1_noabort+0x18/0x20 [ 14.386828] kasan_alloca_oob_right+0x329/0x390 [ 14.386851] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.386875] ? finish_task_switch.isra.0+0x153/0x700 [ 14.386899] ? preempt_schedule_common+0xbe/0x110 [ 14.386975] ? trace_hardirqs_on+0x37/0xe0 [ 14.387004] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 14.387032] ? __schedule+0x10cc/0x2b60 [ 14.387054] ? __pfx_read_tsc+0x10/0x10 [ 14.387077] ? ktime_get_ts64+0x86/0x230 [ 14.387103] kunit_try_run_case+0x1a5/0x480 [ 14.387129] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.387152] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.387177] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.387201] ? __kthread_parkme+0x82/0x180 [ 14.387223] ? preempt_count_sub+0x50/0x80 [ 14.387247] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.387271] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.387296] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.387321] kthread+0x337/0x6f0 [ 14.387340] ? trace_preempt_on+0x20/0xc0 [ 14.387362] ? __pfx_kthread+0x10/0x10 [ 14.387382] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.387404] ? calculate_sigpending+0x7b/0xa0 [ 14.387429] ? __pfx_kthread+0x10/0x10 [ 14.387450] ret_from_fork+0x116/0x1d0 [ 14.387469] ? __pfx_kthread+0x10/0x10 [ 14.387489] ret_from_fork_asm+0x1a/0x30 [ 14.387535] </TASK> [ 14.387546] [ 14.395712] The buggy address belongs to stack of task kunit_try_catch/271 [ 14.396241] [ 14.396329] The buggy address belongs to the physical page: [ 14.396578] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103abf [ 14.396838] flags: 0x200000000000000(node=0|zone=2) [ 14.397337] raw: 0200000000000000 ffffea00040eafc8 ffffea00040eafc8 0000000000000000 [ 14.397625] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.398046] page dumped because: kasan: bad access detected [ 14.398235] [ 14.398305] Memory state around the buggy address: [ 14.398461] ffff888103abfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.398725] ffff888103abfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.399040] >ffff888103abfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 14.399358] ^ [ 14.399673] ffff888103abfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 14.400139] ffff888103abfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.400359] ==================================================================