[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200717105013.76ea6a7f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 17 Jul 2020 10:50:13 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: lebon zhou <lebon.zhou@...il.com>
Cc: davem@...emloft.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix memory overwriting issue when copy an address to
user space
On Fri, 17 Jul 2020 10:31:54 +0000 lebon zhou wrote:
> When application provided buffer size less than sockaddr_storage, then
> kernel will overwrite some memory area which may cause memory corruption,
> e.g.: in recvmsg case, let msg_name=malloc(8) and msg_namelen=8, then
> usually application can call recvmsg successful but actually application
> memory get corrupted.
>
> Fix to return EINVAL when application buffer size less than
> sockaddr_storage.
>
> Signed-off-by: lebon.zhou <lebon.zhou@...il.com>
Please repoist CCing the netdev mailing list.
Powered by blists - more mailing lists