[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected. No action required from the submitter.
The upstream commit SHA1 provided is correct: fa2f9906a7b333ba757a7dbae0713d8a5396186e
WARNING: Author mismatch between patch and upstream commit: Backport author: Pavel PaklovPavel.Paklov@cyberprotect.ru Commit author: Paulo Alcantarapc@manguebit.com
Status in newer kernel trees: 6.14.y | Present (exact SHA1) 6.12.y | Present (different SHA1: a2be5f2ba34d) 6.6.y | Present (different SHA1: 1ea680703385)
Note: The patch differs from the upstream commit: --- 1: fa2f9906a7b33 ! 1: 56e7a9b9b42bb smb: client: fix double free of TCP_Server_Info::hostname @@ ## Metadata ## -Author: Paulo Alcantara pc@manguebit.com +Author: Pavel Paklov pavel.paklov@cyberprotect.ru
## Commit message ## smb: client: fix double free of TCP_Server_Info::hostname
+ From: Paulo Alcantara pc@manguebit.com + + commit fa2f9906a7b333ba757a7dbae0713d8a5396186e upstream + When shutting down the server in cifs_put_tcp_session(), cifsd thread might be reconnecting to multiple DFS targets before it realizes it should exit the loop, so @server->hostname can't be freed as long as @@ Commit message Reported-by: Jay Shin jaeshin@redhat.com Signed-off-by: Paulo Alcantara (Red Hat) pc@manguebit.com Signed-off-by: Steve French stfrench@microsoft.com + Signed-off-by: Pavel Paklov pavel.paklov@cyberprotect.ru
## fs/smb/client/connect.c ## -@@ fs/smb/client/connect.c: clean_demultiplex_info(struct TCP_Server_Info *server) - /* Release netns reference for this server. */ - put_net(cifs_net_ns(server)); +@@ fs/smb/client/connect.c: static void clean_demultiplex_info(struct TCP_Server_Info *server) + kfree(server->origin_fullpath); kfree(server->leaf_fullpath); + #endif + kfree(server->hostname); kfree(server);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |