From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751870AbeCOA6B (ORCPT ); Wed, 14 Mar 2018 20:58:01 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:40655 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751461AbeCOA6A (ORCPT ); Wed, 14 Mar 2018 20:58:00 -0400 X-Google-Smtp-Source: AG47ELupUDEXW8zd/NFVDTuOcxKzazZUy4rH3Y+5gFDfiUGD/IXdhqRIDa5lC8CTuZVxi0JD1RrFNA== Date: Thu, 15 Mar 2018 09:57:55 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Linus Torvalds , Andy Shevchenko , Rasmus Villemoes , "Tobin C . Harding" , Joe Perches , Linux Kernel Mailing List , Andrew Morton , Michal Hocko , Sergey Senozhatsky , Steven Rostedt , Sergey Senozhatsky Subject: Re: [PATCH v3] vsprintf: Prevent crash when dereferencing invalid pointers Message-ID: <20180315005755.GB3628@jagdpanzerIV> References: <20180306092513.ibodfsnv4xrxdlub@pathway.suse.cz> <1520330185.10722.401.camel@linux.intel.com> <20180307155244.b45c3fb5vcxb4q2l@pathway.suse.cz> <20180308141824.bfk2pr6wmjh4ytdi@pathway.suse.cz> <20180309150153.3sxbbpd6jdn2d5yy@pathway.suse.cz> <20180314140947.rs3b6i5gguzzu5wi@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180314140947.rs3b6i5gguzzu5wi@pathway.suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (03/14/18 15:09), Petr Mladek wrote: > Changes against v2: > > + fix handling with strchr(string, '\0'); happens with > %p at the very end of the string > + even more clear commit message > + update Documentation/core-api/printk-formats.rst > + add check into lib/test_printf.c > > Changes against v1: > > + do not check access for plain %p > + more clear commit message Did I miss v1 and v2? -ss