Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.137044] ================================================================== [ 19.137131] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 19.137195] Read of size 1 at addr ffff800080907b5f by task kunit_try_catch/252 [ 19.137247] [ 19.137296] CPU: 0 UID: 0 PID: 252 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.137393] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.137421] Hardware name: linux,dummy-virt (DT) [ 19.137739] Call trace: [ 19.137943] show_stack+0x20/0x38 (C) [ 19.138002] dump_stack_lvl+0x8c/0xd0 [ 19.138505] print_report+0x310/0x608 [ 19.138725] kasan_report+0xdc/0x128 [ 19.138820] __asan_report_load1_noabort+0x20/0x30 [ 19.138973] kasan_alloca_oob_left+0x2b8/0x310 [ 19.139033] kunit_try_run_case+0x170/0x3f0 [ 19.139365] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.139481] kthread+0x328/0x630 [ 19.139736] ret_from_fork+0x10/0x20 [ 19.139943] [ 19.139999] The buggy address belongs to stack of task kunit_try_catch/252 [ 19.140245] [ 19.140395] The buggy address belongs to the virtual mapping at [ 19.140395] [ffff800080900000, ffff800080909000) created by: [ 19.140395] kernel_clone+0x150/0x7a8 [ 19.140483] [ 19.140907] The buggy address belongs to the physical page: [ 19.140997] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10572f [ 19.141185] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.141632] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 19.141807] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.141892] page dumped because: kasan: bad access detected [ 19.142038] [ 19.142117] Memory state around the buggy address: [ 19.142190] ffff800080907a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.142381] ffff800080907a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.143011] >ffff800080907b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 19.143153] ^ [ 19.143385] ffff800080907b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 19.143553] ffff800080907c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 19.143741] ==================================================================
[ 13.466586] ================================================================== [ 13.467252] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380 [ 13.467753] Read of size 1 at addr ffff8881039f7c3f by task kunit_try_catch/268 [ 13.468076] [ 13.468209] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.468256] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.468268] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.468291] Call Trace: [ 13.468304] <TASK> [ 13.468323] dump_stack_lvl+0x73/0xb0 [ 13.468365] print_report+0xd1/0x650 [ 13.468389] ? __virt_addr_valid+0x1db/0x2d0 [ 13.468425] ? kasan_alloca_oob_left+0x320/0x380 [ 13.468447] ? kasan_addr_to_slab+0x11/0xa0 [ 13.468467] ? kasan_alloca_oob_left+0x320/0x380 [ 13.468489] kasan_report+0x141/0x180 [ 13.468510] ? kasan_alloca_oob_left+0x320/0x380 [ 13.468538] __asan_report_load1_noabort+0x18/0x20 [ 13.468561] kasan_alloca_oob_left+0x320/0x380 [ 13.468591] ? __kasan_check_write+0x18/0x20 [ 13.468611] ? __pfx_sched_clock_cpu+0x10/0x10 [ 13.468633] ? finish_task_switch.isra.0+0x153/0x700 [ 13.468677] ? out_of_line_wait_on_bit_timeout+0x7e/0x190 [ 13.468702] ? trace_hardirqs_on+0x37/0xe0 [ 13.468726] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 13.468751] ? __schedule+0x10cc/0x2b60 [ 13.468772] ? __pfx_read_tsc+0x10/0x10 [ 13.468793] ? ktime_get_ts64+0x86/0x230 [ 13.468863] kunit_try_run_case+0x1a5/0x480 [ 13.468901] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.468922] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.468946] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.468968] ? __kthread_parkme+0x82/0x180 [ 13.468988] ? preempt_count_sub+0x50/0x80 [ 13.469010] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.469041] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.469063] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.469086] kthread+0x337/0x6f0 [ 13.469105] ? trace_preempt_on+0x20/0xc0 [ 13.469125] ? __pfx_kthread+0x10/0x10 [ 13.469145] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.469165] ? calculate_sigpending+0x7b/0xa0 [ 13.469187] ? __pfx_kthread+0x10/0x10 [ 13.469207] ret_from_fork+0x116/0x1d0 [ 13.469226] ? __pfx_kthread+0x10/0x10 [ 13.469246] ret_from_fork_asm+0x1a/0x30 [ 13.469277] </TASK> [ 13.469290] [ 13.478962] The buggy address belongs to stack of task kunit_try_catch/268 [ 13.479333] [ 13.479445] The buggy address belongs to the physical page: [ 13.479773] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f7 [ 13.480167] flags: 0x200000000000000(node=0|zone=2) [ 13.480467] raw: 0200000000000000 ffffea00040e7dc8 ffffea00040e7dc8 0000000000000000 [ 13.480881] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.481200] page dumped because: kasan: bad access detected [ 13.481800] [ 13.482168] Memory state around the buggy address: [ 13.482429] ffff8881039f7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.483187] ffff8881039f7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.483494] >ffff8881039f7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 13.484274] ^ [ 13.484533] ffff8881039f7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 13.485052] ffff8881039f7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.485357] ==================================================================