From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74B09C10DCE for ; Tue, 24 Mar 2020 22:06:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 18B3E2078A for ; Tue, 24 Mar 2020 22:06:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="aAS4Q+6s" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 18B3E2078A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 701B16B0005; Tue, 24 Mar 2020 18:06:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6B19A6B0006; Tue, 24 Mar 2020 18:06:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5C89C6B0007; Tue, 24 Mar 2020 18:06:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0045.hostedemail.com [216.40.44.45]) by kanga.kvack.org (Postfix) with ESMTP id 45CEF6B0005 for ; Tue, 24 Mar 2020 18:06:55 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0B44D151E1E for ; Tue, 24 Mar 2020 22:06:55 +0000 (UTC) X-FDA: 76631641590.11.shock77_5973871c57d15 X-HE-Tag: shock77_5973871c57d15 X-Filterd-Recvd-Size: 2946 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by imf10.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Mar 2020 22:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RgOSv5leUzdh9drlvUWI/yMDTMMdqFPXz0ZLHcJ9Qrk=; b=aAS4Q+6sODIaHbIvnMNlQ5KsSS WQ6pOZIKF1v1HbpnjpTp0sEEqKotsv7YAX/6keV3jCJi4monNTYQgMJDjQc6zZgSJyWEoAJJxrCn6 2Wtau+W4MCGQhoG1DYaVOae5ieyPMQantZoA70LPpgA2d92YcmM9Opq94LM+64idGuHIarHnOa+fJ 8g/FtxwMBiYi5ljyGa6nG/AzrKDh3BPJpxrV/7Nn030GCm7jOEH3LpTrxhyQH2Gl6SJDFbCgh7/Yu EHVYqlnS6JEoOjv8O8HKtL1Xt5PUyZ3W+zgHvzKrF2zatGASlP9ApCKZ12nWFczNHgWiHpAVILumF lFViESkw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGrh5-0006JR-2q; Tue, 24 Mar 2020 22:06:43 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 42090983502; Tue, 24 Mar 2020 23:06:41 +0100 (CET) Date: Tue, 24 Mar 2020 23:06:41 +0100 From: Peter Zijlstra To: Kees Cook Cc: Thomas Gleixner , Elena Reshetova , x86@kernel.org, Andy Lutomirski , Catalin Marinas , Will Deacon , Mark Rutland , Alexander Potapenko , Ard Biesheuvel , Jann Horn , "Perla, Enrico" , kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] jump_label: Provide CONFIG-driven build state defaults Message-ID: <20200324220641.GT2452@worktop.programming.kicks-ass.net> References: <20200324203231.64324-1-keescook@chromium.org> <20200324203231.64324-2-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200324203231.64324-2-keescook@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 24, 2020 at 01:32:27PM -0700, Kees Cook wrote: > Choosing the initial state of static branches changes the assembly > layout (if the condition is expected to be likely, inline, or unlikely, > out of line via a jump). A few places in the kernel use (or could be > using) a CONFIG to choose the default state, so provide the > infrastructure to do this and convert the existing cases (init_on_alloc > and init_on_free) to the new macros. > > Signed-off-by: Kees Cook Cute, Acked-by: Peter Zijlstra (Intel)