Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5854176yba; Mon, 13 May 2019 19:27:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKy9uNcXhgzJw0FHfb/jnaFvvUeocF0e9PcfbcOn4Nodh/M7cbFbGM27PgjEaM3uPYl4jC X-Received: by 2002:a62:386:: with SMTP id 128mr12217036pfd.10.1557800866002; Mon, 13 May 2019 19:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557800865; cv=none; d=google.com; s=arc-20160816; b=TC3tXXt7QVFextMAViBA3oxTeTPfZ2u7Q28xF/vyPyD1DezCuWEA1sLpFKhqPlkAmV SNJmweZhhNt3TjNnIZryO2et8gPXCHcpy1i15dYsKDzbn7J4JB18CCXmnpjqy1CrT5PU eQHHpzoOvhlPho+RtxFZFBXINKPMqtdy5vzVzW2+Hz1XOOmUFS/eymFiIWs1zMKOpVyT xkOhbHvSKjvrjpTAS00eKU3XMQd5piC91V0LYESnDdZpoYDinmB8EcLJHiArxqPxEGMA J+XggHDxQl3x8sYmy6Y/VP/r2zpqTMiXgPKbD5k9cQcl1MthyxH/e7NMQRzpuG/M6rXo ijNA== 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=Zi4wszV1L43AeLT0Z8PIOWy38tTYuSZF/HdHyWxecsY=; b=1KCUo4M8L5yEsULtfVBtSsVBNNFUgcXkH/JL1uEMzrZreG5jXgu0nS2M8yEzUdnQY0 p5UZDhn9jrAda5TGpqL6e2I/tt3HrmuWUDwqfmWGtDALX0MIWFih8faCNg152zUVabPi F+0Of8uXTrqZEVS8U7QJBqnBV70nMT/Uq+OyFNzZwGnIMfaIIf3N0zjBVCmA4xl0+BQE vkGVzmAdZY5ixvin4Ax8rFluBq5L7qpQyGLFidecnHLCVJrb9NprHbpph8MRzHuFbKmD 6ebcSL7D1UKm0jethWqNqXt8LmCHeW1HQMWf8+Ol6B8KnbFZMZBksmMTCmMc8ltF9lNN AElw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UDw1+6Hd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si8475138plr.216.2019.05.13.19.27.30; Mon, 13 May 2019 19:27:45 -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=@gmail.com header.s=20161025 header.b=UDw1+6Hd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726715AbfENCZc (ORCPT + 99 others); Mon, 13 May 2019 22:25:32 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:39400 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbfENCZb (ORCPT ); Mon, 13 May 2019 22:25:31 -0400 Received: by mail-pg1-f195.google.com with SMTP id w22so7758044pgi.6; Mon, 13 May 2019 19:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Zi4wszV1L43AeLT0Z8PIOWy38tTYuSZF/HdHyWxecsY=; b=UDw1+6HdTlVp15oFELQcYeP5tV9aX4WE2CTmk/VFT9j/uRDSGzkXgwHKipfBdjUcy6 iWd5TAVfBECyekH1/M3I65DO8JG6bsdwQiYpZPb+IvL2/NRDrhMlO6vl9tfI1DTC2n8V ZQObeHztzolzKrcIN2b/9VCj+OdGEtNRTQMUz8nfylBLkUKYFsgCyTvqrBD8JblWqBMs 2ATuHVX+eMGT7vY3UOYNRORuXGhZjogeHrl6sZejHqhzP1ylwRwstzz6oGskofNicyFJ dU04R9JVeM7RaJ6I2pxqlhwoRSiRJyHo8rLCRYT0ThJgyxpnMnnsbjh3cJf1XWqOhld0 Moqw== 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zi4wszV1L43AeLT0Z8PIOWy38tTYuSZF/HdHyWxecsY=; b=ngkw1ElmV3Ih2+FFGHeSO/N27D7B2pFHa8h8UG75bQjbDXSyR3E3A+kFnMfN0I0bx8 /TaRLjioTI96uLgzIl8WnzgsbiWt5w2mPmgGrSXC+Jc2Pfj+7zRjGmIEKvF0ovPINCbP arjb+A1qtTK2Tw+bD3wPqvY6bjLTKdHnfyrRhwr15ETqwj9vwxYRqzOINxoYqu7kZtkU KT+lutBEo279VbMcPIwzo+rsTRfRE/Dd3ljZ0XVjreMxPDJ8Et59e7WvMa0VKcOV0S7S vRc5uSqhX89OIM7dFOGoMVQMzQjCsGcXiJEFzZqGNdYgcVKlbtwU3u5O8m9YUN/x2XOn jxFg== X-Gm-Message-State: APjAAAWNYCi52dqsHuQ9Foo/GAMRxUgJEReA2CcwkfOq2rUUHFKY1PWr Kos/+HKpAbm2TcfIqlsnsW8= X-Received: by 2002:a62:6d47:: with SMTP id i68mr37943522pfc.189.1557800730620; Mon, 13 May 2019 19:25:30 -0700 (PDT) Received: from localhost ([39.7.55.172]) by smtp.gmail.com with ESMTPSA id g83sm19072131pfb.158.2019.05.13.19.25.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 May 2019 19:25:29 -0700 (PDT) Date: Tue, 14 May 2019 11:25:26 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Andy Shevchenko , David Laight , 'christophe leroy' , Steven Rostedt , Linus Torvalds , Rasmus Villemoes , "Tobin C . Harding" , Michal Hocko , Sergey Senozhatsky , "linux-kernel@vger.kernel.org" , Michael Ellerman , "linuxppc-dev@lists.ozlabs.org" , Russell Currey , Stephen Rothwell , Heiko Carstens , "linux-arch@vger.kernel.org" , "linux-s390@vger.kernel.org" , Martin Schwidefsky , Sergey Senozhatsky Subject: Re: [PATCH] vsprintf: Do not break early boot with probing addresses Message-ID: <20190514022526.GA6683@jagdpanzerIV> References: <20190510081635.GA4533@jagdpanzerIV> <20190510084213.22149-1-pmladek@suse.com> <20190510122401.21a598f6@gandalf.local.home> <096d6c9c17b3484484d9d9d3f3aa3a7c@AcuMS.aculab.com> <20190513091320.GK9224@smile.fi.intel.com> <20190513124220.wty2qbnz4wo52h3x@pathway.suse.cz> <20190514020730.GA651@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190514020730.GA651@jagdpanzerIV> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (05/14/19 11:07), Sergey Senozhatsky wrote: > How about this: > > if ptr < PAGE_SIZE -> "(null)" No, this is totally stupid. Forget about it. Sorry. > if IS_ERR_VALUE(ptr) -> "(fault)" But Steven's "(fault)" is nice. -ss