Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libceph: kill ceph_none_authorizer::reply_buf

We never receive authorizer replies with cephx disabled, so it is
bogus. Also, it still uses the old zero-length array style.

Reported-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

+2 -3
+2 -2
net/ceph/auth_none.c
··· 112 112 auth->authorizer = (struct ceph_authorizer *) au; 113 113 auth->authorizer_buf = au->buf; 114 114 auth->authorizer_buf_len = au->buf_len; 115 - auth->authorizer_reply_buf = au->reply_buf; 116 - auth->authorizer_reply_buf_len = sizeof (au->reply_buf); 115 + auth->authorizer_reply_buf = NULL; 116 + auth->authorizer_reply_buf_len = 0; 117 117 118 118 return 0; 119 119 }
-1
net/ceph/auth_none.h
··· 16 16 struct ceph_authorizer base; 17 17 char buf[128]; 18 18 int buf_len; 19 - char reply_buf[0]; 20 19 }; 21 20 22 21 struct ceph_auth_none_info {