[PATCH] [2.4] Fix failing LTP testcase recvmsg01

Julie DeWandel jdewand at redhat.com
Tue Nov 25 23:34:53 EST 2003


Same fix is also needed for sys32_sendmsg().

-Julie

Olof Johansson wrote:

> Attached patch fixes the LTP testcase recvmsg01, we don't return the
> same error (EMSGSIZE) for the
> translated 32-bit system call. 2.5 is not affected, translations are
> handled differently there.
>
> I'll push this to ameslab tomorrow.
>
>
> -Olof
>
> --
> Olof Johansson                                        Office: 4F005/905
> pSeries Linux Development                             IBM Systems Group
> Email: olof at austin.ibm.com                          Phone: 512-838-9858
> All opinions are my own and not those of IBM
>
>------------------------------------------------------------------------
>
>===== arch/ppc64/kernel/sys_ppc32.c 1.11 vs edited =====
>--- 1.11/arch/ppc64/kernel/sys_ppc32.c	Tue Sep  2 10:49:30 2003
>+++ edited/arch/ppc64/kernel/sys_ppc32.c	Mon Nov 24 16:21:08 2003
>@@ -3759,7 +3759,7 @@
> 	if(msghdr_from_user32_to_kern(&kern_msg, user_msg))
> 		return -EFAULT;
> 	if(kern_msg.msg_iovlen > UIO_MAXIOV)
>-		return -EINVAL;
>+		return -EMSGSIZE;
>
> 	uaddr = kern_msg.msg_name;
> 	uaddr_len = &user_msg->msg_namelen;
>
>

--
Julie DeWandel <jdewand at redhat.com>
Red Hat, Inc.
Tel (978) 692-3113 x23251


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list