Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4380324yba; Mon, 29 Apr 2019 19:32:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1wzXOgXaMs/xEmFMO9Dt3H5QcY8V5TDtkWotKCDaSN8VueSEBLE+o+d1MIbfH8/Pksiif X-Received: by 2002:a17:902:a614:: with SMTP id u20mr33340534plq.117.1556591549961; Mon, 29 Apr 2019 19:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556591549; cv=none; d=google.com; s=arc-20160816; b=nJpNscI0gZHnfT/U65nCPNHekyuWQn1jJOrWHrVc9bVdeBLpYFGI4sQreEhs1cmLR9 4ifJ/7xNiSgkYI+aljQtYmZ14r4DlHRqH3HZxPOGLb7OrRpKMgLEtTYHKP3d2+lXdJlv aoD7m/JYBBnJXU9yCJuMkm2KbNJqcKOyM68x7rRjjMuD5jcDVx+c53nWEA1JWMmJElHv T6/1lOpeyYRVFFkKR0WiXXyPaVQgMCpwtJ8B5qdoA7mI3Ye3KM6qVWQZJ1Kc/DU0Iguj lxEWjlJQepxgEa2WkhJyA23IRTIjoOv9U9ySZgnDx3+QpSeuoXFS4tMTwTWsAOd8IFaW OwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7bXLV+X1SboPUgfWfwBzkogeRLHq9rIZ+BOOT2J1Fvk=; b=BbjEIaDqxFcv0yS7tqdI4NiwkRcMgAXH+zRMN+VnnUGV4Qg3mG28VNZUXFXWqs3UQ2 SXzm04BFNkjkLaZAUeUI5m4RW9tFK57/cgD2PQdqQPAnaJuUB/v8qx/A+NZfAKCtRti3 YovRS//bTnQIcI3rKU694HYfEkSFAp31Kq+0mGvKaJe7wMsQZ+qiZ6Hnmq92vCNOrE+u wgd3J3EHD6ErRnTIREDCPy1Kca/dwEqkqAUfJt2NxZ0xfYH7obZNqC4IIuYVsIn6uAht KP6Xz8okG+ARmpDVFCXH29HfjKVkGOn5PiSG14yfALY1KiTksaJlF2Cc0bQ0+LZobdPi +XZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NCQTeCyc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p15si9821110plo.310.2019.04.29.19.32.13; Mon, 29 Apr 2019 19:32:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=NCQTeCyc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729803AbfD3CbY (ORCPT + 99 others); Mon, 29 Apr 2019 22:31:24 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33879 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729877AbfD3CbX (ORCPT ); Mon, 29 Apr 2019 22:31:23 -0400 Received: by mail-lj1-f195.google.com with SMTP id s7so8551758ljh.1 for ; Mon, 29 Apr 2019 19:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7bXLV+X1SboPUgfWfwBzkogeRLHq9rIZ+BOOT2J1Fvk=; b=NCQTeCycXmEyoLD3XSPWnZUF+hXdPskjwYAWiIQuU1WhztQQ6dqXbSCj4NSwXP8DWN ZjcvtRAgsvdgAc/3KSLAFxaK4kcCHoNxoycA6JsPI8ky1/xJP5BClUWpKZT4TRT9XT4m 1DJsH/YCVSV0nucpo2++hoaf5DTQ5zm7Bsf9A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7bXLV+X1SboPUgfWfwBzkogeRLHq9rIZ+BOOT2J1Fvk=; b=k68LUu2ps+mut+Sbxn4R3VfIyUi+WJslW5Tytb5i2Z5H/Ry/gMbM/8JP6ZGltCTym8 wOWmCFhEi9kzEj6vqsSRPbTlFQE+lVRwLydO1JZWhE9SWZ1AKIUUS7qdpg1oBII4Nzqr 5PW8SlsWONZgVp2cWUa5hPRZamEhSP5Nc7sWsHcPqc+lK0TcWr27L2y+6MI3WlGApyC1 BwjnHCTGigDMtM46VgfUpFlLbB2uSKrAaRpr6kre3vZEFf8wSNyglQd3Kbf0cFf9Uzfp MjjJ1QxWQpfxy2V0BNLtIbRF+PjQfmPdWBtUNY041i9i3hACVSE4SEwpU+oVBXZA4VNe VGYw== X-Gm-Message-State: APjAAAWte75G7W9X12HCHhNdWaM5mwNVd4ukFklN6i+rr3dOS/O5sMYq q8qNvIJ4pkVa2UcnSI11rxj8LfhFeXM= X-Received: by 2002:a2e:5dd2:: with SMTP id v79mr35261295lje.22.1556591481343; Mon, 29 Apr 2019 19:31:21 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id j6sm8591285ljc.0.2019.04.29.19.31.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 19:31:20 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id h126so9587379lfh.4 for ; Mon, 29 Apr 2019 19:31:20 -0700 (PDT) X-Received: by 2002:a19:ca02:: with SMTP id a2mr33690036lfg.88.1556591178970; Mon, 29 Apr 2019 19:26:18 -0700 (PDT) MIME-Version: 1.0 References: <20190429220814.GF31379@linux.intel.com> <20190430000846.GG31379@linux.intel.com> <20190430004504.GH31379@linux.intel.com> In-Reply-To: <20190430004504.GH31379@linux.intel.com> From: Linus Torvalds Date: Mon, 29 Apr 2019 19:26:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/4] x86/ftrace: make ftrace_int3_handler() not to skip fops invocation To: Sean Christopherson Cc: Andrew Lutomirski , Steven Rostedt , Peter Zijlstra , Nicolai Stange , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence , Shuah Khan , Konrad Rzeszutek Wilk , Tim Chen , Sebastian Andrzej Siewior , Mimi Zohar , Juergen Gross , Nick Desaulniers , Nayna Jain , Masahiro Yamada , Joerg Roedel , Linux List Kernel Mailing , live-patching@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 29, 2019 at 5:45 PM Sean Christopherson wrote: > > On Mon, Apr 29, 2019 at 05:08:46PM -0700, Sean Christopherson wrote: > > > > It's 486 based, but either way I suspect the answer is "yes". IIRC, > > Knights Corner, a.k.a. Larrabee, also had funkiness around SMM and that > > was based on P54C, though I'm struggling to recall exactly what the > > Larrabee weirdness was. > > Aha! Found an ancient comment that explicitly states P5 does not block > NMI/SMI in the STI shadow, while P6 does block NMI/SMI. Ok, so the STI shadow really wouldn't be reliable on those machines. Scary. Of course, the good news is that hopefully nobody has them any more, and if they do, they presumably don't use fancy NMI profiling etc, so any actual NMI's are probably relegated purely to largely rare and effectively fatal errors anyway (ie memory parity errors). Linus