Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3631101ima; Tue, 23 Oct 2018 08:49:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5ew1vlktOoTH2TY4UaLFM/4fX+//C5Ucy0m9zZWWCMW5BZP7T9BiwitA6MjbW6Ln1I3pRCp X-Received: by 2002:a63:6506:: with SMTP id z6-v6mr7965660pgb.219.1540309764975; Tue, 23 Oct 2018 08:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540309764; cv=none; d=google.com; s=arc-20160816; b=yC+hQZjROmk07RAbZ0lOLCWglqWVycfzsxuaMdPK9aQMle/EKb2RZtzX3fFI98rkV6 KWT5zGWDaasQ3ai5Hk7ZwiAHPp6Z0aEMSuzaqfTykAg4chnbXFRGjUlAe7H71LOQGBd7 yUuMfPp+4GXX1gYsHh85v25yFnHqCTmBtnXjEg8354d+fn2OQgW4B+tORwymOGAwoWD9 KM4i2xpa8ZXE/ZEr+GqBMbLiK164bA6m0b4eonPCYBATGh3/2gB8Q0VFAvQveffSXtci PmH8X5YgIUaknidGsqoY/xR7L1cXe5h3/B520QUfFkOY1RE7O5FZfmfz0fl/T9F8fW9t pDyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=2bgG43hkfEXSDhFAuyoPhUl+ToVc6gvSH9j9/+1KLfA=; b=jZicTGVS21P0AmBpJl+7WYDdyPUYYDJVXgYlc8VPk2LdAmbOiW66D0bOfpZL1THoWs aJ+d2M4ocqQvFYgZSYWL1OvRSN7nBznNsCA8WMT0ov6G9vszXUO9wMgxIJ2zTvumBTEL B/HVpJ0uIC41AWFwaQ0z38fE/tOVJPeB5t8iGJgFbrKEC42u0z/3eGNnzqseSoYyjS7A X0ngxrRP6oH487sZRVcK+rc/IqqOt1udhaJ3CK05ZFTy/zCyYCNmPEwWrc6uz5PrG2JL J4TtcwlCDwDb5GVQCWW5MHAwGw3PIm2KNd/0BL6d7XKEPMPd3B/eJQPM/vRZr1K3dlWT kVKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V4lAKO1z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd9-v6si1591475plb.222.2018.10.23.08.49.08; Tue, 23 Oct 2018 08:49:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V4lAKO1z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728229AbeJXALN (ORCPT + 99 others); Tue, 23 Oct 2018 20:11:13 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:43941 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726277AbeJXALM (ORCPT ); Tue, 23 Oct 2018 20:11:12 -0400 Received: by mail-qk1-f196.google.com with SMTP id m17-v6so1111499qkk.10 for ; Tue, 23 Oct 2018 08:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=2bgG43hkfEXSDhFAuyoPhUl+ToVc6gvSH9j9/+1KLfA=; b=V4lAKO1zGLF1Mbxoi9H/SiF7W/SReJ3ajAR7q1BCf6L0zIFPVBDySW/gUk8fpk7QAm qzpIoeOXGVHIBPlQvSmxhl/6R5ffHNu4EJ9u/j9nwyDs/+YgoODjBReC+tSpz8DdIhwq L7zasPZ60RgTgoDPfA/Uj5chYGYJSgf+GLsRM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=2bgG43hkfEXSDhFAuyoPhUl+ToVc6gvSH9j9/+1KLfA=; b=sj/yirFyqwwRxT7aNi4HRWa2NZ3jQ0ZKZe9jwxoFbHpRSHKvsg6g0tRW8675JyPyNu AXQb8jIUHXGqF3ol6AsXJZeFzXNslBS1RZTKFIQkJKzyLFh20CaSn1k23UUELP3YYrac EJH1Ui7um2qrMuI7dUV69I+7F33ovMf2Ebc7cqNx7V77APCDzrkAM7HTKL2Gx/cn48SC w2SKUXsDP4R8dO7WQaevKeAiXuhFHDTMb7agj5/F+D6dQhLKH2jCtonLDmH5LrkiM3PY sOa8z78gJPorp13bd9ckUNoSc7rKszcvvOg/J2pMnGKYBzfRDy14Ve1f1VQh8+CPs20i UPhA== X-Gm-Message-State: AGRZ1gK//dxCbrtqhmexHiO7JF7hwWFxGGFHRkZNX3qKm+4Jjint+LVj yibeo88Yww+TZ4dxjR3XnUSbyg== X-Received: by 2002:ae9:de01:: with SMTP id s1-v6mr12377490qkf.258.1540309636361; Tue, 23 Oct 2018 08:47:16 -0700 (PDT) Received: from xanadu.home (modemcable228.104-82-70.mc.videotron.ca. [70.82.104.228]) by smtp.gmail.com with ESMTPSA id t35-v6sm1134574qtj.63.2018.10.23.08.47.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 08:47:15 -0700 (PDT) Date: Tue, 23 Oct 2018 11:47:14 -0400 (EDT) From: Nicolas Pitre To: Mikulas Patocka cc: Greg Kroah-Hartman , Dave Mielke , Adam Borowski , Jiri Slaby , linux-kernel@vger.kernel.org Subject: Re: [PATCH] vt: fix broken display when running aptitude In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Oct 2018, Mikulas Patocka wrote: > If you run aptitude on framebuffer console, the display is corrupted. The > corruption is caused by the commit d8ae7242. The patch adds "offset" to > "start" when calling scr_memsetw, but it forgets to do the same addition > on a subsequent call to do_update_region. > > Signed-off-by: Mikulas Patocka > Fixes: d8ae72427187 ("vt: preserve unicode values corresponding to screen characters") > Cc: stable@vger.kernel.org # 4.19 Good catch. Reviewed-by: Nicolas Pitre > --- > drivers/tty/vt/vt.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Index: linux-2.6/drivers/tty/vt/vt.c > =================================================================== > --- linux-2.6.orig/drivers/tty/vt/vt.c 2018-10-23 16:15:08.000000000 +0200 > +++ linux-2.6/drivers/tty/vt/vt.c 2018-10-23 16:29:20.000000000 +0200 > @@ -1551,7 +1551,7 @@ static void csi_K(struct vc_data *vc, in > scr_memsetw(start + offset, vc->vc_video_erase_char, 2 * count); > vc->vc_need_wrap = 0; > if (con_should_update(vc)) > - do_update_region(vc, (unsigned long) start, count); > + do_update_region(vc, (unsigned long)(start + offset), count); > } > > static void csi_X(struct vc_data *vc, int vpar) /* erase the following vpar positions */ >