Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1815426yba; Fri, 10 May 2019 01:17:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVLjBn15kXC9oaOcoEDiAZthD0uCf1NX/i0lEPdco4jxaq9i1A74OhuFd0cT2/ZFyqM5a6 X-Received: by 2002:aa7:8289:: with SMTP id s9mr12097579pfm.208.1557476273594; Fri, 10 May 2019 01:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557476273; cv=none; d=google.com; s=arc-20160816; b=yuiu7z/2uSHvxmSJS7kR2Pyy9dK+988j3U6JEFF1LPacnw/3GNA8KxXfV8JOKjzMjt Cxe0kU8Q0nGuC7MMIXQz7dbyxdTI89xVRojA1G7Quc6VsxqpWoidNPFLVIGaZEj7U/1X o74iv6vNXqYarWFbG+waUx8OlnS9HQYrLwaDcNkLElvsEq/fDip3RJCWh8LGJpyIAWlx NqKksCWk7mTwOG04mewIcy7lL6z+ZfKaDMaTahhj3QxMujtghDYoGOabcm2SFxRKPlaa am/H65sz9PS1pCArq65viEssz4KAlG/WPymjcp0HMCoP4D2men54/BaGWo0/Zn5vLPFR IUDA== 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=tmrArLlqX0+g8dO65H9KErVBV4iwBC4vplgVby2I7tY=; b=dZoZJxACTTlAyXjbffdwh8aYeIdbIXTF0Qj3tVQXskB1oBbxNZNQ0Pgqdh4QhIwMCJ HAQ9+uocnAYEzWqG/hczZdhxepxFDMRH8jjLT+46nw/WUkbkVyhX3atuUjd2Wksf5BAg 5iI9uhi6CQXTZ1I6yEvJ94I7G6nHIVh75xciLMqvZjzSSpicTaxqVTCLAdoNnPpOMOUd /0jcmL5iA9epcvdaEkyp6NiC94gN9kw72N7/mMK6g5o5BdCJjlljFO45VLJ2vacG6QoK bNzFLtmjodBEvpv4Hrby23bFAuL+K9eK+b6YhwcWmjcU1+gq/9iF7dsxlTmC5NC0b8FV UrWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pi676OP1; 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 d138si6351501pfd.178.2019.05.10.01.17.37; Fri, 10 May 2019 01:17: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=pi676OP1; 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 S1727092AbfEJIQk (ORCPT + 99 others); Fri, 10 May 2019 04:16:40 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44720 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726984AbfEJIQk (ORCPT ); Fri, 10 May 2019 04:16:40 -0400 Received: by mail-pg1-f194.google.com with SMTP id z16so2633034pgv.11; Fri, 10 May 2019 01:16:40 -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=tmrArLlqX0+g8dO65H9KErVBV4iwBC4vplgVby2I7tY=; b=pi676OP1FRhqbBbpb7fOeUNTiVaJG652h+lbTMGFhbLW2aHAPornrN8wTMZXVlgNxl W4BB6oJI8eT5ewIiyVGrzKYVuW9DRSSPWxGnbWSW+Ndedu6GJoUyQ3y/PgWW77qlcw6G 2K3ngsOj1EzudIqLQY3Pv3bW/Uo8QOE0RKDM/G2n2MKLlvq5G32CQmiJ4tJt1eVKKfw2 FJNt9YkI8VdNggOxd10ie4KY7+2hyQwHe618/y9gJGoXaaVC7tu0mkaM1DcSD7DR1e/1 pQQgGtrSt/riF+FkuY9LeHLXQkZAa87ftpIW1dZnvIkh0uDIpIWMkZzfDlrKxKmq2uc4 zYdQ== 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=tmrArLlqX0+g8dO65H9KErVBV4iwBC4vplgVby2I7tY=; b=DqjzEFB4qwr/2GvaPg1eEUKtEJ1st/L4oNasNNHK+x81owz4TjRps+D0e67CG7n9z6 NnU30/IYvZqlY+yJ2TZ6TcPruEqeQTFUpXuohZmy0lYqjmnBpNVeHC4YI40Bu65d6pIS ZF8P/l3im755kbk1hxW3VOlL0D/AIRcJ+rMk1eZLe9y+Ve47cfDcDZqgiuLhZTdw86C5 Ega4M3XRNIx8LSmEcZ4I3IWMPlqs6KczWW7PNVVbaTXAPXU44lO9qU7nUzeMbjdNhR5t ypWgze77luaGW32FXLGHSY6sYkjspPEi/ldYLyiBs/UIqYsYjAQeUnznOV+4RkGWv/Yz TPUg== X-Gm-Message-State: APjAAAVlYISH7+gofqkqdnkgxYj8nx0esH1vXv8CQUMkNRHX1UYEgtML ZG9td1l8tSs4ymAY12bDrEs= X-Received: by 2002:a63:246:: with SMTP id 67mr11946180pgc.145.1557476199809; Fri, 10 May 2019 01:16:39 -0700 (PDT) Received: from localhost ([39.7.15.25]) by smtp.gmail.com with ESMTPSA id h1sm8999019pfq.3.2019.05.10.01.16.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 May 2019 01:16:38 -0700 (PDT) Date: Fri, 10 May 2019 17:16:35 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Linus Torvalds , Andy Shevchenko , Rasmus Villemoes , "Tobin C . Harding" , Michal Hocko , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Russell Currey , Christophe Leroy , 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: <20190510081635.GA4533@jagdpanzerIV> References: <20190509121923.8339-1-pmladek@suse.com> <20190510043200.GC15652@jagdpanzerIV> <20190510050709.GA1831@jagdpanzerIV> <20190510080602.mdfk54f6lpyg6unw@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190510080602.mdfk54f6lpyg6unw@pathway.suse.cz> 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/10/19 10:06), Petr Mladek wrote: [..] > I am going to send a patch replacing probe_kernel_address() with > a simple check: > > if ((unsigned long)ptr < PAGE_SIZE || IS_ERR_VALUE(ptr)) > return "(efault)"; I'm OK with this. Probing ptrs was a good idea, it just didn't work out. -ss