Re: sshd broken with UsePrivilegeSeparation=yes on sparc64

From: Michiel Boland <michiel_at_boland.org>
Date: Sun, 15 Jul 2007 17:43:45 +0200 (MEST)
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 I guess that every call to mm_receive_fd will return an undefined 
value.

If I add -O0 to CFLAGS in /usr/src/secure/lib/libssh/Makefile, ssh with 
UsePrivilegeSeparation=yes works again.

So, obviously a gcc bug. I will try to generate a smaller test-case for 
this.
Received on Sun Jul 15 2007 - 13:43:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC