Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp214466yba; Tue, 14 May 2019 23:22:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM/6wl6lKLgDUApmROc1pOJrL2v1xwTUg3g4WjyY2hdMmZUkZqNqFnrkG2fdziy5yBNxTE X-Received: by 2002:a63:4c06:: with SMTP id z6mr42570896pga.296.1557901373407; Tue, 14 May 2019 23:22:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557901373; cv=none; d=google.com; s=arc-20160816; b=ldNS3UflfqzwzvMywXotFs+65iBaSIXCV0xPyvr/TqyBAjgMkRLIuSmYZdd8yWryfu +3HFzNFca5clyb5HKsWWUqNw8KAVk2mY6BV173vNlg5nJY/hjLgjt8Ue4Jg+XZy15qJD xWl08kUECgQaiVXDzwYBa+JoDEAbtMslroDmJwf+L35XzlWkIiqNtxrLii7qoKf9HqrG BrIzJgfVGLYUR8j9hjnZZGtptVSbHovffQRaayxNiu98FsburhsaVDpHcmbd5DiocDAj wbQ6XSFeuw7/fJ3N+NOKBEkWwlMbSBhx4TBndzTnP9VDn5LlVAvuek7KeIKBMYZfi3Kh qB4Q== 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=vpr9qeWej7/xdaLzfL7kzDfFrVNMEMZWeQ2yDGuvcWA=; b=ekrpzYvky/UMXjnPVsNMyc1dNuoyzEYtPvR5iq41SZH/OjUgu+hXqcmXe0bZ56aPH3 W5sWt4Z2TFMrD70pTKPPq8AFS2pL34RRKtLxbSMkKVVVrcnMs/uVEdsxOgihvNUCfUP9 ABDTgPpo7AgrApKyAaumipFpIw4/C32SYXIcARBtPOFmX8ct9N/z3Soz28e2Z6QW9svV NJB5QKKfBWMCKqNd0o0kbyUt1sI79VYUtihDXKqRuIgyt+3bDLBDphlFvnnzaEmQqf3c gEogYQE0GaVZypJHtIkFwtjZVWkW9z+cAyu8ALC35QAeDVVt+eWo7T5xCX+LIsNvdnkF QR2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o375KU68; 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 b8si974655plb.351.2019.05.14.23.22.38; Tue, 14 May 2019 23:22:53 -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=o375KU68; 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 S1726290AbfEOGVR (ORCPT + 99 others); Wed, 15 May 2019 02:21:17 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34063 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfEOGVQ (ORCPT ); Wed, 15 May 2019 02:21:16 -0400 Received: by mail-pl1-f194.google.com with SMTP id w7so820478plz.1; Tue, 14 May 2019 23:21:16 -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=vpr9qeWej7/xdaLzfL7kzDfFrVNMEMZWeQ2yDGuvcWA=; b=o375KU68c6cq1L9rhDvFqMLy/36KzkumU5eyglTJpzMIPwAslM+THguYtGV24yszrB AfYo9WtSVI4YPeApa2se9off1OySDBkrKN7buQLJmfCNI/aUK7RfjMnE/bGxwyACd7HW g43h4W/w7cF1ebM7p3GlKDoMC/No0MM/60V7FFaBW4jE3VheGcBQfsSDliKPbh80RMYI dOTUBqDXrX4eE2LtTtSOQAHYRUCrNB5AZxKgRYAE1MmJfuYWQBqZx6l5sqSUhtrZ1gg1 924TKUokkcN8xRTqUfEE68pHktdBzMgi/pqoWUNqh/12ErYeobF1s95PpggCN9DKAtsk f1rQ== 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=vpr9qeWej7/xdaLzfL7kzDfFrVNMEMZWeQ2yDGuvcWA=; b=f8nL02xSEYVSbcj6sJKVmwUBPhGsE4ITx1ly+NWa0OYFUyFGyYGRWfoL5YNj46+0hT qRCZeAFD2MHkWsLxZ2I1gEVzKQ7fqPfopCQTAai3Nqib5FzIBrzfCxg6G/bF1dhbykPU bZweLAuWJcjxVg64qxDgTt/TvGYD+yjRycN3FzffI3chGVYwd0ZqNyIj+/OIIUQnF+mP gt3e0y1+9uF4SQdgeSYK2E7HOXm/OD/4b1UKfo7nhC5hCZIu9hfmZhmC3U/t5iCjwZjd c60dyfnbzfONgwCXTrzS7zz+3CnEdGQ9x2kb8/E1VS/eKEsJFHVvw8m4La8dJrReiMA2 IZyQ== X-Gm-Message-State: APjAAAUoi/Lg/x/VT3FgLL1CnuH/RZJSrZcEWbYnKKJSmVCM3DJOnyO4 mPzG4XMVCNU2/diw0kZFz3I= X-Received: by 2002:a17:902:6bc8:: with SMTP id m8mr41177371plt.227.1557901275995; Tue, 14 May 2019 23:21:15 -0700 (PDT) Received: from localhost ([110.70.52.120]) by smtp.gmail.com with ESMTPSA id f4sm1300687pfn.118.2019.05.14.23.21.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 23:21:14 -0700 (PDT) Date: Wed, 15 May 2019 15:21:11 +0900 From: Sergey Senozhatsky To: Geert Uytterhoeven Cc: Steven Rostedt , David Laight , Sergey Senozhatsky , Petr Mladek , Andy Shevchenko , christophe leroy , 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 Subject: Re: [PATCH] vsprintf: Do not break early boot with probing addresses Message-ID: <20190515062111.GA30030@jagdpanzerIV> References: <20190510122401.21a598f6@gandalf.local.home> <096d6c9c17b3484484d9d9d3f3aa3a7c@AcuMS.aculab.com> <20190513091320.GK9224@smile.fi.intel.com> <20190513124220.wty2qbnz4wo52h3x@pathway.suse.cz> <20190514020730.GA651@jagdpanzerIV> <45348cf615fe40d383c1a25688d4a88f@AcuMS.aculab.com> <20190514143751.48e81e05@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 21:13), Geert Uytterhoeven wrote: > I would immediately understand there's a missing IS_ERR() check in a > function that can return -EINVAL, without having to add a new printk() > to find out what kind of bogus value has been received, and without > having to reboot, and trying to reproduce... But chances are that missing IS_ERR() will crash the kernel sooner or later (in general case), if not in sprintf() then somewhere else. -ss