Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3955112pxk; Tue, 29 Sep 2020 10:14:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytRsCakto6M0NrFvYBbPnvu895oPveSs23I8SeOGMQQdmcfpkQ7TDM/kCP+yglsZdQEqMg X-Received: by 2002:a17:906:344e:: with SMTP id d14mr5146605ejb.42.1601399673722; Tue, 29 Sep 2020 10:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601399673; cv=none; d=google.com; s=arc-20160816; b=EbfeerwXlZd3ju6Y0HLXoSx8ySGb/OWSEci2hEzwYCroTP/KB0dwrTfcweIhKYfQVp Zu8q6ql+5U3/bA91TMvGwJGo5y/M/3bTcqVh0v/aLHJ0i+dE/JWcDYzMLKxf80rltKBi Qqg3aP+9xYObJMmNL4o9xiMp1KjpT+RFEhqhnJN4fXS4WQcOYOXHa9Yye1qT29hQ9cOY fJz2zsWBbDYF9RQPgG8TnVfF5f1RRX3wZ5HXpwsL3ZgH9MJfV6phdFpor2OvTHKiMw+h IwUh7ZT0NzFH98nSrdCEkFUKzvflPSuGvU2bKWW+VNVQUAcPTkxDgL7EiT254V2Pst1u 6Mlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=70+LzmKj+G1UlxjGFaamrfbuI/mCn8tyUdy36L+1zEM=; b=UvEEnSN9MvbdpW8aycFEIBt2Wf5v0fhaKxgMMA6luHxO8zcxaTLYlbfUO6RcdZ/ziw zND9M8+oQQ5KRNfq7zJ2Hd4R4XGh3fcA/kSLKWOzGcQPk/wbQe5dbFsdYlHmFWadzBtc 3NvkB5F0vR18QCGbJleXDm3enLskgnn7X4fQXBl1IZKsH/FVjPExZqYtesNEW7LCiLI2 jetgKrwcw3CKzVX/qtV0OS7ZkR+fXSpjErWiZvrSoqYiARrcSOJrZD/voiWR31jMCUGe M0QxFQMRWnn/opJyhAyKtdrYsh+w1jdS5ZNvSPPG98a+QWwB8QSFLSEy6eODwtzMrxnB jThQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GtNtLUhd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bk4si3046545ejb.215.2020.09.29.10.14.09; Tue, 29 Sep 2020 10:14:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=GtNtLUhd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728944AbgI2RKi (ORCPT + 99 others); Tue, 29 Sep 2020 13:10:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:47992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbgI2RKh (ORCPT ); Tue, 29 Sep 2020 13:10:37 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7B8D92071E; Tue, 29 Sep 2020 17:10:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601399435; bh=yeOAgtszboNZyIpMDHULVmYWzcVi/wr1D+owgmOWf8k=; h=Date:From:To:Subject:References:In-Reply-To:From; b=GtNtLUhdCOFNrHB3HGBsskZwghH2wKdL2glg2wSnt59jU03dflxktbsN0j2gVL78z zW7TF/l50z3Eswma+PSi4XZCxh20ZY7vEPIdubOPobJ8wzwZ4vqGTFE4JDVqWi+Jmo XpwXDh5LhsLDzdE/x/R1TVaNDAwRXK9Va8C/2Cr8= Date: Tue, 29 Sep 2020 19:10:40 +0200 From: Greg KH To: Martin Hostettler , Tetsuo Handa , jirislaby@kernel.org, Peilin Ye , syzbot , b.zolnierkie@samsung.com, deller@gmx.de, syzkaller-bugs@googlegroups.com, Linus Torvalds , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, George Kennedy Subject: Re: [PATCH] vt_ioctl: make VT_RESIZEX behave like VT_RESIZE Message-ID: <20200929171040.GB1351851@kroah.com> References: <000000000000226d3f05b02dd607@google.com> <47907f77-b14b-b433-45c6-a315193f0c1a@i-love.sakura.ne.jp> <494395bc-a7dd-fdb1-8196-a236a266ef54@i-love.sakura.ne.jp> <20200927092701.GA1037755@PWN> <4933b81b-9b1a-355b-df0e-9b31e8280ab9@i-love.sakura.ne.jp> <20200928175956.GF24673@neutronstar.dyndns.org> <100dfd3f-3415-80ae-a6cf-30d15f7ca49f@i-love.sakura.ne.jp> <20200929105203.GG24673@neutronstar.dyndns.org> <20200929165657.GS438822@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929165657.GS438822@phenom.ffwll.local> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 06:56:57PM +0200, Daniel Vetter wrote: > On Tue, Sep 29, 2020 at 12:52:03PM +0200, Martin Hostettler wrote: > > On Tue, Sep 29, 2020 at 10:12:46AM +0900, Tetsuo Handa wrote: > > > On 2020/09/29 2:59, Martin Hostettler wrote: > > > > On Sun, Sep 27, 2020 at 08:46:30PM +0900, Tetsuo Handa wrote: > > > >> VT_RESIZEX was introduced in Linux 1.3.3, but it is unclear that what > > > >> comes to the "+ more" part, and I couldn't find a user of VT_RESIZEX. > > > >> > > > > > > > > It seems this is/was used by "svgatextmode" which seems to be at > > > > http://www.ibiblio.org/pub/Linux/utils/console/ > > > > > > > > Not sure if that kind of software still has a chance to work nowadays. > > > > > > > > > > Thanks for the information. > > > > > > It seems that v.v_vlin = curr_textmode->VDisplay / (MOFLG_ISSET(curr_textmode, ATTR_DOUBLESCAN) ? 2 : 1) > > > and v.v_clin = curr_textmode->FontHeight . Thus, v.v_clin is font's height and seems to be non-zero. > > > But according to https://bugs.gentoo.org/19485 , people are using kernel framebuffer instead. > > > > > > > Yes, this seems to be from pre framebuffer times. > > > > Back in the days "svga" was the wording you got for "pokes svga card > > hardware registers from userspace drivers". And textmode means font > > rendering is done via (fixed function in those times) hardware scanout > > engine. Of course having only to update 2 bytes per character was a huge > > saving early on. Likely this is also before vesa VBE was reliable. > > > > So i guess the point where this all starts going wrong allowing the X parts > > of the api to be combined with FB based rendering at all? Sounds the only > > user didn't use that combination and so it was never tested? > > > > Then again, this all relates to hardware from 20 years ago... > > Imo userspace modesetting should be burned down anywhere we can. We've > gotten away with this in drivers/gpu by just seamlessly transitioning to > kernel drivers. > > Since th only userspace we've found seems to be able to cope if this ioctl > doesn't do anything, my vote goes towards ripping it out completely and > doing nothing in there. Only question is whether we should error or fail > with a silent success: Former is safer, latter can avoid a few regression > reports since the userspace tools keep "working", and usually people don't > notice for stuff this old. It worked in drivers/gpu :-) This patch just ignores the ioctl and keeps on going, so userspace "shouldn't" notice it :) And it's in linux-next now, so all should be good. thanks, greg k-h