Patch "rpcrdma: Always release the rpcrdma_device's xa_array" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rpcrdma: Always release the rpcrdma_device's xa_array

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rpcrdma-always-release-the-rpcrdma_device-s-xa_array.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit ed40d614ff243ccfca53ae6118ee3c4b1b841831
Author: Chuck Lever <chuck.lever@xxxxxxxxxx>
Date:   Wed Oct 30 16:11:30 2024 -0400

    rpcrdma: Always release the rpcrdma_device's xa_array
    
    [ Upstream commit 63a81588cd2025e75fbaf30b65930b76825c456f ]
    
    Dai pointed out that the xa_init_flags() in rpcrdma_add_one() needs
    to have a matching xa_destroy() in rpcrdma_remove_one() to release
    underlying memory that the xarray might have accrued during
    operation.
    
    Reported-by: Dai Ngo <dai.ngo@xxxxxxxxxx>
    Fixes: 7e86845a0346 ("rpcrdma: Implement generic device removal")
    Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/sunrpc/xprtrdma/ib_client.c b/net/sunrpc/xprtrdma/ib_client.c
index 8507cd4d89217..28c68b5f68238 100644
--- a/net/sunrpc/xprtrdma/ib_client.c
+++ b/net/sunrpc/xprtrdma/ib_client.c
@@ -153,6 +153,7 @@ static void rpcrdma_remove_one(struct ib_device *device,
 	}
 
 	trace_rpcrdma_client_remove_one_done(device);
+	xa_destroy(&rd->rd_xa);
 	kfree(rd);
 }
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux