Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 36.905728] ================================================================== [ 36.907308] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x230/0x268 [ 36.908413] Read of size 1 at addr ffff800080b27cba by task kunit_try_catch/238 [ 36.909265] [ 36.909839] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 36.912093] Tainted: [B]=BAD_PAGE, [N]=TEST [ 36.913196] Hardware name: linux,dummy-virt (DT) [ 36.913980] Call trace: [ 36.914836] show_stack+0x20/0x38 (C) [ 36.915573] dump_stack_lvl+0x8c/0xd0 [ 36.916734] print_report+0x2fc/0x5e0 [ 36.917577] kasan_report+0xc8/0x118 [ 36.918133] __asan_report_load1_noabort+0x20/0x30 [ 36.918833] kasan_stack_oob+0x230/0x268 [ 36.919412] kunit_try_run_case+0x14c/0x3d0 [ 36.920948] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 36.921896] kthread+0x24c/0x2d0 [ 36.922725] ret_from_fork+0x10/0x20 [ 36.923352] [ 36.923788] The buggy address belongs to stack of task kunit_try_catch/238 [ 36.925139] and is located at offset 138 in frame: [ 36.926851] kasan_stack_oob+0x0/0x268 [ 36.927660] [ 36.928133] This frame has 4 objects: [ 36.929471] [48, 49) '__assertion' [ 36.929629] [64, 72) 'array' [ 36.930312] [96, 112) '__assertion' [ 36.931124] [128, 138) 'stack_array' [ 36.931837] [ 36.933329] The buggy address belongs to the virtual mapping at [ 36.933329] [ffff800080b20000, ffff800080b29000) created by: [ 36.933329] kernel_clone+0x140/0x790 [ 36.935037] [ 36.935488] The buggy address belongs to the physical page: [ 36.936185] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106a77 [ 36.938259] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 36.939151] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 36.940080] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 36.941053] page dumped because: kasan: bad access detected [ 36.942964] [ 36.943518] Memory state around the buggy address: [ 36.944181] ffff800080b27b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.945779] ffff800080b27c00: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 [ 36.947039] >ffff800080b27c80: f2 f2 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 [ 36.947963] ^ [ 36.948692] ffff800080b27d00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 36.950351] ffff800080b27d80: f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 36.951358] ==================================================================
[ 27.848501] ================================================================== [ 27.850581] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2ae/0x300 [ 27.851232] Read of size 1 at addr ffff888102ca7d72 by task kunit_try_catch/257 [ 27.851851] [ 27.852089] CPU: 1 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 27.853838] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.854373] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.855165] Call Trace: [ 27.856388] <TASK> [ 27.856698] dump_stack_lvl+0x73/0xb0 [ 27.857333] print_report+0xd1/0x640 [ 27.857688] ? __virt_addr_valid+0x1db/0x2d0 [ 27.858760] ? kasan_addr_to_slab+0x11/0xa0 [ 27.859403] kasan_report+0x102/0x140 [ 27.859762] ? kasan_stack_oob+0x2ae/0x300 [ 27.860643] ? kasan_stack_oob+0x2ae/0x300 [ 27.861931] __asan_report_load1_noabort+0x18/0x20 [ 27.862319] kasan_stack_oob+0x2ae/0x300 [ 27.862710] ? __pfx_kasan_stack_oob+0x10/0x10 [ 27.863063] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 27.864019] ? __pfx_kasan_stack_oob+0x10/0x10 [ 27.864678] kunit_try_run_case+0x1b3/0x490 [ 27.865100] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.866051] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.866576] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.867102] ? __kthread_parkme+0x82/0x160 [ 27.868103] ? preempt_count_sub+0x50/0x80 [ 27.869291] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.869689] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.870612] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.871376] kthread+0x257/0x310 [ 27.872135] ? __pfx_kthread+0x10/0x10 [ 27.872568] ret_from_fork+0x41/0x80 [ 27.872929] ? __pfx_kthread+0x10/0x10 [ 27.873351] ret_from_fork_asm+0x1a/0x30 [ 27.874140] </TASK> [ 27.874472] [ 27.874895] The buggy address belongs to stack of task kunit_try_catch/257 [ 27.875748] and is located at offset 138 in frame: [ 27.876580] kasan_stack_oob+0x0/0x300 [ 27.877529] [ 27.877871] This frame has 4 objects: [ 27.878728] [48, 49) '__assertion' [ 27.878856] [64, 72) 'array' [ 27.879449] [96, 112) '__assertion' [ 27.880237] [128, 138) 'stack_array' [ 27.880713] [ 27.881850] The buggy address belongs to the physical page: [ 27.882813] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ca7 [ 27.883848] flags: 0x200000000000000(node=0|zone=2) [ 27.884595] raw: 0200000000000000 ffffea00040b29c8 ffffea00040b29c8 0000000000000000 [ 27.885698] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 27.886085] page dumped because: kasan: bad access detected [ 27.886706] [ 27.886942] Memory state around the buggy address: [ 27.887419] ffff888102ca7c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.888645] ffff888102ca7c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 27.889066] >ffff888102ca7d00: f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 02 f3 [ 27.890147] ^ [ 27.890943] ffff888102ca7d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 27.891653] ffff888102ca7e00: f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 [ 27.892540] ==================================================================