From owner-freebsd-amd64@FreeBSD.ORG Mon Sep 26 20:51:37 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A29DA16A41F; Mon, 26 Sep 2005 20:51:37 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA9DD43D5E; Mon, 26 Sep 2005 20:51:36 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.41.233] (Not Verified[10.50.41.233]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Mon, 26 Sep 2005 17:07:33 -0400 From: John Baldwin To: freebsd-amd64@freebsd.org, Phil Regnauld Date: Mon, 26 Sep 2005 16:51:34 -0400 User-Agent: KMail/1.8 References: <20050916205334.AB5B339827@vinyl.catpipe.net> In-Reply-To: <20050916205334.AB5B339827@vinyl.catpipe.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509261651.35974.jhb@FreeBSD.org> Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: amd64/86229: Missing recvmsg syscall in freebsd32 API causes sshd crash on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2005 20:51:37 -0000 I haven't tested it on amd64 at all (hopefully the freebsd32 part compiles :-P), but here is a patch to add a kern_recvit() function and use it to implement freebsd32_recvmsg(). Note that I'm not sure that some other functions like sendmsg() actually work correctly for freebsd32 as they are copying in a 32-bit msghdr and expecting it to be a 64-bit msghdr. http://www.FreeBSD.org/~jhb/patches/freebsd32_recvmsg.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org