NetBSD-Bugs archive

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

PR/60729 CVS commit: src/sys/kern



The following reply was made to PR kern/60729; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/60729 CVS commit: src/sys/kern
Date: Thu, 17 Sep 2026 01:21:34 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Thu Sep 17 01:21:34 UTC 2026
 
 Modified Files:
 	src/sys/kern: uipc_usrreq.c
 
 Log Message:
 uipc_usrreq: Fix unix-domain socket inode assignment.
 
 1. `if (unp->unp_ino == 0) unp->unp_ino = unp_ino++' would assign
    zero the first time around by mistake, and then assign nonzero
    after that.  `if (unp->unp_ino == 0) unp->unp_ino = ++unp_ino'
    avoids this silliness.
 
 2. Make the ++unp_ino part atomic.
 
 PR kern/60729: incosistent st_ino from the first stat(2) on a socket
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.209 -r1.210 src/sys/kern/uipc_usrreq.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 



Home | Main Index | Thread Index | Old Index