From: Bart Van Assche <bart.vanassche@sandisk.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Dave Jones <davej@codemonkey.org.uk>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: blk-mq vs kmemleak
Date: Fri, 31 Jul 2015 17:37:02 -0700 [thread overview]
Message-ID: <55BC14AE.3090200@sandisk.com> (raw)
In-Reply-To: <20150708081740.GA3374@infradead.org>
On 07/08/2015 01:17 AM, Christoph Hellwig wrote:
> On Tue, Jul 07, 2015 at 06:59:37AM -0700, Bart Van Assche wrote:
>> Please note that my test was run with CONFIG_SLUB_DEBUG=y which causes a red
>> zone to be allocated before and after each block of allocated memory. Could
>> that explain the kmalloc-96 objects ?
>
> 96 is almost guaranteed to be the sense buffer allocated in
> scsi_init_request and freed in scsi_exit_request.
Hello Catalin and Christoph,
kmemleak still reports large numbers of unreferenced objects for the
scsi-mq code with the v4.2-rc4 kernel even with the recently posted
scsi-mq leak fix applied on top of v4.2-rc4. Here is an example of one
such report:
unreferenced object 0xffff88045e05dc28 (size 96):
comm "srp_daemon", pid 8461, jiffies 4294973034 (age 742.350s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff814f2ede>] kmemleak_alloc+0x4e/0xb0
[<ffffffff811b0678>] kmem_cache_alloc_trace+0xc8/0x2d0
[<ffffffffa006cc37>] scsi_init_request+0x27/0x40 [scsi_mod]
[<ffffffff81278b91>] blk_mq_init_rq_map+0x1d1/0x260
[<ffffffff81278cc4>] blk_mq_alloc_tag_set+0xa4/0x1f0
[<ffffffffa006fb0d>] scsi_mq_setup_tags+0xcd/0xd0 [scsi_mod]
[<ffffffffa0066464>] scsi_add_host_with_dma+0x74/0x2e0 [scsi_mod]
[<ffffffffa0478e12>] srp_create_target+0xe12/0x1320 [ib_srp]
[<ffffffff8138a728>] dev_attr_store+0x18/0x30
[<ffffffff812371f8>] sysfs_kf_write+0x48/0x60
[<ffffffff812367f4>] kernfs_fop_write+0x144/0x190
[<ffffffff811bdaf8>] __vfs_write+0x28/0xe0
[<ffffffff811be1a9>] vfs_write+0xa9/0x190
[<ffffffff811bef09>] SyS_write+0x49/0xa0
[<ffffffff815022f2>] entry_SYSCALL_64_fastpath+0x16/0x7a
[<ffffffffffffffff>] 0xffffffffffffffff
Thanks,
Bart.
next prev parent reply other threads:[~2015-08-01 0:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 16:11 blk-mq vs kmemleak Dave Jones
2015-07-03 17:04 ` Bart Van Assche
2015-07-03 17:07 ` Dave Jones
2015-07-07 10:33 ` Catalin Marinas
2015-07-07 13:59 ` Bart Van Assche
2015-07-08 8:17 ` Christoph Hellwig
2015-08-01 0:37 ` Bart Van Assche [this message]
2015-08-03 10:43 ` Catalin Marinas
2015-08-03 13:33 ` Christoph Hellwig
2015-08-03 15:34 ` Catalin Marinas
2015-08-03 17:05 ` Bart Van Assche
2015-08-03 17:50 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55BC14AE.3090200@sandisk.com \
--to=bart.vanassche@sandisk.com \
--cc=catalin.marinas@arm.com \
--cc=davej@codemonkey.org.uk \
--cc=hch@infradead.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).