From: Stefan Metzmacher <metze@samba.org>
To: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org
Cc: metze@samba.org, Steve French <smfrench@gmail.com>,
Tom Talpey <tom@talpey.com>, Long Li <longli@microsoft.com>
Subject: [PATCH 0/5] smb:client: fix possible use after free problems
Date: Mon, 4 Aug 2025 14:10:11 +0200 [thread overview]
Message-ID: <cover.1754308712.git.metze@samba.org> (raw)
While refactoring the client and server smbdirect code I
noticed a few problems where we might hit use after free
style problems.
In order to allow backports I decided to fix the problems
before trying to move things to common code.
The server has similar problems, I'll send a separate
patchset for the server as they are independed.
Stefan Metzmacher (5):
smb: client: let send_done() cleanup before calling
smbd_disconnect_rdma_connection()
smb: client: remove separate empty_packet_queue
smb: client: make sure we call ib_dma_unmap_single() only if we called
ib_dma_map_single already
smb: client: let recv_done() cleanup before notifying the callers.
smb: client: let recv_done() avoid touching data_transfer after
cleanup/move
fs/smb/client/cifs_debug.c | 6 +-
fs/smb/client/smbdirect.c | 124 ++++++++++++-------------------------
fs/smb/client/smbdirect.h | 4 --
3 files changed, 42 insertions(+), 92 deletions(-)
--
2.43.0
next reply other threads:[~2025-08-04 12:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-04 12:10 Stefan Metzmacher [this message]
2025-08-04 12:10 ` [PATCH 1/5] smb: client: let send_done() cleanup before calling smbd_disconnect_rdma_connection() Stefan Metzmacher
2025-08-06 11:39 ` Stefan Metzmacher
2025-08-06 17:36 ` Steve French
2025-08-04 12:10 ` [PATCH 2/5] smb: client: remove separate empty_packet_queue Stefan Metzmacher
2025-08-04 12:10 ` [PATCH 3/5] smb: client: make sure we call ib_dma_unmap_single() only if we called ib_dma_map_single already Stefan Metzmacher
2025-08-04 12:10 ` [PATCH 4/5] smb: client: let recv_done() cleanup before notifying the callers Stefan Metzmacher
2025-08-04 12:10 ` [PATCH 5/5] smb: client: let recv_done() avoid touching data_transfer after cleanup/move Stefan Metzmacher
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=cover.1754308712.git.metze@samba.org \
--to=metze@samba.org \
--cc=linux-cifs@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=samba-technical@lists.samba.org \
--cc=smfrench@gmail.com \
--cc=tom@talpey.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.