Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2388058yba; Fri, 10 May 2019 10:37:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxe6bW4BG7/UCB3liVvw0VD4j+4BCoM1Y5HiYCJSqY/FuAe70VNHYtv25Lwg3KwwIIy50tH X-Received: by 2002:a63:295:: with SMTP id 143mr15345284pgc.279.1557509866113; Fri, 10 May 2019 10:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557509866; cv=none; d=google.com; s=arc-20160816; b=1ExBROI6FB8W2ngSN+3zsx6mLhKKgV2fSpwW7myTA1nyZTi0igUxK5LdizVd2nYn6Z /kyN7WYWFQVC+voEAYV7jn1ZHqqBQF+ZdnsfoNgIFGJunt/9CT5u6MszpP+BfIOLwxE8 nDc12r1mlf6/eJyH4EtZrYtc29G5YNbfEBsJlOsdgg1v08e/P0E4sn+33HcHFmAliGWF Yx3G0Z24oBDS7uuY3SawH7JFPNhJuu/GsU14UH8HVuFETyJRyh6WG5p8WXNGsccozl60 jCmLdQFCJEOM5sgjxzLm+T2YnWq+n1WUmTdSsHjRxfNvCTfgClyYtogaUPveMS3+Y6yt 24pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ETIfNWdjheDxK6ulmt7rGhw92PhKDX8Ycxhn3WkzwA4=; b=CZ21FC80uRho3UuMGtz8miYXFUOI2kcCFJUjnyR0jneaMR+ezYxh15JCOuu1AlKkR1 /O/cuy5Q/ZksPINeVa6ajqV//SRXRdHq8VzPIRmgBu+eare219/1XWmlMkZpopQ4jbaQ GOsjVl6IpJfhoHlQ8Sm0O1EG9JpMOXbmrIrgHvHervcsIkGPajZVAVUoAIJ/S19Mg+2I mk6sm0crAbMP7M+WzlkYScz+QAe2lIfzmOUvYLVdXbdQuDZq3z/rRB+MINB9kGJjQ7eh BMyHWajwpKSZfkaUppOSg7sHDqqaCMzr6ZQtdnZ7nXULwfg8mX1unSWKz7yHPMFaN46e KzFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=kZKWCqAu; 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 q80si9092055pfq.160.2019.05.10.10.37.29; Fri, 10 May 2019 10:37:46 -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=@c-s.fr header.s=mail header.b=kZKWCqAu; 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 S1727899AbfEJRfl (ORCPT + 99 others); Fri, 10 May 2019 13:35:41 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:52813 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727670AbfEJRfk (ORCPT ); Fri, 10 May 2019 13:35:40 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 450y6M3jtnz9v0v1; Fri, 10 May 2019 19:35:39 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=kZKWCqAu; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id FMwJ20pNBoD4; Fri, 10 May 2019 19:35:39 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 450y6M2STLz9v0v0; Fri, 10 May 2019 19:35:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1557509739; bh=ETIfNWdjheDxK6ulmt7rGhw92PhKDX8Ycxhn3WkzwA4=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=kZKWCqAuMvyQxiML6fLhAw5/0pfXItFjQa/WP8HryQoMo2SaXCx5RD90E1v1VJeD7 XtJInDqwjmZhGYl7KxtOiD84soq4bEeRxlsUH+Vmjaj/OOkkPD4puHedQLGBQsGrhT 4k2ym7p54S2XNtZMmeViLG0TrwciZq81wTIhMXy8= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4A2788B95A; Fri, 10 May 2019 19:35:39 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id DBYHnOZ0LvOs; Fri, 10 May 2019 19:35:39 +0200 (CEST) Received: from [192.168.232.53] (unknown [192.168.232.53]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 777778B940; Fri, 10 May 2019 19:35:38 +0200 (CEST) Subject: Re: [PATCH] vsprintf: Do not break early boot with probing addresses To: Steven Rostedt , Petr Mladek Cc: Linus Torvalds , Andy Shevchenko , Rasmus Villemoes , "Tobin C . Harding" , Michal Hocko , Sergey Senozhatsky , 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 References: <20190510081635.GA4533@jagdpanzerIV> <20190510084213.22149-1-pmladek@suse.com> <20190510122401.21a598f6@gandalf.local.home> From: christophe leroy Message-ID: Date: Fri, 10 May 2019 19:35:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190510122401.21a598f6@gandalf.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit X-Antivirus: Avast (VPS 190510-2, 10/05/2019), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 10/05/2019 à 18:24, Steven Rostedt a écrit : > On Fri, 10 May 2019 10:42:13 +0200 > Petr Mladek wrote: > >> static const char *check_pointer_msg(const void *ptr) >> { >> - char byte; >> - >> if (!ptr) >> return "(null)"; >> >> - if (probe_kernel_address(ptr, byte)) >> + if ((unsigned long)ptr < PAGE_SIZE || IS_ERR_VALUE(ptr)) >> return "(efault)"; >> > > > < PAGE_SIZE ? > > do you mean: < TASK_SIZE ? I guess not. Usually, < PAGE_SIZE means NULL pointer dereference (via the member of a struct) Christophe --- L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus