Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp165465ybk; Tue, 12 May 2020 18:55:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKh5kGpnXLf/+XGi461Cpf/2jBveWkJOBJs4DDv4QPycaXOOsxdDw6g3L+0fCq54Manqx7V X-Received: by 2002:a17:907:11de:: with SMTP id va30mr20889102ejb.121.1589334904545; Tue, 12 May 2020 18:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589334904; cv=none; d=google.com; s=arc-20160816; b=ES5pBLxWPusrhBw3PXHjlE30wOKV9yiN5CVCVbey+X7+O4+NTDFdqh6ZYfyB1ySyvj s88s9EX8X+SBbuIEVr1G2GKSuu7X/R/SfeLGtRU8vHhw1K+kmRJ+fIy0Tisuh5xLcWrd tH0KnW2Ug0I10PT9UdQr69VV8npYps34uBojPFPCDIkG7PubPgfO5qiBYey2RJRwZLAy scyhQCX2UWu5hXArk6pyWO7jsZKfbHG+U/z4SXbI5efLs8/82ya+7KlpmqGMgMmT91v/ wM4QTpFKRCsKa0au0IswXsq1UsnXpzsllshhLpbgFUbZ1nlo1J2x/nEkGzjRZY86XQhi SAgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=f9SgIF3dC31/RuxMi+0+gOPMgv/Y5aCrWAF1rOPmwZc=; b=ybzhP4n4o9J/GGm1376YtaVXRp+rcZ3FtuGJ1F7y7X9vRVm5FG3/giN+fm8PfWvZV1 6g6HKDYPdFaLVWQO7NH7lCuAzNkjJKL7Y+EbfyQwayY2nomUj/ywWwDUK3SOkF9pKjmA UJtEAh8mDmBERmdAfbIGRc6NS+yf9dQ/UDfn/3IKMxvMYm7ifl0ky4KmmR7J1IUrJmPp MrSWpl3WRWVo9mNdiR9IGGduhmoeABwypz/Z7rwPz+kOA8koqJCkwSy+lJxaSlZjgKd7 jQvjsEs77bWvyTtnqno+k2RGu6lWjs1guJ2JiCTCOnDiNqnyBAtxKVNI3nKxbPvIHN0f j8GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si5819953ejf.50.2020.05.12.18.54.42; Tue, 12 May 2020 18:55:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731604AbgEMBvM (ORCPT + 99 others); Tue, 12 May 2020 21:51:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:41828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbgEMBvM (ORCPT ); Tue, 12 May 2020 21:51:12 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 6406D206F5; Wed, 13 May 2020 01:51:10 +0000 (UTC) Date: Tue, 12 May 2020 21:51:08 -0400 From: Steven Rostedt To: Andy Lutomirski Cc: Thomas Gleixner , LKML , X86 ML , "Paul E. McKenney" , Alexandre Chartre , Frederic Weisbecker , Paolo Bonzini , Sean Christopherson , Masami Hiramatsu , Petr Mladek , Joel Fernandes , Boris Ostrovsky , Juergen Gross , Brian Gerst , Mathieu Desnoyers , Josh Poimboeuf , Will Deacon Subject: Re: [patch V4 part 3 01/29] x86/traps: Mark fixup_bad_iret() noinstr Message-ID: <20200512215108.5ea110b7@oasis.local.home> In-Reply-To: References: <20200505134354.774943181@linutronix.de> <20200505134903.346741553@linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 May 2020 17:39:00 -0700 Andy Lutomirski wrote: > On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner wrote: > > > > This is called from deep entry ASM in a situation where instrumentation > > will cause more harm than providing useful information. > > > > Acked-by: Andy Lutomirski > > Maybe add to changelog: > > Switch from memmove() to memcpy() because memmove() can't be called > from noinstr code. Yes please, because I was about to say that there was changes that didn't seem to fit the change log. I would also add a comment in the code saying that we need the temp variable to use memcpy as memmove can't be used in noinstr code. -- Steve