]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: user - no parsing of CRYPTO_MSG_GETALG
authorStephan Mueller <smueller@chronox.de>
Mon, 16 May 2016 00:53:36 +0000 (02:53 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 31 May 2016 08:41:47 +0000 (16:41 +0800)
commit6d0fc4032c68709196490f94cfd1b1c073f9a451
tree135955503d62c4da95dd5ab2e719802d6751f825
parentd0561befe7c1ecc75215bd4dbf9ffa84c34f866a
crypto: user - no parsing of CRYPTO_MSG_GETALG

The CRYPTO_MSG_GETALG netlink message type provides a buffer to the
kernel to retrieve information from the kernel. The data buffer will not
provide any input and will not be read. Hence the nlmsg_parse is not
applicable to this netlink message type.

This patch fixes the following kernel log message when using this
netlink interface:

netlink: 208 bytes leftover after parsing attributes in process `XXX'.

Patch successfully tested with libkcapi from [1] which uses
CRYPTO_MSG_GETALG to obtain cipher-specific information from the kernel.

[1] http://www.chronox.de/libkcapi.html

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crypto_user.c