Re: [PATCH] libceph: don't WARN() if user tries to add invalid key

2017-11-07 Thread Ilya Dryomov
On Tue, Nov 7, 2017 at 6:57 AM, Eric Biggers wrote: > 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

2017-11-06 Thread Eric Biggers
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 CONFIG_CEPH_LIB=y): echo -e -n '\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' \ |