]> git.baikalelectronics.ru Git - kernel.git/commit
af_rxrpc: Fix XDR length check in rxrpc key demarshalling.
authorNathaniel W Filardo <nwf@cs.jhu.edu>
Thu, 15 May 2014 14:51:22 +0000 (15:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2014 19:24:47 +0000 (15:24 -0400)
commit4a5a905ada4d2490b0932d7cee722d3b3d367b65
treeddb95ce510f1d4f1920ba80a77bead614e62a874
parente52b847ee6d3abfd044a3a2857b7fed844588073
af_rxrpc: Fix XDR length check in rxrpc key demarshalling.

There may be padding on the ticket contained in the key payload, so just ensure
that the claimed token length is large enough, rather than exactly the right
size.

Signed-off-by: Nathaniel Wesley Filardo <nwf@cs.jhu.edu>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-key.c