Re: sshd broken with UsePrivilegeSeparation=yes on sparc64

From: Michiel Boland <michiel_at_boland.org>
Date: Sun, 15 Jul 2007 22:50:01 +0200 (MEST)
> Could you give us an assembly dump of the two differences?  phk thinks
> there might be an issue w/ the CMSG_DATA macro, and a quick glance
> makes me question it too...  It looks scare on platforms that require
> aligned accesses...

Ok I have attached the compiled .s files. Hopefully these will not be 
eaten along the way.

Oh and, instead of compiling with O0, the following trick also helps avoid 
the problem

--- monitor_fdpass.c.orig	2007-07-15 22:47:01.000000000 +0200
+++ monitor_fdpass.c	2007-07-15 22:47:05.000000000 +0200
_at__at_ -130,6 +130,7 _at__at_
  		    SCM_RIGHTS, cmsg->cmsg_type);
  #endif
  	fd = (*(int *)CMSG_DATA(cmsg));
+	debug3("%s: fd = %d", __func__, fd);
  #endif
  	return fd;
  #else

Received on Sun Jul 15 2007 - 18:50:04 UTC

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