HomeFreeBSD

uipc_usrreq: fix inode number assignment

Description

uipc_usrreq: fix inode number assignment

The code was incrementing a global variable in an unsafe manner.
Two different threads stating two different sockets could have resulted
in the same inode numbers assigned to both.

Creation is protected with a global lock, move the assigment there.
Since inode numbers are 64-bit now drop the check for overflows.

Sponsored by: The FreeBSD Foundation

Details

Provenance
mjgAuthored on
Parents
rS340748: proc: update list manipulation comment on process exit
Branches
Unknown
Tags
Unknown