Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2481789imd; Fri, 2 Nov 2018 12:09:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5fCwl+AYxMIQtyHkEv+dwCBoB21Sam472ECgYQ2DhKC5HVt82fnb0gCqrHmrBFeHca9qYK1 X-Received: by 2002:a17:902:3fe4:: with SMTP id a91-v6mr12713642pld.295.1541185794826; Fri, 02 Nov 2018 12:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541185794; cv=none; d=google.com; s=arc-20160816; b=UaTZbU+/So9LjKD3yJkUKeOqP916gbxXlc8RBI3n1LaePdkLoGw+MWpop/IKg7RCuF U6UdYoMAtJUvp13qudlNYWpHWQ3shluO2bD/QjDy1dJpAYdvxvPfKVkYK5JnIDayBm/G Zs2EsLZfVDvxPTvkfll8YHwScZnjG4ZBMPjwxJzjcIJnYzOmR7rniboC3DPOt24ufenr 2TclRdQgGExALtstPPWpX8nesjWmgR/IRnBUhMETh98uTpMUXILWIS5ty76n6nlmauHr kZ33F9IzPGGtycqUXwBFAZKC5gYCbNeHRYzUI0DujsnABwiiBnWihT7w46KILLTz3om/ SnPg== 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=9ROH/ITGDSHqjQQPyvecu6ZEjxW5e/H4RNvsI77RxHI=; b=1AWgeWUVWC6emFSodOMIu7S6rFqJrJCTQozmBWrOLROo0nHFBsdo8NuZat+f4UZwzf Ao2MdZZYkimE9grCnVjoID2DcKt3h3Zkcke9tFOqcy2R6lD4VZpe4Pwr1H9N4eivStUf 4zR1AS6HzgUsQOZENHGNXQuKx0uPzJQtBcZDgyns6fSj3j2RiqB1BI7xzGiGMsCKUWa2 NHidDdNPzG6nwNFnZuS9d6ZIta5nOwv+h77uXFHpAy7luwT7ikI7EARENZ1a6eHD2kSV LWA2VqOGqT8qfy38I1YrywaSjmkXYrMqIt/rY+r6hTsZczCLYL+Z07C/2IuFd6f26fu6 xAJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gFnXYr3z; 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 i62-v6si7807424pfi.248.2018.11.02.12.09.40; Fri, 02 Nov 2018 12:09:54 -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=gFnXYr3z; 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 S1728583AbeKCERi (ORCPT + 99 others); Sat, 3 Nov 2018 00:17:38 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:37789 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726051AbeKCERh (ORCPT ); Sat, 3 Nov 2018 00:17:37 -0400 Received: by mail-qk1-f196.google.com with SMTP id 131so4761736qkd.4 for ; Fri, 02 Nov 2018 12:09: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=9ROH/ITGDSHqjQQPyvecu6ZEjxW5e/H4RNvsI77RxHI=; b=gFnXYr3zqGTGXGPBEEOR4pcVPc3k1Ep5tHrGlDfKoxgXeEMs/eb3yMBVj1dISqL6db TOyQ5JAGnoKc+PkTrbE1MiwHq1FF0y5s+bP204/2ZqVYTwxemJTJd1aNLlOeEgylQUiy BmcW3N91K8EXq+mel/VkNsy3wI84VptySIPSw= 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=9ROH/ITGDSHqjQQPyvecu6ZEjxW5e/H4RNvsI77RxHI=; b=J4Jh1W0GbPg/e2Y5tnJZz95QnqQ9wvJiLuJFj//MFy5DY9/nf3m+s2wUVAVe1FefVj sZ1fBvWQCluLQYWLi9sk/kH2YLKlIlY0ZCokbIaXHOb8Kv2D0BpYfGWPOb4BcY2VbqTs hTjq5cxsu5EloO+IApjj//EbCWPri9suskjgzbMWmR5U1s4E83HHZXftuURxrH2xREPN aZLdbv3nWiWufHJmGpcnTI83iVQvve+1N2dGh07wtZYDq8Nvn4QtvBLLid/BsafBYwI7 EE9I0H3MXt7NjFD6i2ainR9AWf31fzVQAQO+oeCVCD3tM4XuGq/fXXSdhFXlmo2DAaUU tt9A== X-Gm-Message-State: AGRZ1gLJmw9ZKZlDJ0QXdFk1Pj17S3gKUzWbrDVTuwCkv5V8r+wYGizu FO5WQr3SD8/pW3eI7n9oDaYdRg== X-Received: by 2002:a37:18e5:: with SMTP id 98mr12055006qky.333.1541185756492; Fri, 02 Nov 2018 12:09: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 j89sm15430503qkh.34.2018.11.02.12.09.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Nov 2018 12:09:15 -0700 (PDT) Date: Fri, 2 Nov 2018 15:09:14 -0400 (EDT) From: Nicolas Pitre To: Greg Kroah-Hartman , Mikulas Patocka cc: 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 Greg, are you picking up this patch? Would be nice to have in v4.19.1. On Tue, 23 Oct 2018, Nicolas Pitre wrote: > 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 */ > > >