Received: by 10.213.65.68 with SMTP id h4csp2964513imn; Mon, 2 Apr 2018 18:15:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx48PDnPXsgJDemfFhASf4mMw20MF6z0NT0thXivpp+f/zb4ZdZp/DQ8VRYK8iORdSqt0z0xD X-Received: by 10.167.128.194 with SMTP id a2mr9037426pfn.186.1522718101866; Mon, 02 Apr 2018 18:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522718101; cv=none; d=google.com; s=arc-20160816; b=ct7PqF3Pc7uYNYIQfZ2hEE1as2jqj6/NejJSOWl/ZEfal6bLeWj/3sDEcSkx2WUrY9 edBAU9vdCdvkVwDno6vj36nOJtBMuBz2YKmvUc7Z95a+qFcrtnSGqB6zFOzmY+AWKDSv 2BmrcUi3riU/ChGKQXFYlUfTYJOrIiJw24oUCC2dQ1Dug2OsdYQYRBpuE9AR6w3EZsp2 4/G0WI3igY4prtF0BiBVNmXMPG+fgZ+A1QR/9i6VmoetJF6E4B0jzRO2ICyrszd7nJYO 4pHg3zWL6nEcJH51sW6kTjh7XpqNj84YZlYJLvcOs0l4w3Rlk7qPK5mcbs5x2O1yOUaZ H5yw== 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=p87kdTqFeATFCowmHqzmMU46xEKqP1GZuMkX7xYsuqU=; b=Dl8tpV3iP3PtQs4YrnpPzSgLBrOvrA/SRYUhOz4UFW39lIQWyLO/K1MH4T+8RsU4Sc V3QgJC7YzruyQFjVqLnRrKwu9VmPyuGmUv1/jqIljFoj9W+bhdPIM4cI/eu8riGGZiUy c8JuN7BhnsmMygxKh36q6roeLighe5EXdNGUIu7NeyCewf9pMBci3ec6EC4URAsKJdGr OMMf5Qf136mMrdSCBtJ43sgutlbVyNiVIRY6dCmZ/KW1t3UEBxHCiZDLhudiyhTgLpE0 id5dS8iAtnLV10Yh2+dZrF6UOlexOa/ObR4FLFQesNRUf2zVJ178zoys4g0kKNQL4TiS ymOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KGovIGTt; 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 w129si1184713pfd.325.2018.04.02.18.14.36; Mon, 02 Apr 2018 18:15:01 -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=KGovIGTt; 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 S1754726AbeDCBMo (ORCPT + 99 others); Mon, 2 Apr 2018 21:12:44 -0400 Received: from mail-pl0-f42.google.com ([209.85.160.42]:43676 "EHLO mail-pl0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754665AbeDCBMm (ORCPT ); Mon, 2 Apr 2018 21:12:42 -0400 Received: by mail-pl0-f42.google.com with SMTP id c21-v6so2954831plz.10 for ; Mon, 02 Apr 2018 18:12:42 -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=p87kdTqFeATFCowmHqzmMU46xEKqP1GZuMkX7xYsuqU=; b=KGovIGTtzAma29Hx/ARCCbFWVPFsK+8lvcnG/r68AKEKbXVKRdNZBikhsw91ezEggI GOL+HcpPkD+M47iaZTT0FHAKwB4X25CXuj3sSSEeX76xJcfmalGqJGKvrTL0A8X9XNid l5j/bu9UJAfVdh+aaPoge9oE/OepdI2L62iqmYPk8q7WSuTWw2J5BkNJkajqL1/pAK3S HK4yBZSsEyPZIYZZmmQc685A9WQUFx+qjpeAV2ugSlCDdds2TXsjM2PNaLjcUiif79mq yJVKCO5vHTCokIjZNqD9cKHJYF1vr15vG4HJ/t1OJS7Pzo/Fc2S7BaqIsZ4uiKe9f9Xx lhGw== 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=p87kdTqFeATFCowmHqzmMU46xEKqP1GZuMkX7xYsuqU=; b=EKebS6s+DK9wY7t+Z1fK79vpyBsn3LuGiGIuNhcWNC3X03o74I7Z30tSettJaeyBA5 KVid2paUWnXo17Jh74Xmj6NIJXqjJFfMEKMvK1wxf8MT6FR8pwh/X7pDy6HHE1AdGJCv /B70DOMXbJQFasf3PDYEIGCzP7L77/oqX//PqJWstuiClE1z6aiHCYlZQVIqO3woFS1B yri5r9GVXKfDj7yDdrh5GheA2d98KC8SH4nzk1cKNbNbX7utY9C+losaMFjcTwNif93Z Ek+CAG/q0D+wEWcAw/vqdWUby03au2lNXhbWo+bSZgSsJgymldCQr8I41UaT8E6od6k1 tZTw== X-Gm-Message-State: AElRT7HqSAyEE0gQC6gEhBkfYR83roRdKPBz8wZo5u4rI2EPHo0J1Um8 ZXfK7fkfg3iJdilvcAeQ+Mg= X-Received: by 10.98.210.7 with SMTP id c7mr8851835pfg.92.1522717962132; Mon, 02 Apr 2018 18:12:42 -0700 (PDT) Received: from localhost ([175.223.48.43]) by smtp.gmail.com with ESMTPSA id s7sm2050863pgr.90.2018.04.02.18.12.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Apr 2018 18:12:40 -0700 (PDT) Date: Tue, 3 Apr 2018 10:12:37 +0900 From: Sergey Senozhatsky To: Andy Shevchenko Cc: Petr Mladek , Linus Torvalds , 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: <20180403011237.GA7129@jagdpanzerIV> References: <20180309150153.3sxbbpd6jdn2d5yy@pathway.suse.cz> <20180314140947.rs3b6i5gguzzu5wi@pathway.suse.cz> <1521119343.10722.665.camel@linux.intel.com> <20180315152607.xgzjmj5as6lg42dy@pathway.suse.cz> <1521224375.23017.41.camel@linux.intel.com> <20180329145312.4uqygrjqy3fqyl26@pathway.suse.cz> <1522678523.21176.178.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522678523.21176.178.camel@linux.intel.com> 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 (04/02/18 17:15), Andy Shevchenko wrote: > > > > Hmm, I have never seen the error code in this form. > > We have limited space to print it and error numbers currently can be up > to 0xfff (4095). So, I have no better idea how to squeeze them while > thinking that "(efault)" is much harder to parse in case of error 'efault' looks to me like a misspelled 'default', for some reason. -ss