From patchwork Wed Mar 2 08:54:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 547610 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AFD7CC433EF for ; Wed, 2 Mar 2022 08:54:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240232AbiCBIzE (ORCPT ); Wed, 2 Mar 2022 03:55:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231660AbiCBIzD (ORCPT ); Wed, 2 Mar 2022 03:55:03 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB11A5FF12 for ; Wed, 2 Mar 2022 00:54:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646211259; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XQt2bMztTZQ5yYTERQDoYNwvZqa4qCSVcsOiD0zLa3I=; b=HH0XF64vUlB95yLqP6R1OyjtP1rA0SxWahPOibpbxzxdRZyF1Ybx4uvh+jZjyzYn4tuJqq S7WG+Vyx0Mp45MwkP7pL+YMQVUo0CYi1Jm/HrWb61n3diX7XAtNJkF5bY9Zi0cXRK8DzVv +vKGiBD6eAFCeQqX2k4YBcu8RLNYFJ0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-588-KAsuXMkqN7mmEjmkiZHa9A-1; Wed, 02 Mar 2022 03:54:18 -0500 X-MC-Unique: KAsuXMkqN7mmEjmkiZHa9A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AD0541091DA1; Wed, 2 Mar 2022 08:54:17 +0000 (UTC) Received: from lxbceph1.gsslab.pek2.redhat.com (unknown [10.72.47.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E01D4D727; Wed, 2 Mar 2022 08:54:12 +0000 (UTC) From: xiubli@redhat.com To: jlayton@kernel.org Cc: idryomov@gmail.com, vshankar@redhat.com, ceph-devel@vger.kernel.org, Xiubo Li Subject: [PATCH 0/2] ceph: misc fixes Date: Wed, 2 Mar 2022 16:54:00 +0800 Message-Id: <20220302085402.64740-1-xiubli@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: Xiubo Li Based the testing branch. Xiubo Li (2): ceph: fix inode reference leakage in ceph_get_snapdir() ceph: fix a NULL pointer dereference in ceph_handle_caps() fs/ceph/caps.c | 2 +- fs/ceph/inode.c | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-)