linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Valente <paolo.valente@linaro.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: Guoqing Jiang <guoqing.jiang@linux.dev>, linux-block@vger.kernel.org
Subject: Re: bfq - suspected memory leaks
Date: Sat, 18 Sep 2021 13:01:27 +0200	[thread overview]
Message-ID: <B36A80BD-B3FD-4C05-AF27-618C50664CAE@linaro.org> (raw)
In-Reply-To: <38fc74a9-f748-54b9-d072-d3fa88a3d7d8@kernel.dk>



> Il giorno 15 set 2021, alle ore 14:56, Jens Axboe <axboe@kernel.dk> ha scritto:
> 
> On 9/8/21 10:07 PM, Guoqing Jiang wrote:
>> Hi,
>> 
>> With latest kernel (commit 4ac6d90867a4 "Merge tag 'docs-5.15' of 
>> git://git.lwn.net/linux"),
>> I got lots of kmemleak reports during compile kernel source code.
>> 
>> # dmesg |grep kmemleak
>> [18234.655491] kmemleak: 1 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [18890.247552] kmemleak: 2 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [19745.602271] kmemleak: 2 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [20390.965851] kmemleak: 4 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [21150.173950] kmemleak: 4 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [21929.951448] kmemleak: 15 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [23589.726859] kmemleak: 2 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [24416.441263] kmemleak: 1 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [30400.835853] kmemleak: 10 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [68673.737862] kmemleak: 2 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [72770.498898] kmemleak: 1 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> [77046.434369] kmemleak: 7 new suspected memory leaks (see 
>> /sys/kernel/debug/kmemleak)
>> 
>> All of them  have similar trace as follows.
>> 
>>   comm "sh", pid 27054, jiffies 4302241171 (age 47562.964s)
>>   hex dump (first 32 bytes):
>>     01 00 00 00 00 00 00 00 00 b0 20 02 80 88 ff ff  .......... .....
>>     04 00 02 00 04 00 02 00 00 00 00 00 00 00 00 00 ................
>>   backtrace:
>>     [<000000004fa2550b>] bfq_get_queue+0x2a8/0xfd0
>>     [<00000000b1757a70>] bfq_get_bfqq_handle_split+0xa4/0x240
>>     [<00000000ac263274>] bfq_init_rq+0x1f7/0x1d10
>>     [<00000000110283e1>] bfq_insert_requests+0xf7/0x5f0
>>     [<000000002ed06e79>] blk_mq_sched_insert_requests+0xfe/0x350
>>     [<000000000ebf38ac>] blk_mq_flush_plug_list+0x256/0x3e0
>>     [<00000000bc647b2b>] blk_flush_plug_list+0x1ff/0x240
>>     [<000000004e7e49f8>] blk_finish_plug+0x3c/0x60
>>     [<000000008802f1e4>] read_pages+0x28f/0x580
>>     [<000000009986d1f4>] page_cache_ra_unbounded+0x266/0x3a0
>>     [<00000000492c494f>] filemap_fault+0x8a8/0xfe0
>>     [<000000009cbd8d38>] __do_fault+0x70/0x150
>>     [<000000002740a35f>] do_fault+0x112/0x670
>>     [<00000000a74facab>] __handle_mm_fault+0x57e/0xcc0
>>     [<0000000024009667>] handle_mm_fault+0xd6/0x330
>>     [<00000000fb1e0780>] do_user_addr_fault+0x2a9/0x8b0
>> unreferenced object 0xffff888021e5dd90 (size 560):
> 
> Paolo, are you on top of this one?
> 

Thanks Guoqing for reporting this.  I'm overloaded at the moment,
please give me a little time and I'll have a look.

Paolo

> -- 
> Jens Axboe


      reply	other threads:[~2021-09-18 11:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09  4:07 bfq - suspected memory leaks Guoqing Jiang
2021-09-15 12:56 ` Jens Axboe
2021-09-18 11:01   ` Paolo Valente [this message]

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=B36A80BD-B3FD-4C05-AF27-618C50664CAE@linaro.org \
    --to=paolo.valente@linaro.org \
    --cc=axboe@kernel.dk \
    --cc=guoqing.jiang@linux.dev \
    --cc=linux-block@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).