From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F776C43460 for ; Tue, 18 May 2021 13:24:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EE8DA6113C for ; Tue, 18 May 2021 13:24:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EE8DA6113C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F2C26EB73; Tue, 18 May 2021 13:24:33 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2422B6EB72; Tue, 18 May 2021 13:24:31 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 3DA4567373; Tue, 18 May 2021 15:24:29 +0200 (CEST) Date: Tue, 18 May 2021 15:24:28 +0200 From: Christoph Hellwig To: Thomas =?iso-8859-1?Q?Hellstr=F6m?= Message-ID: <20210518132428.GD2617@lst.de> References: <20210326055505.1424432-1-hch@lst.de> <20210326055505.1424432-5-hch@lst.de> <87pmxqiry6.fsf@depni.sinp.msu.ru> <20210517123716.GD15150@lst.de> <87lf8dik15.fsf@depni.sinp.msu.ru> <20210517131137.GA19451@lst.de> <976fb38a-7780-6ca6-d602-a5f02c0938c9@linux.intel.com> <6adf9658-25b7-16ef-4b88-fa3911d06b74@linux.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6adf9658-25b7-16ef-4b88-fa3911d06b74@linux.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Subject: Re: [Intel-gfx] [PATCH 4/4] i915: fix remap_io_sg to verify the pgprot X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Serge Belyshev , Peter Zijlstra , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , linux-mm@kvack.org, Andrew Morton , Christoph Hellwig Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, May 18, 2021 at 08:46:44AM +0200, Thomas Hellstr=F6m wrote: > And worse, if we prefault a user-space buffer object map using = > remap_io_sg() and then zap some ptes using madvise(), the next time those = > ptes are accessed, we'd trigger a new call to remap_io_sg() which would n= ow = > find already populated ptes. While the old code looks to just silently = > overwrite those, it looks like the new code would BUG in remap_pte_range(= )? How can you zap the PTEs using madvise? _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx