Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp288530pxm; Wed, 2 Mar 2022 15:31:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNfBPwAysvuQjPJC+YoLoIajIMhVh//mkxgwZJcmHSGbACr3g5DO1Z5CNvaACSl5OVdmxJ X-Received: by 2002:a63:1b09:0:b0:378:faa5:c63a with SMTP id b9-20020a631b09000000b00378faa5c63amr7289771pgb.276.1646263887330; Wed, 02 Mar 2022 15:31:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646263887; cv=none; d=google.com; s=arc-20160816; b=NFzLudxSGmVfdU71Gd2cb2lyDMwLeF7g09gZw0Zcs+u9eiSP1WGxUkgvdKtmeVYzlg Vu7C1ebYnOgWQee+BKrBxj91zGq/WLMZl/kVlaaUzu+7v9ei0E1bLG4GzmEbwVp4X95y 6PhUphf/yuD5/NnUIRSTN/h3b06CzeACbcWTAGrlL2RXBeT3ueZxf1UZFcU7q7DQYQRA Jf4ci98tUlEwXZVqCYhMtr0Bxk7GSM9InnT7G81N2SrHP/EG9khTCS+9Z29lUguEkJxc ol5km7IlvKU6YwMM9rs8JCkpnsqOBJxre+k3ZMBNy6YhEawrTvxMRXQG0rNErvBFgHJQ zSjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=D5hGbG6WV0qF+4vkghfuUs0cqWssjsyjy9zl2xsHgs0=; b=e8O6tto/9MY6Li+ZMmHLrTYM9yaZW0S+G5QerVAPSJeE20NriU+/w5w9x+PlYlPuLM lIs4ZsI3RjHj51levGf6tz2NCvgeLlnHNQSAc2/zbDQ7muW2B8e3hmu2yBTy4+GS0Z+G k1TgLSmFpN8CbN9Dnb0fw6CzrLd7zHuJEerooZkKRHNTZ2LCNMEO/cdHYgn4MKxfgRUR 0ZwHi7adFD9o5+8fpsGwkNMAyA1HGBoWujOQMuvmE/kfYlEIqvOPqOUh0VGDOUeJIQ6x F2yCFo7YTRZ9CZXewnuKZtkj1HVR8buDo/rUB5fD09+xz1Bvaxgyrno49oqlfs6XFaMu v4Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="HK/ggXk5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id bc13-20020a656d8d000000b00373d43e8e65si406623pgb.688.2022.03.02.15.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:31:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="HK/ggXk5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C7B4C14F2B4; Wed, 2 Mar 2022 15:02:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241783AbiCBTxr (ORCPT + 99 others); Wed, 2 Mar 2022 14:53:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235881AbiCBTxq (ORCPT ); Wed, 2 Mar 2022 14:53:46 -0500 Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57ABACA0E9 for ; Wed, 2 Mar 2022 11:53:02 -0800 (PST) Received: by mail-qt1-x835.google.com with SMTP id s15so2658933qtk.10 for ; Wed, 02 Mar 2022 11:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=D5hGbG6WV0qF+4vkghfuUs0cqWssjsyjy9zl2xsHgs0=; b=HK/ggXk5ycWs0WlByrgo9XHrCsxLcY3N9SQBoeznMydDyeYrN8n8BtXH5cxIrmT4CN g1lZo4NiivObkQEWU47ExEOZWXCf8pJsCGKQm8sfBigGMgCR1PY/mWLg/P9HWN2zRkha TYD3LrpPqc47Zzk9Rgwi5vCSiaZjOhlrlU1/qb+pmvXYcGD6bPP1sLv6Mu3gA6vZxxMx dOtX6m1b8uQoMby9xb5xGUvf8DEZUqlmKxk7UZoh7ftypY+eeNo1W72hSu5AqSBXt7Zl qph+bX8yXlgxzVSlQqrJm342/XFglunO7p3hWjdH24f+XV2qreVhP4y9XLe/hWnrbmHE u8pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=D5hGbG6WV0qF+4vkghfuUs0cqWssjsyjy9zl2xsHgs0=; b=e6JXfl0v3UEi6ev3U3vo52dsduBVaRjTrP2n0v1iVUvgTCt7/f6kurffby5Y12XrjB 2h1spdfhUPEtRtyu3dXMR06EM7X+B4AXLidfjdt9JheZdAjuR3l1aUtqMvaLriDGHG3F zTKYtJwb8Og+Hj8DbizGADZWxxdEtJj/4VmGmiQK3Ud/bmlfC3AZg3KvnwOJPlQuzhsL r3otm9FcIjgQzWwI3yiKdYLSEBU/4t4J8we210QUcGs6V8c6zSZHb49E8Xmt+CVOTc4W g4cGo50LN/PW5aBrQQF9B05WDlbXFDtmoT6l4UW0kNq/a9+K6z4q+gaNlODRyYhWFA/9 OKGQ== X-Gm-Message-State: AOAM533Rg3Q5p9cA47M4L9niOSdbLjfWcUEYi5CCaPglPpLlQr2Zm+CX 0TwKeX4Sgzt9p0f2gyPRORasrQ== X-Received: by 2002:ac8:5c10:0:b0:2de:2dac:1ea1 with SMTP id i16-20020ac85c10000000b002de2dac1ea1mr25516591qti.600.1646250781277; Wed, 02 Mar 2022 11:53:01 -0800 (PST) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id p7-20020a05622a13c700b002de9f3894c2sm12165928qtk.50.2022.03.02.11.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 11:53:00 -0800 (PST) Date: Wed, 2 Mar 2022 11:52:58 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@ripple.anvils To: yong w cc: Hugh Dickins , Andrew Morton , Mike Kravetz , Matthew Wilcox , cgel.zte@gmail.com, kirill@shutemov.name, songliubraving@fb.com, Linux MM , LKML , yang.yang29@zte.com.cn, wang.yong12@zte.com.cn Subject: Re: [PATCH] memfd: fix F_SEAL_WRITE after shmem huge page allocated In-Reply-To: Message-ID: <5bacaf7a-dc6b-9435-e6a7-377b8f9d67e@google.com> References: <20220215073743.1769979-1-cgel.zte@gmail.com> <1f486393-3829-4618-39a1-931afc580835@oracle.com> <8986d97-3933-8fa7-abba-aabd67924bc2@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2 Mar 2022, yong w wrote: > Hello, > this patch does not apply to the 4.19 kernel. > Is it necessary to make corresponding patches for each stable version? I expect there will be three variants (if it's worth porting back to older stables: you make it clear that you do want 4.19, thanks): one for xarray kernels, one for radix-tree kernels, and one for old shmem.c-not-memfd.c kernels; or perhaps I've missed a variant. Once this patch has gone to Linus, then been picked up by GregKH for recent kernels, I'll respond to the mail when it goes into his tree to provide the others (or maybe I won't bother with the oldest). We didn't research a "Fixes:" tag for the patch, so Greg may quietly stop at the oldest kernel to which the patch does not apply, instead of sending out explicit pleas for substitute patches as he usually does; but I'll know anyway when the recent ones go in, and respond then. Hugh