Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.769856] ================================================================== [ 18.769995] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 18.770064] Read of size 1 at addr ffff800080a17b5f by task kunit_try_catch/251 [ 18.770408] [ 18.770548] CPU: 0 UID: 0 PID: 251 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 18.770795] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.770864] Hardware name: linux,dummy-virt (DT) [ 18.770902] Call trace: [ 18.771196] show_stack+0x20/0x38 (C) [ 18.771283] dump_stack_lvl+0x8c/0xd0 [ 18.771335] print_report+0x310/0x608 [ 18.771529] kasan_report+0xdc/0x128 [ 18.771592] __asan_report_load1_noabort+0x20/0x30 [ 18.771661] kasan_alloca_oob_left+0x2b8/0x310 [ 18.771825] kunit_try_run_case+0x170/0x3f0 [ 18.771877] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.772199] kthread+0x328/0x630 [ 18.772335] ret_from_fork+0x10/0x20 [ 18.772556] [ 18.772583] The buggy address belongs to stack of task kunit_try_catch/251 [ 18.772711] [ 18.772815] The buggy address belongs to the virtual mapping at [ 18.772815] [ffff800080a10000, ffff800080a19000) created by: [ 18.772815] kernel_clone+0x150/0x7a8 [ 18.773199] [ 18.773253] The buggy address belongs to the physical page: [ 18.773365] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106ce9 [ 18.773575] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.773707] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.774181] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.774257] page dumped because: kasan: bad access detected [ 18.774319] [ 18.774426] Memory state around the buggy address: [ 18.774474] ffff800080a17a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.774523] ffff800080a17a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.774614] >ffff800080a17b00: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 18.774677] ^ [ 18.774723] ffff800080a17b80: cb cb cb cb 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 18.774770] ffff800080a17c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 18.774827] ==================================================================
[ 14.366613] ================================================================== [ 14.367093] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x320/0x380 [ 14.367345] Read of size 1 at addr ffff8881039bfc3f by task kunit_try_catch/268 [ 14.367566] [ 14.367654] CPU: 1 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.367696] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.367722] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.367743] Call Trace: [ 14.367755] <TASK> [ 14.367771] dump_stack_lvl+0x73/0xb0 [ 14.367801] print_report+0xd1/0x650 [ 14.367824] ? __virt_addr_valid+0x1db/0x2d0 [ 14.367848] ? kasan_alloca_oob_left+0x320/0x380 [ 14.367869] ? kasan_addr_to_slab+0x11/0xa0 [ 14.367889] ? kasan_alloca_oob_left+0x320/0x380 [ 14.367911] kasan_report+0x141/0x180 [ 14.367932] ? kasan_alloca_oob_left+0x320/0x380 [ 14.367958] __asan_report_load1_noabort+0x18/0x20 [ 14.367982] kasan_alloca_oob_left+0x320/0x380 [ 14.368004] ? __pfx_sched_clock_cpu+0x10/0x10 [ 14.368026] ? finish_task_switch.isra.0+0x153/0x700 [ 14.368048] ? preempt_schedule_common+0xbe/0x110 [ 14.368071] ? trace_hardirqs_on+0x37/0xe0 [ 14.368097] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 14.368121] ? __schedule+0x10cc/0x2b60 [ 14.368142] ? __pfx_read_tsc+0x10/0x10 [ 14.368163] ? ktime_get_ts64+0x86/0x230 [ 14.368187] kunit_try_run_case+0x1a5/0x480 [ 14.368211] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.368233] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.368257] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.368280] ? __kthread_parkme+0x82/0x180 [ 14.368300] ? preempt_count_sub+0x50/0x80 [ 14.368330] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.368354] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.368377] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.368401] kthread+0x337/0x6f0 [ 14.368418] ? trace_preempt_on+0x20/0xc0 [ 14.368440] ? __pfx_kthread+0x10/0x10 [ 14.368460] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.368480] ? calculate_sigpending+0x7b/0xa0 [ 14.368504] ? __pfx_kthread+0x10/0x10 [ 14.368524] ret_from_fork+0x116/0x1d0 [ 14.368542] ? __pfx_kthread+0x10/0x10 [ 14.368562] ret_from_fork_asm+0x1a/0x30 [ 14.368593] </TASK> [ 14.368604] [ 14.378213] The buggy address belongs to stack of task kunit_try_catch/268 [ 14.379085] [ 14.379205] The buggy address belongs to the physical page: [ 14.379433] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf [ 14.379676] flags: 0x200000000000000(node=0|zone=2) [ 14.379861] raw: 0200000000000000 ffffea00040e6fc8 ffffea00040e6fc8 0000000000000000 [ 14.380603] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 14.381248] page dumped because: kasan: bad access detected [ 14.381498] [ 14.381590] Memory state around the buggy address: [ 14.381811] ffff8881039bfb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.382497] ffff8881039bfb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.382988] >ffff8881039bfc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 14.383470] ^ [ 14.383832] ffff8881039bfc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 14.384274] ffff8881039bfd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 14.384781] ==================================================================