public inbox for linux-cifs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] SMB Direct: double-free of send_io on ib_post_send failure in batch flush path
@ 2026-04-10 20:10 Stefan Metzmacher
  2026-04-10 20:11 ` [PATCH 1/2] smb: client: avoid double-free in smbd_free_send_io() after smbd_send_batch_flush() Stefan Metzmacher
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Stefan Metzmacher @ 2026-04-10 20:10 UTC (permalink / raw)
  To: linux-cifs, samba-technical
  Cc: metze, Namjae Jeon, Steve French, Tom Talpey, Ruikai Peng,
	Sergey Senozhatsky, Paulo Alcantara, security

Hi Steve,

here are the real patches for the changes already tested by
Ruikai Peng for the double-free problem reported, see:
https://lore.kernel.org/linux-cifs/CAFD3drNOSJ05y3A+jNXSDxW-2w09KHQ0DivhxQ_pcc7immVVOQ@mail.gmail.com/

I prepared a branch that can replace ksmbd-for-next.
The 2 changes are rebased below the smbdirect.ko changes,
I resolved the conflicts and made sure the problem is also solved in
the new common code. This in for-7.1/smbdirect-ko-20260410-v12
at commit: 274b415378bbd0cf6fde1a719e264cee2eefc06f
git fetch https://git.samba.org/metze/linux/wip.git for-7.1/smbdirect-ko-20260410-v12
https://git.samba.org/?p=metze/linux/wip.git;a=shortlog;h=refs/heads/for-7.1/smbdirect-ko-20260410-v12
I made sure each commit compiles fine...


Stefan Metzmacher (2):
  smb: client: avoid double-free in smbd_free_send_io() after
    smbd_send_batch_flush()
  smb: server: avoid double-free in smb_direct_free_sendmsg after
    smb_direct_flush_send_list()

 fs/smb/client/smbdirect.c      | 8 ++++++++
 fs/smb/server/transport_rdma.c | 8 +++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-04-11  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 20:10 [PATCH 0/2] SMB Direct: double-free of send_io on ib_post_send failure in batch flush path Stefan Metzmacher
2026-04-10 20:11 ` [PATCH 1/2] smb: client: avoid double-free in smbd_free_send_io() after smbd_send_batch_flush() Stefan Metzmacher
2026-04-10 20:11 ` [PATCH 2/2] smb: server: avoid double-free in smb_direct_free_sendmsg after smb_direct_flush_send_list() Stefan Metzmacher
2026-04-10 20:30 ` [PATCH 0/2] SMB Direct: double-free of send_io on ib_post_send failure in batch flush path Paulo Alcantara
2026-04-11  0:51 ` Namjae Jeon
2026-04-11  1:31   ` Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox