Re: [PATCH] libceph: don't WARN() if user tries to add invalid key
On Tue, Nov 7, 2017 at 6:57 AM, Eric Biggerswrote: > From: Eric Biggers > > The WARN_ON(!key->len) in set_secret() in net/ceph/crypto.c is hit if a > user tries to add a key of type "ceph" with an invalid payload as > follows (assuming
[PATCH] libceph: don't WARN() if user tries to add invalid key
From: Eric BiggersThe WARN_ON(!key->len) in set_secret() in net/ceph/crypto.c is hit if a user tries to add a key of type "ceph" with an invalid payload as follows (assuming CONFIG_CEPH_LIB=y): echo -e -n '\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' \ |