linux-cifs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] smb:client: fix possible use after free problems
@ 2025-08-04 12:10 Stefan Metzmacher
  2025-08-04 12:10 ` [PATCH 1/5] smb: client: let send_done() cleanup before calling smbd_disconnect_rdma_connection() Stefan Metzmacher
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Stefan Metzmacher @ 2025-08-04 12:10 UTC (permalink / raw)
  To: linux-cifs, samba-technical; +Cc: metze, Steve French, Tom Talpey, Long Li

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-06 17:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-04 12:10 [PATCH 0/5] smb:client: fix possible use after free problems Stefan Metzmacher
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

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).