Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.333663] ================================================================== [ 33.335240] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x230/0x268 [ 33.337309] Read of size 1 at addr ffff800080a67cba by task kunit_try_catch/238 [ 33.338190] [ 33.338638] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 33.340199] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.340799] Hardware name: linux,dummy-virt (DT) [ 33.341652] Call trace: [ 33.342289] show_stack+0x20/0x38 (C) [ 33.343343] dump_stack_lvl+0x8c/0xd0 [ 33.343971] print_report+0x2fc/0x5e0 [ 33.344584] kasan_report+0xc8/0x118 [ 33.345142] __asan_report_load1_noabort+0x20/0x30 [ 33.345721] kasan_stack_oob+0x230/0x268 [ 33.346502] kunit_try_run_case+0x14c/0x3d0 [ 33.347158] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.348221] kthread+0x24c/0x2d0 [ 33.348979] ret_from_fork+0x10/0x20 [ 33.349616] [ 33.350088] The buggy address belongs to stack of task kunit_try_catch/238 [ 33.351353] and is located at offset 138 in frame: [ 33.351990] kasan_stack_oob+0x0/0x268 [ 33.352853] [ 33.353268] This frame has 4 objects: [ 33.353917] [48, 49) '__assertion' [ 33.354063] [64, 72) 'array' [ 33.354572] [96, 112) '__assertion' [ 33.355075] [128, 138) 'stack_array' [ 33.356789] [ 33.357605] The buggy address belongs to the virtual mapping at [ 33.357605] [ffff800080a60000, ffff800080a69000) created by: [ 33.357605] kernel_clone+0x140/0x788 [ 33.359354] [ 33.359794] The buggy address belongs to the physical page: [ 33.360885] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105942 [ 33.361992] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.362839] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 33.363992] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 33.364911] page dumped because: kasan: bad access detected [ 33.365620] [ 33.365971] Memory state around the buggy address: [ 33.366593] ffff800080a67b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.367862] ffff800080a67c00: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 [ 33.368923] >ffff800080a67c80: f2 f2 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 [ 33.369924] ^ [ 33.370596] ffff800080a67d00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 33.371759] ffff800080a67d80: f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 33.372745] ==================================================================
[ 28.643240] ================================================================== [ 28.644464] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2ae/0x300 [ 28.646547] Read of size 1 at addr ffff888102b57d72 by task kunit_try_catch/258 [ 28.647366] [ 28.647840] CPU: 1 UID: 0 PID: 258 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 28.649070] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.649371] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.650649] Call Trace: [ 28.651142] <TASK> [ 28.651420] dump_stack_lvl+0x73/0xb0 [ 28.652146] print_report+0xd1/0x640 [ 28.652465] ? __virt_addr_valid+0x1db/0x2d0 [ 28.652800] ? kasan_addr_to_slab+0x11/0xa0 [ 28.653274] kasan_report+0x102/0x140 [ 28.653988] ? kasan_stack_oob+0x2ae/0x300 [ 28.654728] ? kasan_stack_oob+0x2ae/0x300 [ 28.655366] __asan_report_load1_noabort+0x18/0x20 [ 28.655905] kasan_stack_oob+0x2ae/0x300 [ 28.656327] ? __pfx_kasan_stack_oob+0x10/0x10 [ 28.656742] ? finish_task_switch.isra.0+0x153/0x700 [ 28.657344] ? __switch_to+0x5d9/0xf60 [ 28.658210] ? __schedule+0xc3e/0x2790 [ 28.658487] ? __pfx_read_tsc+0x10/0x10 [ 28.659388] ? ktime_get_ts64+0x86/0x230 [ 28.660216] kunit_try_run_case+0x1b3/0x490 [ 28.660644] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.661124] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.661493] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.661980] ? __kthread_parkme+0x82/0x160 [ 28.662542] ? preempt_count_sub+0x50/0x80 [ 28.662822] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.663795] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.664361] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.665370] kthread+0x257/0x310 [ 28.665744] ? __pfx_kthread+0x10/0x10 [ 28.666049] ret_from_fork+0x41/0x80 [ 28.666455] ? __pfx_kthread+0x10/0x10 [ 28.667397] ret_from_fork_asm+0x1a/0x30 [ 28.667840] </TASK> [ 28.668111] [ 28.668455] The buggy address belongs to stack of task kunit_try_catch/258 [ 28.670084] and is located at offset 138 in frame: [ 28.670459] kasan_stack_oob+0x0/0x300 [ 28.671208] [ 28.671411] This frame has 4 objects: [ 28.671891] [48, 49) '__assertion' [ 28.671967] [64, 72) 'array' [ 28.672360] [96, 112) '__assertion' [ 28.672745] [128, 138) 'stack_array' [ 28.673184] [ 28.673615] The buggy address belongs to the physical page: [ 28.674304] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b57 [ 28.675262] flags: 0x200000000000000(node=0|zone=2) [ 28.675751] raw: 0200000000000000 ffffea00040ad5c8 ffffea00040ad5c8 0000000000000000 [ 28.676621] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 28.677102] page dumped because: kasan: bad access detected [ 28.677689] [ 28.678855] Memory state around the buggy address: [ 28.679371] ffff888102b57c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.680131] ffff888102b57c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.680805] >ffff888102b57d00: f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 02 f3 [ 28.681886] ^ [ 28.682490] ffff888102b57d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.683117] ffff888102b57e00: f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 [ 28.684373] ==================================================================