Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2129986iof; Tue, 7 Jun 2022 20:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCO6zdF/TKFYyAfcr1usz9ORNA70nxoWhvQE7J26tiH3m1jGZmW+BPnFdhT1HrhqAJyhBn X-Received: by 2002:a17:903:22ca:b0:163:e2b6:e10a with SMTP id y10-20020a17090322ca00b00163e2b6e10amr31952855plg.32.1654659875298; Tue, 07 Jun 2022 20:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654659875; cv=none; d=google.com; s=arc-20160816; b=kW+cgPU3pcn88SRkttrz+p952ccE15tbrV7iNjZtYaGX0EKJPybFK3Www6eCnqbbg/ CbTh2gRlRHSfsi9yZja23dN9IMmKbuZXi3v8BCiY6SpOpVNAy5J/Kb/55o5zpmg0Pq6l dSgXGIMq0pGymZlAUK89JbxqLpCeefuIzYECpehTP0uhJnNUp5DB/T3tBvLpHthHr76a FHsC6+8iwic+rdCQS9NnKdt3IWgQMyflJLcgK0V0gg/KczCtv81pBRnE5ovS62th9soG O8NEjCQCrcmS2uTPnEeiyjmay2Z6HwYXFiygX26BZufqnY6NkwmLscyVezOZhz8q9oPM q06w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xHuOos5FYGJzaRithMcXZPaMqy5pqEvF3gQXE6l18Ts=; b=u1efCkDl1Nj25qjzRlHdZE/LKSlzP9UKP63YgLV4GV+A78vEjGlkKl1UaRdcdYlXS4 VpORRUUtmmSRW6Uz8itc0eD6GxMS/9T/0YwZM/k/4c9e63jEMxnekPJxmg9pAQieWdNN yMyzyWwnwK3luuX50eynNDC+KCybqfCUGNIgRJvk5I+huFD1YWOSeW0sgQubE6hLRaHF yu1d5XDhNhiVYQK+7qrDlHaNEbHSu0E6vwsRvsNySQa6pYtJN7zFmgm+yz/MFqQWAHWV jsm999+7ZxFw5BxSnv+ajI7JMYkIwmsLLzaU1b+AL8YFrcFJEuj5SSZOf/ZAoAXq7K0j XTrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=J+iGEOkg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q188-20020a632ac5000000b003fd63c3d9efsi15937414pgq.453.2022.06.07.20.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 20:44:35 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=J+iGEOkg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 700FE1D5AA0; Tue, 7 Jun 2022 20:03:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231946AbiFGLfa (ORCPT + 99 others); Tue, 7 Jun 2022 07:35:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232240AbiFGLf1 (ORCPT ); Tue, 7 Jun 2022 07:35:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 313DC2E09B for ; Tue, 7 Jun 2022 04:35:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C0444616C2 for ; Tue, 7 Jun 2022 11:35:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B376C385A5; Tue, 7 Jun 2022 11:35:23 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="J+iGEOkg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1654601721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xHuOos5FYGJzaRithMcXZPaMqy5pqEvF3gQXE6l18Ts=; b=J+iGEOkguDHkFjkoFiE1G5uQtPmrAc4ExyGFY0En5bmKMrfU0dI9N/80sJmtRo+ORWDDTg iph7m1Ooo2gKNZUNdEAT7kMH9lTBq1aZ772o8UGlkH+c8hLwbtvdmm6EgBZGh2tNNHxs3N A8IJvM8TLDQICBdL++HX32swl5lNjMA= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 4ac0d11f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 7 Jun 2022 11:35:20 +0000 (UTC) Date: Tue, 7 Jun 2022 13:35:16 +0200 From: "Jason A. Donenfeld" To: Ard Biesheuvel Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stephen Boyd , Catalin Marinas , Russell King , Arnd Bergmann , Phil Elwell Subject: Re: [PATCH] random: do not use jump labels before they are initialized Message-ID: References: <20220607100210.683136-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ard, On Tue, Jun 07, 2022 at 01:10:52PM +0200, Ard Biesheuvel wrote: > Fair enough. What I would like is to remove the need to play around > with the placement of jump_label_init() across architectures. Jump > labels are fundamentally a performance optimization, so unless you can > explain how setting it as early as possible makes a material > difference, performance or otherwise, I really think we should pursue > a solution that does the static key manipulation at some later time. Alright. It sounds like Catalin also prefers the same. This seems simple enough with minimal downsides: https://lore.kernel.org/lkml/20220607113238.769088-1-Jason@zx2c4.com/ So maybe we should just go that route. Jason