OSDN Git Service

mptcp: zero token hash at creation time.
authorPaolo Abeni <pabeni@redhat.com>
Wed, 22 Jul 2020 15:20:50 +0000 (17:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 00:57:37 +0000 (17:57 -0700)
commit6ab301c98f174a8c25d5351b977a1113e2f1fb91
tree548ed9be7a713af0f34edac00d6ee22bfbfb859d
parentbb809a047eb5070e2fc76aa62d111fbbe656c532
mptcp: zero token hash at creation time.

Otherwise the 'chain_len' filed will carry random values,
some token creation calls will fail due to excessive chain
length, causing unexpected fallback to TCP.

Fixes: 2c5ebd001d4f ("mptcp: refactor token container")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/token.c