Received: by 10.213.65.68 with SMTP id h4csp1340200imn; Wed, 14 Mar 2018 17:59:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELs0f1J61T9jgJJb0P5LwBOx7sWLYIJIqE85JuZq2leZxvYUa5C4PZas9ZnL0FIX1LI78R+Q X-Received: by 10.99.116.85 with SMTP id e21mr5257661pgn.218.1521075582259; Wed, 14 Mar 2018 17:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521075582; cv=none; d=google.com; s=arc-20160816; b=GYADQo7nLq5hrPS7I4cMQ60GxPFKflEYAgtDL/G20th3GJvipg4mQAcWtItm40FWFr 7ObgGLF+yXosfznGchZOtYm6bI5vZl3Vy5/d4h0Myb0TQNBhvtrun/tmBo2bPslnzAyr txGdB2bN54Y9jd24asbVCe98V1y4Vy8SMdiY8sjOHwxf/1HctjFwC2IsNDCxe+CZbzen cA2+OlRxIboP3ql9bkjz5bMzXOExGau3LrhOj3izCUHxUtvJ7a+IXviPqP5S7llULQFS pNC70DCVeVbUKEmsIUeF+85Nekr3rRrlSzDX9+0/qEsHvEGhyZkiJhphv63ML7WlJvKX yZIQ== 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:arc-authentication-results; bh=tpyUXOrgZytGdh5j8HAI7vz6NGeOz8oNa242+/RuKRs=; b=z1W03+FE003maPh4Uiolh2yofhQsvCXgRizejIBnPo6nNiipN0KcOpYt2AELoq7JHK PMUcjKwJOFRRsMF5O3BF52RNwpiVoOnAtrOkQGg+rVWaR8d4i0XLeXxASuR6T+BJpEt/ GK0tilLVCDr6x4oskU2C4DozH5k+JdrPUK3mX+w+JgYHWmSpof7+N+WN2sJms6b7JWxW SL4BfvLbgu0arKTEotps/JRBCQ/4t535EoqDxEqNaTE5kcYd+ZBj76X4pOelZ3xAF1lM BiOs2Q25y8amKuBZjlOLnmCHQpa0UJXZnYcbQDJBUVNkaQeX5283Zv4soWEjrBHLgz5p y/QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EpKuoaLK; 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 x18-v6si2862690pln.194.2018.03.14.17.59.27; Wed, 14 Mar 2018 17:59:42 -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=EpKuoaLK; 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 S1751840AbeCOA6B (ORCPT + 99 others); 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 Received: by mail-pf0-f169.google.com with SMTP id x1so2180569pfh.7 for ; Wed, 14 Mar 2018 17:57:59 -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=tpyUXOrgZytGdh5j8HAI7vz6NGeOz8oNa242+/RuKRs=; b=EpKuoaLK1ikAQQgHKlXRBBlIiUrRTuKhV138Qlsk/8D4RwipxN5i+e80hl/5pOoVX+ wKhQquhSUUKasNwjFI+vNkQL50UB50CjqjHm+FXTiDpPqfHYbTEn8kXWnT6ulqfWb6Ie 7iMrBig/yHzP2N6Jo2iHsgj6t2Ndj8s0ee/sOeocZrp2ufQ8UIJ0+vtAKVW3D33RPj4Z oKzhjUtm2wzusNxcCSnM6MI6+sD6o51EsVo+VEqv9G2qyMD0yHjIdy3+qpqTUg0wPC5q XKFV7GuEUNlVb4lBNe2JUBtGEB0rIfFwtN4/vGwAjbRgrh3wffay1VtXZocfCENonjG0 +wlg== 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=tpyUXOrgZytGdh5j8HAI7vz6NGeOz8oNa242+/RuKRs=; b=QqIbsynV7s4+HBWQjo7nt2p8A+RWTdWgrJtdTn4k+WDJLFiFQbzOWN5kpzcz1ijrHJ T+TU8Xy8bNy+R0Z6qM/pUIQSfo+y63OTnBPiIQLGtd38MeH3QdJPnurPu2n+smPmI4+d wcMpQhsO+sz0hR9sX4oFwmjXDAfBflnkb0fflpUovLVO5g8IocU7NSOCsrIsOgjN2b1M 4vm1hjBVlyXFUFJz3/E9EOqV4ojKETgtV6XNbKUdklD6vTIEhtZJzShYys+dEs6JH2en Xynv3wyOaIWqygrOKQB5zVDUskDpNG3DwRbZr0bj0tGu2uAk5/fIcuawR1MOdxLNuDL6 AOvA== X-Gm-Message-State: AElRT7FMBZZo8jBSy7NwjkCghNX1g+h7zJ/r5ujluhuPVdT/Hid/qhvZ nTIvYEhfSCaZiTuxU6nXink= X-Received: by 10.99.119.79 with SMTP id s76mr5108758pgc.291.1521075479560; Wed, 14 Mar 2018 17:57:59 -0700 (PDT) Received: from localhost ([175.223.21.185]) by smtp.gmail.com with ESMTPSA id r30sm7717933pff.7.2018.03.14.17.57.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Mar 2018 17:57:58 -0700 (PDT) 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 Precedence: bulk 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