From patchwork Thu Feb 3 20:31:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shirish Pargaonkar X-Patchwork-Id: 530511 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 p13KVnUQ006711 for ; Thu, 3 Feb 2011 20:31:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751831Ab1BCUbv (ORCPT ); Thu, 3 Feb 2011 15:31:51 -0500 Received: from mail-vx0-f174.google.com ([209.85.220.174]:37961 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751760Ab1BCUbv (ORCPT ); Thu, 3 Feb 2011 15:31:51 -0500 Received: by vxb37 with SMTP id 37so446795vxb.19 for ; Thu, 03 Feb 2011 12:31:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=o39kjo5H5QcRb+Wc5qU8uiD/VpcoT++kOIcHG79qL9Y=; b=hZxiTriSaLIm9TQWEhM3E03awlBZ340EcUhLdMEdp50vhxP7tAOWTt8/JANx12Bzf9 crChuf/Z9tWgpssbyI2nOohrADsM2ElGqzstXbY5qZCx+XRS6zNoaz6MvTBqID5Ov9RC KN85IMrBsHVSfNGDL5gzIxtbWLawcBn1WRc30= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=B5Uzub18o+/twfAID+RAul3wBMnH7OILxFHINs8Znp7J6/AirpXVMsm9GJhAF2fUdT Ql7ORbtdtdTQVYA/MKAEWHcW/H/5Ckvz3NKXgmNh0WaTfg9dl24D/SzXmd9ZEnAiEnYP /G9ooH8LgvdRn+NYj2im8Qg1aRX+Rh066rcwk= Received: by 10.220.200.134 with SMTP id ew6mr2703486vcb.206.1296765110563; Thu, 03 Feb 2011 12:31:50 -0800 (PST) Received: from localhost ([32.97.110.58]) by mx.google.com with ESMTPS id q5sm517109vcr.15.2011.02.03.12.31.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 12:31:49 -0800 (PST) From: shirishpargaonkar@gmail.com To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org, Shirish Pargaonkar Subject: [PATCH] cifs: Possible slab memory corruption while updating extended stats (repost) Date: Thu, 3 Feb 2011 14:31:18 -0600 Message-Id: <1296765078-25531-1-git-send-email-shirishpargaonkar@gmail.com> X-Mailer: git-send-email 1.6.0.2 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Feb 2011 20:31:58 +0000 (UTC) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 945b220..1f32a28 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -633,11 +633,11 @@ incomplete_rcv: mid_entry->largeBuf = isLargeBuf; multi_t2_fnd: mid_entry->midState = MID_RESPONSE_RECEIVED; - list_del_init(&mid_entry->qhead); - mid_entry->callback(mid_entry); #ifdef CONFIG_CIFS_STATS2 mid_entry->when_received = jiffies; #endif + list_del_init(&mid_entry->qhead); + mid_entry->callback(mid_entry); break; } mid_entry = NULL;