From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752341AbdJ3UWu (ORCPT ); Mon, 30 Oct 2017 16:22:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:55214 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593AbdJ3UWt (ORCPT ); Mon, 30 Oct 2017 16:22:49 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B45421906 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 30 Oct 2017 16:22:44 -0400 From: Steven Rostedt To: "Tobin C. Harding" Cc: "Jason A. Donenfeld" , kernel-hardening@lists.openwall.com, "Theodore Ts'o" , Linus Torvalds , Kees Cook , Paolo Bonzini , Tycho Andersen , "Roberts, William C" , Tejun Heo , Jordan Glover , Greg KH , Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , Catalin Marinas , Will Deacon , Chris Fries , Dave Weinstein , Daniel Micay , Djalal Harouni , LKML Subject: Re: [PATCH v7] printk: hash addresses printed with %p Message-ID: <20171030162244.4f55e623@gandalf.local.home> In-Reply-To: <20171025034934.GD15832@eros> References: <1508798008-1692-1-git-send-email-me@tobin.cc> <20171024003158.GB1429@eros> <20171025034934.GD15832@eros> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Oct 2017 14:49:34 +1100 "Tobin C. Harding" wrote: > > First, the static_key stuff. > > DEFINE_STATIC_KEY_TRUE(no_ptr_secret) : Doesn't sleep, just a > declaration. > > if (static_branch_unlikely(&no_ptr_secret)) {} : Doesn't sleep, just > some assembler to jump to returning true or false. > > static_branch_disable(&no_ptr_secret) : Doesn't sleep, just atomic read > and set and maybe a WARN_ONCE. How quickly do you need static_branch_disable() executed? You could always pass the work off to a worker thread (that can schedule). random_ready_callback -> initiates worker thread -> enables the static branch -- Steve