[sheepdog] [PATCH] sockfd_cache: guard fds_count with sockfd_cache.lock

MORITA Kazutaka morita.kazutaka at gmail.com
Tue Jun 18 16:30:06 CEST 2013


At Tue, 11 Jun 2013 15:02:15 +0900,
MORITA Kazutaka wrote:
> 
> Otherwise, fds_count can increase while sockfd_cache_add() initializes
> new->fds[i].fd, and it leads to severe memory corruption.
> 
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  sheep/sockfd_cache.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)

Ping.



More information about the sheepdog mailing list