Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 36.962400] ================================================================== [ 36.963616] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 36.964421] Read of size 1 at addr ffff800080b57bdf by task kunit_try_catch/240 [ 36.965624] [ 36.966080] CPU: 0 UID: 0 PID: 240 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 36.968119] Tainted: [B]=BAD_PAGE, [N]=TEST [ 36.969718] Hardware name: linux,dummy-virt (DT) [ 36.970264] Call trace: [ 36.970764] show_stack+0x20/0x38 (C) [ 36.971260] dump_stack_lvl+0x8c/0xd0 [ 36.971971] print_report+0x2fc/0x5e0 [ 36.972606] kasan_report+0xc8/0x118 [ 36.973149] __asan_report_load1_noabort+0x20/0x30 [ 36.973934] kasan_alloca_oob_left+0x2b8/0x310 [ 36.974680] kunit_try_run_case+0x14c/0x3d0 [ 36.975400] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 36.976092] kthread+0x24c/0x2d0 [ 36.976728] ret_from_fork+0x10/0x20 [ 36.977287] [ 36.977665] The buggy address belongs to stack of task kunit_try_catch/240 [ 36.978541] [ 36.978914] The buggy address belongs to the virtual mapping at [ 36.978914] [ffff800080b50000, ffff800080b59000) created by: [ 36.978914] kernel_clone+0x140/0x790 [ 36.980742] [ 36.981262] The buggy address belongs to the physical page: [ 36.981868] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106a56 [ 36.983076] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 36.983888] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 36.984938] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 36.986061] page dumped because: kasan: bad access detected [ 36.986888] [ 36.987219] Memory state around the buggy address: [ 36.987818] ffff800080b57a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.988726] ffff800080b57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.989714] >ffff800080b57b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 36.990693] ^ [ 36.991588] ffff800080b57c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 36.992467] ffff800080b57c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 36.993347] ==================================================================
[ 27.899335] ================================================================== [ 27.900420] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380 [ 27.901320] Read of size 1 at addr ffff888102d77c9f by task kunit_try_catch/259 [ 27.903261] [ 27.903530] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 27.905022] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.905976] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.906694] Call Trace: [ 27.906970] <TASK> [ 27.907259] dump_stack_lvl+0x73/0xb0 [ 27.908184] print_report+0xd1/0x640 [ 27.909027] ? __virt_addr_valid+0x1db/0x2d0 [ 27.909673] ? kasan_addr_to_slab+0x11/0xa0 [ 27.910657] kasan_report+0x102/0x140 [ 27.910979] ? kasan_alloca_oob_left+0x31f/0x380 [ 27.911258] ? kasan_alloca_oob_left+0x31f/0x380 [ 27.911798] __asan_report_load1_noabort+0x18/0x20 [ 27.912845] kasan_alloca_oob_left+0x31f/0x380 [ 27.913540] ? __pfx_trace_event_raw_event_ipi_raise+0x10/0x10 [ 27.914611] ? __schedule+0xc3e/0x2790 [ 27.914921] ? trace_hardirqs_on+0x37/0xe0 [ 27.915506] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 27.916391] ? __schedule+0xc3e/0x2790 [ 27.916666] ? __pfx_read_tsc+0x10/0x10 [ 27.917584] ? ktime_get_ts64+0x84/0x230 [ 27.918344] kunit_try_run_case+0x1b3/0x490 [ 27.918710] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.919283] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.920555] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.921538] ? __kthread_parkme+0x82/0x160 [ 27.922083] ? preempt_count_sub+0x50/0x80 [ 27.922518] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.922988] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.923883] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.924610] kthread+0x257/0x310 [ 27.925229] ? __pfx_kthread+0x10/0x10 [ 27.926111] ret_from_fork+0x41/0x80 [ 27.926596] ? __pfx_kthread+0x10/0x10 [ 27.927469] ret_from_fork_asm+0x1a/0x30 [ 27.928165] </TASK> [ 27.928895] [ 27.929171] The buggy address belongs to stack of task kunit_try_catch/259 [ 27.929931] [ 27.930108] The buggy address belongs to the physical page: [ 27.931140] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d77 [ 27.931853] flags: 0x200000000000000(node=0|zone=2) [ 27.932790] raw: 0200000000000000 ffffea00040b5dc8 ffffea00040b5dc8 0000000000000000 [ 27.934496] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 27.935083] page dumped because: kasan: bad access detected [ 27.935595] [ 27.935768] Memory state around the buggy address: [ 27.936695] ffff888102d77b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.937723] ffff888102d77c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.938253] >ffff888102d77c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 27.939024] ^ [ 27.939501] ffff888102d77d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 27.940021] ffff888102d77d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 27.940789] ==================================================================