[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150601.165407.734100251470140931.davem@davemloft.net>
Date: Mon, 01 Jun 2015 16:54:07 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: zhengjunling@...wei.com
Cc: gregkh@...uxfoundation.org, lizefan@...wei.com,
viro@...iv.linux.org.uk, xuhanbing@...wei.com,
stable@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [RFC] [PATCH] net: socket: Fix the wrong returns for recvmsg
and sendmsg
From: Junling Zheng <zhengjunling@...wei.com>
Date: Mon, 1 Jun 2015 09:28:00 +0000
> We found that after v3.10.73, recvmsg might return -EFAULT while -EINVAL
> was expected.
>
> We tested it through the recvmsg01 testcase come from LTP testsuit. It set
> msg->msg_namelen to -1 and the recvmsg syscall returned errno 14, which is
> unexpected (errno 22 is expected):
>
> recvmsg01 4 TFAIL : invalid socket length ; returned -1 (expected -1),
> errno 14 (expected 22)
>
> Linux mainline has no this bug for commit 08adb7dab fixes it accidentally.
> However, it is too large and complex to be backported to LTS 3.10.
>
> So, I made the following patch to fix the above problem for LTS 3.10.
Upstream the code doesn't look anything like this, so it's probably
just a missing bug fix for -stable.
--
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