Date
May 13, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.393292] ================================================================== [ 21.393407] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 21.393494] Read of size 1 at addr ffff8000809d7b4a by task kunit_try_catch/253 [ 21.394502] [ 21.394586] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT [ 21.394697] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.394758] Hardware name: linux,dummy-virt (DT) [ 21.394797] Call trace: [ 21.394843] show_stack+0x20/0x38 (C) [ 21.394915] dump_stack_lvl+0x8c/0xd0 [ 21.394992] print_report+0x310/0x608 [ 21.395050] kasan_report+0xdc/0x128 [ 21.395101] __asan_report_load1_noabort+0x20/0x30 [ 21.395158] kasan_alloca_oob_right+0x2dc/0x340 [ 21.395500] kunit_try_run_case+0x170/0x3f0 [ 21.395737] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.395875] kthread+0x328/0x630 [ 21.396332] ret_from_fork+0x10/0x20 [ 21.396704] [ 21.396740] The buggy address belongs to stack of task kunit_try_catch/253 [ 21.396807] [ 21.396844] The buggy address belongs to the virtual mapping at [ 21.396844] [ffff8000809d0000, ffff8000809d9000) created by: [ 21.396844] kernel_clone+0x150/0x7a8 [ 21.396931] [ 21.396964] The buggy address belongs to the physical page: [ 21.397020] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107791 [ 21.397087] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.398811] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 21.398897] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 21.398950] page dumped because: kasan: bad access detected [ 21.399026] [ 21.399055] Memory state around the buggy address: [ 21.399098] ffff8000809d7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.399151] ffff8000809d7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.399397] >ffff8000809d7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 21.399511] ^ [ 21.399562] ffff8000809d7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 21.400087] ffff8000809d7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 21.400148] ==================================================================
[ 12.973089] ================================================================== [ 12.973559] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 12.974541] Read of size 1 at addr ffff888102b5fc4a by task kunit_try_catch/270 [ 12.975243] [ 12.975376] CPU: 0 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250513 #1 PREEMPT(voluntary) [ 12.975425] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.975437] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.975459] Call Trace: [ 12.975472] <TASK> [ 12.975487] dump_stack_lvl+0x73/0xb0 [ 12.975524] print_report+0xd1/0x650 [ 12.975547] ? __virt_addr_valid+0x1db/0x2d0 [ 12.975570] ? kasan_alloca_oob_right+0x329/0x390 [ 12.975593] ? kasan_addr_to_slab+0x11/0xa0 [ 12.975623] ? kasan_alloca_oob_right+0x329/0x390 [ 12.975646] kasan_report+0x141/0x180 [ 12.975669] ? kasan_alloca_oob_right+0x329/0x390 [ 12.975697] __asan_report_load1_noabort+0x18/0x20 [ 12.975718] kasan_alloca_oob_right+0x329/0x390 [ 12.975742] ? __pfx_sched_clock_cpu+0x10/0x10 [ 12.975765] ? finish_task_switch.isra.0+0x153/0x700 [ 12.975798] ? schedule+0x1ce/0x2e0 [ 12.975818] ? trace_hardirqs_on+0x37/0xe0 [ 12.975843] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 12.975870] ? __schedule+0x10cc/0x2b60 [ 12.975890] ? __pfx_read_tsc+0x10/0x10 [ 12.975912] ? ktime_get_ts64+0x86/0x230 [ 12.975935] kunit_try_run_case+0x1a5/0x480 [ 12.975960] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.975982] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.976004] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.976025] ? __kthread_parkme+0x82/0x180 [ 12.976048] ? preempt_count_sub+0x50/0x80 [ 12.976071] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.976094] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.976117] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.976140] kthread+0x337/0x6f0 [ 12.976160] ? trace_preempt_on+0x20/0xc0 [ 12.976197] ? __pfx_kthread+0x10/0x10 [ 12.976219] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.976239] ? calculate_sigpending+0x7b/0xa0 [ 12.976263] ? __pfx_kthread+0x10/0x10 [ 12.976284] ret_from_fork+0x116/0x1d0 [ 12.976302] ? __pfx_kthread+0x10/0x10 [ 12.976322] ret_from_fork_asm+0x1a/0x30 [ 12.976354] </TASK> [ 12.976364] [ 12.991145] The buggy address belongs to stack of task kunit_try_catch/270 [ 12.991803] [ 12.992026] The buggy address belongs to the physical page: [ 12.992569] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b5f [ 12.993016] flags: 0x200000000000000(node=0|zone=2) [ 12.993204] raw: 0200000000000000 0000000000000000 ffffea00040ad7c8 0000000000000000 [ 12.993957] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 12.994849] page dumped because: kasan: bad access detected [ 12.995436] [ 12.995543] Memory state around the buggy address: [ 12.996047] ffff888102b5fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.996325] ffff888102b5fb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.996554] >ffff888102b5fc00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 12.997218] ^ [ 12.997779] ffff888102b5fc80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 12.998250] ffff888102b5fd00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 12.998962] ==================================================================