From: Jens Axboe <axboe@kernel.dk>
To: linux-kernel@vger.kernel.org,
Chen Zhongjin <chenzhongjin@huawei.com>,
linux-block@vger.kernel.org
Cc: mcgrof@kernel.org, hare@suse.de
Subject: Re: [PATCH] block: Fix possible memory leak for rq_wb on add_disk failure
Date: Mon, 31 Oct 2022 07:32:12 -0600 [thread overview]
Message-ID: <166722313202.68022.4514926407660406546.b4-ty@kernel.dk> (raw)
In-Reply-To: <20221029071355.35462-1-chenzhongjin@huawei.com>
On Sat, 29 Oct 2022 15:13:55 +0800, Chen Zhongjin wrote:
> kmemleak reported memory leaks in device_add_disk():
>
> kmemleak: 3 new suspected memory leaks
>
> unreferenced object 0xffff88800f420800 (size 512):
> comm "modprobe", pid 4275, jiffies 4295639067 (age 223.512s)
> hex dump (first 32 bytes):
> 04 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 ................
> 00 e1 f5 05 00 00 00 00 00 00 00 00 00 00 00 00 ................
> backtrace:
> [<00000000d3662699>] kmalloc_trace+0x26/0x60
> [<00000000edc7aadc>] wbt_init+0x50/0x6f0
> [<0000000069601d16>] wbt_enable_default+0x157/0x1c0
> [<0000000028fc393f>] blk_register_queue+0x2a4/0x420
> [<000000007345a042>] device_add_disk+0x6fd/0xe40
> [<0000000060e6aab0>] nbd_dev_add+0x828/0xbf0 [nbd]
> ...
>
> [...]
Applied, thanks!
[1/1] block: Fix possible memory leak for rq_wb on add_disk failure
(no commit info)
Best regards,
--
Jens Axboe
prev parent reply other threads:[~2022-10-31 13:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 7:13 Chen Zhongjin
2022-10-30 9:34 ` Christoph Hellwig
2022-10-31 13:32 ` Jens Axboe [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=166722313202.68022.4514926407660406546.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=chenzhongjin@huawei.com \
--cc=hare@suse.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@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
all inboxes | Powered by JetHome®