Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1371349imw; Sat, 9 Jul 2022 03:08:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uu/ssgzYXcM/nP9l+2G1MZSZl47Of5TtjcMaC2DGfgPmZxYWJgvb7/jv5mfn+ympy8G1gY X-Received: by 2002:a17:90b:4b4d:b0:1ef:bff5:de4f with SMTP id mi13-20020a17090b4b4d00b001efbff5de4fmr5098046pjb.120.1657361309597; Sat, 09 Jul 2022 03:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657361309; cv=none; d=google.com; s=arc-20160816; b=YYf3W6Aq6wj7jFzvigkdKAak7PPes+7F2A0x2lExkiGyoiO0cdjJ4CUsT4TR3Yc+YC LGBcrjDxasF+G0BufXGys8MJiNqP9zYcszQ+PosneR0589IGn1iIdQTRygB+d3C3figm uOC0XOiNqLssM0yLi+qntwovdamJQNzZbHFiFUYYRSX0jT2tr/FuZ7Qk8tlweuLo/vWq 3KaRcUeNqreUIsZ4epXL6fq4ODHMSFAOP0c8w4/Wwy/OEATC4FhJJKdhHvaj8FLvhY4i 8XNubkZ7EwGPamx9+scxC0lgPD8Kz282/t5lmHeN1ZYtDTmJUCCiT2Exv3APwiViIv3p Y7Rw== 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=MyDsTOCGKUyWoK+q/bmZssZe+uVz4fzGASfB3e10sGQ=; b=wk2hXDPx11NJVa+JnF5nHsozrsXounN07pCwEC9sqovt6OY73IpEqChax/ebVbRxhZ dnyod/ZMQxmI2jvXIrfUOD6u+tEB2rNJAc2PmYsCTzI7zQY7XmXPB5IUK2eVDPzktFfq QKHxfa22rHV1qv0mTtURY6v2TOrJE+dKgira6NZhfAOR5ALK/rXflLIKXxE9UZ3hu98j e8tjM8T0a4phQ/skwocM1CsYY9mleAP4BwdOgE2whRuLG0dPZDLu7oCoXzSxcdRgwcLO BhdxLxW61ied/LJgMobmQUodeDe/ARRLQ8XFMOeI94GzzksohjIgysYzjiBdF6r0ZXhH DivA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=q7hfMTeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c23-20020a170902b69700b0016be703438fsi1687082pls.543.2022.07.09.03.08.16; Sat, 09 Jul 2022 03:08:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=q7hfMTeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229637AbiGIJuE (ORCPT + 99 others); Sat, 9 Jul 2022 05:50:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbiGIJtr (ORCPT ); Sat, 9 Jul 2022 05:49:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9ECE54 for ; Sat, 9 Jul 2022 02:49:39 -0700 (PDT) Received: from zn.tnic (p200300ea970ff6b1329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:970f:f6b1:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A6BB91EC01E0; Sat, 9 Jul 2022 11:49:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1657360173; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=MyDsTOCGKUyWoK+q/bmZssZe+uVz4fzGASfB3e10sGQ=; b=q7hfMTeuZH3kOYrAgqh9pGzCvf9hwsdBGAp4Umg1MMHxss+NdjigeBoMhFTgSDWI1+AQJq FPPgWwlj60UlQDhXRZi0hlN9hls+CmLSr+diTGQ4vQ0jTAGDjL9xOdEDdRvEOdt9DOgHK3 Ge8n1rFJgOHZagWU8DakuV6M+zXHGaM= Date: Sat, 9 Jul 2022 11:49:29 +0200 From: Borislav Petkov To: "H. Peter Anvin" Cc: "Jason A. Donenfeld" , Thomas Gleixner , Ingo Molnar , X86 ML , LKML , Andy Lutomirski Subject: Re: [PATCH tip v8] x86/setup: Use rng seeds from setup_data Message-ID: References: <20220707000852.523788-1-Jason@zx2c4.com> <20220708113907.891319-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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Fri, Jul 08, 2022 at 06:51:16PM -0700, H. Peter Anvin wrote: > #define SETUP_ENUM_MAX SETUP_RNG_SEED > #define SETUP_INDIRECT (1<<31) > #define SETUP_TYPE_MAX (SETUP_ENUM_MAX | SETUP_INDIRECT) Wait, if we get to add a new number, SETUP_ENUM_MAX and thus SETUP_TYPE_MAX will change. And they're uapi too... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette