Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp335413pxk; Wed, 23 Sep 2020 04:43:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZz+6LJDhWNYREg0XKbWVqi8stWimaWukRMzRQaq6mek+3CV+7ge9vCspAxKeixbgnCz6N X-Received: by 2002:a05:6402:3c8:: with SMTP id t8mr9020555edw.266.1600861396687; Wed, 23 Sep 2020 04:43:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600861396; cv=none; d=google.com; s=arc-20160816; b=W3GkdCeB2G/rkXo7kwW67yH45gbgYTHcYEYyRjNfhYK3Vvw0xos0RixscrAvI9DDJi abmh9L8MIoqGD/+Oftj3i0W5LGpE00N6fvvtVJeNqCVEi5Z02rdU7t+1ZUC2OC3T9uLE c42IZjtDpe1P/seSa5wdsXejN6fJxbECTNZuMxTw/6W3Bff5n+GZMxqPtsTDzVhdsAd1 wbxHaBMRYxTLMJ7aM6+2TmO9VurumnkFGASyUO9YS/MtU3/C2o+n+khXG5HLuII9UxQu V5BhUi1ByCQusTq5Qf624KFE4XaiW9eHF79lBWNmjYAKbUo60iqwUShFRX70STb540I7 A43A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=MyhWSKI7P9PH7QTdV0uhz3dYusx6KMF3h1VunK34HVw=; b=BqYg7USHRuJD/Vz96F0EndnJbY2sLwV77QWd3B/Y6mqZUKpz7LkFuzJzZ/o6fMJkMm SHa8tY+Hy2wlvDqHwh4qohb0rmok2JqC2rNN1Y9K/S7yQrZPCVwFYPMh7PGqliKhbxTs 0HY69StjLuuIlGle0R5cWRte/VO0tI+Akb5kiSQFJgADfaCfhe/jIAvjUNFFzI3Rzgvn ibc/FMG6lQmqVB8RVVsAv2Q8YaxK5dusRosP0A5k4l23vSdSHPsiAm3yayjkg9O/exEl EZF9i/+RJ2Gsb/eCvjLB568iuXEu4kxRi7vX243L0NLJ9xwz+Vmrxq2wTKgY46dfL4Gm 1sBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si12654094ejb.225.2020.09.23.04.42.52; Wed, 23 Sep 2020 04:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726526AbgIWLjS (ORCPT + 99 others); Wed, 23 Sep 2020 07:39:18 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:34882 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgIWLjR (ORCPT ); Wed, 23 Sep 2020 07:39:17 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 3F1BC1C0BB3; Wed, 23 Sep 2020 13:39:15 +0200 (CEST) Date: Wed, 23 Sep 2020 13:39:14 +0200 From: Pavel Machek To: Linus Torvalds Cc: Linux Kernel Mailing List Subject: fbcon scrollback broken was Re: Linux 5.9-rc6 Message-ID: <20200923113914.GA18149@duo.ucw.cz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The one thing that does show up in the diffstat is the softscroll > removal (both fbcon and vgacon), and there are people who want to save > that, but we'll see if some maintainer steps up. I'm not willing to > resurrect it in the broken form it was in, so I doubt that will happen > in 5.9, but we'll see what happens. Could you... like try not to make the job harder by merging miriad of "let's kill the documentation" patches? I needed the feature twice already this month, once during fsck, and then five minutes ago, when oops scrolled by me during system shutdown. Unfortunately, shift-pageup was not available to take a look what is going on there. Unfortunately, Greg backported your "fix" to all the stable releases, so resulting damage will not be easy to repair. For the record, making the security problem unexploitable should be as simple as patch below. Unfortunately, Linus' changelog does not exactly tell me what all the known problems are. Willy Tarreau pointed me to https://www.openwall.com/lists/oss-security/2020/09/15/2 , which has some information, but all I can reproduce are transient screen artefacts. If someone has more detailed information, that would be helpful. Best regards, Pavel diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 19cd4a4b1939..cb2d3e7eeac8 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -3211,6 +3212,9 @@ int tioclinux(struct tty_struct *tty, unsigned long a= rg) ret =3D fg_console; break; case TIOCL_SCROLLCONSOLE: + ret =3D -EPERM; + break; + =20 if (get_user(lines, (s32 __user *)(p+4))) { ret =3D -EFAULT; } else { --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2sz4gAKCRAw5/Bqldv6 8o95AJ9Lf7Gsm80W0HzA9xnppbRKIaZH4ACgjZaGBXrzHpn3ExarPgEGnQVTRg0= =IkHg -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--