Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp724589ioo; Sat, 21 May 2022 12:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7Dym+rkOFPKKXA8/vY0EjNBLh4EiUFfk4aL0yk3ISSPNzbxCfV/99XCIouiTyXXyJt1cL X-Received: by 2002:a17:907:6294:b0:6e1:ea4:74a3 with SMTP id nd20-20020a170907629400b006e10ea474a3mr13328527ejc.168.1653160111722; Sat, 21 May 2022 12:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653160111; cv=none; d=google.com; s=arc-20160816; b=06u9Nr2HHuCFiW82ZbJl/FoGrwOhfd1/jj9mlcrW1LXFUhcntBVM1py93CoK/jFJzj I2ztcu234nrW8sH6VbIBVt+PrU+rFq19FQ5Noz/azz1B/vJ11YEcs1yNg2p0vHKD/Xjr XjM50cj64aWHHgd96H2saXhwLngFNdEwXfJn3LhgzZK6ZcwBaRFSnnkMvOLxjA+WHVqe GltUxHjfKQmbmtFLh7t7yMn/Rl3CQA0tB10+czn+VmQbJHaKpEVVXMBLlmpq6Bo83FPd l/Wro8Ok07tAeLHHj7DZJRhK3r/Ds7gEtm/MQgNDDivZvSy0cfy+8/Fe4OTGkWzsS4WL qajw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=L9MDpy6jwkLc4cJpIgrYvYtbM3slRdUhL5PijfqQhoI=; b=LZAc1Y1fGmt8Ra+/2KYtGUvZPJ3sZps1Yd/a8UFhr21S+hrICtX3bxtAt6/qjAzx7F jsq3MVYEt4mYUNAXwEPMdvjmcoWRIjGnyorMTqvbI6M6fiJxZMlbhEOYh6gqfnNEZoG/ 9KQW5hTkWdvXV28W47m9a9anLl8BMX3nN4swxXI9b+5glhl507XNGmXMrs1fYuqWioTg 1OdJnRcBLVdtagIeYg+MsObMNH+rHgmf2X9mqJANaO2Idbwjwy+lIsq/N7yWKQsy+Ql2 uNpfJ76coNR/2FPgAFeLjvELtZrd/feTIgndnpI05Z88VWz/3dQ7gqD1FL+DzAQxXmC7 Fcqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20-20020a1709060c5400b006f44ffc2ed9si4741133ejf.445.2022.05.21.12.07.51; Sat, 21 May 2022 12:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354446AbiEUDYQ (ORCPT + 99 others); Fri, 20 May 2022 23:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352996AbiEUDYP (ORCPT ); Fri, 20 May 2022 23:24:15 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60DF91957A0 for ; Fri, 20 May 2022 20:24:14 -0700 (PDT) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4L4pnM2BGGz1JC3y; Sat, 21 May 2022 11:22:47 +0800 (CST) Received: from localhost.localdomain (10.175.101.6) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 21 May 2022 11:24:11 +0800 From: Zhang Xiaoxu To: , , , , , , Subject: [v2 0/2] Fix null-ptr-deref in nfsd_fill_super() Date: Sat, 21 May 2022 12:08:43 +0800 Message-ID: <20220521040845.619409-1-zhangxiaoxu5@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.101.6] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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-nfs@vger.kernel.org Also do some clean up in init_nfsd(). Since there are much difference with the linux master branch, @Bruce could you help to review this patch again. Zhang Xiaoxu (2): nfsd: Unregister the cld notifier when laundry_wq create failed nfsd: Fix null-ptr-deref in nfsd_fill_super() fs/nfsd/nfsctl.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.31.1