Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 36.842110] ================================================================== [ 36.843941] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x230/0x270 [ 36.845795] Read of size 1 at addr ffffa3d12e0d906d by task kunit_try_catch/234 [ 36.847297] [ 36.847839] CPU: 0 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 36.849521] Tainted: [B]=BAD_PAGE, [N]=TEST [ 36.851025] Hardware name: linux,dummy-virt (DT) [ 36.851813] Call trace: [ 36.852498] show_stack+0x20/0x38 (C) [ 36.853465] dump_stack_lvl+0x8c/0xd0 [ 36.854393] print_report+0x2fc/0x5e0 [ 36.855113] kasan_report+0xc8/0x118 [ 36.855650] __asan_report_load1_noabort+0x20/0x30 [ 36.856400] kasan_global_oob_right+0x230/0x270 [ 36.857362] kunit_try_run_case+0x14c/0x3d0 [ 36.857925] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 36.860186] kthread+0x24c/0x2d0 [ 36.861039] ret_from_fork+0x10/0x20 [ 36.861965] [ 36.862433] The buggy address belongs to the variable: [ 36.863242] global_array+0xd/0x40 [ 36.863865] [ 36.864739] The buggy address belongs to the virtual mapping at [ 36.864739] [ffffa3d12c420000, ffffa3d12e191000) created by: [ 36.864739] paging_init+0x668/0x7c8 [ 36.867376] [ 36.868382] The buggy address belongs to the physical page: [ 36.870024] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x478d9 [ 36.871039] flags: 0x3fffe0000002000(reserved|node=0|zone=0|lastcpupid=0x1ffff) [ 36.872243] raw: 03fffe0000002000 ffffc1ffc01e3648 ffffc1ffc01e3648 0000000000000000 [ 36.873954] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 36.875116] page dumped because: kasan: bad access detected [ 36.876029] [ 36.876728] Memory state around the buggy address: [ 36.877815] ffffa3d12e0d8f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.879884] ffffa3d12e0d8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.881137] >ffffa3d12e0d9000: 00 00 00 00 02 f9 f9 f9 f9 f9 f9 f9 00 02 f9 f9 [ 36.882218] ^ [ 36.883612] ffffa3d12e0d9080: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 04 f9 f9 f9 [ 36.885086] ffffa3d12e0d9100: f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 [ 36.886062] ==================================================================
[ 27.798500] ================================================================== [ 27.800178] BUG: KASAN: global-out-of-bounds in kasan_global_oob_right+0x288/0x2d0 [ 27.800911] Read of size 1 at addr ffffffff8affbc2d by task kunit_try_catch/253 [ 27.801732] [ 27.802291] CPU: 1 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 27.803533] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.803788] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.804600] Call Trace: [ 27.805280] <TASK> [ 27.805582] dump_stack_lvl+0x73/0xb0 [ 27.805947] print_report+0xd1/0x640 [ 27.806725] ? __virt_addr_valid+0x1db/0x2d0 [ 27.807411] ? kasan_addr_to_slab+0x11/0xa0 [ 27.808158] kasan_report+0x102/0x140 [ 27.808596] ? kasan_global_oob_right+0x288/0x2d0 [ 27.809547] ? kasan_global_oob_right+0x288/0x2d0 [ 27.810462] __asan_report_load1_noabort+0x18/0x20 [ 27.811196] kasan_global_oob_right+0x288/0x2d0 [ 27.811722] ? __pfx_kasan_global_oob_right+0x10/0x10 [ 27.812138] ? __schedule+0xc3e/0x2790 [ 27.813172] ? __pfx_read_tsc+0x10/0x10 [ 27.813481] ? ktime_get_ts64+0x84/0x230 [ 27.814556] kunit_try_run_case+0x1b3/0x490 [ 27.815147] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.815783] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 27.816208] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.816675] ? __kthread_parkme+0x82/0x160 [ 27.817069] ? preempt_count_sub+0x50/0x80 [ 27.817936] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.819174] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.819742] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.820930] kthread+0x257/0x310 [ 27.821184] ? __pfx_kthread+0x10/0x10 [ 27.821446] ret_from_fork+0x41/0x80 [ 27.821990] ? __pfx_kthread+0x10/0x10 [ 27.822507] ret_from_fork_asm+0x1a/0x30 [ 27.823054] </TASK> [ 27.823245] [ 27.823658] The buggy address belongs to the variable: [ 27.824527] global_array+0xd/0x40 [ 27.825198] [ 27.825493] The buggy address belongs to the physical page: [ 27.826619] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1123fb [ 27.827794] flags: 0x200000000002000(reserved|node=0|zone=2) [ 27.828660] raw: 0200000000002000 ffffea000448fec8 ffffea000448fec8 0000000000000000 [ 27.829436] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 27.830059] page dumped because: kasan: bad access detected [ 27.830623] [ 27.830840] Memory state around the buggy address: [ 27.831425] ffffffff8affbb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.832064] ffffffff8affbb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.833154] >ffffffff8affbc00: 00 00 00 00 00 02 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 [ 27.833528] ^ [ 27.834188] ffffffff8affbc80: f9 f9 f9 f9 04 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 [ 27.835094] ffffffff8affbd00: f9 f9 f9 f9 02 f9 f9 f9 f9 f9 f9 f9 01 f9 f9 f9 [ 27.835765] ==================================================================