Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp501261ybb; Wed, 8 Apr 2020 04:21:38 -0700 (PDT) X-Google-Smtp-Source: APiQypIRkfGuPo6f26vGrJGUKl40BSuharW9geoFo9b/e0K19aODtGjvauv39E43tbembhfwqrDE X-Received: by 2002:a05:6830:18e:: with SMTP id q14mr5073832ota.136.1586344898014; Wed, 08 Apr 2020 04:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586344898; cv=none; d=google.com; s=arc-20160816; b=SgzEtv9fTvpITEl+zqwGWybEd76DPyd8gEkiLmIcBk6Wa68ThGABXCLcK+8b9T4OK/ 2qg7O3rUaCPCLnoPgoAlt/NMlc2awy/O+2xjONbOuIEySd127hBaX5rN0X7Hh2PjgWPC K7PzEel/LTMdp3pEE3o1R82bu5/psQNRCAIng4LxRzZVWJZq6kfQNQnNk+51XXyOxurX L5sPsd4mO3tbSDxOf9tov68L6SvslHZTpLUy7YH4WsRzt3goeH6xRZxMMEh4UDdbv9TK bzXU4QSZi60mu0Pykx0CaZB8xVXO8QLgjtlnWFi7jeihIhKyJp06ucDs5bu6NLbi3cbs dnvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3YJqaOoM4AXHXL0XANzFtbQE1EpTeXAe0og/pFKkpCA=; b=ahbJjfqcfcSsqCVTkDoGz/XOKAbdGYjOUvXK5eeej4jxMtR14DdE+qPVlv8WO9wGBW 5HNWGEDguTMawlip1sUlPj5jJf8YxP2xNf4wxkN+Gsd9qclTG1EGD1lyZfQ+1IWE4a3m fUuyZSMWBgjBrDbMYOn6cy2RysawfGYvyVuQy26r8tOfak+fro8YLkm/8yAq+mbMXVUb sE4y+GIIoSagdUudqM3Zud7kA46hKn0MPMlPpQ4o3jhS0oZOF8zw3cAMB2xXerBL7ISL wKYzFwSBAX8Ueqzfj95RwbPCzATwPjWRzSWthegBnmErs9WsnrdlRJgnYdyYQaDjOAb+ E4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=I26DyJnG; 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 b16si2242919oop.83.2020.04.08.04.21.21; Wed, 08 Apr 2020 04:21:38 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=I26DyJnG; 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 S1728414AbgDHLRz (ORCPT + 99 others); Wed, 8 Apr 2020 07:17:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:59032 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727902AbgDHLRz (ORCPT ); Wed, 8 Apr 2020 07:17:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=3YJqaOoM4AXHXL0XANzFtbQE1EpTeXAe0og/pFKkpCA=; b=I26DyJnGGGzpg8aW0CSl3TSO8/ fCLcInYqjvbFiDB3N97TYX+H95E7s7uhQVs1LywnJrxvQAyQKrsXOH4HCqon7QCoisfEoaw6RVFDS NQOCO/S4ycVdQoxRL46SZ2UfRTHDCE0HFlkAY/BrTNmWRge1970iZq7hPoYzBfUytDGspcPrPDjhj lDsRcJWFs6qo8zxx5srQ71V1LToOn2jGFgto63isvIjWn9uZp/yp5qMXQVuaeLYT2wjloOAyaBt4C CZadKhWG7I0rpK07+OqaLbMseS8zTcP0JuX9+Fe8qNltNOQHzKTM5TMcUHTWVQtPsjS20OYk7jLcj W3k8stdA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jM8iL-0000RC-Gm; Wed, 08 Apr 2020 11:17:49 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C4D5B300130; Wed, 8 Apr 2020 13:17:47 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B0E612BA90A63; Wed, 8 Apr 2020 13:17:47 +0200 (CEST) Date: Wed, 8 Apr 2020 13:17:47 +0200 From: Peter Zijlstra To: Ankur Arora Cc: linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, jpoimboe@redhat.com, namit@vmware.com, mhiramat@kernel.org, jgross@suse.com, bp@alien8.de, vkuznets@redhat.com, pbonzini@redhat.com, boris.ostrovsky@oracle.com, mihai.carabas@oracle.com, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, virtualization@lists.linux-foundation.org Subject: Re: [RFC PATCH 14/26] x86/alternatives: Handle native insns in text_poke_loc*() Message-ID: <20200408111747.GV20713@hirez.programming.kicks-ass.net> References: <20200408050323.4237-1-ankur.a.arora@oracle.com> <20200408050323.4237-15-ankur.a.arora@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200408050323.4237-15-ankur.a.arora@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 10:03:11PM -0700, Ankur Arora wrote: > @@ -1071,10 +1079,13 @@ int notrace poke_int3_handler(struct pt_regs *regs) > goto out_put; > } > > - len = text_opcode_size(tp->opcode); > + if (desc->native) > + BUG(); > + Subject: x86/alternatives: Handle native insns in text_poke_loc*() That's not really handling, is it..