Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.039561] ================================================================== [ 34.040745] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x2e4/0x348 [ 34.041574] Read of size 1 at addr ffff800080c27bea by task kunit_try_catch/242 [ 34.042420] [ 34.042912] CPU: 0 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 34.045214] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.045940] Hardware name: linux,dummy-virt (DT) [ 34.046896] Call trace: [ 34.047377] show_stack+0x20/0x38 (C) [ 34.048057] dump_stack_lvl+0x8c/0xd0 [ 34.048734] print_report+0x2fc/0x5e0 [ 34.049393] kasan_report+0xc8/0x118 [ 34.050044] __asan_report_load1_noabort+0x20/0x30 [ 34.051043] kasan_alloca_oob_right+0x2e4/0x348 [ 34.051740] kunit_try_run_case+0x14c/0x3d0 [ 34.052451] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.053197] kthread+0x24c/0x2d0 [ 34.053823] ret_from_fork+0x10/0x20 [ 34.054742] [ 34.055090] The buggy address belongs to stack of task kunit_try_catch/242 [ 34.055917] [ 34.056316] The buggy address belongs to the virtual mapping at [ 34.056316] [ffff800080c20000, ffff800080c29000) created by: [ 34.056316] kernel_clone+0x140/0x788 [ 34.057862] [ 34.058474] The buggy address belongs to the physical page: [ 34.059270] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106b61 [ 34.060191] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.061825] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 34.062787] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 34.063722] page dumped because: kasan: bad access detected [ 34.064361] [ 34.064752] Memory state around the buggy address: [ 34.065435] ffff800080c27a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.066855] ffff800080c27b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.067772] >ffff800080c27b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 34.068599] ^ [ 34.069338] ffff800080c27c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 34.070155] ffff800080c27c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 34.071293] ==================================================================
[ 26.926321] ================================================================== [ 26.927810] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_right+0x328/0x390 [ 26.930030] Read of size 1 at addr ffff888102b97caa by task kunit_try_catch/261 [ 26.932211] [ 26.932531] CPU: 1 UID: 0 PID: 261 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 26.934061] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.934541] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.936162] Call Trace: [ 26.937017] <TASK> [ 26.937894] dump_stack_lvl+0x73/0xb0 [ 26.939328] print_report+0xd1/0x640 [ 26.940192] ? __virt_addr_valid+0x1db/0x2d0 [ 26.940839] ? kasan_addr_to_slab+0x11/0xa0 [ 26.941892] kasan_report+0x102/0x140 [ 26.942712] ? kasan_alloca_oob_right+0x328/0x390 [ 26.943474] ? kasan_alloca_oob_right+0x328/0x390 [ 26.944804] __asan_report_load1_noabort+0x18/0x20 [ 26.945973] kasan_alloca_oob_right+0x328/0x390 [ 26.946988] ? pick_task_fair+0x88/0x390 [ 26.947505] ? __pfx_kasan_alloca_oob_right+0x10/0x10 [ 26.948082] ? trace_hardirqs_on+0x37/0xe0 [ 26.948555] ? __schedule+0x1bdb/0x27e0 [ 26.950866] ? __pfx_read_tsc+0x10/0x10 [ 26.951659] ? ktime_get_ts64+0x86/0x230 [ 26.952047] kunit_try_run_case+0x1b3/0x490 [ 26.952568] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.952880] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 26.953686] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.955786] ? __kthread_parkme+0x82/0x160 [ 26.956333] ? preempt_count_sub+0x50/0x80 [ 26.956798] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.958029] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.958806] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.959383] kthread+0x257/0x310 [ 26.959746] ? __pfx_kthread+0x10/0x10 [ 26.961472] ret_from_fork+0x41/0x80 [ 26.961919] ? __pfx_kthread+0x10/0x10 [ 26.963028] ret_from_fork_asm+0x1a/0x30 [ 26.963516] </TASK> [ 26.963922] [ 26.964255] The buggy address belongs to stack of task kunit_try_catch/261 [ 26.965204] [ 26.965492] The buggy address belongs to the physical page: [ 26.966835] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b97 [ 26.967809] flags: 0x200000000000000(node=0|zone=2) [ 26.968189] raw: 0200000000000000 ffffea00040ae5c8 ffffea00040ae5c8 0000000000000000 [ 26.969119] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 26.970619] page dumped because: kasan: bad access detected [ 26.971076] [ 26.971373] Memory state around the buggy address: [ 26.971806] ffff888102b97b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.973247] ffff888102b97c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 26.973982] >ffff888102b97c80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 26.974793] ^ [ 26.976196] ffff888102b97d00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 26.976924] ffff888102b97d80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 26.977887] ==================================================================