Date
July 6, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.394900] ================================================================== [ 20.395163] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 20.395251] Read of size 1 at addr ffff800080997c2a by task kunit_try_catch/249 [ 20.395590] [ 20.395665] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.395913] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.395948] Hardware name: linux,dummy-virt (DT) [ 20.396255] Call trace: [ 20.396446] show_stack+0x20/0x38 (C) [ 20.396514] dump_stack_lvl+0x8c/0xd0 [ 20.396914] print_report+0x310/0x608 [ 20.397040] kasan_report+0xdc/0x128 [ 20.397093] __asan_report_load1_noabort+0x20/0x30 [ 20.397147] kasan_stack_oob+0x238/0x270 [ 20.397205] kunit_try_run_case+0x170/0x3f0 [ 20.397257] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.397311] kthread+0x328/0x630 [ 20.397355] ret_from_fork+0x10/0x20 [ 20.397404] [ 20.397794] The buggy address belongs to stack of task kunit_try_catch/249 [ 20.398415] and is located at offset 138 in frame: [ 20.398751] kasan_stack_oob+0x0/0x270 [ 20.399718] [ 20.400109] This frame has 4 objects: [ 20.400672] [48, 49) '__assertion' [ 20.401100] [64, 72) 'array' [ 20.401304] [96, 112) '__assertion' [ 20.401521] [128, 138) 'stack_array' [ 20.401703] [ 20.401741] The buggy address belongs to the virtual mapping at [ 20.401741] [ffff800080990000, ffff800080999000) created by: [ 20.401741] kernel_clone+0x150/0x7a8 [ 20.402153] [ 20.402219] The buggy address belongs to the physical page: [ 20.402297] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106437 [ 20.402483] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.402684] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.402749] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.402807] page dumped because: kasan: bad access detected [ 20.402852] [ 20.402919] Memory state around the buggy address: [ 20.402956] ffff800080997b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.403009] ffff800080997b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 20.403055] >ffff800080997c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 20.403095] ^ [ 20.403129] ffff800080997c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 20.403182] ffff800080997d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.403241] ==================================================================
[ 13.435074] ================================================================== [ 13.435989] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 13.436341] Read of size 1 at addr ffff8881039afd02 by task kunit_try_catch/266 [ 13.436746] [ 13.436893] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.436954] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.436968] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.436990] Call Trace: [ 13.437021] <TASK> [ 13.437041] dump_stack_lvl+0x73/0xb0 [ 13.437070] print_report+0xd1/0x650 [ 13.437093] ? __virt_addr_valid+0x1db/0x2d0 [ 13.437130] ? kasan_stack_oob+0x2b5/0x300 [ 13.437165] ? kasan_addr_to_slab+0x11/0xa0 [ 13.437186] ? kasan_stack_oob+0x2b5/0x300 [ 13.437206] kasan_report+0x141/0x180 [ 13.437228] ? kasan_stack_oob+0x2b5/0x300 [ 13.437254] __asan_report_load1_noabort+0x18/0x20 [ 13.437279] kasan_stack_oob+0x2b5/0x300 [ 13.437299] ? __pfx_kasan_stack_oob+0x10/0x10 [ 13.437319] ? finish_task_switch.isra.0+0x153/0x700 [ 13.437342] ? __switch_to+0x47/0xf50 [ 13.437368] ? __schedule+0x10cc/0x2b60 [ 13.437391] ? __pfx_read_tsc+0x10/0x10 [ 13.437411] ? ktime_get_ts64+0x86/0x230 [ 13.437436] kunit_try_run_case+0x1a5/0x480 [ 13.437517] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.437543] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.437567] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.437590] ? __kthread_parkme+0x82/0x180 [ 13.437611] ? preempt_count_sub+0x50/0x80 [ 13.437635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.437658] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.437682] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.437705] kthread+0x337/0x6f0 [ 13.437725] ? trace_preempt_on+0x20/0xc0 [ 13.437749] ? __pfx_kthread+0x10/0x10 [ 13.437770] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.437792] ? calculate_sigpending+0x7b/0xa0 [ 13.437816] ? __pfx_kthread+0x10/0x10 [ 13.437837] ret_from_fork+0x116/0x1d0 [ 13.437857] ? __pfx_kthread+0x10/0x10 [ 13.437877] ret_from_fork_asm+0x1a/0x30 [ 13.437909] </TASK> [ 13.437920] [ 13.446509] The buggy address belongs to stack of task kunit_try_catch/266 [ 13.447024] and is located at offset 138 in frame: [ 13.447257] kasan_stack_oob+0x0/0x300 [ 13.447623] [ 13.447747] This frame has 4 objects: [ 13.448103] [48, 49) '__assertion' [ 13.448136] [64, 72) 'array' [ 13.448344] [96, 112) '__assertion' [ 13.448814] [128, 138) 'stack_array' [ 13.449076] [ 13.449401] The buggy address belongs to the physical page: [ 13.449932] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039af [ 13.450361] flags: 0x200000000000000(node=0|zone=2) [ 13.450660] raw: 0200000000000000 ffffea00040e6bc8 ffffea00040e6bc8 0000000000000000 [ 13.450947] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 13.451319] page dumped because: kasan: bad access detected [ 13.451633] [ 13.451731] Memory state around the buggy address: [ 13.451959] ffff8881039afc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.452312] ffff8881039afc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 13.452817] >ffff8881039afd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 13.453243] ^ [ 13.453365] ffff8881039afd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 13.453850] ffff8881039afe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.454269] ==================================================================