From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BD2BC433EF for ; Mon, 27 Jun 2022 12:30:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235686AbiF0MaD (ORCPT ); Mon, 27 Jun 2022 08:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232906AbiF0MaC (ORCPT ); Mon, 27 Jun 2022 08:30:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54E3B64D8 for ; Mon, 27 Jun 2022 05:30:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E55C460C66 for ; Mon, 27 Jun 2022 12:30:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01CA7C3411D; Mon, 27 Jun 2022 12:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656333000; bh=bf1hSYJqFeSB0yfJ08Jubf8Nw0Aqq11+gwvcPoJtXvQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YH75glbB7MNamTtykFB8MSGCQKjerYQK/KbwiTVdcbK6+WdcNVT/2hFPX93sQES3x 4MA1ZbJ+flVEeHHidE2+uY5Nbr7QQtDw2Rzx7o/iCNscQ3z5GT8zN+JBh/J/sZIctU XlE8rOGsT3jOH5cEuZSxPATLXiyrdi0daToRpZdg= Date: Mon, 27 Jun 2022 14:29:57 +0200 From: Greg Kroah-Hartman To: Yangxi Xiang Cc: linux-kernel@vger.kernel.org, Jiri Slaby , Johan Hovold , Igor Matheus Andrade Torrente , Christian Borntraeger , nick black Subject: Re: [PATCH] vt: fix memory overlapping when deleting chars in the buffer Message-ID: References: <20220627114016.11114-1-xyangxi5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220627114016.11114-1-xyangxi5@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2022 at 07:40:16PM +0800, Yangxi Xiang wrote: > > And what commit id does this fix, or has it always been broken? > > It fixes the commit 81732c3 (tty vt: Fix line garbage in virtual > console on command line edition). The line buffer is not always > broken, because the memcpy utilized the hardware acceleration, whose > result is not deterministic. I fix this issue by replacing the > scr_memcpyw with scr_memmovew used in insert_char, and preserving the > memcpy optimization when the buffers are not overlapping. Great, can you please resend the patch with that information all in it, and the proper Fixes: line tag added? thanks, greg k-h