Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4073470yba; Mon, 29 Apr 2019 13:16:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqywYQ7rQHUlx+S/qizW0R/UrTn6skYFscvBdKRxty7pWQeoX+GWILDeD+aedzzmcu+5epR+ X-Received: by 2002:a17:902:22f:: with SMTP id 44mr63451720plc.175.1556569000361; Mon, 29 Apr 2019 13:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556569000; cv=none; d=google.com; s=arc-20160816; b=AX6eF4XAkIG7HN+qR3AlzQiDUycRUsfF87jUqIGYZp027a7fSuLJ/qd+WTEwXtIyCq H9IxXgwU855zyn5ivErG3FuRXBPlefwtnfUvf3eyQgAlHuaqdpZMmAnB0TszMbWCWmFq /y/BLN0cSc8tNDwp5ExgkSf4CCmQZcPfsTLhdDNLhJRhT5eCL3AXyXSjVvr8KXlDScVf KO1Vs5s6V6roJVyD20bhqrYReyRLxIxSdcyFRz7XjnIIZVdl5u0A5tGRo1ac0QU79GUb OfFqH0+alL6cOCFi34gZrty1gp4zH9GhyqHsYB4LdHlpPkzr/pqDSbUNiRCyPkJIrnVN SiNw== 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=klpGGVlaux40qrg5TuBwipJksiZuTXXgkF+MhiSRIlA=; b=WnMVKWGM9wrA9w27Y0Twj4qV3sgxWWjzvTAnLuuGWJtU5EuZA0wnkU4LLoX6+i2lJo fq/lVTbX+EXMHo6p/1dMCY0bAWHwNgcoEOU+p2WjCp3qgW8KjftPK/AiJdarC9bPu1kG XwFIL8wLRkpoWmmamuq5N1NiDQKtGp2OV11sSO2j19IPLxtM95H406D7QB7NtCd6yh4W HBC2MTFD/jB6ByDDF6J/eD7BUdFSUxtf7T53u3ck8ICli4Dn5Xa9FDp+rkodbCIpsru5 6tFfjgI5vlkR3YehWb93iYPQuuQE75nD0oJSPxY45PGaLGRGX/760jkbCDhO63sjXn19 Z0Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TcY9IXe9; 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 n8si33427904plk.108.2019.04.29.13.16.24; Mon, 29 Apr 2019 13:16:40 -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=TcY9IXe9; 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 S1729413AbfD2UOn (ORCPT + 99 others); Mon, 29 Apr 2019 16:14:43 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:33644 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729387AbfD2UOm (ORCPT ); Mon, 29 Apr 2019 16:14:42 -0400 Received: by mail-lf1-f68.google.com with SMTP id j11so9045857lfm.0 for ; Mon, 29 Apr 2019 13:14:41 -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=klpGGVlaux40qrg5TuBwipJksiZuTXXgkF+MhiSRIlA=; b=TcY9IXe9CfLqn42qUjL9P1ySMDeddDODCyvYowl1cSTLiBSIL5Qts+yxj2tJATyscS VuMBIQMZJ9FcZ/bxb46xlQLqbBowZnvy4pBLmtOnwzxLeSB2LeNEj9ycOUiKVGex0PQ0 7w5rqat134L6eKheTJLzUXWSjYZJq/e/a7oNk= 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=klpGGVlaux40qrg5TuBwipJksiZuTXXgkF+MhiSRIlA=; b=Qj4ThQrYlI+bO+P2qQYfSlTAHe86PNACxUZQlVTZ8XbJak+Evj4Xn4g1PDtKfUZyIs OS62TohcqeLbuvZ1RHpbfQcCEOugaAXwsIVN/KpjnBpn6BV7+e71UGhX1gD1udW0puul VIJ9Ahkmt6KPyHhvmA3JRFIhEdgCWJy02auZOb7lAUcN0rcUjynv5cpAs60mWhvMEeT4 uWitU/BLNSqkId3xubMEOWX5dKZ0ui3pXn+y/LzKF0fvyqUeijvcqQHuWL0IgvD2Umd7 o/41veFnUEuu8KKWrYBSg0GSQWmUxF+cQj5JCEKgC/K0x2+gdthK/qXGtsHE5ZLaxmVM mzUQ== X-Gm-Message-State: APjAAAVpWYi4YN1vqMn1f8eeE1Ke2dRchenSzEMgm6PvEBQCsb2Wkttb k2jVKO8qwWk/DWSugs4xhwnZOYDIYFE= X-Received: by 2002:ac2:4566:: with SMTP id k6mr33823569lfm.22.1556568880556; Mon, 29 Apr 2019 13:14:40 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id y20sm7597549lfe.8.2019.04.29.13.14.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 13:14:39 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id b12so9420414lji.4 for ; Mon, 29 Apr 2019 13:14:39 -0700 (PDT) X-Received: by 2002:a2e:22c4:: with SMTP id i187mr33222307lji.94.1556568469873; Mon, 29 Apr 2019 13:07:49 -0700 (PDT) MIME-Version: 1.0 References: <20190427100639.15074-1-nstange@suse.de> <20190427100639.15074-4-nstange@suse.de> <20190427102657.GF2623@hirez.programming.kicks-ass.net> <20190428133826.3e142cfd@oasis.local.home> In-Reply-To: From: Linus Torvalds Date: Mon, 29 Apr 2019 13:07:33 -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: Andy Lutomirski Cc: 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 12:24 PM Andy Lutomirski wrote: > > Side note: we *already* depend on sti shadow working in other parts of the kernel, namely sti->iret. > > Where? STI; IRET would be nuts. Sorry, not 'sti;iret' but 'sti;sysexit' > before commit 4214a16b02971c60960afd675d03544e109e0d75 > x86/asm/entry/64/compat: Use SYSRETL to return from compat mode SYSENTER > > we did sti; sysxit, but, when we discussed this, I don't recall anyone > speaking up in favor of the safely of the old code. We still have that sti sysexit in the 32-bit code. Linus