Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-x86_64 |
[ 50.069082] ================================================================== [ 50.080645] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2dc/0x340 [ 50.088320] Read of size 1 at addr ffff8000842c7b4a by task kunit_try_catch/351 [ 50.095735] [ 50.097266] CPU: 3 UID: 0 PID: 351 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 50.097297] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.097307] Hardware name: Thundercomm Dragonboard 845c (DT) [ 50.097320] Call trace: [ 50.097327] show_stack+0x20/0x38 (C) [ 50.097346] dump_stack_lvl+0x8c/0xd0 [ 50.097368] print_report+0x310/0x608 [ 50.097389] kasan_report+0xdc/0x128 [ 50.097409] __asan_report_load1_noabort+0x20/0x30 [ 50.097427] kasan_alloca_oob_right+0x2dc/0x340 [ 50.097447] kunit_try_run_case+0x170/0x3f0 [ 50.097467] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.097492] kthread+0x328/0x630 [ 50.097507] ret_from_fork+0x10/0x20 [ 50.097526] [ 50.163593] The buggy address belongs to stack of task kunit_try_catch/351 [ 50.170570] [ 50.172108] The buggy address belongs to the virtual mapping at [ 50.172108] [ffff8000842c0000, ffff8000842c9000) created by: [ 50.172108] kernel_clone+0x150/0x7a8 [ 50.187585] [ 50.189113] The buggy address belongs to the physical page: [ 50.194760] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11685e [ 50.202870] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.209496] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 50.217339] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 50.225180] page dumped because: kasan: bad access detected [ 50.230831] [ 50.232363] Memory state around the buggy address: [ 50.237226] ffff8000842c7a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.244549] ffff8000842c7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.251873] >ffff8000842c7b00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 50.259187] ^ [ 50.264838] ffff8000842c7b80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 04 f2 [ 50.272163] ffff8000842c7c00: 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 50.279479] ==================================================================
[ 31.531352] ================================================================== [ 31.532066] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x329/0x390 [ 31.533337] Read of size 1 at addr ffff888102a57c4a by task kunit_try_catch/283 [ 31.534197] [ 31.534380] CPU: 0 UID: 0 PID: 283 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 31.534674] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.534714] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 31.534763] Call Trace: [ 31.534786] <TASK> [ 31.534814] dump_stack_lvl+0x73/0xb0 [ 31.534863] print_report+0xd1/0x650 [ 31.534895] ? __virt_addr_valid+0x1db/0x2d0 [ 31.534940] ? kasan_alloca_oob_right+0x329/0x390 [ 31.534987] ? kasan_addr_to_slab+0x11/0xa0 [ 31.535035] ? kasan_alloca_oob_right+0x329/0x390 [ 31.535093] kasan_report+0x141/0x180 [ 31.535150] ? kasan_alloca_oob_right+0x329/0x390 [ 31.535209] __asan_report_load1_noabort+0x18/0x20 [ 31.535264] kasan_alloca_oob_right+0x329/0x390 [ 31.535294] ? __kasan_check_write+0x18/0x20 [ 31.535325] ? __pfx_sched_clock_cpu+0x10/0x10 [ 31.535357] ? finish_task_switch.isra.0+0x153/0x700 [ 31.535387] ? up+0xbe/0x180 [ 31.535412] ? trace_hardirqs_on+0x37/0xe0 [ 31.535443] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 31.535474] ? __schedule+0x10cc/0x2b60 [ 31.535503] ? __pfx_read_tsc+0x10/0x10 [ 31.535529] ? ktime_get_ts64+0x86/0x230 [ 31.535585] kunit_try_run_case+0x1a5/0x480 [ 31.535619] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.535661] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 31.535692] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 31.535722] ? __kthread_parkme+0x82/0x180 [ 31.535746] ? preempt_count_sub+0x50/0x80 [ 31.535776] ? __pfx_kunit_try_run_case+0x10/0x10 [ 31.535805] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 31.535844] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 31.535874] kthread+0x337/0x6f0 [ 31.535898] ? trace_preempt_on+0x20/0xc0 [ 31.535924] ? __pfx_kthread+0x10/0x10 [ 31.535949] ? _raw_spin_unlock_irq+0x47/0x80 [ 31.535977] ? calculate_sigpending+0x7b/0xa0 [ 31.536007] ? __pfx_kthread+0x10/0x10 [ 31.536033] ret_from_fork+0x116/0x1d0 [ 31.536082] ? __pfx_kthread+0x10/0x10 [ 31.536129] ret_from_fork_asm+0x1a/0x30 [ 31.536194] </TASK> [ 31.536222] [ 31.552806] The buggy address belongs to stack of task kunit_try_catch/283 [ 31.553287] [ 31.553430] The buggy address belongs to the physical page: [ 31.553823] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a57 [ 31.555220] flags: 0x200000000000000(node=0|zone=2) [ 31.555801] raw: 0200000000000000 dead000000000100 dead000000000122 0000000000000000 [ 31.556405] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 31.557186] page dumped because: kasan: bad access detected [ 31.557915] [ 31.558111] Memory state around the buggy address: [ 31.558892] ffff888102a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.559581] ffff888102a57b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.560157] >ffff888102a57c00: 00 00 00 00 ca ca ca ca 00 02 cb cb cb cb cb cb [ 31.560732] ^ [ 31.561306] ffff888102a57c80: 00 00 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 [ 31.562341] ffff888102a57d00: 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 31.562879] ==================================================================