[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120215.145511.1269077904303781879.davem@davemloft.net>
Date: Wed, 15 Feb 2012 14:55:11 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: piergiorgio.beruto@...il.com, netdev@...r.kernel.org
Subject: Re: Possible bugfix for AF_UNIX, SOCK_SEQPACKET sockets
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 15 Feb 2012 13:42:07 +0100
> @@ -1824,7 +1824,7 @@ static int unix_dgram_recvmsg(struct kiocb *iocb, struct socket *sock,
> if (UNIXCB(skb).fp)
> siocb->scm->fp = scm_fp_dup(UNIXCB(skb).fp);
> }
> - err = size;
> + err = (flags & MSG_TRUNC) ? skb->len : size;
>
> scm_recv(sock, msg, siocb->scm, flags);
I'm ok with this, but if it is found to break even one userland application
I'm reverting with impunity.
--
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