Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3061475yba; Mon, 6 May 2019 16:31:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT7zIBMCckG2zDaN29eN/D7qCu1KFz1Il4iDNaEkz8rTtmmIWXpYKzObyjlo67y1tzgw4H X-Received: by 2002:a65:5086:: with SMTP id r6mr36491437pgp.301.1557185494919; Mon, 06 May 2019 16:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557185494; cv=none; d=google.com; s=arc-20160816; b=ubHW78fWLfm6jau+2t3QyRoG9/180fhU7lmcQHMJi3zogUeJ82LywhqIPUG/C5vPep 3crC83S5GVil9+sHI7SuuOPIhF4LuiSVRdt2UO/hIjVWO5Cts0ntWQf3NXI/UIpF520y PCRmix6WdISGSmFRoDkZyjaa0T5Rp+jj3PVALhtfK4hWXpRluIXY8b1nf2c1IgYBQEEZ NLjbmPtL4RNw+lJWkN8rX/Im3GnnyRVIyo28GJ/vT0XfIgWPTdAGnCWB6k2ecN4Goo5t 6AkObqaTdTCHVz+F+RGGcXCvuYxJOVye2Sivfif5L1vApWrqrzo/dVnZ2HzMB6W7d1+A qLFg== 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=mta6lvER55pJmKi6odFyptVYcK5PuHqcwXSPKJWVRbY=; b=dFixjsGgiFSvfrP2Y0tdIq9D+dpOaEqEx9TgddKbypAQDq8IY4ef12yoeJirNEjAiJ l+iuQxzfNevhiNwltpKWm49/MYMrAIMVnRTO7VfhuJhgfLprGDXWJDh9t6JwfmZaxd2L jpuRTiBx52qq7xJ6QhgmlJW+jKJRJwaw6aaGuflcGXYX3xknsCdMArYyc79BAXjaoWHE jwl5ZiCK8EEunbqjdJOzLKD5UvOrABtqUWbDHNPZvrCwRRDjtasAUj9dX7+fchrtGP3/ 4CTSTfn63F2KN9LJsR7KxLa+ouDNeTaCLT88I7WNB5lb+sTPlGInrbJ90ZZA0VpKDMCG BSAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=LwG+Z+Iy; 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 i2si12865031pgi.0.2019.05.06.16.31.18; Mon, 06 May 2019 16:31:34 -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=LwG+Z+Iy; 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 S1726255AbfEFXaY (ORCPT + 99 others); Mon, 6 May 2019 19:30:24 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:15211 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbfEFXaY (ORCPT ); Mon, 6 May 2019 19:30:24 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Mon, 06 May 2019 16:29:49 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Mon, 06 May 2019 16:30:23 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Mon, 06 May 2019 16:30:23 -0700 Received: from rcampbell-dev.nvidia.com (172.20.13.39) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 6 May 2019 23:30:23 +0000 From: To: CC: , Ralph Campbell , John Hubbard , Ira Weiny , Dan Williams , Arnd Bergmann , Balbir Singh , Dan Carpenter , Matthew Wilcox , Souptick Joarder , Andrew Morton Subject: [PATCH 0/5] mm/hmm: HMM documentation updates and code fixes Date: Mon, 6 May 2019 16:29:37 -0700 Message-ID: <20190506232942.12623-1-rcampbell@nvidia.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-NVConfidentiality: public X-Originating-IP: [172.20.13.39] X-ClientProxiedBy: HQMAIL107.nvidia.com (172.20.187.13) To HQMAIL101.nvidia.com (172.20.187.10) 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=1557185389; bh=mta6lvER55pJmKi6odFyptVYcK5PuHqcwXSPKJWVRbY=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:X-Originating-IP: X-ClientProxiedBy:Content-Transfer-Encoding:Content-Type; b=LwG+Z+IypCu/9CAOnvaVu10/3zZeMNdtntNmkP+Wy9zH5AuV3pgXklp6x/VXDiVk1 pYvpjypSdkVh+WcZIQl+58wbS96p8vDHAzxD53/XRb2U9b4AlIFACrbdgXXSMbmnvl xpdZT8dE2iQqRPBgOxKL0bTLcpPJPsvtIFtqXSRzkEDD4DGXZbqaX07jX+hb6GIAQN cxBONRH7a7Avcam0YtnIBN7ysG+Wky5nPcDfovDeHcqrKL8eg5BY/URsbjy5RxzqWp Kkhxv8o3+AM1C6szZ4TDWZ846ybHWGxTpOPVMHMXGwT92Iqani0qWBab2YbsrOO5D7 Wknzcx03wK0qg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ralph Campbell I hit a use after free bug in hmm_free() with KASAN and then couldn't stop myself from cleaning up a bunch of documentation and coding style changes. So the first two patches are clean ups, the last three are the fixes. Ralph Campbell (5): mm/hmm: Update HMM documentation mm/hmm: Clean up some coding style and comments mm/hmm: Use mm_get_hmm() in hmm_range_register() mm/hmm: hmm_vma_fault() doesn't always call hmm_range_unregister() mm/hmm: Fix mm stale reference use in hmm_free() Documentation/vm/hmm.rst | 139 ++++++++++++++++++----------------- include/linux/hmm.h | 84 ++++++++++------------ mm/hmm.c | 151 ++++++++++++++++----------------------- 3 files changed, 174 insertions(+), 200 deletions(-) --=20 2.20.1