# Re: \[PATCH 5/5\] net: Block MSG\_CMSG\_COMPAT in send(m)msg and recv(m)msg

- From: Stephen Rothwell \<hidden\>
- Date: 2013-06-06 03:29:47 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2013/06/4061484
- Thread: https://ratatoskr.run/netdev/2013/05/4053607/t.md

```text
Hi Anton,

On Thu, 6 Jun 2013 13:01:05 +1000 Anton Blanchard [ref] wrote:
>
> > This is causing a regression on 64bit powerpc with 32bit usermode.
> > When I hit userspace, udev is broken and I suspect all networking is
> > broken as well.
> > 
> > Can we please revert 1be374a0518a288147c6a7398792583200a67261
> > upstream?
> > 
> > Found via bisect.
> 
> Doesn't this patch break compat_sys_sendmsg and compat_sys_recvmsg?
> We'd need to move the guts of sys_* into compat_sys_* to fix it.

What you really need is a set of common functions that the sys_ and
compat_sys_ functions can call - with the sys_ funtions forbidding
MSG_CMSG_COMPAT and the compat_sys_ functions setting it.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
```

## Attachments

- [(unnamed)](https://ratatoskr.run/linuxppc-dev/2013/06/4061484/attachment/0) (application/pgp-signature, 836 bytes)
