From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBA50C19F2A for ; Thu, 11 Aug 2022 21:11:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 024296B0073; Thu, 11 Aug 2022 17:11:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F15CF6B0075; Thu, 11 Aug 2022 17:11:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E04158E0001; Thu, 11 Aug 2022 17:11:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D2F6C6B0073 for ; Thu, 11 Aug 2022 17:11:48 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A1089C18C1 for ; Thu, 11 Aug 2022 21:11:48 +0000 (UTC) X-FDA: 79788558696.21.D742F37 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf28.hostedemail.com (Postfix) with ESMTP id 2D4E9C0161 for ; Thu, 11 Aug 2022 21:11:48 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 57E77B8228B; Thu, 11 Aug 2022 21:11:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC547C433D6; Thu, 11 Aug 2022 21:11:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1660252305; bh=QDi6d2wdEg67T+HL++ziCYFM/PIMfgMLbZ/GFK3yHx8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FQ7zMwPVDo2Lew39mgg4vI8sla0gL151pp3ERG72INZjn4wtOML4/s2MUGmBlBOTy RMswgXFRUFw1+vAySqmlnxnsMCs/TjmLK9ui2sRvs627kl5u+/W13D2TOXfb39/ZWW bHEznoEuGRmxLKZWh4+yLqlXys8dqQqgerBnnFaM= Date: Thu, 11 Aug 2022 14:11:44 -0700 From: Andrew Morton To: Peter Xu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , Mike Rapoport , Mike Kravetz , Andrea Arcangeli , Nadav Amit , Axel Rasmussen Subject: Re: [PATCH] mm/uffd: Reset write protection when unregister with wp-mode Message-Id: <20220811141144.6aa509e68c5c7cd8b6c131b6@linux-foundation.org> In-Reply-To: <20220811201340.39342-1-peterx@redhat.com> References: <20220811201340.39342-1-peterx@redhat.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660252308; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=GnyeizGLAW9whPFLNso7M/vCaDeJWbjaR8l+AKR/77w=; b=lLDZ4cLGjhQhQftifdb3E1ZwtD2FgrszGmXSWqBAUhCEcKUT8wfUlQVZ7EJL6clDnZoBfS mzDkziiP9O9QVgS3tdT9Mc4uHKDO9H+qi5/2/PQEiF23Qv2q8eGdEcaHWjqdZlUVLuLYiy fUpil1uaCWLKNjtTOMYYHygA0UWPyP4= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=FQ7zMwPV; spf=pass (imf28.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660252308; a=rsa-sha256; cv=none; b=dzSDzjeZu6zYCjFj+W0B3XKgSH4oe5/3IlYjFx1+BoFZXYJ1iC3PqPb/wChK+TOTJ53CJA t3FgSvO33ZZyRDZe0pRlf9B183+OOcn9/dlw8DP9soV/nFTsLC8UxlnEuEBvpKwi/rM+Tc BDP+ozC5xVgFEPiGAW5sRv25YD/5fRo= X-Stat-Signature: wf8kpky69mxoe9dfr49fwakof89yhu4k X-Rspamd-Queue-Id: 2D4E9C0161 Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=FQ7zMwPV; spf=pass (imf28.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1660252308-657315 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: On Thu, 11 Aug 2022 16:13:40 -0400 Peter Xu wrote: > I added a Fixes upon introducing of uffd-wp shmem+hugetlbfs because that's > the only issue reported so far and that's the commit David's reproducer > will start working (v5.19+). But the whole idea actually applies to not > only file memories but also anonymous. It's just that we don't need to fix > anonymous prior to v5.19- because there's no known way to exploit. I added a cc:stable to this.