Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-x86_64 |
[ 24.725342] ================================================================== [ 24.726446] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x326/0x390 [ 24.726784] Read of size 1 at addr ffff8881038d7c4a by task kunit_try_catch/274 [ 24.727668] [ 24.728021] CPU: 0 UID: 0 PID: 274 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 24.728173] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.728214] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.728266] Call Trace: [ 24.728426] <TASK> [ 24.728471] dump_stack_lvl+0x73/0xb0 [ 24.728548] print_report+0xd1/0x660 [ 24.728586] ? __virt_addr_valid+0x1db/0x2d0 [ 24.728651] ? kasan_addr_to_slab+0x11/0xa0 [ 24.728686] kasan_report+0x104/0x140 [ 24.728776] ? kasan_alloca_oob_right+0x326/0x390 [ 24.728853] ? kasan_alloca_oob_right+0x326/0x390 [ 24.729255] __asan_report_load1_noabort+0x18/0x20 [ 24.729353] kasan_alloca_oob_right+0x326/0x390 [ 24.729437] ? finish_task_switch.isra.0+0x153/0x730 [ 24.729485] ? pci_mmcfg_reserved+0xf0/0x440 [ 24.729519] ? trace_hardirqs_on+0x37/0xe0 [ 24.729557] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 24.729597] ? __schedule+0xd46/0x29c0 [ 24.729628] ? __pfx_read_tsc+0x10/0x10 [ 24.729658] ? ktime_get_ts64+0x86/0x240 [ 24.729695] kunit_try_run_case+0x1b2/0x490 [ 24.729771] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.729806] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.729838] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.729871] ? __kthread_parkme+0x82/0x160 [ 24.729902] ? preempt_count_sub+0x50/0x80 [ 24.729938] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.729972] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.730006] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.730041] kthread+0x323/0x710 [ 24.730071] ? trace_preempt_on+0x20/0xc0 [ 24.730104] ? __pfx_kthread+0x10/0x10 [ 24.730166] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.730196] ? calculate_sigpending+0x7b/0xa0 [ 24.730227] ? __pfx_kthread+0x10/0x10 [ 24.730260] ret_from_fork+0x41/0x80 [ 24.730292] ? __pfx_kthread+0x10/0x10 [ 24.730322] ret_from_fork_asm+0x1a/0x30 [ 24.730369] </TASK> [ 24.730385] [ 24.743790] The buggy address belongs to stack of task kunit_try_catch/274 [ 24.744419] [ 24.744582] The buggy address belongs to the physical page: [ 24.745314] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1038d7 [ 24.745879] flags: 0x200000000000000(node=0|zone=2) [ 24.746456] raw: 0200000000000000 ffffea00040e35c8 ffffea00040e35c8 0000000000000000 [ 24.746999] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 24.747628] page dumped because: kasan: bad access detected [ 24.748377] [ 24.748604] Memory state around the buggy address: [ 24.749090] ffff8881038d7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.749487] ffff8881038d7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.749863] >ffff8881038d7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 24.750417] ^ [ 24.750983] ffff8881038d7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 24.751666] ffff8881038d7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 24.752342] ==================================================================