Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.948789] ================================================================== [ 33.950884] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x230/0x268 [ 33.951582] Read of size 1 at addr ffff800080c27cba by task kunit_try_catch/238 [ 33.953255] [ 33.953724] CPU: 1 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 33.955265] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.955958] Hardware name: linux,dummy-virt (DT) [ 33.956642] Call trace: [ 33.957063] show_stack+0x20/0x38 (C) [ 33.957695] dump_stack_lvl+0x8c/0xd0 [ 33.958431] print_report+0x2fc/0x5e0 [ 33.959447] kasan_report+0xc8/0x118 [ 33.960127] __asan_report_load1_noabort+0x20/0x30 [ 33.960998] kasan_stack_oob+0x230/0x268 [ 33.961610] kunit_try_run_case+0x14c/0x3d0 [ 33.962369] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.963120] kthread+0x24c/0x2d0 [ 33.964128] ret_from_fork+0x10/0x20 [ 33.964707] [ 33.965331] The buggy address belongs to stack of task kunit_try_catch/238 [ 33.966349] and is located at offset 138 in frame: [ 33.967255] kasan_stack_oob+0x0/0x268 [ 33.968051] [ 33.968472] This frame has 4 objects: [ 33.969184] [48, 49) '__assertion' [ 33.969376] [64, 72) 'array' [ 33.969914] [96, 112) '__assertion' [ 33.970423] [128, 138) 'stack_array' [ 33.971237] [ 33.971970] The buggy address belongs to the virtual mapping at [ 33.971970] [ffff800080c20000, ffff800080c29000) created by: [ 33.971970] kernel_clone+0x140/0x788 [ 33.973723] [ 33.974098] The buggy address belongs to the physical page: [ 33.975208] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b61 [ 33.976163] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.977034] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.977921] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.979187] page dumped because: kasan: bad access detected [ 33.979860] [ 33.980222] Memory state around the buggy address: [ 33.980763] ffff800080c27b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.981684] ffff800080c27c00: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 [ 33.982906] >ffff800080c27c80: f2 f2 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 [ 33.983640] ^ [ 33.984351] ffff800080c27d00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 33.985119] ffff800080c27d80: f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 33.985976] ==================================================================
[ 26.826460] ================================================================== [ 26.827685] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2ae/0x300 [ 26.828447] Read of size 1 at addr ffff888102b8fd72 by task kunit_try_catch/257 [ 26.829033] [ 26.829235] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 26.831021] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.831895] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.832712] Call Trace: [ 26.833042] <TASK> [ 26.833326] dump_stack_lvl+0x73/0xb0 [ 26.833726] print_report+0xd1/0x640 [ 26.834893] ? __virt_addr_valid+0x1db/0x2d0 [ 26.835990] ? kasan_addr_to_slab+0x11/0xa0 [ 26.836479] kasan_report+0x102/0x140 [ 26.837155] ? kasan_stack_oob+0x2ae/0x300 [ 26.837962] ? kasan_stack_oob+0x2ae/0x300 [ 26.838479] __asan_report_load1_noabort+0x18/0x20 [ 26.839390] kasan_stack_oob+0x2ae/0x300 [ 26.839605] ? __pfx_kasan_stack_oob+0x10/0x10 [ 26.839824] ? finish_task_switch.isra.0+0x153/0x700 [ 26.840161] ? __switch_to+0x5d9/0xf60 [ 26.841145] ? __schedule+0xc70/0x27e0 [ 26.841542] ? __pfx_read_tsc+0x10/0x10 [ 26.843104] ? ktime_get_ts64+0x86/0x230 [ 26.843550] kunit_try_run_case+0x1b3/0x490 [ 26.844242] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.844896] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.845588] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.846292] ? __kthread_parkme+0x82/0x160 [ 26.846971] ? preempt_count_sub+0x50/0x80 [ 26.847756] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.848685] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.849346] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.849701] kthread+0x257/0x310 [ 26.850166] ? __pfx_kthread+0x10/0x10 [ 26.850594] ret_from_fork+0x41/0x80 [ 26.850898] ? __pfx_kthread+0x10/0x10 [ 26.851415] ret_from_fork_asm+0x1a/0x30 [ 26.852838] </TASK> [ 26.853151] [ 26.853411] The buggy address belongs to stack of task kunit_try_catch/257 [ 26.854763] and is located at offset 138 in frame: [ 26.855258] kasan_stack_oob+0x0/0x300 [ 26.855983] [ 26.856722] This frame has 4 objects: [ 26.857274] [48, 49) '__assertion' [ 26.857352] [64, 72) 'array' [ 26.857628] [96, 112) '__assertion' [ 26.858057] [128, 138) 'stack_array' [ 26.859054] [ 26.859599] The buggy address belongs to the physical page: [ 26.860770] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b8f [ 26.861746] flags: 0x200000000000000(node=0|zone=2) [ 26.862352] raw: 0200000000000000 ffffea00040ae3c8 ffffea00040ae3c8 0000000000000000 [ 26.863016] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 26.864080] page dumped because: kasan: bad access detected [ 26.864792] [ 26.864970] Memory state around the buggy address: [ 26.866022] ffff888102b8fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.866879] ffff888102b8fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 26.867627] >ffff888102b8fd00: f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 02 f3 [ 26.868221] ^ [ 26.869415] ffff888102b8fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 26.870199] ffff888102b8fe00: f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 [ 26.871108] ==================================================================