Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1933371imw; Sat, 9 Jul 2022 15:33:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tx8ZjaMYD7jK5cshC9qbyfeTJIvWTowhQmYywdvLNraQYa6g4tXM3DEysRt0LD7NkqVoY5 X-Received: by 2002:a17:902:c205:b0:16b:f021:4299 with SMTP id 5-20020a170902c20500b0016bf0214299mr10826789pll.70.1657406013920; Sat, 09 Jul 2022 15:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657406013; cv=none; d=google.com; s=arc-20160816; b=LBYdID43v9UQFVq3qFi8bmPRfMTZpoo7QigSOQogwyd49X+hgpg1rvHklx4OW8Nqqu sUbR76MVdOupKYMAbB0tTfclZHC8kf8SQwoPbywoxkrZ6meZgFks5JTKQGAqEGnObbFv aTGdLULdutLeGt3hVBxCno+hvEXaXBzcY0vRgYhPWsl837wcafmdfvu1S1MVNlB36EWM Vt2d7A91Q3o5JJvxG0LFI8+LG1InRrz0lbWA3XtlT634Ge5/JHuUI4RXteR/XrIJ0Iqd T1hZWEp+DrU31YelUg6tbrQnbP7vQ68JRRKsEvLfZJcublS2fcnb7r6bwiwHWeDe18jQ hCdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=aXOKja45dVtca40iHk9WQuXR+H/NtJR+jgzp7l5Qntk=; b=xHouqrcfRczm9/IYCjty0SuVILPt5ZU0hoe6AbBnwtU9LORkrTqtmvxs9/l0Ec+sTj xjpKdL1SriCI0SnZAdgD5NZUZ+N8mOuerA6vxgJfpk7NRDykdhLojDZi/4jAU9D36ni7 CXvkthH9wBCGz6zJvWApIwJdkzpa/ZKEQNDWE22A3QCoYb8T3RO4M3LWoI5hPUkum7Ch PoPKzvMVTYmVg0+aZa/42E924R7CzaB36boetLpA/urqo+8txPSnjl5mhtDXQSUu7OCJ SZsX3wx0IealJfylG9FA7zneFYheP6A+fW3eOin43MIc2zGu4YEbK52C4ytXS+E9KmmT 4vXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2022070501 header.b=qdL7SHdL; 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=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a63d70b000000b00412f6a2d2besi1369404pgg.548.2022.07.09.15.33.21; Sat, 09 Jul 2022 15:33:33 -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=@zytor.com header.s=2022070501 header.b=qdL7SHdL; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbiGIVpt (ORCPT + 99 others); Sat, 9 Jul 2022 17:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiGIVps (ORCPT ); Sat, 9 Jul 2022 17:45:48 -0400 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27A98101CC for ; Sat, 9 Jul 2022 14:45:46 -0700 (PDT) Received: from [IPV6:2601:646:8600:40c0:425:cd56:6750:e1bf] ([IPv6:2601:646:8600:40c0:425:cd56:6750:e1bf]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.15.2) with ESMTPSA id 269LjU0T2266948 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 9 Jul 2022 14:45:30 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 269LjU0T2266948 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022070501; t=1657403131; bh=aXOKja45dVtca40iHk9WQuXR+H/NtJR+jgzp7l5Qntk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=qdL7SHdLKcelbFK201Bs60r2segRQXhbe77S19iNy4XtjTlIutqgRL0vVbF/QKfjZ +mFfsQTbamN+IwI3nmXVeN4N3el27XDUb2yatMdVOPCuqe+ftHsTXa77hmh0VcHo2e J3ZgIJ0mUtmyhHf3rapSAtxMCzxNCVFB8kl4jx9AHZEeH+S+1D/ZWolQ+TCB119vqa cPT3iueZx245DmnbpKDenLzgMZfnb4iXPTg81SFYWJAyYrJO8DC2vzhI8S23kJmGzI Nl4YwM4vPhSKxq6Sb6ZgL2bqQdxsi+J+YFFVwe6QNfUdogcnh5MfQ8jSc8BjTVj9gM 2vuRnV6rn32uQ== Message-ID: <191d8f96-7573-bd0e-9ca4-3fc22c5c9a49@zytor.com> Date: Sat, 9 Jul 2022 14:45:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH tip v8] x86/setup: Use rng seeds from setup_data Content-Language: en-US To: Borislav Petkov Cc: "Jason A. Donenfeld" , Thomas Gleixner , Ingo Molnar , X86 ML , LKML , Andy Lutomirski References: <20220707000852.523788-1-Jason@zx2c4.com> <20220708113907.891319-1-Jason@zx2c4.com> From: "H. Peter Anvin" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 7/9/22 02:49, Borislav Petkov wrote: > 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... Talking API here rather than ABI, i.e. the semantics of those symbols. -hpa