Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3194349pxb; Wed, 13 Oct 2021 00:32:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8FQ92RTN/yy2nb65rAc+tXJgBOmTzDoxMhqd+0W4hVuTCHoAwRAbT75pAtQITqVXxwqtt X-Received: by 2002:a63:6e07:: with SMTP id j7mr12605843pgc.6.1634110340999; Wed, 13 Oct 2021 00:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634110340; cv=none; d=google.com; s=arc-20160816; b=IuFDz1BrLc77En70W2zmkGpHKDBZcEPfw87RFlGjVJFkpoIu7vKGThSk0hnuKiPcKS FKZ+z7ok1KPf7K3BPGNrtgSa6au+U+IBVCsgbBkCWjc5mmgjgxslx7NatdkX+wkycCfl T8DfyrHXPd8SUy1PFd5J90v3eWjzvto8bc6ydEujAm+GEb33FVEcPponnAEGbxn50i7t MQohSeCU0sTTgRriOARMEHtz9eWdrUZ8ikhVBCob1QjD8ewe9Qz3hwqRiuVwdCptX0ht a+wNVERKpOaAruk9YrJofIfNG3YReGmu+lNSBf3XGlA53X0M8RozzcKzAGub/N1UWsw3 K1Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature:dkim-signature; bh=HhfXZJsynHXeyAbLDW+uMMRCkXibzgFnenZPaIVd2Uk=; b=ve1HXk8mUl8rbK1vDS2HNKMiJvX3dNiz78RoKcYaerxCg8hvzg8nA8exhR06Le1QQ1 L6W2uGwE76jHn8zV6R5mp7Z1neSmIjw+NldGpB8rWTFv9v48zvThhiBSjcBi0UYgJ4G1 xJdu9ohlIhFYSL7CzZbCTyHUy8av40h1myxTm2vU/tqeYZt0M7kG2akYlMIQOwwdpgfL kEFD9fF6nZ1/fe6jwd6Q2VIJ9BKHeaPbfNqheAUfHi4LBU4KjgVk5RD5cKnRNuBre4x5 CheiiavgeayUn4R0fwQDWuOaJxmKH3Xai64CiSiarcHD9tpgKYbEp90reSRdbtj7pk10 1LfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lhcCX5wD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j70si18468304pgd.397.2021.10.13.00.32.08; Wed, 13 Oct 2021 00:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lhcCX5wD; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238458AbhJMHdE (ORCPT + 99 others); Wed, 13 Oct 2021 03:33:04 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:53066 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232284AbhJMHdA (ORCPT ); Wed, 13 Oct 2021 03:33:00 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id AD3641FF94; Wed, 13 Oct 2021 07:30:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634110256; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HhfXZJsynHXeyAbLDW+uMMRCkXibzgFnenZPaIVd2Uk=; b=lhcCX5wDaiF2DjEztmza0H2Kx+jMDkyz7cWvYQWBlPULjcOShsfBXNPSxBaGvaAClO7Cls A0evEwt9t7XtAHuOoCowKLa6+gyBp6H3jJyyttRQm74TdzEunQ3Yc7uIPqd1u4tG/viK0A SM3FMVPXwOVfUTBwK+LxQ9qAttrYpoc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634110256; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HhfXZJsynHXeyAbLDW+uMMRCkXibzgFnenZPaIVd2Uk=; b=ESFTWWjSP6XBpi1GMKdZTL2zV5io+RuihJKG/DOwx20L9Tuh7cqTDBPoriPwWqo7ocm8Hb cAkEji7Yj1JFA1Cw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9251A13CBE; Wed, 13 Oct 2021 07:30:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 62NZIzCLZmGMdQAAMHmgww (envelope-from ); Wed, 13 Oct 2021 07:30:56 +0000 MIME-Version: 1.0 Date: Wed, 13 Oct 2021 10:30:56 +0300 From: "Ivan T. Ivanov" To: Dominik Brodowski Cc: Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND] Re: [PATCH] Revert "efi/random: Treat EFI_RNG_PROTOCOL output as bootloader randomness" In-Reply-To: References: <20211012082708.121931-1-iivanov@suse.de> User-Agent: Roundcube Webmail Message-ID: <4eccf707f2553f0f66ae3789b5689231@suse.de> X-Sender: iivanov@suse.de Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Quoting Dominik Brodowski (2021-10-12 11:40:34) > Am Tue, Oct 12, 2021 at 11:27:08AM +0300 schrieb Ivan T. Ivanov: > > This reverts commit 18b915ac6b0ac5ba7ded03156860f60a9f16df2b. > > > > When CONFIG_RANDOM_TRUST_BOOTLOADER is enabled add_bootloader_randomness() > > calls add_hwgenerator_randomness() which might sleep, > > Wouldn't it be better to fix add_bootloader_randomness(), considering > that > calls to that function are likely to happen quite early during kernel > initialization? Especially as it seems to have worked beforehand? I have tried. I made wait_event_interruptible() optional, but then crng_reseed() segfault badly. And I don't think crng_reseed() is something that I could fix easily. Suggestions are welcomed ;-) Regards, Ivan