Message ID | 20191106051648.GjLXleKr-%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=NTHJ=Y6=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 748601515 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 6 Nov 2019 05:16:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 26F8A21D7E for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 6 Nov 2019 05:16:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="qu4EO8ty" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26F8A21D7E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 1C0316B0271; Wed, 6 Nov 2019 00:16:51 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 16EDF6B0272; Wed, 6 Nov 2019 00:16:51 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ABAA6B0273; Wed, 6 Nov 2019 00:16:51 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0029.hostedemail.com [216.40.44.29]) by kanga.kvack.org (Postfix) with ESMTP id E6A236B0271 for <linux-mm@kvack.org>; Wed, 6 Nov 2019 00:16:50 -0500 (EST) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 67E33180AD815 for <linux-mm@kvack.org>; Wed, 6 Nov 2019 05:16:50 +0000 (UTC) X-FDA: 76124692980.29.bath13_3baa18f18c638 X-Spam-Summary: 2,0,0,be578525afeac8bc,d41d8cd98f00b204,akpm@linux-foundation.org,:aarcange@redhat.com:akpm@linux-foundation.org:bp@alien8.de:daniel.vetter@intel.com:hpa@zytor.com:ira.weiny@intel.com:jgg@mellanox.com:jglisse@redhat.com:kirill.shutemov@linux.intel.com::mingo@redhat.com:mm-commits@vger.kernel.org:rcampbell@nvidia.com:stable@vger.kernel.org:tglx@linutronix.de:torvalds@linux-foundation.org:ville.syrjala@linux.intel.com,RULES_HIT:41:152:355:379:800:960:967:968:973:988:989:1260:1263:1277:1311:1313:1314:1345:1381:1431:1437:1513:1515:1516:1518:1521:1534:1543:1593:1594:1711:1730:1747:1777:1792:2198:2199:2393:2525:2559:2563:2682:2685:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3167:3353:3865:3867:3868:3871:3872:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6261:6653:6737:7576:8599:8660:9025:9163:9545:9592:10004:10400:10913:11026:11473:11658:11914:12043:12048:12296:12297:12438:12517:12519:12555:12679:12740:12783:12895:12 986:1314 X-HE-Tag: bath13_3baa18f18c638 X-Filterd-Recvd-Size: 4712 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf18.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Wed, 6 Nov 2019 05:16:49 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E07521929; Wed, 6 Nov 2019 05:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573017409; bh=2192o0EalrK7xnxZaWr2apSoUfecLosbzkrrzZmsLuo=; h=Date:From:To:Subject:From; b=qu4EO8tysU1sVCgnyQobZXDSGbf5Kbhb1WXByJqVNJv99l7UdPAJwkBb0jEQgdOpN WiTiN0nCewepzq3swOOToFuFPikNwEEGyNtIP90wjptko1s3wKwnnsl1qeeHir2RX0 pKBwAk/HVz0BKoAXPjWjWBuzobdho0+ekqG/Ja7k= Date: Tue, 05 Nov 2019 21:16:48 -0800 From: akpm@linux-foundation.org To: aarcange@redhat.com, akpm@linux-foundation.org, bp@alien8.de, daniel.vetter@intel.com, hpa@zytor.com, ira.weiny@intel.com, jgg@mellanox.com, jglisse@redhat.com, kirill.shutemov@linux.intel.com, linux-mm@kvack.org, mingo@redhat.com, mm-commits@vger.kernel.org, rcampbell@nvidia.com, stable@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, ville.syrjala@linux.intel.com Subject: [patch 09/17] mm/khugepaged: fix might_sleep() warn with CONFIG_HIGHPTE=y Message-ID: <20191106051648.GjLXleKr-%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/17] mm: memcontrol: fix NULL-ptr deref in percpu stats flush
|
expand
|
--- a/mm/khugepaged.c~khugepaged-might_sleep-warn-due-to-config_highpte=y +++ a/mm/khugepaged.c @@ -1028,12 +1028,13 @@ static void collapse_huge_page(struct mm anon_vma_lock_write(vma->anon_vma); - pte = pte_offset_map(pmd, address); - pte_ptl = pte_lockptr(mm, pmd); - mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, NULL, mm, address, address + HPAGE_PMD_SIZE); mmu_notifier_invalidate_range_start(&range); + + pte = pte_offset_map(pmd, address); + pte_ptl = pte_lockptr(mm, pmd); + pmd_ptl = pmd_lock(mm, pmd); /* probably unnecessary */ /* * After this gup_fast can't run anymore. This also removes