Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8329938rwb; Tue, 13 Dec 2022 05:14:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5LPJBfj82j3pu+H8TCQ6+llEUflFP6uvCA7yjz8puX6zDKjd+OTr+ReqqtdZO8O6jfzOdH X-Received: by 2002:a17:90a:9742:b0:219:c2f2:f818 with SMTP id i2-20020a17090a974200b00219c2f2f818mr21131038pjw.42.1670937265962; Tue, 13 Dec 2022 05:14:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670937265; cv=none; d=google.com; s=arc-20160816; b=OFK889nR7PJVBAzOFLYr7PQlcxn3Gp6ujT+HzjIZKVPHoees8eJGlEFis66qLWtx/D x+SXI+yNhuFtaK7DJFkNL/Mijb9kpopuhYmgfcQnnT6ygADp92Lzumy0TPjXTPd//tLp 3rwURxE5qBFQLM2WZqcwmqGKIEZ/qi/RQTKILpW6nCa5tlGpsLytyW6eL1PEvc0SkplM AdiyP8Op4b5gqnEAcr6oVr3UyZNAXRfjeqzwhloSYpvZYAayWu4tj+cWvEUXfcPCpIUX XC0v24njkITS8LTx13Hupv5sGfP4lqG69+Ni8vJiIApin7xYEKEJsbVTHFI4O9PJZvNu cFgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=HeaPFoSqwNVUgg4ew0qj0V2psVbFF+PaD4vtLVdLpfk=; b=01ecfdUF+snuEc8n2eXC9lPWwdeVlhRo/YU5V50iU6bjLlwm9OajqbE8tA1w9qoRtk dU7DFoOnFJXVytu9m3eYm4KaggE2TL6Gbqj5p02Spvmx6vplpP0s0jBbDkQdIKqUQjS2 X9N6lmAXvN0FUQwPhU4+OM1ONm55bwJGTMlxDVWbkcuwX198+RZM4Xny2I/Lh34PG9Wh 7AWm8x7iRgNxkb3PUfLoILhCZQJdpRhKMYZR8//uQeuGz4YueRlYy/pa6k88bH9n68WN xOQ8rq7JqJXI7Ici1u2t4LFS1zbyghQDO8r0nfAVDCjlk0UagLnpjCBDfACdCqVxxy6y B7yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LB0wP0EA; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a17090abf0b00b002194156ef24si11640935pjs.189.2022.12.13.05.14.15; Tue, 13 Dec 2022 05:14:25 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=LB0wP0EA; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235360AbiLMMrO (ORCPT + 73 others); Tue, 13 Dec 2022 07:47:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiLMMrK (ORCPT ); Tue, 13 Dec 2022 07:47:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 681062EE; Tue, 13 Dec 2022 04:47:06 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id F4237614C8; Tue, 13 Dec 2022 12:47:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 719CBC433D2; Tue, 13 Dec 2022 12:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670935625; bh=TAaNkCOgM1asqcXO/g5N+4KvMGb9eBkyQa4Gy0QTAeg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LB0wP0EAfGMsyh70AKPRTKds55kqMiQIsqJKkh0dxs3QvC1UYNplh24NhvqbPQQKG r19WqwYZHP36yRMG9TqlJFC8oEeivE+GQpl8N2UwttE+cWmSyXxkyRDi8BFtagcp2+ UA+BfPbKNOL3LN/Cbme1GZBFkqTtyB7y7MnA03NZ3AVvDS2tQUs8pDWN2YaD1Yk1oK ERllxGmc9pqYAkKaX3IKJUtJuuH+bGMFE6k9XTTXsBC5msAn2QOl3PSsDt8JBS2bQF 9oo+JqrWp4ySY4yfydHomfCLqF7ulBRgQHnaT55mEkbulvF5jWes6LUXVDFoXDqxDd 3zTUC8L+S1Pew== Message-ID: Subject: Re: [PATCH v4 0/2] ceph: fix the use-after-free bug for file_lock From: Jeff Layton To: xiubli@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org Cc: mchangir@redhat.com, lhenriques@suse.de, viro@zeniv.linux.org.uk, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Date: Tue, 13 Dec 2022 07:47:03 -0500 In-Reply-To: <20221213121103.213631-1-xiubli@redhat.com> References: <20221213121103.213631-1-xiubli@redhat.com> Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.2 (3.46.2-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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, 2022-12-13 at 20:11 +0800, xiubli@redhat.com wrote: > From: Xiubo Li >=20 > Changed in V4: > - repeat the afs in fs.h instead of adding ceph specific header file >=20 > Changed in V3: > - switched to vfs_inode_has_locks() helper to fix another ceph file lock > bug, thanks Jeff! > - this patch series is based on Jeff's previous VFS lock patch: > https://patchwork.kernel.org/project/ceph-devel/list/?series=3D695950 >=20 > Changed in V2: > - switch to file_lock.fl_u to fix the race bug > - and the most code will be in the ceph layer >=20 > Xiubo Li (2): > ceph: switch to vfs_inode_has_locks() to fix file lock bug > ceph: add ceph specific member support for file_lock >=20 > fs/ceph/caps.c | 2 +- > fs/ceph/locks.c | 24 ++++++++++++++++++------ > fs/ceph/super.h | 1 - > include/linux/fs.h | 3 +++ > 4 files changed, 22 insertions(+), 8 deletions(-) >=20 Both patches look good to me. You can add: Reviewed-by: Jeff Layton