Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4149890yba; Mon, 29 Apr 2019 14:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbbJypB40Poh7D53mAjJLhFuMOVGkSm5qsdE1Y4TszSJXnKY73+ZWh9C2UkVYsnBW7TsbG X-Received: by 2002:a62:f245:: with SMTP id y5mr6591359pfl.12.1556574014341; Mon, 29 Apr 2019 14:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556574014; cv=none; d=google.com; s=arc-20160816; b=Y0zuvqpXhDFPar7gfeyd/do/g5Rk277+osaK83KUyQK2SmSJcmwSuq4iK+fw6oGKfH IAwUnP5JPrH7hOnsA6ViPIhQvj6mYxGE2hyhuPdS4tSp07XboYwvJmuB1PO/HWJkaHIX H1iDf9B7ErG9bwfvq1mDsJX3nUIDFU76m3OfMjGvChwOtegzDZgIz0sKVlx73Szufv64 JZi9OcQRU7oCZ//PdDpWvPF2Zk8ge2GseJF//AZc7+bC/erkIt7tS/ex2IWgFKhr/cWI 4VsUHBNK327rf3whzLVry+0ronj8+bNf/ckhIw421xtmT+znaGFNq6H79VZgPR30PqM+ SwIQ== 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=wSiV79NBIztMusWk2QP2VKKhKOlea+n31l0AFUl2Bg8=; b=ExW6tOW/ALZnbhHykpfDHOnlA9+yP0vPIuKZfUbN7VLiyVMHnXK828ssbQj+HNBJIq Go8FlU+I6m6h7rRHP58rTTAtfPAJ9S08yofZfVAzrCFnyxEgpZJnjjUmbCn7nI4VCb9L v3cRmH/EfChLYbcdYqJBRgk0dDOPsd7yR96KWY+a9Xaz+fMbjEhGSIza4jsO9FytZOFe lL/51BCjP9CfnWa8PMsnVbRVlEAiF7pXVWRo0eX1oo8f8027JHo9ULFM6rjTYixfQHxB sK09N+DmBYacZbPWLebcIaYkOmX0Lk2xKAOQnqohGq9CXgXTZtEsQm+RupRngCQprOSE 8yPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZMLzPqHi; 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 z13si32256940pgp.376.2019.04.29.14.39.58; Mon, 29 Apr 2019 14:40:14 -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=ZMLzPqHi; 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 S1729481AbfD2Vi6 (ORCPT + 99 others); Mon, 29 Apr 2019 17:38:58 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:36058 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729336AbfD2Vi6 (ORCPT ); Mon, 29 Apr 2019 17:38:58 -0400 Received: by mail-lj1-f194.google.com with SMTP id y8so4395804ljd.3 for ; Mon, 29 Apr 2019 14:38:57 -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=wSiV79NBIztMusWk2QP2VKKhKOlea+n31l0AFUl2Bg8=; b=ZMLzPqHi9lETwhRL66Ic7OfH6fw2vR3J8CHiKq3pfDQQ78NgprQyY154J6Rqvkqc7s C42c14gHHilvBkmQFjpiBuapTUcRjDejOz3oZMhlsRfav1CrKiKeXa5cwy+w5bWoRtOe i2ztzqxJfLNJSPQmCXpPj6ttEC4mfbjCWUHRc= 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=wSiV79NBIztMusWk2QP2VKKhKOlea+n31l0AFUl2Bg8=; b=X0nYMUj3QQc1Pdw8IAMjOFjLsPpbskkcvXQAgwrQBenQco4I8L/wCowTluxsDZr2/G bhH8YZQrcCYVMConvkmDPLnYATX58z9KwEUdmfxFIrAnphfhQ+psA/2O3nkLoVh++8CI Tc1MUfZBcvt/5s7eAznP6qzijta+erPVfKXbk5u9ZdPt9xSTIId/hxsLKyHlZv33BJgw FxooVtbVa8qaW23XAAg3s57hqc4dlMziA517wFm3/0zQa1zuouKTZqVkDuGzpj2Na5v/ o9WVs9yKlOlw1a3jG6K9+qwNY9V/SGNjVodkIzmFBjRT+Dc4d9X/WUUx7ddotxJueZoc eiGg== X-Gm-Message-State: APjAAAWsX/N6YksAh3qgMR+XsA78kGRKeK8lGnsqDIg8oh0hDxJkd1+L xMki93Ovr4xdg4YMyH8lktKXgLQV0wU= X-Received: by 2002:a2e:4b19:: with SMTP id y25mr2448696lja.106.1556573936325; Mon, 29 Apr 2019 14:38:56 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id v141sm7473859lfa.52.2019.04.29.14.38.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 14:38:54 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id m18so6179475lje.12 for ; Mon, 29 Apr 2019 14:38:53 -0700 (PDT) X-Received: by 2002:a2e:9ac8:: with SMTP id p8mr30631636ljj.79.1556573932539; Mon, 29 Apr 2019 14:38:52 -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> <20190429145250.1a5da6ed@gandalf.local.home> <20190429150724.6e501d27@gandalf.local.home> <20190429163043.535f4272@gandalf.local.home> In-Reply-To: <20190429163043.535f4272@gandalf.local.home> From: Linus Torvalds Date: Mon, 29 Apr 2019 14:38:35 -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: Steven Rostedt Cc: 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 , Andy Lutomirski , 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 1:30 PM Steven Rostedt wrote: > > The update from "call custom_trampoline" to "call iterator_trampoline" > is where we have an issue. So it has never worked. Just tell people that they have two chocies: - you do the careful rewriting, which takes more time - you do it by rewriting as nop and then back, which is what historically has been done, and that is fast and simple, because there's no need to be careful. Really. I find your complaints completely incomprehensible. You've never rewritten call instructions atomically before, and now you complain about it being slightly more expensive to do it when I give you the code? Yes it damn well will be slightly more expensive. Deal with it. Btw, once again - I several months ago also gave a suggestion on how it could be done batch-mode by having lots of those small stubs and just generating them dynamically. You never wrote that code *EITHER*. It's been *months*. So now I've written the non-batch-mode code for you, and you just *complain* about it? I'm done with this discussion. I'm totally fed up. Linus