Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1033865ybe; Thu, 5 Sep 2019 09:19:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRmI+V0a4vQTw7fChOh5m0/ySGZLNCkGr7+rKPt5ffmlDkaCAdy1YxXcI1N1H3x+9GbLVd X-Received: by 2002:a65:5144:: with SMTP id g4mr3967961pgq.202.1567700363069; Thu, 05 Sep 2019 09:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567700363; cv=none; d=google.com; s=arc-20160816; b=nFGE0r2HD8+h+RCe51HZ/tBEuMH6jldzT69vMNWpDW9we7uB8QQEjmMnIIv8mNUM7A Qt3yiuLGUkj/eXS4QzCJL25+6+W55tQ7w0qHeatfSS/Vc1GBz4cqzL6ikUAJKk2pHif+ FsmlfkhW+ys14Uex71x0ghfkwrXFfcs9pR3fnU7uQoGlLpIT/MNZuDc9rsGpE7Rxe9kJ A5TYBGHZ7dupBRKsES9HWMlXaok2/XG03OmILO/Xlpetl0B45A10YzJyblD2vDNdF8jO qscTm6yHHgJ1E6K7jhoZSdPm43VwQP/vnyEwmJTvpC+Zzy9JIRsoQ2y4/9xAqSZHJ2/5 DEOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=xyPay7WKw4j/Xkl5tqxJ900V8fI3MSfmTZV/g4x+Qb4=; b=bRbHy24oC46gJI8b+lMCPqy1sEty55M9b/WUc67oMOXmjbDLo7COGr7nEfOUCKzbcA FUCJedyJ0/LDlAevcFGPeblWeWkzSsPIxakKwplhcwrVcfRmubMarmwF1aY3s1LW4Xt8 OOS17LmcJtdTsp7vsFZNbgZWSm+3/+bvhy8O4dsiapYJYrdyrbqvrkHf5DykkRFfEEns 4tjxcJNR7hJ2mXg2F8yKM+hgZ1CcMqGMYREzUBs/gUhHn+AZ0ozv5azXoA04yz3po5s/ docp+PEt3DyDk+PBWXDcDPYW39fo+v3TMa5YhYuGcq6R72OpFstDiDZOSttyQtJDVtng yI9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AUwwQvbB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12si507075pju.100.2019.09.05.09.19.06; Thu, 05 Sep 2019 09:19:23 -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=@kernel.org header.s=default header.b=AUwwQvbB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbfIENcO (ORCPT + 99 others); Thu, 5 Sep 2019 09:32:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:52780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbfIENcN (ORCPT ); Thu, 5 Sep 2019 09:32:13 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 742F32070C; Thu, 5 Sep 2019 13:32:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567690332; bh=bossB91Qr/I/rrAXVwyYUS2cPZeySQqaMDIW3hBDvTA=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=AUwwQvbBlItiebXY3KcPib073goVxzF1Qceij7XJwl2KMptZp0UBmomx/E/rKZ5R0 q/CpTg3Okauld295J7hG/u2c3KEwI4RMwTWZ4aJGDrH3AyRIveEXp7myjCr8J0y21m ttVis7KGcESZTucRgdw/+/G08UxJd+cHd7sEVXf0= Date: Thu, 5 Sep 2019 15:31:56 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: Petr Mladek , Joe Lawrence , Miroslav Benes , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [RFC PATCH 2/2] livepatch: Clear relocation targets on a module removal In-Reply-To: <20190905132344.byfybt6s42cajtfz@treble> Message-ID: References: <20190822223649.ptg6e7qyvosrljqx@treble> <20190823081306.kbkm7b4deqrare2v@pathway.suse.cz> <20190826145449.wyo7avwpqyriem46@treble> <5c649320-a9bf-ae7f-5102-483bc34d219f@redhat.com> <20190904084932.gndrtewubqiaxmzy@pathway.suse.cz> <20190905025055.36loaatxtkhdo4q5@treble> <20190905110955.wl4lwjbnpqybhkcn@pathway.suse.cz> <20190905132344.byfybt6s42cajtfz@treble> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Sep 2019, Josh Poimboeuf wrote: > > All the indirect jumps are turned into alternatives when retpolines > > are in place. > > Actually in C code those are done by the compiler as calls/jumps to > __x86_indirect_thunk_*. Sure, and the thunks do the redirection via JMP_NOSPEC / CALL_NOSPEC, which has alternative in it. -- Jiri Kosina SUSE Labs