Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.560074] ================================================================== [ 34.560684] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 34.561121] Read of size 1 at addr ffff800080bc7c2a by task kunit_try_catch/281 [ 34.561516] [ 34.561561] CPU: 0 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 34.561822] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 34.561859] Hardware name: linux,dummy-virt (DT) [ 34.561892] Call trace: [ 34.561921] show_stack+0x20/0x38 (C) [ 34.561974] dump_stack_lvl+0x8c/0xd0 [ 34.562025] print_report+0x310/0x5e8 [ 34.562070] kasan_report+0xdc/0x128 [ 34.562115] __asan_report_load1_noabort+0x20/0x30 [ 34.562166] kasan_stack_oob+0x238/0x270 [ 34.562789] kunit_try_run_case+0x170/0x3f0 [ 34.563067] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.563124] kthread+0x328/0x630 [ 34.563168] ret_from_fork+0x10/0x20 [ 34.563221] [ 34.563295] The buggy address belongs to stack of task kunit_try_catch/281 [ 34.563414] and is located at offset 138 in frame: [ 34.563452] kasan_stack_oob+0x0/0x270 [ 34.563581] [ 34.563615] This frame has 4 objects: [ 34.564273] [48, 49) '__assertion' [ 34.564426] [64, 72) 'array' [ 34.564462] [96, 112) '__assertion' [ 34.564637] [128, 138) 'stack_array' [ 34.564734] [ 34.564761] The buggy address belongs to a 8-page vmalloc region starting at 0xffff800080bc0000 allocated at kernel_clone+0x150/0x7b0 [ 34.564919] The buggy address belongs to the physical page: [ 34.564982] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a7e [ 34.565277] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.565380] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 34.565480] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 34.565543] page dumped because: kasan: bad access detected [ 34.565577] [ 34.565604] Memory state around the buggy address: [ 34.565816] ffff800080bc7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.566095] ffff800080bc7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 34.566263] >ffff800080bc7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 34.566343] ^ [ 34.566443] ffff800080bc7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 34.566527] ffff800080bc7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 34.566578] ==================================================================
[ 27.640189] ================================================================== [ 27.640886] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 27.641332] Read of size 1 at addr ffff88810632fd02 by task kunit_try_catch/298 [ 27.641654] [ 27.641763] CPU: 1 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 27.641822] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.641836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.641859] Call Trace: [ 27.641875] <TASK> [ 27.641894] dump_stack_lvl+0x73/0xb0 [ 27.642350] print_report+0xd1/0x640 [ 27.642377] ? __virt_addr_valid+0x1db/0x2d0 [ 27.642404] ? kasan_stack_oob+0x2b5/0x300 [ 27.642425] ? kasan_addr_to_slab+0x11/0xa0 [ 27.642447] ? kasan_stack_oob+0x2b5/0x300 [ 27.642469] kasan_report+0x141/0x180 [ 27.642493] ? kasan_stack_oob+0x2b5/0x300 [ 27.642520] __asan_report_load1_noabort+0x18/0x20 [ 27.642546] kasan_stack_oob+0x2b5/0x300 [ 27.642568] ? __pfx_kasan_stack_oob+0x10/0x10 [ 27.642588] ? __schedule+0x2070/0x2b60 [ 27.642610] ? schedule+0x7c/0x2e0 [ 27.642630] ? trace_hardirqs_on+0x37/0xe0 [ 27.642657] ? __schedule+0x2070/0x2b60 [ 27.642679] ? __pfx_read_tsc+0x10/0x10 [ 27.642704] ? ktime_get_ts64+0x86/0x230 [ 27.642731] kunit_try_run_case+0x1a5/0x480 [ 27.642759] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.642783] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.642807] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.642893] ? __kthread_parkme+0x82/0x180 [ 27.642917] ? preempt_count_sub+0x50/0x80 [ 27.642954] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.642980] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.643006] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.643031] kthread+0x337/0x6f0 [ 27.643064] ? trace_preempt_on+0x20/0xc0 [ 27.643088] ? __pfx_kthread+0x10/0x10 [ 27.643110] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.643136] ? calculate_sigpending+0x7b/0xa0 [ 27.643161] ? __pfx_kthread+0x10/0x10 [ 27.643184] ret_from_fork+0x116/0x1d0 [ 27.643205] ? __pfx_kthread+0x10/0x10 [ 27.643227] ret_from_fork_asm+0x1a/0x30 [ 27.643262] </TASK> [ 27.643277] [ 27.650755] The buggy address belongs to stack of task kunit_try_catch/298 [ 27.651423] and is located at offset 138 in frame: [ 27.651670] kasan_stack_oob+0x0/0x300 [ 27.652147] [ 27.652264] This frame has 4 objects: [ 27.652499] [48, 49) '__assertion' [ 27.652520] [64, 72) 'array' [ 27.652694] [96, 112) '__assertion' [ 27.652931] [128, 138) 'stack_array' [ 27.653120] [ 27.653355] The buggy address belongs to the physical page: [ 27.653600] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10632f [ 27.654044] flags: 0x200000000000000(node=0|zone=2) [ 27.654259] raw: 0200000000000000 ffffea000418cbc8 ffffea000418cbc8 0000000000000000 [ 27.654572] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 27.655072] page dumped because: kasan: bad access detected [ 27.655309] [ 27.655403] Memory state around the buggy address: [ 27.655598] ffff88810632fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 27.655959] ffff88810632fc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 27.656249] >ffff88810632fd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 27.656534] ^ [ 27.656709] ffff88810632fd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 27.657037] ffff88810632fe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.657446] ==================================================================