Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.052821] ================================================================== [ 20.052944] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 20.053025] Read of size 1 at addr ffff800080a37c2a by task kunit_try_catch/249 [ 20.053101] [ 20.053138] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 20.053253] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.053281] Hardware name: linux,dummy-virt (DT) [ 20.053318] Call trace: [ 20.053347] show_stack+0x20/0x38 (C) [ 20.053418] dump_stack_lvl+0x8c/0xd0 [ 20.053463] print_report+0x310/0x608 [ 20.053509] kasan_report+0xdc/0x128 [ 20.053552] __asan_report_load1_noabort+0x20/0x30 [ 20.053601] kasan_stack_oob+0x238/0x270 [ 20.053647] kunit_try_run_case+0x170/0x3f0 [ 20.053692] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.053743] kthread+0x328/0x630 [ 20.053787] ret_from_fork+0x10/0x20 [ 20.053842] [ 20.053900] The buggy address belongs to stack of task kunit_try_catch/249 [ 20.054124] and is located at offset 138 in frame: [ 20.054197] kasan_stack_oob+0x0/0x270 [ 20.054490] [ 20.054521] This frame has 4 objects: [ 20.054873] [48, 49) '__assertion' [ 20.055010] [64, 72) 'array' [ 20.055077] [96, 112) '__assertion' [ 20.055226] [128, 138) 'stack_array' [ 20.055300] [ 20.055961] The buggy address belongs to the virtual mapping at [ 20.055961] [ffff800080a30000, ffff800080a39000) created by: [ 20.055961] kernel_clone+0x150/0x7a8 [ 20.056075] [ 20.056121] The buggy address belongs to the physical page: [ 20.056451] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1068f7 [ 20.056523] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.056625] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.056726] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.056841] page dumped because: kasan: bad access detected [ 20.056914] [ 20.056963] Memory state around the buggy address: [ 20.057038] ffff800080a37b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.057144] ffff800080a37b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 20.057230] >ffff800080a37c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 20.057293] ^ [ 20.057335] ffff800080a37c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 20.057376] ffff800080a37d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.057698] ==================================================================
[ 16.080785] ================================================================== [ 16.081381] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 16.081839] Read of size 1 at addr ffff888103bffd02 by task kunit_try_catch/267 [ 16.082201] [ 16.082605] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 16.082705] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.082730] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.082774] Call Trace: [ 16.082793] <TASK> [ 16.082826] dump_stack_lvl+0x73/0xb0 [ 16.082887] print_report+0xd1/0x650 [ 16.082928] ? __virt_addr_valid+0x1db/0x2d0 [ 16.082963] ? kasan_stack_oob+0x2b5/0x300 [ 16.082995] ? kasan_addr_to_slab+0x11/0xa0 [ 16.083031] ? kasan_stack_oob+0x2b5/0x300 [ 16.083071] kasan_report+0x141/0x180 [ 16.083110] ? kasan_stack_oob+0x2b5/0x300 [ 16.083161] __asan_report_load1_noabort+0x18/0x20 [ 16.083202] kasan_stack_oob+0x2b5/0x300 [ 16.083257] ? __pfx_kasan_stack_oob+0x10/0x10 [ 16.083298] ? finish_task_switch.isra.0+0x153/0x700 [ 16.083339] ? __switch_to+0x47/0xf50 [ 16.083371] ? __schedule+0x10cc/0x2b60 [ 16.083396] ? __pfx_read_tsc+0x10/0x10 [ 16.083417] ? ktime_get_ts64+0x86/0x230 [ 16.083442] kunit_try_run_case+0x1a5/0x480 [ 16.083475] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.083536] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.083571] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.083605] ? __kthread_parkme+0x82/0x180 [ 16.083637] ? preempt_count_sub+0x50/0x80 [ 16.083735] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.083786] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.083834] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.083882] kthread+0x337/0x6f0 [ 16.083921] ? trace_preempt_on+0x20/0xc0 [ 16.083971] ? __pfx_kthread+0x10/0x10 [ 16.084014] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.084057] ? calculate_sigpending+0x7b/0xa0 [ 16.084104] ? __pfx_kthread+0x10/0x10 [ 16.084146] ret_from_fork+0x116/0x1d0 [ 16.084172] ? __pfx_kthread+0x10/0x10 [ 16.084192] ret_from_fork_asm+0x1a/0x30 [ 16.084244] </TASK> [ 16.084259] [ 16.095342] The buggy address belongs to stack of task kunit_try_catch/267 [ 16.096179] and is located at offset 138 in frame: [ 16.097067] kasan_stack_oob+0x0/0x300 [ 16.097895] [ 16.098134] This frame has 4 objects: [ 16.098779] [48, 49) '__assertion' [ 16.098874] [64, 72) 'array' [ 16.099089] [96, 112) '__assertion' [ 16.099271] [128, 138) 'stack_array' [ 16.099817] [ 16.100296] The buggy address belongs to the physical page: [ 16.101041] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bff [ 16.101369] flags: 0x200000000000000(node=0|zone=2) [ 16.101965] raw: 0200000000000000 ffffea00040effc8 ffffea00040effc8 0000000000000000 [ 16.102432] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.103092] page dumped because: kasan: bad access detected [ 16.103379] [ 16.103729] Memory state around the buggy address: [ 16.104071] ffff888103bffc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.104908] ffff888103bffc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 16.105278] >ffff888103bffd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.105858] ^ [ 16.106103] ffff888103bffd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 16.106636] ffff888103bffe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.107147] ==================================================================