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

Re: sshd broken with UsePrivilegeSeparation=yes on sparc64

In message <Pine_(_dot_)_GSO_(_dot_)_4_(_dot_)_64_(_dot_)_0707151732540_(_dot_)_129_(_at_)_neerbosch_(_dot_)_nijmegen_(_dot_)_internl_(_dot_)_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 
>         fd = (*(int *)CMSG_DATA(cmsg));
>So, obviously a gcc bug. I will try to generate a smaller test-case for 

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_(_at_)_FreeBSD_(_dot_)_ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
freebsd-current_(_at_)_freebsd_(_dot_)_org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscribe_(_at_)_freebsd_(_dot_)_org"