From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754732AbeDCBMo (ORCPT ); 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 X-Google-Smtp-Source: AIpwx4+ynEfRwntaJhLmpBQSyMEu1bVZUzFfVvutf882b9qGtihHo7aWl9oE2tB9m8VWxs1yQhJ/Vg== 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 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