Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jul 2007 17:17:10 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Michiel Boland <michiel@boland.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: sshd broken with UsePrivilegeSeparation=yes on sparc64 
Message-ID:  <58735.1184519830@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 15 Jul 2007 17:43:45 %2B0200." <Pine.GSO.4.64.0707151732540.129@neerbosch.nijmegen.internl.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.GSO.4.64.0707151732540.129@neerbosch.nijmegen.internl.net>, Mi
chiel Boland writes:
>It looks like gcc mis-compiles /usr/src/crypto/openssh/monitor_fdpass.c on 
>sparc64. For some reason it optimizes away the assignment of fd on line 
>132:
>
>         fd = (*(int *)CMSG_DATA(cmsg));
>
>So, obviously a gcc bug. I will try to generate a smaller test-case for 
>this.

I'm not convinced that CMSG_DATA is entirely kosher.

FlexeLint (www.gimpel.com) have complained about CMSG_DATA for ages
but I have never been able to figure out why it complained.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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