linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Documentation: Mention why %p prints ptrval
@ 2018-03-22  5:23 Joel Stanley
  2018-03-22 20:12 ` Tobin C . Harding
  2018-03-23 18:42 ` Jonathan Corbet
  0 siblings, 2 replies; 3+ messages in thread
From: Joel Stanley @ 2018-03-22  5:23 UTC (permalink / raw)
  To: Jonathan Corbet, Tobin C . Harding
  Cc: Michael Ellerman, linux-doc, linux-kernel

When debugging recent kernels, people will see '(ptrval)' but there
isn't much information as to what that means. Briefly describe why it's
there.

Signed-off-by: Joel Stanley <joel@jms.id.au>
---
 Documentation/core-api/printk-formats.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
index 934559b3c130..eb30efdd2e78 100644
--- a/Documentation/core-api/printk-formats.rst
+++ b/Documentation/core-api/printk-formats.rst
@@ -60,8 +60,8 @@ Plain Pointers
 Pointers printed without a specifier extension (i.e unadorned %p) are
 hashed to prevent leaking information about the kernel memory layout. This
 has the added benefit of providing a unique identifier. On 64-bit machines
-the first 32 bits are zeroed. If you *really* want the address see %px
-below.
+the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it
+gathers enough entropy. If you *really* want the address see %px below.
 
 Symbols/Function Pointers
 -------------------------
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation: Mention why %p prints ptrval
  2018-03-22  5:23 [PATCH] Documentation: Mention why %p prints ptrval Joel Stanley
@ 2018-03-22 20:12 ` Tobin C . Harding
  2018-03-23 18:42 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Tobin C . Harding @ 2018-03-22 20:12 UTC (permalink / raw)
  To: Joel Stanley; +Cc: Jonathan Corbet, Michael Ellerman, linux-doc, linux-kernel

On Thu, Mar 22, 2018 at 03:53:36PM +1030, Joel Stanley wrote:
> When debugging recent kernels, people will see '(ptrval)' but there
> isn't much information as to what that means. Briefly describe why it's
> there.
> 
> Signed-off-by: Joel Stanley <joel@jms.id.au>
> ---
>  Documentation/core-api/printk-formats.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
> index 934559b3c130..eb30efdd2e78 100644
> --- a/Documentation/core-api/printk-formats.rst
> +++ b/Documentation/core-api/printk-formats.rst
> @@ -60,8 +60,8 @@ Plain Pointers
>  Pointers printed without a specifier extension (i.e unadorned %p) are
>  hashed to prevent leaking information about the kernel memory layout. This
>  has the added benefit of providing a unique identifier. On 64-bit machines
> -the first 32 bits are zeroed. If you *really* want the address see %px
> -below.
> +the first 32 bits are zeroed. The kernel will print ``(ptrval)`` until it
> +gathers enough entropy. If you *really* want the address see %px below.

Acked-by: Tobin C. Harding <me@tobin.cc>

thanks,
Tobin.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Documentation: Mention why %p prints ptrval
  2018-03-22  5:23 [PATCH] Documentation: Mention why %p prints ptrval Joel Stanley
  2018-03-22 20:12 ` Tobin C . Harding
@ 2018-03-23 18:42 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2018-03-23 18:42 UTC (permalink / raw)
  To: Joel Stanley; +Cc: Tobin C . Harding, Michael Ellerman, linux-doc, linux-kernel

On Thu, 22 Mar 2018 15:53:36 +1030
Joel Stanley <joel@jms.id.au> wrote:

> When debugging recent kernels, people will see '(ptrval)' but there
> isn't much information as to what that means. Briefly describe why it's
> there.

Applied, thanks.

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-23 18:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-22  5:23 [PATCH] Documentation: Mention why %p prints ptrval Joel Stanley
2018-03-22 20:12 ` Tobin C . Harding
2018-03-23 18:42 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).