Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp523383imu; Thu, 20 Dec 2018 00:34:11 -0800 (PST) X-Google-Smtp-Source: AFSGD/VgMoCuQwTxi+Uhe1rKN9HVGlEc95ajMisCUhSAs/iSHv6H5mb2wI9neCWKAzq9Ih4arBJm X-Received: by 2002:a62:520b:: with SMTP id g11mr23785951pfb.53.1545294851202; Thu, 20 Dec 2018 00:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545294851; cv=none; d=google.com; s=arc-20160816; b=q329Tpclhy/xvJ8nSbrfp2d/P8chCH+lktad/BAAEI5p2F2FJh2f9OTB4KUryD8ils TQGuVYwAz6+/KyIYUlCIKswg1OYQMlSJ6n0npQp4hSy4imH6e6H1sZoDYcZW2WFmycn4 BX6JvRNZLXU9biFvfEmF2o+yvsK9N5e7eQcg4Tl4gUSOKVRvXsb1ugYdKeFkMzQW7aUL mP8Iopmtk4Jhm+DQh7GAuDq4WOSa+4OSquRXqjwPN2dUDTADv2K+RKJWEIc8Fp3R97KC QJDUwo7pAHO5Vn/U8phP4TxqDR3Uakp/f9Sgke2S9O0yXNR8qBy+uWKrQEiJyKy2VzVy yEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PUxKvZ3nRgpmAu1KIWw+9VlfqH/pgkRRGLhzZ72s44c=; b=jzd9EiZkLUfayIm5kezdPdajOB4e654JJAv7v6SKXsWTLTGUcSf4AwZStZaXIn3Ye0 SrLdj3/NArJIf4/C1oQNO48hVT8rjKIrDTLnhzvS0tGi1NuLaM17A8uc34oTe9Dw6Our u8EzuRtrJBA45TGm9Uhh8Yr6l+kuUvo+Vk8+TQsKhoXO2Lw03tZBejChlL4oE8aJwxST Lp7FQRswsBhbMuekeULXN/vLjyE0NwFzeYwOUWxUIaWNzTjCt39gfLsUq1DxPe1ZMOwW SMnGl+QPufg8A8pHIo06Gra17gROl+Ru7CUxaxATUz5td8H4bWQONDcPElEFH+7gkpZj kMwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VfS72XQz; 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 n5si16170439pgl.485.2018.12.20.00.33.55; Thu, 20 Dec 2018 00:34:11 -0800 (PST) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VfS72XQz; 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 S1730884AbeLTIYT (ORCPT + 99 others); Thu, 20 Dec 2018 03:24:19 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:38748 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730872AbeLTIYR (ORCPT ); Thu, 20 Dec 2018 03:24:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PUxKvZ3nRgpmAu1KIWw+9VlfqH/pgkRRGLhzZ72s44c=; b=VfS72XQzNGnbcX9kKklRID8m0 TXLbYVpMT6viemKcEHkxIJphTLCgxdIfp1zU2hPAGi65580Z+yNaX9DtbTVGmW9//y7lDCjfvzIdu uuhnqnTbKiAjmYicfOjPqWndFcdl9LYyMtShr5jQYQTBdKWsN51dR3eIt3JKYZ9l7DSn6K6rbSc2d DDDRxrm1Sq28nhcP+AEiXh/ET/iaGV0hYJc5CgI6DCXhcWNfFXbC7rxDRmZVK37lvSCbUUqtMHEki 5OKSfkY8rzJyaVQxT/Q+SyZJgRFV8twYDl3RY9jmWPVyzWPEjraIBLLx1SXhmecb1POHqLvHf69mg UsR4J7BNA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZtch-0006zW-DQ; Thu, 20 Dec 2018 08:24:03 +0000 Date: Thu, 20 Dec 2018 00:24:03 -0800 From: Christoph Hellwig To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/8xx: Map a second 8M text page at startup when needed. Message-ID: <20181220082403.GA25436@infradead.org> References: <27edd227d3b9dcda4e2ce7d00d9fddeb7a5520a1.1545241146.git.christophe.leroy@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27edd227d3b9dcda4e2ce7d00d9fddeb7a5520a1.1545241146.git.christophe.leroy@c-s.fr> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 20, 2018 at 05:48:25AM +0000, Christophe Leroy wrote: > Some debug setup like CONFIG_KASAN generate huge > kernels with text size over the 8M limit. > > This patch maps a second 8M page when _einittext is over 8M. Do we also need a check to generate a useful warning if we ever overflow the 16MB?