Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1942284imw; Sat, 9 Jul 2022 15:50:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t0F5hGUng+z0gX7YJAN61kc7RGl5iNpuOkhQei1MyYgXI/zGD+DAa50jbC2BBpbBpGrSNz X-Received: by 2002:a17:906:847c:b0:72b:4188:f940 with SMTP id hx28-20020a170906847c00b0072b4188f940mr2425135ejc.552.1657407002303; Sat, 09 Jul 2022 15:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657407002; cv=none; d=google.com; s=arc-20160816; b=jegjM+378UIuD/Z4BP24JpHE/L2x0+fceFUE0j8gvM0lgHVYKfQ0zXHHhzEej8uqq4 2Mkky9sLVd4gSm11TumIZ1+JEThmxsAfCcqjk1t5z9lHiSDhAhT1FHzEUXvgASmmbUWu bJmLQhrdSG9CTyt2zw6X3+p6CF+bwpodYKcAdEVWebEYL+xiblJQGig0qvMYWDvpJdiq k6DBBEYm3diEXAKsRXcY/3D7WdnTZntvjzDVI5VBpEGCNBfvvmleePZezho/h/n+76I7 gkhPGRT0lxkQD4nPS5p1ArF/ZVmx66/1mP4vYNev0Aln58Gvh3lzoSrWIgpH+lzooxmT LSZw== 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=Cy1CTu6T1Wo/2voSB7RyY/22HAamlHwFuPGZxrlfY6w=; b=FZvisSbJgpo9VKVJ+ftnCHzHin/glRnPuCa27/309vpQtXm3BZ9mB0lW+r/B5k0IZD 6feJp7iNOLKaDnukQjtbmK4Kor34cYgIbTa4OHwhviRq010GbV9RR4ldBYClYqdUR0Wz lM401W0U+xstUl6lA61WhhSSo3jz6KhpcxLpQqXy0Omb1j0yBJFXBrkSwa2PrZOI5Ouo U8EW1pf4F7NFEwmFScYVUAVw75Y7vSS0Zqj244pgO05LWdh9OIKGdU83Wpe+08iyy0y/ TW8X6XmcUiJbGs01ew1Nc5xjJvnmXgzAhLyNHSyv0MR+KqDZr6SANwfMBk9BOVmL8/MS 9KlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2022070501 header.b=Ej8T3xB4; 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 l22-20020a1709060e1600b0072b14352ab5si3755983eji.537.2022.07.09.15.49.37; Sat, 09 Jul 2022 15:50:02 -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=Ej8T3xB4; 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 S229517AbiGIWlg (ORCPT + 99 others); Sat, 9 Jul 2022 18:41:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiGIWlf (ORCPT ); Sat, 9 Jul 2022 18:41:35 -0400 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88DEC11C10 for ; Sat, 9 Jul 2022 15:41:34 -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 269MfOe32280396 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sat, 9 Jul 2022 15:41:24 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 269MfOe32280396 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022070501; t=1657406485; bh=Cy1CTu6T1Wo/2voSB7RyY/22HAamlHwFuPGZxrlfY6w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Ej8T3xB4lpT0ypyEGH1BUzWbaFC8rvjj3PHNZOEYSxuEmqnhjiWyMpSM0/sODDwgX G42B3a6cE+zl+GQXNTqZxfR3hmLFBiq0SJBCw2juT0JDnUL99U6sQJXVot67ZLMSQM dWrLC8iriDIxbtx6RAWe3KpuUZpTLrCi0F8CLkKBQxbGNaAQv52zSwH26M5wzMwIUo a71XcN9twuiZoRdasvtgKHA8C2OWQ/6fDjN24yl3pdHvqJpiD5B97cHeFAS3y/YhqZ +1N1VzDyPG03K8IjvC2Vy15AMILUQp6f/NbY9Z2XoPbNue6ObxwANcu/JJzzIZmJpr uHLAqtWXXZOlg== Message-ID: <8e5eb2db-ce31-3dc8-8f75-3959036686f8@zytor.com> Date: Sat, 9 Jul 2022 15:41:19 -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> <191d8f96-7573-bd0e-9ca4-3fc22c5c9a49@zytor.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 14:57, Borislav Petkov wrote: > On Sat, Jul 09, 2022 at 02:45:24PM -0700, H. Peter Anvin wrote: >> 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. > > Sure but do we worry about some userspace including those headers and > relying on the SETUP_ENUM_MAX number? > > Or is userspace required to be recompiled against newer uapi headers? > In ABI/API terms, that symbol has the semantic of connecting the API version to the underlying ABI version; a piece of code that sees an enumeration type > SETUP_ENUM_MAX must by definition treat it as an opaque blob. In the future, should it become warranted, we may add flags that indicate how unaware code should handle them, but I don't think we can engineer that right now. -hpa