[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6026B737A@saturn3.aculab.com>
Date: Tue, 8 Oct 2013 09:43:52 +0100
From: "David Laight" <David.Laight@...LAB.COM>
To: "Steve Rago" <sar@...-labs.com>,
"David Miller" <davem@...emloft.net>
Cc: <luto@...capital.net>, <netdev@...r.kernel.org>,
<mtk.manpages@...il.com>, <ebiederm@...ssion.com>
Subject: RE: bug in passing file descriptors
> > There is no compatability issue.
> >
> > 32-bit tasks will always see the 4-byte align/length.
> > 64-bit tasks will always see the 8-byte align/length.
> >
>
> Really? So when I compile my application on a 32-bit Linux box and then try to run it on a 64-bit
> Linux box, you're not
> going to overrun my buffer when CMSG_SPACE led me to allocate an insufficient amount of memory needed
> to account for
> padding on the 64-bit platform?
Worth checking what happens if you try to send an fd between a 32 bit
application and a 64bit one.
Also is the fd actually closed if the receiving applications buffer
isn't big enough.
David
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists