Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759743AbWLIXQI (ORCPT ); Sat, 9 Dec 2006 18:16:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759747AbWLIXQI (ORCPT ); Sat, 9 Dec 2006 18:16:08 -0500 Received: from py-out-1112.google.com ([64.233.166.176]:47059 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759675AbWLIXQF (ORCPT ); Sat, 9 Dec 2006 18:16:05 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=lm5O0svpAxlIijre5IlQIak8k7KtW4jdAhr730zPYaKbaCeNkUt1QPCxf6H7QTAflFnc40XTm0e1yBN/q7rnPLhxUeKak8+wgMDNiFLiawyoUEABcgOBC6JcOkoqMbEkOiwCcov+qPtc1MbaCZNAgfSC7VA31IRHfG93N6wRV1A= Message-ID: Date: Sat, 9 Dec 2006 23:16:04 +0000 From: "Catalin Marinas" To: "Linux Kernel Mailing List" Subject: Possible memory leak in block/ll_rw_blk.c Cc: "Mike Christie" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 38 Hi, After 2.6.19, kmemleak reports several (few tens) orphan blocks allocated in bio_alloc_bioset() via __blk_rq_map_user() in block/ll_rq_blk.c. I think these came with commit 0e75f9063f5c55fb0b0b546a7c356f8ec186825e (support larger block pc requests). The allocation backtrace for the "bio" structure is: unreferenced object 0xdd9162b0 (size 64): [] kmem_cache_alloc [] mempool_alloc_slab [] mempool_alloc [] bio_alloc_bioset [] bio_alloc [] bio_copy_user [] __blk_rq_map_user [] blk_rq_map_user [] sg_io [] scsi_cmd_ioctl [] sd_ioctl [] blkdev_driver_ioctl [] blkdev_ioctl [] block_ioctl [] do_ioctl Because the above objects cannot be tracked, kmemleak also reports the bio_map_data structures allocated in bio_alloc_map_data (called from bio_copy_user via the above backtrace). Thanks. -- Catalin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/