From: patchwork-bot+netdevbpf@kernel.org
To: Wang Liang <wangliang74@huawei.com>
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, kuniyu@google.com,
kay.sievers@vrfy.org, gregkh@suse.de, yuehaibing@huawei.com,
zhangchangzhong@huawei.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net: atm: fix memory leak in atm_register_sysfs when device_register fail
Date: Thu, 04 Sep 2025 08:00:06 +0000 [thread overview]
Message-ID: <175697280674.1344869.4481080369917304414.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20250901063537.1472221-1-wangliang74@huawei.com>
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Mon, 1 Sep 2025 14:35:37 +0800 you wrote:
> When device_register() return error in atm_register_sysfs(), which can be
> triggered by kzalloc fail in device_private_init() or other reasons,
> kmemleak reports the following memory leaks:
>
> unreferenced object 0xffff88810182fb80 (size 8):
> comm "insmod", pid 504, jiffies 4294852464
> hex dump (first 8 bytes):
> 61 64 75 6d 6d 79 30 00 adummy0.
> backtrace (crc 14dfadaf):
> __kmalloc_node_track_caller_noprof+0x335/0x450
> kvasprintf+0xb3/0x130
> kobject_set_name_vargs+0x45/0x120
> dev_set_name+0xa9/0xe0
> atm_register_sysfs+0xf3/0x220
> atm_dev_register+0x40b/0x780
> 0xffffffffa000b089
> do_one_initcall+0x89/0x300
> do_init_module+0x27b/0x7d0
> load_module+0x54cd/0x5ff0
> init_module_from_file+0xe4/0x150
> idempotent_init_module+0x32c/0x610
> __x64_sys_finit_module+0xbd/0x120
> do_syscall_64+0xa8/0x270
> entry_SYSCALL_64_after_hwframe+0x77/0x7f
>
> [...]
Here is the summary with links:
- [net] net: atm: fix memory leak in atm_register_sysfs when device_register fail
https://git.kernel.org/netdev/net/c/0a228624bcc0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2025-09-04 8:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-01 6:35 [PATCH net] net: atm: fix memory leak in atm_register_sysfs when device_register fail Wang Liang
2025-09-01 19:01 ` Simon Horman
2025-09-02 1:41 ` Wang Liang
2025-09-02 10:07 ` Simon Horman
2025-09-04 8:00 ` patchwork-bot+netdevbpf [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=175697280674.1344869.4481080369917304414.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gregkh@suse.de \
--cc=horms@kernel.org \
--cc=kay.sievers@vrfy.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=wangliang74@huawei.com \
--cc=yuehaibing@huawei.com \
--cc=zhangchangzhong@huawei.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.