Re: [PATCH v2] smb: server: fix leak of ksmbd_ipc_login_request_ext() returned buffer

Namjae Jeon <[email protected]>
Newsgroups org.kernel.vger.linux-cifs
Message-ID <CAKYAXd9-GV+1ELu9YQt0RXVSvXwL+JjNwwyf0z7dN+cUqxNHsA@mail.gmail.com>
On Wed, Jul 8, 2026 at 9:59 PM Enzo Matsumiya <[email protected]> wrote:
>
> Free it unconditionally after ksmbd_alloc_user() calls.
>
> kmemleak splat:
>   unreferenced object 0xffff888103b83540 (size 192):
>     comm "pool-0", pid 16970, jiffies 4377290937
>     hex dump (first 32 bytes):
>       00 00 00 00 01 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 (crc 408ccc66):
>       __kvmalloc_node_noprof+0x730/0x920
>       handle_generic_event+0xec/0x1a0 [ksmbd]
>       genl_family_rcv_msg_doit+0xe0/0x130
>       genl_rcv_msg+0x181/0x290
>       netlink_rcv_skb+0x4f/0x100
>       genl_rcv+0x28/0x40
>       netlink_unicast+0x1e6/0x2c0
>       netlink_sendmsg+0x20a/0x450
>       ____sys_sendmsg+0x2e8/0x310
>       ___sys_sendmsg+0x78/0xc0
>       __sys_sendmsg+0x63/0xc0
>       do_syscall_64+0xa1/0x670
>       entry_SYSCALL_64_after_hwframe+0x76/0x7e
>
> Fixes: a77e0e02af1c ("ksmbd: add support for supplementary groups")
> Signed-off-by: Enzo Matsumiya <[email protected]>
Applied it to #ksmbd-for-next-next.
Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.