Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2779793ybe; Sun, 8 Sep 2019 00:21:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFf2UJw54F6XqbJenlgB4cRqgNcIwtrxqY/QysMjOCscaaq5DYSF8RL5G0RPrjlR7tiU6V X-Received: by 2002:a63:1455:: with SMTP id 21mr15791896pgu.116.1567927310543; Sun, 08 Sep 2019 00:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567927310; cv=none; d=google.com; s=arc-20160816; b=I8XuduCUfVJ6GtAQMV77H4rAt8PUZvkXvAvuiIkPNw4Rcyo3toXNHoIV3WKIVu5v2/ c7Y5b1hWdK2GfWfm8FugijKUHS6zSD+fZFeteSP5IKoT8fbt+PLSuObnZiqKSns4bcv0 pUNNccQYEhIExX0FNxiTzOzByiy25cWExp5RtbhzW221m6m5P9LiD8kevk7de2Yjh2WU J+jgGHs4IzcAokMw12q0crp0TUOf8BJ3AtsqrCTq4PAvTq9g5vjqaf/tYBupg0euqzd9 epR71SgOlX8OGD+kVmRReGuUVefhD7UmiWVCy2C4qoLT3avdiu3pjF76i7ORtabRJtbV Wkeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=HMZ0qlWEBQ226w28k44JWwaPPo4f1iFeti/9oDWU1G0=; b=TwjYTLteBqAy25JWVlgpx18hD5uF5yAa8yvViOUwqksri346YtUDOMhhFqj3eGAMKg 7aIqcmoI3Qb2gzs9r7eViBzXkwGwWlQxHF9L29s7sTR3vT6DkEm0aeBHeWUuSr9Ngb0B IpEzVeKpnsePQa10GNSM+pjhRS+j5UItNb+Ghy2pWlk768AP/3GZxOBydGAFEW3A4JWy uJ03DE8HvrpcyAtH1wraAm7lOEXdC5Ifpk947RST+CLt24NWhwHOcVcXuhXecqFlaqwX Ic5U5BgDXaH7uaLn9wNW9GTFya8FXHkAKHsecOpZVpCfHX+RyR41z12vm55pLA6vGHyZ bxvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=cKiY0E1y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si8936144pgm.413.2019.09.08.00.20.57; Sun, 08 Sep 2019 00:21:50 -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=pass header.i=@nvidia.com header.s=n1 header.b=cKiY0E1y; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405037AbfIFWbq (ORCPT + 99 others); Fri, 6 Sep 2019 18:31:46 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:10247 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729244AbfIFWbq (ORCPT ); Fri, 6 Sep 2019 18:31:46 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate16.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 06 Sep 2019 15:31:48 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 06 Sep 2019 15:31:45 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 06 Sep 2019 15:31:45 -0700 Received: from [10.110.48.28] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Sep 2019 22:31:44 +0000 Subject: Re: [PATCH] mm, notifier: Fix early return case for new lockdep annotations To: Daniel Vetter , LKML CC: DRI Development , , Jason Gunthorpe , Daniel Vetter , Andrew Morton , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Ralph Campbell , Jason Gunthorpe , Ira Weiny , Michal Hocko , Sean Christopherson , Jean-Philippe Brucker , References: <20190906174730.22462-1-daniel.vetter@ffwll.ch> X-Nvconfidentiality: public From: John Hubbard Message-ID: Date: Fri, 6 Sep 2019 15:31:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190906174730.22462-1-daniel.vetter@ffwll.ch> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1567809108; bh=HMZ0qlWEBQ226w28k44JWwaPPo4f1iFeti/9oDWU1G0=; h=X-PGP-Universal:Subject:To:CC:References:X-Nvconfidentiality:From: Message-ID:Date:User-Agent:MIME-Version:In-Reply-To: X-Originating-IP:X-ClientProxiedBy:Content-Type:Content-Language: Content-Transfer-Encoding; b=cKiY0E1yN7X0N9uQOvluxNcsXjklOOdWSsKNEQJzFwvVuOhhwiSp2iMiyAEyIJOmD BbNOqTrKkB+K/AMpJHdkNp6An2OKlfdVg57QX431Su/mfYlRFTMKGe34TSl+VLUxLf kXrpfkAZYbhFfBQpBAzM2YwRvhLxtIciId7pvonZQD1rEbZ4MgX8f0mE3iE8er4MTx NgCtHIENpw+87hfnh6ykdRYIc2YLZ5sohIGN5OK4F3vZmkem5XZ0hsqqs3PBY5bSKJ GYgctkGF6W3oKq4urLWEVnKHa3sBLQElqnm9gZ2ZM4T5SiA4M9xvEpPNeqG/LdlSi6 Pf19VtL3+4R7w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/6/19 10:47 AM, Daniel Vetter wrote: > I missed that when extending the lockdep annotations to the > nonblocking case. >=20 > I missed this while testing since in the i915 mmu notifiers is hitting > a nice lockdep splat already before the point of going into oom killer > mode :-/ >=20 > Reported-by: syzbot+aaedc50d99a03250fe1f@syzkaller.appspotmail.com > Fixes: d2b219ed03d4 ("mm/mmu_notifiers: add a lockdep map for invalidate_= range_start/end") > Cc: Jason Gunthorpe > Cc: Daniel Vetter > Cc: Andrew Morton > Cc: "J=C3=A9r=C3=B4me Glisse" > Cc: Ralph Campbell > Cc: Jason Gunthorpe > Cc: Ira Weiny > Cc: Michal Hocko > Cc: Daniel Vetter > Cc: Sean Christopherson > Cc: Jean-Philippe Brucker > Cc: linux-mm@kvack.org > Signed-off-by: Daniel Vetter > --- > include/linux/mmu_notifier.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/include/linux/mmu_notifier.h b/include/linux/mmu_notifier.h > index 5a03417e5bf7..4edd98b06834 100644 > --- a/include/linux/mmu_notifier.h > +++ b/include/linux/mmu_notifier.h > @@ -356,13 +356,14 @@ mmu_notifier_invalidate_range_start(struct mmu_noti= fier_range *range) > static inline int > mmu_notifier_invalidate_range_start_nonblock(struct mmu_notifier_range *= range) > { > + int ret =3D 0; > lock_map_acquire(&__mmu_notifier_invalidate_range_start_map); > if (mm_has_notifiers(range->mm)) { > range->flags &=3D ~MMU_NOTIFIER_RANGE_BLOCKABLE; > - return __mmu_notifier_invalidate_range_start(range); > + ret =3D __mmu_notifier_invalidate_range_start(range); > } > lock_map_release(&__mmu_notifier_invalidate_range_start_map); > - return 0; > + return ret; > } > =20 > static inline void >=20 Reviewed-by: John Hubbard thanks, --=20 John Hubbard NVIDIA