lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 25 Jun 2017 23:18:49 +0200
From:   "Enrico Weigelt, metux IT consult" <enrico.weigelt@...3.net>
To:     Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] lib: vsprintf: add printf format conversion %M for errno
 strings

On 25.06.2017 22:10, Joe Perches wrote:

>> Yeah, that's still an open problem. Actually, I still haven't found out,
>> how it's done w/ all the other kernel-internal conversions.
> 
> Everything else uses "%p<foo>", <object reference>

hmm, but errno's aren't pointers. Isn't %p checked for pointer values ?
>> Already was about to do so. Shall I call it strerror() ?
> 
> I presume kstrerror
> 
> So use something like
> 	"%d: (%s)", errno, kstrerror(errno)

Okay, sounds good.

--mtx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ