Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3222018imu; Sat, 24 Nov 2018 00:27:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/UCWNUzLh+hXhq/kK6eYxQNHo9UNjqMFrPOXX607cBeKtpCdEPCks51Ez91Mfu+ee8GkrFB X-Received: by 2002:a63:cc12:: with SMTP id x18mr16983361pgf.33.1543048040463; Sat, 24 Nov 2018 00:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543048040; cv=none; d=google.com; s=arc-20160816; b=Z+ALI8wZ1e3dOTyRKJ5ylxDhnch9QIzTNj1jd1ZlAVAGptxfkRpBC1KEOEz5gBlMaA wvklfpIIsdDeI0eVyDix+heohsoakzb7KcdyrXX5CVq583R5tsPsEDeNF/RUU2ulD3kr 6Ivz4x8FGR7sJ+B8hMfUT4UvYv7mM9S626ZoiHzLsWZcYPG/Ep9JQHcHCgNQgdJyaFYY US8DFP7rR2G32qnd+VeRhI0PIPig9qaJoKghp7u4CveUMc7k9YSAqWFHai//PkI9vwEv 15ueLaTGMqUSHR/lEtzSntOcnSQ6gsYoXqQWYjAOSabg8i3y0sbusOcW2hd00xOjmSz7 yRug== 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; bh=NZn0gclbwtFPPlP1dV34ByF6hvlEhj+9XZZ+fuFSI5E=; b=FKnq4HFyuSKcdKE04uJIBbXLjGDvYNXqndwkCmaTNPiZ1LCFRPjkdiR9a00nk3VRM7 BVVkUUeOW0tls8yqE9jLOAt1DjMKE0F8QhZRF6M4FaWYxwIpq8gScsig3TAFI9sLvxXl p8UpMgOf+NMhsWQ9+9OElaV19hjrJfqeGrgOawtmBox5rMXlPBiYZ67rvmT0RFUgei1O A7xXvN6t3rtG9DOkTN0DV3JsPmUU1/2h1VrMqYQxzTjmdxSWblUrrnJ83NAWL/8v3d8f jOQvwJKa55Fa8FHfvQfQe2xmdqFb7vfCw1q8MAbgNT1UN0VAV9jVADvzrvRj5Ke/H0FI kYcw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g7-v6si24390929plp.130.2018.11.24.00.27.06; Sat, 24 Nov 2018 00:27:20 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503643AbeKWV6V (ORCPT + 99 others); Fri, 23 Nov 2018 16:58:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:53110 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2409552AbeKWV6V (ORCPT ); Fri, 23 Nov 2018 16:58:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4CE5BAD93; Fri, 23 Nov 2018 11:14:29 +0000 (UTC) Date: Fri, 23 Nov 2018 12:14:28 +0100 From: Michal Hocko To: Daniel Vetter Cc: Chris Wilson , Daniel Vetter , LKML , Daniel Vetter , Intel Graphics Development , DRI Development , Linux MM , =?iso-8859-1?B?Suly9G1l?= Glisse , David Rientjes , Paolo Bonzini , Andrew Morton , Christian =?iso-8859-1?Q?K=F6nig?= Subject: Re: [Intel-gfx] [PATCH 1/3] mm: Check if mmu notifier callbacks are allowed to fail Message-ID: <20181123111428.GF8625@dhcp22.suse.cz> References: <20181122165106.18238-1-daniel.vetter@ffwll.ch> <20181122165106.18238-2-daniel.vetter@ffwll.ch> <154290561362.11623.15299444358726283678@skylake-alporthouse-com> <20181123084934.GI4266@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181123084934.GI4266@phenom.ffwll.local> 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 Fri 23-11-18 09:49:34, Daniel Vetter wrote: > On Thu, Nov 22, 2018 at 04:53:34PM +0000, Chris Wilson wrote: > > Quoting Daniel Vetter (2018-11-22 16:51:04) > > > Just a bit of paranoia, since if we start pushing this deep into > > > callchains it's hard to spot all places where an mmu notifier > > > implementation might fail when it's not allowed to. > > > > Most callers could handle the failure correctly. It looks like the > > failure was not propagated for convenience. > > I have no idea whether the mm is semantically ok if pte shootdown doesn't > work for all sorts of strange reasons. From the commit that introduced the > error code it souded like this was very much only ok in the limited case > of an already killed process, in the oom killer path, where it's really > only about trying to free any kind of memory. And where the process is > gone already, so semantics of what exactly happens don't matter that much > anymore. Yes this was indeed the case. There is still the exit path which would do the rest of the work so we are not leaving anything behind. -- Michal Hocko SUSE Labs