Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2176940yba; Thu, 25 Apr 2019 11:55:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwt9FYuzccw/J0pp/3/GwJrYdHKJ4Caq3aS3besdDUSsYoXN9fStk2o4b92nkTT/c0zj6Vt X-Received: by 2002:aa7:9306:: with SMTP id 6mr4265238pfj.122.1556218524508; Thu, 25 Apr 2019 11:55:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556218524; cv=none; d=google.com; s=arc-20160816; b=sy+0aavi2tuh8TxA/vDH7z5RskdMzQO3jeINNlTV1PYli1L6SherBpqqLSdjMPqIoF 83/LK6mKk+6BNpoT0Hd2T6Xo8lx7OstxwHbRcQrNDp92c5TP5GokIJU3X6bxlAiqvFSE OQfqXJzcTlzFgGkzrXSFedP6Gze+h0F/6D4+kgKtysUJZHlKsBBkYOeWNrkMrZ0ALjRs FzYD2a3JnDy++iV22cSXl7/Fdje8AmNwuoyst6VVMUnPH9LTwme3xWgBcPdRa4dlg8AM PfM+n2+Vjf4B8dh2GyyCIC8F06Kwj/dSR99QrdFHYBSHUiGYk+Dcw1/L5/TJ3nzZaRGy OMjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tRoNJ8c4cbN57uzpVjJsLti1b65Ha0XS4q1OKT5SUhc=; b=dfyuDGvcbk7mRV+30fNSvD4ea0BulXoEwmQe/Vn0QE+dQL+FqnT6hAfLniNuPrSUrL t/2gHxx7fXWTQoIfQui792cSxcSnsjD/lNes62ZmnsJ8OVjZW9njGPtG0w0WV3iTs3WE Cml4S0X38h1UH2wYF0TuL7c4Kqg7IafkE+aOTUyyQD9mQlk6wAeA1Tlgsh6bB4Jrhjnh AOh8I1pPJCjs6GFSmhyIPc/TrlgZuRIqDmIdVr5vmtqLsr8To26AYYT7B3MEivAa1Yve Ky0HhNLkksAgovBrJzM79kIp4z1m6GiT4ig96HxdlghPnbptXHjUwy9ACqthGAznprzA KAlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=a2ZfRHVi; 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 a36si22043812pgb.165.2019.04.25.11.55.09; Thu, 25 Apr 2019 11:55:24 -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=a2ZfRHVi; 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 S1730344AbfDYSR7 (ORCPT + 99 others); Thu, 25 Apr 2019 14:17:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53528 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbfDYSR6 (ORCPT ); Thu, 25 Apr 2019 14:17:58 -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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tRoNJ8c4cbN57uzpVjJsLti1b65Ha0XS4q1OKT5SUhc=; b=a2ZfRHViaari4YLFzrqFZ4Xcv pPtn0t/Ikwnz+zDeTwk5ZwWrGRVlT58S1XUXFSR8UgdTWRWewHdmfi4Subbyk8BKZwyNIG9unYqRE ALVHeVhS1e7uwc9LiONexeLx6a1SPYdmNRcLVe9GKIvDolsrpFXatNsNNIdTw21e/BJU5Dzhgy5ka 2lkgXtDWh8vQ0B1s4dKgSvZ/lZT23l0RSn0J3QDJjFMaHw2aIPTeZ+Ug3Pe6X1dqSAuPRxjAc55Yb zKoCB0V6hKaeSVzY626itIKuX52IEH2PzF9nn3cwyYwucKNtPk/jTGTHqzLOiQgxvd7UEy1pISpqQ iPcq7BOgw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJiwK-0008P9-UW; Thu, 25 Apr 2019 18:17:45 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id E5895203C072C; Thu, 25 Apr 2019 20:17:42 +0200 (CEST) Date: Thu, 25 Apr 2019 20:17:42 +0200 From: Peter Zijlstra To: Rick Edgecombe Cc: Borislav Petkov , Andy Lutomirski , Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, hpa@zytor.com, Thomas Gleixner , Nadav Amit , Dave Hansen , linux_dti@icloud.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, akpm@linux-foundation.org, kernel-hardening@lists.openwall.com, linux-mm@kvack.org, will.deacon@arm.com, ard.biesheuvel@linaro.org, kristen@linux.intel.com, deneen.t.dock@intel.com, Nadav Amit Subject: Re: [PATCH v4 04/23] x86/mm: Save DRs when loading a temporary mm Message-ID: <20190425181742.GZ11158@hirez.programming.kicks-ass.net> References: <20190422185805.1169-1-rick.p.edgecombe@intel.com> <20190422185805.1169-5-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190422185805.1169-5-rick.p.edgecombe@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 22, 2019 at 11:57:46AM -0700, Rick Edgecombe wrote: > From: Nadav Amit > > Prevent user watchpoints from mistakenly firing while the temporary mm > is being used. As the addresses that of the temporary mm might overlap > those of the user-process, this is necessary to prevent wrong signals > or worse things from happening. Ooh, goody, that would be fun indeed. > Cc: Andy Lutomirski Acked-by: Peter Zijlstra (Intel) > Signed-off-by: Nadav Amit > Signed-off-by: Rick Edgecombe