Date
Dec. 4, 2024, 3:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 35.037004] ================================================================== [ 35.038812] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x2b8/0x310 [ 35.039826] Read of size 1 at addr ffff800080bf7bdf by task kunit_try_catch/239 [ 35.040445] [ 35.041423] CPU: 1 UID: 0 PID: 239 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 35.042857] Tainted: [B]=BAD_PAGE, [N]=TEST [ 35.043471] Hardware name: linux,dummy-virt (DT) [ 35.044940] Call trace: [ 35.045541] show_stack+0x20/0x38 (C) [ 35.046822] dump_stack_lvl+0x8c/0xd0 [ 35.047577] print_report+0x2fc/0x5e0 [ 35.048205] kasan_report+0xc8/0x118 [ 35.048770] __asan_report_load1_noabort+0x20/0x30 [ 35.049461] kasan_alloca_oob_left+0x2b8/0x310 [ 35.050979] kunit_try_run_case+0x14c/0x3d0 [ 35.051528] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 35.052358] kthread+0x24c/0x2d0 [ 35.052925] ret_from_fork+0x10/0x20 [ 35.053501] [ 35.053862] The buggy address belongs to stack of task kunit_try_catch/239 [ 35.054781] [ 35.055134] The buggy address belongs to the virtual mapping at [ 35.055134] [ffff800080bf0000, ffff800080bf9000) created by: [ 35.055134] kernel_clone+0x140/0x788 [ 35.057604] [ 35.058347] The buggy address belongs to the physical page: [ 35.059041] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106709 [ 35.060270] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 35.061134] raw: 0bfffe0000000000 0000000000000000 dead000000000122 0000000000000000 [ 35.062443] raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 [ 35.064237] page dumped because: kasan: bad access detected [ 35.064845] [ 35.065061] Memory state around the buggy address: [ 35.065583] ffff800080bf7a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.067430] ffff800080bf7b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.068044] >ffff800080bf7b80: 00 00 00 00 00 00 00 00 ca ca ca ca 00 02 cb cb [ 35.068862] ^ [ 35.069645] ffff800080bf7c00: cb cb cb cb 00 00 00 00 00 00 f1 f1 f1 f1 01 f2 [ 35.070988] ffff800080bf7c80: 04 f2 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 00 00 [ 35.071822] ==================================================================
[ 25.834534] ================================================================== [ 25.835292] BUG: KASAN: alloca-out-of-bounds in kasan_alloca_oob_left+0x31f/0x380 [ 25.837185] Read of size 1 at addr ffff888102cffc9f by task kunit_try_catch/259 [ 25.837994] [ 25.838211] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241204 #1 [ 25.839426] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.840751] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.841958] Call Trace: [ 25.842285] <TASK> [ 25.842714] dump_stack_lvl+0x73/0xb0 [ 25.843072] print_report+0xd1/0x640 [ 25.843656] ? __virt_addr_valid+0x1db/0x2d0 [ 25.844343] ? kasan_addr_to_slab+0x11/0xa0 [ 25.845152] kasan_report+0x102/0x140 [ 25.847126] ? kasan_alloca_oob_left+0x31f/0x380 [ 25.847828] ? kasan_alloca_oob_left+0x31f/0x380 [ 25.848326] __asan_report_load1_noabort+0x18/0x20 [ 25.849007] kasan_alloca_oob_left+0x31f/0x380 [ 25.849613] ? uclamp_rq_dec_id+0x340/0x460 [ 25.850601] ? __schedule+0xc3e/0x2790 [ 25.851045] ? trace_hardirqs_on+0x37/0xe0 [ 25.851761] ? __pfx_kasan_alloca_oob_left+0x10/0x10 [ 25.852547] ? __schedule+0xc3e/0x2790 [ 25.852997] ? __pfx_read_tsc+0x10/0x10 [ 25.853611] ? ktime_get_ts64+0x86/0x230 [ 25.854197] kunit_try_run_case+0x1b3/0x490 [ 25.854745] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.856146] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.856733] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.857326] ? __kthread_parkme+0x82/0x160 [ 25.858101] ? preempt_count_sub+0x50/0x80 [ 25.858842] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.859509] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.861187] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.861705] kthread+0x257/0x310 [ 25.862110] ? __pfx_kthread+0x10/0x10 [ 25.862478] ret_from_fork+0x41/0x80 [ 25.863269] ? __pfx_kthread+0x10/0x10 [ 25.864139] ret_from_fork_asm+0x1a/0x30 [ 25.864515] </TASK> [ 25.865254] [ 25.865588] The buggy address belongs to stack of task kunit_try_catch/259 [ 25.866066] [ 25.866349] The buggy address belongs to the physical page: [ 25.867272] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cff [ 25.868199] flags: 0x200000000000000(node=0|zone=2) [ 25.869982] raw: 0200000000000000 ffffea00040b3fc8 ffffea00040b3fc8 0000000000000000 [ 25.871156] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 25.871664] page dumped because: kasan: bad access detected [ 25.871978] [ 25.872116] Memory state around the buggy address: [ 25.872612] ffff888102cffb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.874232] ffff888102cffc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.875319] >ffff888102cffc80: ca ca ca ca 00 02 cb cb cb cb cb cb 00 00 00 00 [ 25.876223] ^ [ 25.876782] ffff888102cffd00: 00 f1 f1 f1 f1 01 f2 04 f2 00 f2 f2 f2 00 00 f3 [ 25.877403] ffff888102cffd80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 [ 25.878122] ==================================================================