From owner-freebsd-arm@FreeBSD.ORG Thu Jan 24 12:43:57 2008 Return-Path: Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 007E816A469 for ; Thu, 24 Jan 2008 12:43:57 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id AC62213C4D9 for ; Thu, 24 Jan 2008 12:43:56 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id CBDF2208A; Thu, 24 Jan 2008 13:25:11 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 4EA6A2088; Thu, 24 Jan 2008 13:25:11 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 3EBBC844AF; Thu, 24 Jan 2008 13:25:11 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: John Hay References: <20080118185634.GA28843@zibbi.meraka.csir.co.za> <20080118.120152.-345488389.imp@bsdimp.com> <20080118191638.GA30155@zibbi.meraka.csir.co.za> <20080118.145436.-1540399028.imp@bsdimp.com> <20080124114039.GF79134@zibbi.meraka.csir.co.za> Date: Thu, 24 Jan 2008 13:25:11 +0100 In-Reply-To: <20080124114039.GF79134@zibbi.meraka.csir.co.za> (John Hay's message of "Thu\, 24 Jan 2008 13\:40\:40 +0200") Message-ID: <86y7afv2ag.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-arm@FreeBSD.ORG Subject: Re: sshd broken on arm? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2008 12:43:57 -0000 John Hay writes: > [89 lines of irrelevant context snipped - learn to quote!] > > Ok, it turned out that the problem/change was not in the kernel. Old > and new kernels work equally well/bad. On December 2, the default > optimisation for the ARMs was changed from -O2 to -O. That is it. If > I compile libsshd with -O2, it works and if I compile it with -O, it > does not. > > Just adding __aligned(4) like Warner suggested also fix the problem. > [...] > So what should we do? >From a portability POV, the simplest fix is to place the buffer in a union with a dummy member that forces the alignment. In any case, this should be discussed on the OpenSSH mailing lists, not here. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no