Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.964024] ================================================================== [ 18.964162] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 18.964242] Read of size 1 at addr ffff800080ac7c2a by task kunit_try_catch/249 [ 18.964308] [ 18.964339] CPU: 0 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 18.964447] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.964473] Hardware name: linux,dummy-virt (DT) [ 18.964509] Call trace: [ 18.964531] show_stack+0x20/0x38 (C) [ 18.964578] dump_stack_lvl+0x8c/0xd0 [ 18.964625] print_report+0x310/0x608 [ 18.964666] kasan_report+0xdc/0x128 [ 18.964709] __asan_report_load1_noabort+0x20/0x30 [ 18.964756] kasan_stack_oob+0x238/0x270 [ 18.964799] kunit_try_run_case+0x170/0x3f0 [ 18.964844] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.964891] kthread+0x328/0x630 [ 18.964931] ret_from_fork+0x10/0x20 [ 18.964977] [ 18.965035] The buggy address belongs to stack of task kunit_try_catch/249 [ 18.965166] and is located at offset 138 in frame: [ 18.965203] kasan_stack_oob+0x0/0x270 [ 18.965388] [ 18.965461] This frame has 4 objects: [ 18.965600] [48, 49) '__assertion' [ 18.965687] [64, 72) 'array' [ 18.965801] [96, 112) '__assertion' [ 18.965848] [128, 138) 'stack_array' [ 18.965920] [ 18.965956] The buggy address belongs to the virtual mapping at [ 18.965956] [ffff800080ac0000, ffff800080ac9000) created by: [ 18.965956] kernel_clone+0x150/0x7a8 [ 18.966058] [ 18.966084] The buggy address belongs to the physical page: [ 18.966120] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c1 [ 18.966173] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.966235] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 18.966327] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 18.966440] page dumped because: kasan: bad access detected [ 18.966506] [ 18.966550] Memory state around the buggy address: [ 18.966598] ffff800080ac7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.966657] ffff800080ac7b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 18.966759] >ffff800080ac7c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 18.966804] ^ [ 18.966840] ffff800080ac7c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 18.966884] ffff800080ac7d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 18.966945] ==================================================================
[ 18.786952] ================================================================== [ 18.787880] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 18.788296] Read of size 1 at addr ffff888103bbfd02 by task kunit_try_catch/266 [ 18.788637] [ 18.788795] CPU: 1 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 18.788901] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.788929] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.788962] Call Trace: [ 18.788979] <TASK> [ 18.789002] dump_stack_lvl+0x73/0xb0 [ 18.789039] print_report+0xd1/0x650 [ 18.789064] ? __virt_addr_valid+0x1db/0x2d0 [ 18.789100] ? kasan_stack_oob+0x2b5/0x300 [ 18.789134] ? kasan_addr_to_slab+0x11/0xa0 [ 18.789157] ? kasan_stack_oob+0x2b5/0x300 [ 18.789179] kasan_report+0x141/0x180 [ 18.789202] ? kasan_stack_oob+0x2b5/0x300 [ 18.789228] __asan_report_load1_noabort+0x18/0x20 [ 18.789250] kasan_stack_oob+0x2b5/0x300 [ 18.789402] ? __pfx_kasan_stack_oob+0x10/0x10 [ 18.789442] ? finish_task_switch.isra.0+0x153/0x700 [ 18.789480] ? __switch_to+0x47/0xf50 [ 18.789530] ? __schedule+0x10cc/0x2b60 [ 18.789572] ? __pfx_read_tsc+0x10/0x10 [ 18.789613] ? ktime_get_ts64+0x86/0x230 [ 18.789662] kunit_try_run_case+0x1a5/0x480 [ 18.789714] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.789762] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.789812] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.789862] ? __kthread_parkme+0x82/0x180 [ 18.789908] ? preempt_count_sub+0x50/0x80 [ 18.789958] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.790010] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.790062] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.790115] kthread+0x337/0x6f0 [ 18.790158] ? trace_preempt_on+0x20/0xc0 [ 18.790207] ? __pfx_kthread+0x10/0x10 [ 18.790284] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.790322] ? calculate_sigpending+0x7b/0xa0 [ 18.790364] ? __pfx_kthread+0x10/0x10 [ 18.790401] ret_from_fork+0x116/0x1d0 [ 18.790471] ? __pfx_kthread+0x10/0x10 [ 18.790510] ret_from_fork_asm+0x1a/0x30 [ 18.790578] </TASK> [ 18.790600] [ 18.804639] The buggy address belongs to stack of task kunit_try_catch/266 [ 18.805362] and is located at offset 138 in frame: [ 18.805712] kasan_stack_oob+0x0/0x300 [ 18.806418] [ 18.806865] This frame has 4 objects: [ 18.807805] [48, 49) '__assertion' [ 18.807870] [64, 72) 'array' [ 18.808192] [96, 112) '__assertion' [ 18.808446] [128, 138) 'stack_array' [ 18.808692] [ 18.809394] The buggy address belongs to the physical page: [ 18.809709] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103bbf [ 18.810315] flags: 0x200000000000000(node=0|zone=2) [ 18.811083] raw: 0200000000000000 ffffea00040eefc8 ffffea00040eefc8 0000000000000000 [ 18.811890] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 18.812573] page dumped because: kasan: bad access detected [ 18.813018] [ 18.813342] Memory state around the buggy address: [ 18.813797] ffff888103bbfc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 18.814360] ffff888103bbfc80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 18.815477] >ffff888103bbfd00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 18.815941] ^ [ 18.816143] ffff888103bbfd80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 18.816652] ffff888103bbfe00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.817116] ==================================================================