Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3435341rwb; Tue, 16 Aug 2022 03:03:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR6HCz94PNxJQBTCFFoicpkzlx8Af486bbecDave3cDaGtsXpe0CKZWlB3V4pIpw7taw5wPl X-Received: by 2002:a05:6a00:1581:b0:52f:a5bb:b9a0 with SMTP id u1-20020a056a00158100b0052fa5bbb9a0mr20970040pfk.80.1660644200233; Tue, 16 Aug 2022 03:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660644200; cv=none; d=google.com; s=arc-20160816; b=xhqb98+4P40MUVeOxog//0xj7quzAdoMzVI3GWwkxIVX6qTcEljVCjdtRlMmHC0AxN 87C1VVBq8zWRHnsVFpaTMBdGUpiVS/slTZKDlrvt6grbWhWtPG/AORi2QcbT1qu5XnOG WXpi3Lj9ibPSZrDxFcWPPL2LJ40qOkF8nBQyPzpq0B9Bj1Y46xmF4CojLAigRcFQ/f8L /SiqqWOyZyh1MZuahRcTY2NQpxZm3Utj0vfC8YB28uS7WQ4kEUjMyphUcUFtn+S8oONo AJMKqu35tjZirQGOzWpexLTtXfDMChK0coGlFdw6421rNYSbUpG1mRMgnOi5oGn3Rr2Z Zc9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Kk2g2IEl/Ua+BBCBiaozArRy7OGG11VduF5q3BhTDG0=; b=NtPs4OtioR9BZYWzOITjz9mv+fO20e+DFMkIvzzH3FFtuf9jwTrqaqW3pQWkHVdoLn 8jdWbhLHQ2g9WGZqLVHLGijSqnbCZwZnVXATIs8K1Cs9fP8e9lNpOZLGsuZ/HUgatIkJ QuZWgXuMLAZZTS2eoeMQZq9GD4AysGYMdpN/+fSDLFHisehgLeP1Z+K0ePS9yusMbCL7 wybnKcJHnAU2eIl4N4HehxSRMfASUiZRWj3kx8wAh7qPWUyueqfOibbx5h/X2l7h2qGg rhxxccpPuQMt//PccvyYrBJKOjgaQjNZpGFDsnSAXbM9e55MF6Epbm7FBeH8/UQzWwO8 lWUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KcBiWrct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m11-20020a17090ab78b00b001df61ee6d23si17489933pjr.53.2022.08.16.03.03.09; Tue, 16 Aug 2022 03:03:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KcBiWrct; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231392AbiHPJ56 (ORCPT + 99 others); Tue, 16 Aug 2022 05:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233984AbiHPJ5T (ORCPT ); Tue, 16 Aug 2022 05:57:19 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CD20194; Tue, 16 Aug 2022 02:18:37 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id v2so14042036lfi.6; Tue, 16 Aug 2022 02:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=Kk2g2IEl/Ua+BBCBiaozArRy7OGG11VduF5q3BhTDG0=; b=KcBiWrctfetchJMsY/eFWVoCsx3SblR9qr6NI6BPQ60NgilShdjZlJUj4AiV5t0Yz1 QLi+cwFAww1Sh0xZjHgdFm2wXeNc1qu+yYPcoCpbHeauU5+BHlq8vB3ETrA+3wNlMNAq YfbF3VYWZjWcHbXYEqnmKbHbidsO/eQQGJjM3gLluTqbtBegGjkkFls9VZZOLZYpzsB/ kt2bO+DyeinL1VidVfznhy9aVsAasdL03No67OrGbIRpxJ9O733KT4e2UUBk18Sg6RIE BvRr9ja784eIHZZDWo5KueuM0LZCwwgjFh7PRZkYjhHV500L74V1q7n0lwlIANYOoPvV fvBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=Kk2g2IEl/Ua+BBCBiaozArRy7OGG11VduF5q3BhTDG0=; b=GZVhmcHyprqs3B5Z9jKNl0dcyq41VPIwmEkZZLmFWh+YgL+xFCjZTBrpOfxPUezfO+ Inrwlb/5IywmbNkERF2mxrffqbXFhKdhS2ggb4GoTASsUm6akD/+TTeBbPo8zDHjIWhO ict1jbDHwMf/FAOCuwTX7Qxy+/11uUu9ly3nAMYuGqf38ZoJhmYP3OasmTbTyjN2Hlxf lQt98I+VEIyiXSmPUQvp+ygsET4D1unYSdKR4omOdHik7lsITT7bRljriQQ7FAd2wkVw 9of+w/u/Ya01ni7oxnNUsScYDdHMPcxmhI4bRfF7kecWWgOYxincSnfLYCI17K3DmHP9 51xA== X-Gm-Message-State: ACgBeo1D+F8lS/ln7U8nwO0jNVpk0EVrSZnO1KCfx0oOMy2LCO+HOX/m T5nxWXKFWZ4B01CHzfyeAU3WLe6vKxm1WNcIN/Sdb3RF7EcEOg== X-Received: by 2002:a2e:b88c:0:b0:25f:eae4:74ff with SMTP id r12-20020a2eb88c000000b0025feae474ffmr6545964ljp.48.1660641515791; Tue, 16 Aug 2022 02:18:35 -0700 (PDT) MIME-Version: 1.0 References: <20220815175114.23576-1-konishi.ryusuke@gmail.com> In-Reply-To: From: Ryusuke Konishi Date: Tue, 16 Aug 2022 18:18:18 +0900 Message-ID: Subject: Re: [PATCH] nilfs2: fix use-after-free bug in nilfs_mdt_destroy() To: Dongliang Mu Cc: Al Viro , Andrew Morton , linux-nilfs , LKML , Jiacheng Xu Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Aug 16, 2022 at 12:25 PM Dongliang Mu wrote: > > Dongliang (or Jiacheng?), would it be possible for you to post a revised patch > > against inode_init_always() that moves the call of security_inode_alloc() > > instead of i_private initialization (as Al Viro said in a nearby thread [1]) ? > > If you have time, I would like to leave it to you since you wrote the > > original patch for inode_init_always(). > > Sure, I will post a v2 patch that moves security_inode_alloc to the > location just prior to > this_cpu_inc(nr_inodes); > with proper commit message. > I saw you already sent the v2 patch on linux-fsdevel, etc. Just thank you for your quick follow. Regards, Ryusuke Konishi > > > > [1] https://lkml.kernel.org/r/CAO4S-mficMz1mQW06EuCF+o11+mRDiCpufqVfoHkcRbQbs8kVw@mail.gmail.com > > > > Thanks, > > Ryusuke Konishi