From patchwork Sat Dec 25 18:01:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 432701 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBPIAtpC026501 for ; Sat, 25 Dec 2010 18:10:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751272Ab0LYSKv (ORCPT ); Sat, 25 Dec 2010 13:10:51 -0500 Received: from swampdragon.chaosbits.net ([90.184.90.115]:14227 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977Ab0LYSKv (ORCPT ); Sat, 25 Dec 2010 13:10:51 -0500 Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id CCBEE9403D; Sat, 25 Dec 2010 19:01:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id C629A9403B; Sat, 25 Dec 2010 19:01:05 +0100 (CET) Date: Sat, 25 Dec 2010 19:01:05 +0100 (CET) From: Jesper Juhl To: ceph-devel@vger.kernel.org cc: linux-kernel@vger.kernel.org, Sage Weil Subject: [PATCH] Ceph: Fix use-after-free in destroy_fs_client() Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 25 Dec 2010 18:10:55 +0000 (UTC) diff --git a/fs/ceph/super.c b/fs/ceph/super.c index 08b460a..7373594 100644 --- a/fs/ceph/super.c +++ b/fs/ceph/super.c @@ -498,8 +498,8 @@ void destroy_fs_client(struct ceph_fs_client *fsc) ceph_destroy_client(fsc->client); - kfree(fsc); dout("destroy_fs_client %p done\n", fsc); + kfree(fsc); } /*