Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.637022] ================================================================== [ 19.637141] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 19.637199] Read of size 1 at addr ffff800080a77c2a by task kunit_try_catch/249 [ 19.637250] [ 19.637281] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 19.637364] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.637391] Hardware name: linux,dummy-virt (DT) [ 19.637433] Call trace: [ 19.637471] show_stack+0x20/0x38 (C) [ 19.637520] dump_stack_lvl+0x8c/0xd0 [ 19.637581] print_report+0x310/0x608 [ 19.637638] kasan_report+0xdc/0x128 [ 19.637780] __asan_report_load1_noabort+0x20/0x30 [ 19.637861] kasan_stack_oob+0x238/0x270 [ 19.637908] kunit_try_run_case+0x170/0x3f0 [ 19.637962] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.638066] kthread+0x328/0x630 [ 19.638106] ret_from_fork+0x10/0x20 [ 19.638192] [ 19.638597] The buggy address belongs to stack of task kunit_try_catch/249 [ 19.638707] and is located at offset 138 in frame: [ 19.638749] kasan_stack_oob+0x0/0x270 [ 19.638994] [ 19.639035] This frame has 4 objects: [ 19.639124] [48, 49) '__assertion' [ 19.639159] [64, 72) 'array' [ 19.639189] [96, 112) '__assertion' [ 19.639338] [128, 138) 'stack_array' [ 19.639384] [ 19.639440] The buggy address belongs to the virtual mapping at [ 19.639440] [ffff800080a70000, ffff800080a79000) created by: [ 19.639440] kernel_clone+0x150/0x7a8 [ 19.639536] [ 19.639558] The buggy address belongs to the physical page: [ 19.639648] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10799f [ 19.639874] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.639983] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 19.640072] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 19.640164] page dumped because: kasan: bad access detected [ 19.640217] [ 19.640485] Memory state around the buggy address: [ 19.640521] ffff800080a77b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.640585] ffff800080a77b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 19.640644] >ffff800080a77c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 19.640697] ^ [ 19.640732] ffff800080a77c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 19.640778] ffff800080a77d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 19.640836] ==================================================================
[ 13.214001] ================================================================== [ 13.214664] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 13.214961] Read of size 1 at addr ffff8881039d7d02 by task kunit_try_catch/266 [ 13.215301] [ 13.215440] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.215484] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.215496] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.215517] Call Trace: [ 13.215532] <TASK> [ 13.215549] dump_stack_lvl+0x73/0xb0 [ 13.215579] print_report+0xd1/0x650 [ 13.215602] ? __virt_addr_valid+0x1db/0x2d0 [ 13.215626] ? kasan_stack_oob+0x2b5/0x300 [ 13.215645] ? kasan_addr_to_slab+0x11/0xa0 [ 13.215665] ? kasan_stack_oob+0x2b5/0x300 [ 13.215685] kasan_report+0x141/0x180 [ 13.215707] ? kasan_stack_oob+0x2b5/0x300 [ 13.215731] __asan_report_load1_noabort+0x18/0x20 [ 13.215755] kasan_stack_oob+0x2b5/0x300 [ 13.215775] ? __pfx_kasan_stack_oob+0x10/0x10 [ 13.215794] ? finish_task_switch.isra.0+0x153/0x700 [ 13.215816] ? __switch_to+0x47/0xf50 [ 13.215842] ? __schedule+0x10cc/0x2b60 [ 13.215872] ? __pfx_read_tsc+0x10/0x10 [ 13.215893] ? ktime_get_ts64+0x86/0x230 [ 13.215918] kunit_try_run_case+0x1a5/0x480 [ 13.215942] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.215964] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.215987] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.216009] ? __kthread_parkme+0x82/0x180 [ 13.216041] ? preempt_count_sub+0x50/0x80 [ 13.216072] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.216095] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.216118] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.216141] kthread+0x337/0x6f0 [ 13.216166] ? trace_preempt_on+0x20/0xc0 [ 13.216189] ? __pfx_kthread+0x10/0x10 [ 13.216209] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.216229] ? calculate_sigpending+0x7b/0xa0 [ 13.216253] ? __pfx_kthread+0x10/0x10 [ 13.216274] ret_from_fork+0x116/0x1d0 [ 13.216292] ? __pfx_kthread+0x10/0x10 [ 13.216313] ret_from_fork_asm+0x1a/0x30 [ 13.216344] </TASK> [ 13.216355] [ 13.223753] The buggy address belongs to stack of task kunit_try_catch/266 [ 13.224047] and is located at offset 138 in frame: [ 13.224423] kasan_stack_oob+0x0/0x300 [ 13.224756] [ 13.224864] This frame has 4 objects: [ 13.225190] [48, 49) '__assertion' [ 13.225219] [64, 72) 'array' [ 13.225410] [96, 112) '__assertion' [ 13.225589] [128, 138) 'stack_array' [ 13.225790] [ 13.226131] The buggy address belongs to the physical page: [ 13.226408] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039d7 [ 13.226745] flags: 0x200000000000000(node=0|zone=2) [ 13.226994] raw: 0200000000000000 ffffea00040e75c8 ffffea00040e75c8 0000000000000000 [ 13.227619] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.227854] page dumped because: kasan: bad access detected [ 13.228094] [ 13.228197] Memory state around the buggy address: [ 13.228426] ffff8881039d7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.228782] ffff8881039d7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 13.229054] >ffff8881039d7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.230104] ^ [ 13.230370] ffff8881039d7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 13.230868] ffff8881039d7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.231430] ==================================================================