NetBSD Problem Report #9516
Received: (qmail 17285 invoked from network); 1 Mar 2000 07:25:49 -0000
Message-Id: <200003010725.QAA27239@itojun.org>
Date: Wed, 1 Mar 2000 16:25:18 +0900 (JST)
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
Reply-To: itojun@itojun.org
To: gnats-bugs@gnats.netbsd.org
Subject: unp_* in sys/kern/uipc_socket.c does not obey RFC2292 description for ancillary data alignment
X-Send-Pr-Version: 3.95
>Number: 9516
>Category: kern
>Synopsis: unp_* in sys/kern/uipc_socket.c does not obey RFC2292 description for ancillary data alignment
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: thorpej
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 29 23:27:00 +0000 2000
>Closed-Date: Mon Nov 13 18:39:45 +0000 2000
>Last-Modified: Mon Nov 13 18:39:45 +0000 2000
>Originator: Jun-ichiro itojun Hagino
>Release:
>Organization:
itojun.org
>Environment:
>Description:
unp_* uses ancillary data (cmsg_xx). the way it manipulates the
ancillary data item does not meet with padding requirement imposed by
sys/socket.h. sys/socket.h is obeying RFC2292.
it looks that unp_* is assuming certain alignment which conflicts with
RFC2292.
how many userland programs manipulate credentals generated by
unp_externalize? if there's no userland program, and if unp_* are
agreeing on each other, this problem shows no real harm on i386.
the alignment issue may raise some problem on picky-to-alignment
architectures (64bit, specifically). maybe not.
>How-To-Repeat:
look at the code.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: thorpej
State-Changed-When: Sun Jun 4 23:18:43 PDT 2000
State-Changed-Why:
This should now be fixed. Please inspect the latest version of
uipc_userreq.c.
Responsible-Changed-From-To: kern-bug-people->thorpej
Responsible-Changed-By: thorpej
Responsible-Changed-When: Sun Jun 4 23:20:03 PDT 2000
Responsible-Changed-Why:
I've committed a fix, and will take care of cleaning up the report.
State-Changed-From-To: feedback->closed
State-Changed-By: tv
State-Changed-When: Mon Nov 13 10:39:18 PST 2000
State-Changed-Why:
Fized, and now itojun is more-or-less our netinet maintainer anyway. :)
>Unformatted:
latest -currnt, 1.4.1
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.