Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2173526rdb; Tue, 3 Oct 2023 12:31:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDGLDqVf8FBAQqaN9T4wKKjxjPeyoLOf3qp0KVQ/sVN52NgwjF3MRfE5USmaRETCOzVBvD X-Received: by 2002:a17:90a:a406:b0:276:7e50:a497 with SMTP id y6-20020a17090aa40600b002767e50a497mr235081pjp.42.1696361477682; Tue, 03 Oct 2023 12:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696361477; cv=none; d=google.com; s=arc-20160816; b=b/xe7efw0mz17VnTBtGRm6muftzTR0U/YPrKgLxxwhFooPxa8ehEAl9PJ81F936zJV LN6UbS0U5cwhmq10ky3r1JqYoXf+Yl0WnhnCkhQYM4OYfk/ubJAd9dn8M3KVOLzjosqw Uc1tC4hEnRknZ1EDTToUInnsqkqaLeGLRjPRA3dFiRygigtNRGEkeiSeiLIEpqtdaVs8 ZU1HW5z+7v/l9gbff9fmtKbUL0fRmX3PVeaPIQVMCXB4wUydseEQUyhHOQh7Ma6VpjXC PdHr9n3NATeMAnqkmsIEHPax8JjeB1hQ0QLoqlfdNGz2sZ03rWhEEcZViSaXo/Dc5yOf 59KQ== 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:sender:dkim-signature; bh=91yxhS2lgEwwop+CsexGsRQMQPau+YfssFyd0l/2CIU=; fh=0kOoeTcw0DospH1255n2PxpaERzU9WL7oD2eaE6maQo=; b=gC95uwWOOdPiXZWKUiEinnUDNlmA/Ij60CcuwD+SPWPY9KwY1Rx4lf5lrMmRK8HVbO NkHIpPohIUcO8qs6RpOERwa5AowNhoMUKTpjbHInMarPImmEFXVTEuYpXmpRqp/UOtUB Ueqzby+fRAa+0AZzamebYWnJQVnYUio0TrS5K+9ragQT3luDCtZRwlWvypTFOs6ymo6v dNzSvQMtiyCC0pPtbe6y765M9JEv2QkEUThYk/W239KOqgVMZisesKTKvayh4LftDsJD Km2LC3UzoCJMKoP37rtoFhzeGOqQdUKsUF8MFSmkgcjhqtivcR+3wDX0zo6+5JrJbOdY VS3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RezoU9P9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id kb7-20020a170903338700b001c62acfa473si2014379plb.62.2023.10.03.12.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RezoU9P9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 24762801CF49; Tue, 3 Oct 2023 12:31:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231966AbjJCTbD (ORCPT + 99 others); Tue, 3 Oct 2023 15:31:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbjJCTbC (ORCPT ); Tue, 3 Oct 2023 15:31:02 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5B1D9E for ; Tue, 3 Oct 2023 12:30:59 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-533c4d20b33so359881a12.0 for ; Tue, 03 Oct 2023 12:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696361458; x=1696966258; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=91yxhS2lgEwwop+CsexGsRQMQPau+YfssFyd0l/2CIU=; b=RezoU9P95yBAHeEKEsww+jbHPLYCJyGsLJL9CEVsJm4lbLwKWgs03doh8Kt8bJL6Z1 yi7jp89/aNRuLeVKxy0JQAp8U+4hOnyaU+njyEwBTVCcY1FQChCOxJ65q/2RVEzhH8Ve 0ax5XETfIEhemkYhZGeSY8Kvc/fwhgAcskeSqAap3diz3WYRmvUk3dR8ftW5BnQ3G5vK Ee1qOGI5TZYQQZQhJH9vqSf5p+5wm3WM2/lmudJGdbLGIEjB71X2MwQEu/H/Ip65fSQS 63FQlHzWZMWHkLB79BTRe6Kh/L3cy8zreo56HkaEyjc5riujO3ZrkOFYE1l3yC33Ako4 gqKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696361458; x=1696966258; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=91yxhS2lgEwwop+CsexGsRQMQPau+YfssFyd0l/2CIU=; b=vaso2K2soHdyYzeg6ZPTQWwJADYg0egvM7qc/kY170haggEH8rhoNbF73XdOoOCzO5 CXN3pkpcicY33D4LNaz7OHb3SbCLb+cQo7oOpMRhZkF9tx+/x7wxSLu8n6xn9nrUJlNi 6mfzgOwAMe0aA83OzzcuGMlFdGcJSUvFvdRMqntXIMlaLctmAswVG7EvZwvsssWRee5F npwDnIhjMAbbwsI9LIcU+PKUGI+wccfmAtTCjDtL8VwO+Z+Gs4QCyPCPh/sl8v/YNLg6 KBGkJ70XKEKdzYUpdPHibXgsQmqZxo7i/m+B1D8Z7speR5Bn55zP+dZ6837WPTradXIm 3S5g== X-Gm-Message-State: AOJu0YywbbwEVW8GgpqWYMBo5Kt+PRzO0RqehytXm77oVSQwGgD/ATyB BbO0gnf/JO7OTDXoX2YexIVxtotdSAw= X-Received: by 2002:aa7:d393:0:b0:523:2e23:a0bf with SMTP id x19-20020aa7d393000000b005232e23a0bfmr241076edq.11.1696361457966; Tue, 03 Oct 2023 12:30:57 -0700 (PDT) Received: from gmail.com (1F2EF530.nat.pool.telekom.hu. [31.46.245.48]) by smtp.gmail.com with ESMTPSA id j15-20020a50ed0f000000b0052ffc2e82f1sm1320552eds.4.2023.10.03.12.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 12:30:56 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 3 Oct 2023 21:30:55 +0200 From: Ingo Molnar To: Dave Hansen Cc: Alexey Dobriyan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , linux-kernel@vger.kernel.org, "H. Peter Anvin" Subject: Re: [PATCH] x86_64: test that userspace stack is in fact NX Message-ID: References: <4b78a714-5ac3-4783-8256-1dda4673db01@p183> <1d5223b8-0275-619d-db1c-e2aaaddb173e@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 03 Oct 2023 12:31:14 -0700 (PDT) * Ingo Molnar wrote: > Because not having NX in 2023 on any system that is threatened is a > big security vulnerability in itself, and whether the vendor or owner > intentionally did that or not doesn't really matter, and a failing > kernel testcase will be the least of their problems. BTW., it's also questionable whether the owner is *aware* of the fact that NX is not available: what if some kernel debug option cleared the NX flag, unintended, or there's some serious firmware bug? However unlikely those situations might be, I think unconditionally warning about NX not available is a very 2023 thing to do. Thanks, Ingo