OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-471-ga9726e9

Gerrit Code Review gerrit@openafs.org
Tue, 5 May 2026 16:15:39 -0400


The following commit has been merged in the master branch:
commit a9726e9e307bc20cf26a07a3a7cb99ee845d895c
Author: Nikitha Mohithe <nikithamohithe@gmail.com>
Date:   Sat Apr 11 15:04:14 2026 +0530

    rx: Free Linux kernel UDP socket on bind failure
    
    After sock_create succeeds but bind fails, rxk_NewSocketHost returns
    NULL without releasing the socket. There is nothing else in this path
    that frees it, so repeated failures can leak kernel sockets.
    
    Call sock_release(sockp) on bind failure. This matches how we already
    close the socket when stopping the RX listener in osi_StopListener(),
    and how older OpenAFS Linux code behaved before commit 06f8a6232
    ("Linux: Remove old code from RX kernel implementation").
    
    This call was effectively removed for Linux 2.4+ in commit b860b359d584
    (initial-linux24-support-20001105).
    
    Change-Id: I83713fc3445b4cea6699878b40b9a92d3394ec7c
    Reviewed-on: https://gerrit.openafs.org/16771
    Reviewed-by: Andrew Deason <adeason@sinenomine.net>
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
    Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>

 src/rx/LINUX/rx_knet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
OpenAFS Master Repository