Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2000 05:04:41 -0700 (PDT)
From:      Don Lewis <Don.Lewis@tsc.tdk.com>
To:        arch@freebsd.org
Subject:   width of cr_ref
Message-ID:  <200009031204.FAA19222@salsa.gv.tsc.tdk.com>

next in thread | raw e-mail | index | archive | help
Now that sockets hold a reference to the ucred structure, should cr_ref
be a wider type?  Really busy servers with a lot of sockets owned by one
user might overflow cr_ref, causing mysterious crashes when the ucred
structure is freed too early.

struct ucred {
        u_short cr_ref;                 /* reference count */
        uid_t   cr_uid;                 /* effective user id */
        short   cr_ngroups;             /* number of groups */
        gid_t   cr_groups[NGROUPS];     /* groups */
};



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009031204.FAA19222>