doc: update kptr_restrict documentation
authorTobin C. Harding <me@tobin.cc>
Tue, 19 Dec 2017 21:17:16 +0000 (08:17 +1100)
committerJonathan Corbet <corbet@lwn.net>
Thu, 21 Dec 2017 20:39:27 +0000 (13:39 -0700)
Recently the behaviour of printk specifier %pK was changed. The
documentation does not currently mirror this.

Update documentation for sysctl kptr_restrict.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sysctl/kernel.txt

index 6366303..412314e 100644 (file)
@@ -391,7 +391,8 @@ kptr_restrict:
 This toggle indicates whether restrictions are placed on
 exposing kernel addresses via /proc and other interfaces.
 
-When kptr_restrict is set to (0), the default, there are no restrictions.
+When kptr_restrict is set to 0 (the default) the address is hashed before
+printing. (This is the equivalent to %p.)
 
 When kptr_restrict is set to (1), kernel pointers printed using the %pK
 format specifier will be replaced with 0's unless the user has CAP_SYSLOG