doc: update 'unique identifiers'
PATCH 1/1 doc: update 'unique identifiers'
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
--- Documentation/security/self-protection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/security/self-protection.rst +2 -2
@@ -274,8 +274,8 @@ Unique identifiers ------------------ Kernel memory addresses must never be used as identifiers exposed to -userspace. Instead, use an atomic counter, an idr, or similar unique -identifier. +userspace. Printk specifier %p hashes addresses by default now and can be +used as a unique identifier. Memory initialization ---------------------
Signature · 1 line
2.7.4
Quoted 5 lines · Tobin C. Harding
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
Signed-off-by Tobin C. Harding <[email protected]>
I don't agree: %p should still not be encouraged. Exposing an identifier to userspace needs careful consideration, and atomics, idrs, etc, continue to be a good recommendation here, as far as I'm concerned.
-Kees
Quoted 22 lines
--- Documentation/security/self-protection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Documentation/security/self-protection.rst +2
-3@@ -274,8 +274,8 @@ Unique identifiers ------------------ Kernel memory addresses must never be used as identifiers exposed to -userspace. Instead, use an atomic counter, an idr, or similar unique -identifier. +userspace. Printk specifier %p hashes addresses by default now and can be +used as a unique identifier. Memory initialization --------------------- --2.7.4
Signature · 2 lines
Kees Cook Pixel Security
Quoted 11 lines · Kees Cook
Quoted 5 lines · Tobin C. Harding
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
Signed-off-by Tobin C. Harding <[email protected]>I don't agree: %p should still not be encouraged. Exposing an identifier to userspace needs careful consideration, and atomics, idrs, etc, continue to be a good recommendation here, as far as I'm concerned.
Ok no worries, so these docs are valid and current as is? I have no agenda with this patch, just attempting to keep the docs in line with the code :)
thanks,
Tobin.
Quoted 8 lines · Tobin C. Harding
Quoted 7 lines · Kees Cook
Quoted 5 lines · Tobin C. Harding
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
Signed-off-by Tobin C. Harding <[email protected]>
Quoted 8 lines
Quoted 4 lines
I don't agree: %p should still not be encouraged. Exposing an identifier to userspace needs careful consideration, and atomics, idrs, etc, continue to be a good recommendation here, as far as I'm concerned.
Ok no worries, so these docs are valid and current as is? I have no agenda with this patch, just attempting to keep the docs in line with the code :)
I think a section could be added/updated discussing leaks and %p (in that it is hashing now), that would be quite welcome!
I do, probably need to go through this document and update a few things.
-Kees
Signature · 2 lines
Kees Cook Pixel Security
Quoted 14 lines · Kees Cook
Quoted 13 lines · Tobin C. Harding
Quoted 11 lines · Kees Cook
Quoted 5 lines · Tobin C. Harding
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
Signed-off-by Tobin C. Harding <[email protected]>I don't agree: %p should still not be encouraged. Exposing an identifier to userspace needs careful consideration, and atomics, idrs, etc, continue to be a good recommendation here, as far as I'm concerned.
Quoted 8 lines
Quoted 3 lines
Ok no worries, so these docs are valid and current as is? I have no agenda with this patch, just attempting to keep the docs in line with the code :)
I think a section could be added/updated discussing leaks and %p (in that it is hashing now), that would be quite welcome!
I do, probably need to go through this document and update a few things.
How about I do whatever generates the least amount of work for you. Is it easier if I add the %p stuff for you to review or is it easier to just leave it for you to do in your own time?
thanks,
Tobin.
Quoted 19 lines · Tobin C. Harding
Quoted 18 lines · Kees Cook
Quoted 16 lines · Tobin C. Harding
Quoted 11 lines · Kees Cook
Quoted 5 lines · Tobin C. Harding
Advice about what to use as a unique identifier is no longer valid since patch series was merged to hash pointers printed with %p. We can use this as a unique identifier now.
Signed-off-by Tobin C. Harding <[email protected]>I don't agree: %p should still not be encouraged. Exposing an identifier to userspace needs careful consideration, and atomics, idrs, etc, continue to be a good recommendation here, as far as I'm concerned.
Ok no worries, so these docs are valid and current as is? I have no agenda with this patch, just attempting to keep the docs in line with the code :)
Quoted 8 lines
Quoted 4 lines
I think a section could be added/updated discussing leaks and %p (in that it is hashing now), that would be quite welcome!
I do, probably need to go through this document and update a few things.
How about I do whatever generates the least amount of work for you. Is it easier if I add the %p stuff for you to review or is it easier to just leave it for you to do in your own time?
If you can write a section on %p leaks, that would be great!
I can clean up other things as work on top of that.
Thanks!
-Kees
Quoted 3 lines
thanks,
Tobin.
Signature · 2 lines
Kees Cook Pixel Security