From owner-freebsd-amd64@FreeBSD.ORG Mon Sep 26 21:00:35 2005 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2AF216A41F for ; Mon, 26 Sep 2005 21:00:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1AF043D6D for ; Mon, 26 Sep 2005 21:00:29 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8QL0Tr8008936 for ; Mon, 26 Sep 2005 21:00:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8QL0TiB008935; Mon, 26 Sep 2005 21:00:29 GMT (envelope-from gnats) Date: Mon, 26 Sep 2005 21:00:29 GMT Message-Id: <200509262100.j8QL0TiB008935@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: John Baldwin Cc: 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 Reply-To: John Baldwin 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 21:00:35 -0000 The following reply was made to PR amd64/86229; it has been noted by GNATS. From: John Baldwin To: freebsd-amd64@freebsd.org, Phil Regnauld Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: amd64/86229: Missing recvmsg syscall in freebsd32 API causes sshd crash on amd64 Date: Mon, 26 Sep 2005 16:51:34 -0400 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