Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1272180ybl; Fri, 23 Aug 2019 16:39:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGDmAofw4uqBz+1eJJP/mBTy6USre86CLtID2n4hnYxY9/FQfFd9v2WQFREZ4wLKLtGud0 X-Received: by 2002:a63:607:: with SMTP id 7mr6087769pgg.240.1566603564238; Fri, 23 Aug 2019 16:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566603564; cv=none; d=google.com; s=arc-20160816; b=a2YllIgy85lJk9hAe1uXeo7pkuz1n081KnxM70czK/Fzo4sZlDsr7p0JhtnnvI1VIQ kGaQum5JVqSYAJQAINSKCsiXVjEPHFUKJrZ2DX2cPc6G9tisdpAh3XySgcu0ngsAsE82 B4GXQWkGzOrSWYE/MBluGQwFRTMO1zkg1VWKIroqYxjbNGRLNNJ7VXJSQjaf4mVSccOL gGyywgW2Nyi1G7zfdXixzPftMsdTfP6qXQpn7dzxxtZ4wnKozacwnziEUAty/XhaTC5l u9pj4auoMb/rShyDSLjB0zUIL6TBSLlGp4NA4XoMpLqVm8o7y/aG+75vbR7JrQ07nGAQ 0FCA== 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 :mime-version:message-id:date:subject:cc:to:from; bh=Z6axOFKbUvqsjcFqMxwwOrZTql7QqKTfP0heWnYU1Z8=; b=yiQWuXLxZMbQVEbnOmN1+114ZM9mxpGX5d4ilxrMRxNsTb/nm5i7QCHqsdcY3UYEHO pmX91tslwwj3xk8BQIvIGRgNMaIRuq+Qc3rgr3QAVXo2lywihtPTQ85bUqvhoV0NZGo7 9fCFfNlcVIEaw0ZP/K0uBtDhzuFxXXJFdPps0iJESY0M/J7RK2lEOpuPraDtQD0/34MT dK3P/IYtP5XKAgoO38UVyQUo2yjVUbxuCVZTVCnCGcq1O2AUoebtUAEUkai+DyapqMSM vdMLpxBkxGbu9QBUXiKbD7DD6D1f0DWXY3w/cRHbbx04upKM2uQ5vv0ESMbpyCNaKTMI ZNug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ctpsqG1k; 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 a10si3935698pff.277.2019.08.23.16.39.08; Fri, 23 Aug 2019 16:39: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=pass header.i=@nvidia.com header.s=n1 header.b=ctpsqG1k; 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 S2437006AbfHWWS1 (ORCPT + 99 others); Fri, 23 Aug 2019 18:18:27 -0400 Received: from hqemgate16.nvidia.com ([216.228.121.65]:13864 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405239AbfHWWSN (ORCPT ); Fri, 23 Aug 2019 18:18:13 -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, 23 Aug 2019 15:18:12 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 23 Aug 2019 15:18:12 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 23 Aug 2019 15:18:12 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 23 Aug 2019 22:18:07 +0000 Received: from hqnvemgw01.nvidia.com (172.20.150.20) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 23 Aug 2019 22:18:07 +0000 Received: from rcampbell-dev.nvidia.com (Not Verified[10.110.48.66]) by hqnvemgw01.nvidia.com with Trustwave SEG (v7,5,8,10121) id ; Fri, 23 Aug 2019 15:18:06 -0700 From: Ralph Campbell To: CC: , , , , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Jason Gunthorpe , Andrew Morton , "Christoph Hellwig" , Ralph Campbell Subject: [PATCH 0/2] mm/hmm: two bug fixes for hmm_range_fault() Date: Fri, 23 Aug 2019 15:17:51 -0700 Message-ID: <20190823221753.2514-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1566598693; bh=Z6axOFKbUvqsjcFqMxwwOrZTql7QqKTfP0heWnYU1Z8=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=ctpsqG1kNxP+YzsOTUXs7AwK5TY2o4ZmwFLtokaKLQ4zXNU31nsT4X7JyHtFGc5fe O8xIorB0RJZR6/3g7TN0cjxJ0/JlP3grcpjxY6NHweE6/eyjaFRSeeYH/peSmE7G5E 6FiA1tTrxCHIAWyCwjMVD8eWRBvO37Z3HtCxaHyPi8tCz1GQZvv+j03ery4xJu2Nvb rik3UshHudfzSfYw2qCWIlQKCR9d0zLt50+Q354r5dPupAuz4gjV8IJsaeiLwrVPAQ M/0ar3v6Up8fbsIC/Ld11+CbgBG306Z+AOrZZelEg4l+GgDLY6zz0F1xBu2md0eZ1G mlS04Yqu1Mb/w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I have been working on converting Jerome's hmm_dummy driver and self tests into a stand-alone set of tests to be included in tools/testing/selftests/vm and came across these two bug fixes in the process. The tests aren't quite ready to be posted as a patch. I'm posting the fixes now since I thought they shouldn't wait. They should probably have a fixes line but with all the HMM changes, I wasn't sure exactly which commit to use. These are based on top of Jason's latest hmm branch. Ralph Campbell (2): mm/hmm: hmm_range_fault() NULL pointer bug mm/hmm: hmm_range_fault() infinite loop mm/hmm.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) --=20 2.20.1