From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752961AbcFCVbz (ORCPT ); Fri, 3 Jun 2016 17:31:55 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34393 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932232AbcFCVbw (ORCPT ); Fri, 3 Jun 2016 17:31:52 -0400 From: Larry Finger Subject: Memory leak in block I/O (ext4) for 4.7-rc1 - bisected to commit 9082e87bfbf8 To: Christoph Hellwig , Ming Lin , Sagi Grimberg , Ming Lei , Jens Axboe Cc: LKML Message-ID: <5751F745.60204@lwfinger.net> Date: Fri, 3 Jun 2016 16:31:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Several memory leaks of the type shown below are reported by kmemleak for the block I/O system, and ext4 in particular: unreferenced object 0xffff8801ff71f500 (size 256): comm "kworker/u16:4", pid 76, jiffies 4294707552 (age 97.892s) hex dump (first 32 bytes): c0 20 08 00 00 ea ff ff 00 10 00 00 00 00 00 00 . .............. c0 20 08 00 00 ea ff ff 00 10 00 00 00 00 00 00 . .............. backtrace: [] kmemleak_alloc+0x4e/0xb0 [] kmem_cache_alloc+0xdc/0x300 [] bvec_alloc+0x5c/0xf0 [] bio_alloc_bioset+0x1a4/0x2a0 [] next_bio+0x24/0x50 [] blkdev_issue_zeroout+0xe0/0x1d0 [] ext4_issue_zeroout+0x38/0x50 [] ext4_ext_zeroout+0x2f/0x40 [] ext4_ext_convert_to_initialized+0x28c/0x920 [] ext4_ext_map_blocks+0x16e2/0x1940 [] ext4_map_blocks+0x123/0x620 [] ext4_writepages+0x885/0x10e0 [] do_writepages+0x21/0x40 [] __writeback_single_inode+0x60/0x830 [] writeback_sb_inodes+0x2bd/0x650 [] __writeback_inodes_wb+0x8c/0xc0 This leak has been bisected to commit 9082e87bfbf83579b97e3bfc45d81f3e50da2177 ("block: remove struct bio_batch"). As usual, I will be happy to test any fixes. Thanks, Larry -- If I was stranded on an island and the only way to get off the island was to make a pretty UI, I’d die there. Linus Torvalds