Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1933745imw; Sat, 9 Jul 2022 15:34:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v9NJk3L5KVRzCYcxhAQJK1Ahcuen0YQ1I3Abcq7M1jzFHqFF8rkPJ57nojOy/ErUDzAElk X-Received: by 2002:a17:903:1105:b0:16c:32e4:6453 with SMTP id n5-20020a170903110500b0016c32e46453mr4551588plh.131.1657406050240; Sat, 09 Jul 2022 15:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657406050; cv=none; d=google.com; s=arc-20160816; b=YTEjyePT+ga7fevTRoYfFndXnL4q/K1YMb7AJNp5I7tFJm2IBVlnK+r1ZtSMJeZGRP xlYRvPlVwqpb7VsK8/Z3wgORySF8AHLpSCFA6nDMdkkt7oj1PTxNbda4pij26AdLPVd9 FFoyrQ2g5trfn25S9zc43Ms4LsQWdenG9lXdKkOhBTRvCU9AucDNFDs57od21KBdK+ki +R/rtQbUXEFM1vf+gkkgmnIqvYfPiWHgfiyreIc+KObgIBAuyUag3E6Wku4hRHgA8UuU 5iBQWPjIYg+BeC3XT60JwpzBAA/tXMQrph7kIQwFHjCSzGLYJg/KSbaxgjjj+dq5yZvB hiFw== 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=OhakN0CbPGAURNzXwQdTG1uJ+Tnk9cizh7DwFIQJaqc=; b=sUvcU38PlZ7r9dOTHIoBFi/Yky2cwScbJrabn/EzokM/dfF3pu32GTouDycfJ/zpI7 1xb/vJtFnWsDLAPK4467/yT5emjmHQ8kV10v/zxLM614a6Qdw7JddTnr4fBLuj+sVwsa hnAXmZ5aTsrP6z/qJgWqXhRJRps4vmH53pKe8N+RSQfrNjglQ0vhhDXHWnJkg155sIn9 +ZFOZuRuxTEmPNb1zM5ai9V3sKBUcZz2t90KOYXpiEUrY1vWmgpwV7Zso5DDVIxezyKg HNdhYKSP44Cxi/hVoC8U/uRrjxhfuczJr/lAfHu4Xcuu3Vtkqqj4uuv7avA4ioUWwQvY VqJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=lK3PxxhY; 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 p7-20020a056a000b4700b005254e98b56csi4784911pfo.153.2022.07.09.15.33.51; Sat, 09 Jul 2022 15:34:10 -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=lK3PxxhY; 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 S229613AbiGIV50 (ORCPT + 99 others); Sat, 9 Jul 2022 17:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbiGIV5Z (ORCPT ); Sat, 9 Jul 2022 17:57:25 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C91E10FCF for ; Sat, 9 Jul 2022 14:57:24 -0700 (PDT) Received: from zn.tnic (p200300ea970ff643329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:970f:f643: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 A0CA41EC01E0; Sat, 9 Jul 2022 23:57:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1657403838; 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=OhakN0CbPGAURNzXwQdTG1uJ+Tnk9cizh7DwFIQJaqc=; b=lK3PxxhYcllJ1mB1yIlDPX1hWUZ50onhDcdZ3fQWf8k30uy8rh3tqNCaohAjI9VxHJlRGv DqEHUh3GOo6MlZ1ZGplwGNVtasEa2/5x7TnxcmgdhlMIJ695JcQAwyvDqgj4rYRRkT7e9P Vxeyer3kRVht7jsmFkAL4IGsxYrGE9Q= Date: Sat, 9 Jul 2022 23:57:14 +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> <191d8f96-7573-bd0e-9ca4-3fc22c5c9a49@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <191d8f96-7573-bd0e-9ca4-3fc22c5c9a49@zytor.com> 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 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? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette