Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 50.672279] ================================================================== [ 50.674582] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x230/0x268 [ 50.675456] Read of size 1 at addr ffff800080a47cba by task kunit_try_catch/238 [ 50.676788] [ 50.677279] CPU: 1 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 50.678710] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.679485] Hardware name: linux,dummy-virt (DT) [ 50.680176] Call trace: [ 50.680584] show_stack+0x20/0x38 (C) [ 50.681416] dump_stack_lvl+0x8c/0xd0 [ 50.681981] print_report+0x2fc/0x5e0 [ 50.682511] kasan_report+0xc8/0x118 [ 50.683097] __asan_report_load1_noabort+0x20/0x30 [ 50.683828] kasan_stack_oob+0x230/0x268 [ 50.684453] kunit_try_run_case+0x14c/0x3d0 [ 50.685362] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.686152] kthread+0x24c/0x2d0 [ 50.686719] ret_from_fork+0x10/0x20 [ 50.687350] [ 50.687739] The buggy address belongs to stack of task kunit_try_catch/238 [ 50.688730] and is located at offset 138 in frame: [ 50.689730] kasan_stack_oob+0x0/0x268 [ 50.690491] [ 50.690900] This frame has 4 objects: [ 50.691747] [48, 49) '__assertion' [ 50.691887] [64, 72) 'array' [ 50.692386] [96, 112) '__assertion' [ 50.692827] [128, 138) 'stack_array' [ 50.693488] [ 50.694117] The buggy address belongs to the virtual mapping at [ 50.694117] [ffff800080a40000, ffff800080a49000) created by: [ 50.694117] kernel_clone+0x140/0x788 [ 50.696322] [ 50.696883] The buggy address belongs to the physical page: [ 50.697897] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1061b4 [ 50.698921] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.700003] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 50.701003] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 50.701880] page dumped because: kasan: bad access detected [ 50.702863] [ 50.703356] Memory state around the buggy address: [ 50.704168] ffff800080a47b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 50.705236] ffff800080a47c00: 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 01 f2 00 f2 [ 50.706578] >ffff800080a47c80: f2 f2 00 00 f2 f2 00 02 f3 f3 00 00 00 00 00 00 [ 50.707527] ^ [ 50.708321] ffff800080a47d00: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 50.709432] ffff800080a47d80: f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 50.710412] ==================================================================
[ 28.045574] ================================================================== [ 28.047228] BUG: KASAN: stack-out-of-bounds in kasan_stack_oob+0x2ae/0x300 [ 28.048482] Read of size 1 at addr ffff888102d4fd72 by task kunit_try_catch/257 [ 28.049647] [ 28.049827] CPU: 0 UID: 0 PID: 257 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 28.051493] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.051897] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.052903] Call Trace: [ 28.053470] <TASK> [ 28.053713] dump_stack_lvl+0x73/0xb0 [ 28.054599] print_report+0xd1/0x640 [ 28.055158] ? __virt_addr_valid+0x1db/0x2d0 [ 28.055585] ? kasan_addr_to_slab+0x11/0xa0 [ 28.056218] kasan_report+0x102/0x140 [ 28.056693] ? kasan_stack_oob+0x2ae/0x300 [ 28.057187] ? kasan_stack_oob+0x2ae/0x300 [ 28.057716] __asan_report_load1_noabort+0x18/0x20 [ 28.058672] kasan_stack_oob+0x2ae/0x300 [ 28.059166] ? __pfx_kasan_stack_oob+0x10/0x10 [ 28.059657] ? finish_task_switch.isra.0+0x153/0x700 [ 28.060438] ? __switch_to+0x5d9/0xf60 [ 28.060829] ? __schedule+0xc3e/0x2790 [ 28.061469] ? __pfx_read_tsc+0x10/0x10 [ 28.061858] ? ktime_get_ts64+0x84/0x230 [ 28.062775] kunit_try_run_case+0x1b3/0x490 [ 28.063600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.063966] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.064652] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.065243] ? __kthread_parkme+0x82/0x160 [ 28.065725] ? preempt_count_sub+0x50/0x80 [ 28.066230] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.067053] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.067858] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.068396] kthread+0x257/0x310 [ 28.069089] ? __pfx_kthread+0x10/0x10 [ 28.069381] ret_from_fork+0x41/0x80 [ 28.069873] ? __pfx_kthread+0x10/0x10 [ 28.070426] ret_from_fork_asm+0x1a/0x30 [ 28.071041] </TASK> [ 28.071601] [ 28.072044] The buggy address belongs to stack of task kunit_try_catch/257 [ 28.073020] and is located at offset 138 in frame: [ 28.073671] kasan_stack_oob+0x0/0x300 [ 28.074482] [ 28.074934] This frame has 4 objects: [ 28.075914] [48, 49) '__assertion' [ 28.076452] [64, 72) 'array' [ 28.076777] [96, 112) '__assertion' [ 28.077120] [128, 138) 'stack_array' [ 28.077506] [ 28.078676] The buggy address belongs to the physical page: [ 28.079325] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d4f [ 28.080614] flags: 0x200000000000000(node=0|zone=2) [ 28.081107] raw: 0200000000000000 ffffea00040b53c8 ffffea00040b53c8 0000000000000000 [ 28.081822] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 28.082833] page dumped because: kasan: bad access detected [ 28.083593] [ 28.083844] Memory state around the buggy address: [ 28.084686] ffff888102d4fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.085683] ffff888102d4fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.086740] >ffff888102d4fd00: f1 f1 f1 01 f2 00 f2 f2 f2 00 00 f2 f2 00 02 f3 [ 28.087531] ^ [ 28.088497] ffff888102d4fd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 28.089113] ffff888102d4fe00: f1 00 00 f2 f2 00 00 f2 f2 00 00 f3 f3 00 00 00 [ 28.089697] ==================================================================