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-next>] [day] [month] [year] [list]
Message-ID: <tencent_3A04033395F30A3361F8A78F814E1FF92B07@qq.com>
Date:   Fri, 19 Apr 2019 10:01:25 +0800
From:   "PlusOneSecond" <plusonesecond@...mail.com>
To:     "linux-kernel" <linux-kernel@...r.kernel.org>
Subject: net: ax25: %x specifier misuse in kernel?

In ax25_info_show of af_ax25.c:1891, linux-5.1.
The pointer ax25 is cast to long type to print out.

Why it prints the a pointer 'ax25' use %8.8lx rather than %p?
If it really want to print the value of ax25, it should use %px.

Also, I  scan the kernel code and notice that most of the pointers cast to long or unsigned long type to print out are marked with __iomem.
Is it a misuse of %x?


Thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ