From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Senozhatsky Subject: Re: [PATCH V11 4/5] vsprintf: add printk specifier %px Date: Thu, 7 Dec 2017 14:37:55 +0900 Message-ID: <20171207053755.GC6084@jagdpanzerIV> References: <324abe19f1ee4177911d2fc48899ac8a@AcuMS.aculab.com> <596c917e-3183-d80a-89d4-97e0eb5dc077@infradead.org> <20171206013657.GA479@jagdpanzerIV> <20171206084537.GA462@jagdpanzerIV> <20171207051711.GB2191@eros> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sergey Senozhatsky , Geert Uytterhoeven , Linus Torvalds , Randy Dunlap , David Laight , Kees Cook , "kernel-hardening@lists.openwall.com" , "Jason A. Donenfeld" , Theodore Ts'o , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Seno To: "Tobin C. Harding" Return-path: Content-Disposition: inline In-Reply-To: <20171207051711.GB2191@eros> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On (12/07/17 16:17), Tobin C. Harding wrote: [..] > > hm, indeed. and !CONFIG_KALLSYMS config turns %pS/%ps > > into special_hex_number(). > > But totally misses this :( > > "" would be better returned when !CONFIG_KALLSYMS, right? I guess I'll take back my comment. I assume there are tons of embedded devices that have !CONFIG_KALLSYMS in 'release' builds, yet those devices still warn/oops sometimes; having pointers/hex numbers is really the only way to make any sense out of backtraces... yet it, basically, means that we are leaking kernel pointers. -ss