From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752693AbdLDVW4 (ORCPT ); Mon, 4 Dec 2017 16:22:56 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:49917 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750995AbdLDVWw (ORCPT ); Mon, 4 Dec 2017 16:22:52 -0500 X-ME-Sender: From: "Tobin C. Harding" To: Jonathan Corbet Cc: "Tobin C. Harding" , Kees Cook , Laura Abbott , Jessica Yu , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] doc: update 'unique identifiers' Date: Tue, 5 Dec 2017 08:22:40 +1100 Message-Id: <1512422560-31290-1-git-send-email-me@tobin.cc> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- Documentation/security/self-protection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/security/self-protection.rst b/Documentation/security/self-protection.rst index 60c8bd8b77bf..f10f47cad825 100644 --- a/Documentation/security/self-protection.rst +++ b/Documentation/security/self-protection.rst @@ -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