]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: tcp: fix panic in SYN processing
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 23 Nov 2011 20:49:31 +0000 (15:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Nov 2011 20:49:31 +0000 (15:49 -0500)
commitca27caffbd3eb27cd20f76ee6eb16f33c7c1822b
tree55e607b5facf5f29f58484b7c6662c1c8e1cb7ba
parenta294394ee58982407aaf678208514fc36c3ea828
ipv6: tcp: fix panic in SYN processing

commit 673cc700999dfa ([NET]: Size listen hash tables using backlog
hint) added a bug allowing inet6_synq_hash() to return an out of bound
array index, because of u16 overflow.

Bug can happen if system admins set net.core.somaxconn &
net.ipv4.tcp_max_syn_backlog sysctls to values greater than 65536

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/inet6_connection_sock.c