Date
June 3, 2025, 7:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.625286] ================================================================== [ 20.625368] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x238/0x270 [ 20.625739] Read of size 1 at addr ffff800080a97c2a by task kunit_try_catch/249 [ 20.626071] [ 20.626717] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT [ 20.627121] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.627392] Hardware name: linux,dummy-virt (DT) [ 20.627440] Call trace: [ 20.627466] show_stack+0x20/0x38 (C) [ 20.627548] dump_stack_lvl+0x8c/0xd0 [ 20.627636] print_report+0x310/0x608 [ 20.627694] kasan_report+0xdc/0x128 [ 20.627742] __asan_report_load1_noabort+0x20/0x30 [ 20.627793] kasan_stack_oob+0x238/0x270 [ 20.627839] kunit_try_run_case+0x170/0x3f0 [ 20.627890] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.627945] kthread+0x328/0x630 [ 20.627992] ret_from_fork+0x10/0x20 [ 20.628043] [ 20.628106] The buggy address belongs to stack of task kunit_try_catch/249 [ 20.628888] and is located at offset 138 in frame: [ 20.628991] kasan_stack_oob+0x0/0x270 [ 20.629173] [ 20.629473] This frame has 4 objects: [ 20.629736] [48, 49) '__assertion' [ 20.629778] [64, 72) 'array' [ 20.629858] [96, 112) '__assertion' [ 20.629910] [128, 138) 'stack_array' [ 20.630081] [ 20.630118] The buggy address belongs to the virtual mapping at [ 20.630118] [ffff800080a90000, ffff800080a99000) created by: [ 20.630118] kernel_clone+0x150/0x7a8 [ 20.630204] [ 20.630298] The buggy address belongs to the physical page: [ 20.630444] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065cd [ 20.630503] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.630949] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 20.631103] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 20.631236] page dumped because: kasan: bad access detected [ 20.631299] [ 20.631431] Memory state around the buggy address: [ 20.631513] ffff800080a97b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.631559] ffff800080a97b80: 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 [ 20.631603] >ffff800080a97c00: 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 00 00 [ 20.631688] ^ [ 20.631807] ffff800080a97c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 [ 20.631852] ffff800080a97d00: 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 00 00 [ 20.631915] ==================================================================
[ 16.701150] ================================================================== [ 16.702200] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2b5/0x300 [ 16.703066] Read of size 1 at addr ffff8881039c7d02 by task kunit_try_catch/266 [ 16.703506] [ 16.703657] CPU: 0 UID: 0 PID: 266 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250603 #1 PREEMPT(voluntary) [ 16.703810] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.703828] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.703870] Call Trace: [ 16.703890] <TASK> [ 16.703927] dump_stack_lvl+0x73/0xb0 [ 16.703971] print_report+0xd1/0x650 [ 16.703998] ? __virt_addr_valid+0x1db/0x2d0 [ 16.704029] ? kasan_stack_oob+0x2b5/0x300 [ 16.704053] ? kasan_addr_to_slab+0x11/0xa0 [ 16.704077] ? kasan_stack_oob+0x2b5/0x300 [ 16.704101] kasan_report+0x141/0x180 [ 16.704129] ? kasan_stack_oob+0x2b5/0x300 [ 16.704158] __asan_report_load1_noabort+0x18/0x20 [ 16.704184] kasan_stack_oob+0x2b5/0x300 [ 16.704237] ? __pfx_kasan_stack_oob+0x10/0x10 [ 16.704261] ? finish_task_switch.isra.0+0x153/0x700 [ 16.704303] ? __switch_to+0x47/0xf50 [ 16.704335] ? __schedule+0x10cc/0x2b60 [ 16.704365] ? __pfx_read_tsc+0x10/0x10 [ 16.704392] ? ktime_get_ts64+0x86/0x230 [ 16.704425] kunit_try_run_case+0x1a5/0x480 [ 16.704467] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.704495] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.704528] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.704556] ? __kthread_parkme+0x82/0x180 [ 16.704580] ? preempt_count_sub+0x50/0x80 [ 16.704607] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.704631] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.704661] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.704764] kthread+0x337/0x6f0 [ 16.704793] ? trace_preempt_on+0x20/0xc0 [ 16.704826] ? __pfx_kthread+0x10/0x10 [ 16.704849] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.704877] ? calculate_sigpending+0x7b/0xa0 [ 16.704906] ? __pfx_kthread+0x10/0x10 [ 16.704930] ret_from_fork+0x116/0x1d0 [ 16.704952] ? __pfx_kthread+0x10/0x10 [ 16.704977] ret_from_fork_asm+0x1a/0x30 [ 16.705013] </TASK> [ 16.705027] [ 16.714358] The buggy address belongs to stack of task kunit_try_catch/266 [ 16.714969] and is located at offset 138 in frame: [ 16.715290] kasan_stack_oob+0x0/0x300 [ 16.715740] [ 16.715991] This frame has 4 objects: [ 16.716407] [48, 49) '__assertion' [ 16.716450] [64, 72) 'array' [ 16.716584] [96, 112) '__assertion' [ 16.716839] [128, 138) 'stack_array' [ 16.717079] [ 16.717354] The buggy address belongs to the physical page: [ 16.717889] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039c7 [ 16.718380] flags: 0x200000000000000(node=0|zone=2) [ 16.718817] raw: 0200000000000000 ffffea00040e71c8 ffffea00040e71c8 0000000000000000 [ 16.719128] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 16.719470] page dumped because: kasan: bad access detected [ 16.719837] [ 16.719933] Memory state around the buggy address: [ 16.720151] ffff8881039c7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.720474] ffff8881039c7c80: f1 f1 f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 [ 16.720929] >ffff8881039c7d00: 02 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 16.721342] ^ [ 16.721489] ffff8881039c7d80: f1 f1 f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 [ 16.721950] ffff8881039c7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.722320] ==================================================================