Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.191520] ================================================================== [ 19.191600] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 19.192015] Read of size 1 at addr ffff800080a57b4a by task kunit_try_catch/262 [ 19.192112] [ 19.192156] CPU: 1 UID: 0 PID: 262 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 19.192250] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.192279] Hardware name: linux,dummy-virt (DT) [ 19.192313] Call trace: [ 19.192339] show_stack+0x20/0x38 (C) [ 19.192553] dump_stack_lvl+0x8c/0xd0 [ 19.192720] print_report+0x310/0x608 [ 19.192783] kasan_report+0xdc/0x128 [ 19.192840] __asan_report_load1_noabort+0x20/0x30 [ 19.192895] kasan_alloca_oob_right+0x2dc/0x340 [ 19.192992] kunit_try_run_case+0x170/0x3f0 [ 19.193046] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.193102] kthread+0x328/0x630 [ 19.193147] ret_from_fork+0x10/0x20 [ 19.193291] [ 19.193406] The buggy address belongs to stack of task kunit_try_catch/262 [ 19.193576] [ 19.193613] The buggy address belongs to the virtual mapping at [ 19.193613] [ffff800080a50000, ffff800080a59000) created by: [ 19.193613] kernel_clone+0x150/0x7a8 [ 19.193708] [ 19.193741] The buggy address belongs to the physical page: [ 19.193795] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1050af [ 19.193871] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.194136] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 19.194278] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.194358] page dumped because: kasan: bad access detected [ 19.194430] [ 19.194496] Memory state around the buggy address: [ 19.194592] ffff800080a57a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.194681] ffff800080a57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.194768] >ffff800080a57b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 19.194809] ^ [ 19.194979] ffff800080a57b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 19.195027] ffff800080a57c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 19.195215] ==================================================================
[ 20.702588] ================================================================== [ 20.703392] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 20.704243] Read of size 1 at addr ffff888103ad7c4a by task kunit_try_catch/280 [ 20.705495] [ 20.705729] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 20.705877] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.705917] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 20.705975] Call Trace: [ 20.706018] <TASK> [ 20.706068] dump_stack_lvl+0x73/0xb0 [ 20.706154] print_report+0xd1/0x650 [ 20.706234] ? __virt_addr_valid+0x1db/0x2d0 [ 20.706315] ? kasan_alloca_oob_right+0x329/0x390 [ 20.706388] ? kasan_addr_to_slab+0x11/0xa0 [ 20.706460] ? kasan_alloca_oob_right+0x329/0x390 [ 20.706541] kasan_report+0x141/0x180 [ 20.706620] ? kasan_alloca_oob_right+0x329/0x390 [ 20.706708] __asan_report_load1_noabort+0x18/0x20 [ 20.706790] kasan_alloca_oob_right+0x329/0x390 [ 20.706873] ? __kasan_check_write+0x18/0x20 [ 20.706907] ? __pfx_sched_clock_cpu+0x10/0x10 [ 20.706940] ? irqentry_exit+0x2a/0x60 [ 20.706969] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 20.707001] ? trace_hardirqs_on+0x37/0xe0 [ 20.707038] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 20.707075] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 20.707111] kunit_try_run_case+0x1a5/0x480 [ 20.707146] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.707178] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 20.707207] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 20.707282] ? __kthread_parkme+0x82/0x180 [ 20.707351] ? preempt_count_sub+0x50/0x80 [ 20.707388] ? __pfx_kunit_try_run_case+0x10/0x10 [ 20.707424] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 20.707457] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 20.707490] kthread+0x337/0x6f0 [ 20.707517] ? trace_preempt_on+0x20/0xc0 [ 20.707560] ? __pfx_kthread+0x10/0x10 [ 20.707588] ? _raw_spin_unlock_irq+0x47/0x80 [ 20.707623] ? calculate_sigpending+0x7b/0xa0 [ 20.707658] ? __pfx_kthread+0x10/0x10 [ 20.707687] ret_from_fork+0x116/0x1d0 [ 20.707714] ? __pfx_kthread+0x10/0x10 [ 20.707742] ret_from_fork_asm+0x1a/0x30 [ 20.707784] </TASK> [ 20.707799] [ 20.723565] The buggy address belongs to stack of task kunit_try_catch/280 [ 20.724238] [ 20.724542] The buggy address belongs to the physical page: [ 20.725099] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ad7 [ 20.726426] flags: 0x200000000000000(node=0|zone=2) [ 20.726967] raw: 0200000000000000 ffffea00040eb5c8 ffffea00040eb5c8 0000000000000000 [ 20.728966] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 20.730341] page dumped because: kasan: bad access detected [ 20.731099] [ 20.731668] Memory state around the buggy address: [ 20.732055] ffff888103ad7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.733251] ffff888103ad7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.734211] >ffff888103ad7c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 20.734982] ^ [ 20.735568] ffff888103ad7c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 20.736091] ffff888103ad7d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 20.736939] ==================================================================