Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3358235ybb; Tue, 31 Mar 2020 03:42:34 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvPfgHByLS0U5dCL6w4Ablw2tmgZpZcJ7WRFoBwZ9jTIX8J5QSqXBP78plLXUacjWDb1Eaf X-Received: by 2002:a4a:880a:: with SMTP id d10mr12661216ooi.47.1585651354803; Tue, 31 Mar 2020 03:42:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585651354; cv=none; d=google.com; s=arc-20160816; b=K3KPUnZgayo2ywDcqV2O2qmqV82AEhzbbVwew3Wxm5PTZenkkYFYB0lgdhfa64rfj7 WC905KiAaqq47lS9LU0qc7lferMtnIzgtcucJSGGBEdPLyKuoQdo2tkqoQUWS9ZWvIoT cT90JItrjOF1UzAthS7CAcUzHVZfVTMwuZCY4sne39FfvDgsx/RkDuiwNps/YgkZBETr pdv3x1YePtDdcdI6VjwbfZEletcPcpy/gVaXIS7MWFHiY51DzUid/H4RehKHxMKAo9+m ABynBlSRCHIpGB+ut5sropB6qpHV25KAVaVgU2mi23FDk+XTE9srhMVckFsEuS39ONSP nZ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IFtGj4hH22W8HjSL4gn9phRDHS9pVHR8phmFbZ8youE=; b=dYZdepoSNpz1UV32InYw4SgZSCo9aptxehKnju9b0CtztNBgWFj0HPeIgr5MfwZyZS rfzkJPowtoogDJlokBAGVEua7Me/1e/DXCZoveJT4KSHDNDmpI/8yneDX9EcQHtqY6+8 IiAPwJ4PqNqyiIpv2MpGCGAWjZgFvpyQ1Eq0ykUn4LpnhdEbLNhEsbLx8PvdKBU0Yl9U U/odE2tAzZY9rgq6vME4c/o4SAsh+fTl9rmG8bTSIlxhTiIiECCteQ8yYmcvjKJHyLUW Z7e8rDQzIgyCAR7OV88DWsHoJB9iPm4qkYgLpFXZLgA0coXmYaEKSLss/kBMmur38qkO 1shg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="m7Zg/zvT"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si4666902otq.184.2020.03.31.03.42.23; Tue, 31 Mar 2020 03:42:34 -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=@kernel.org header.s=default header.b="m7Zg/zvT"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730306AbgCaKmA (ORCPT + 99 others); Tue, 31 Mar 2020 06:42:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:41204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729925AbgCaKmA (ORCPT ); Tue, 31 Mar 2020 06:42:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 5338F20772; Tue, 31 Mar 2020 10:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585651319; bh=imsnPA4JCAInhZuF+6cN29LP+UEQkzirwfry5AqSjoM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=m7Zg/zvTMTOmfZtJP1ZYyyktkLVY0CSxepy30ZLypgvHM4DsTyFltOlU/RhRm4f/x 1Oicim8UmkM2ZBnl2BUabChT+WRYIjnoExzKnyfuS2gG1dma3NnIFmQVyPhtDgp/em KJ2zxOOkRZ73azXNHt9/6bZtZOnssh+mAHDsZAjo= Date: Tue, 31 Mar 2020 11:30:41 +0200 From: Greg KH To: Daniel Vetter Cc: Sam Ravnborg , Nicolas Pitre , Chen Wandun , Adam Borowski , Jiri Slaby , Bartlomiej Zolnierkiewicz , Lukas Wunner , ghalat@redhat.com, Linux Kernel Mailing List Subject: Re: [PATCH v2] vt: don't use kmalloc() for the unicode screen buffer Message-ID: <20200331093041.GA1199411@kroah.com> References: <20200330190759.GE7594@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 10:43:11AM +0200, Daniel Vetter wrote: > On Mon, Mar 30, 2020 at 9:08 PM Sam Ravnborg wrote: > > > > Hi Nicolas > > > > On Sat, Mar 28, 2020 at 10:25:11PM -0400, Nicolas Pitre wrote: > > > Even if the actual screen size is bounded in vc_do_resize(), the unicode > > > buffer is still a little more than twice the size of the glyph buffer > > > and may exceed MAX_ORDER down the kmalloc() path. This can be triggered > > > from user space. > > > > > > Since there is no point having a physically contiguous buffer here, > > > let's avoid the above issue as well as reducing pressure on high order > > > allocations by using vmalloc() instead. > > > > > > Signed-off-by: Nicolas Pitre > > > Cc: > > > > > > --- > > > > > > Changes since v1: > > > > > > - Added missing include, found by kbuild test robot. > > > Strange that my own build doesn't complain. > > > > When I did the drmP.h removal vmalloc was one of the header files > > that turned up missing in many cases - but only for some architectures. > > I learned to include alpha in the build. > > If it survived building for alpha then I had fixed the majority > > of the issues related to random inherited includes. > > > > The patch itself looks good. > > > > Acked-by: Sam Ravnborg > > Greg, I'm assuming you'll pick this up through the tty tree? I kinda > want to stop the habit of merging vt patches, maybe then > get_maintainers will stop thinking I'm responsible somehow :-) Yes, I'll take it, and have been taking vt patches for a few releases now so don't worry, you aren't responsible anymore :) thanks, greg k-h