Ilya Dryomov 7f61f54565 libceph: don't access invalid memory in keepalive2 path
This

    struct ceph_timespec ceph_ts;
    ...
    con_out_kvec_add(con, sizeof(ceph_ts), &ceph_ts);

wraps ceph_ts into a kvec and adds it to con->out_kvec array, yet
ceph_ts becomes invalid on return from prepare_write_keepalive().  As
a result, we send out bogus keepalive2 stamps.  Fix this by encoding
into a ceph_timespec member, similar to how acks are read and written.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
2015-09-17 20:14:15 +03:00
..
2015-08-30 18:12:36 -04:00
2015-03-02 16:43:41 -05:00
2015-03-06 21:50:02 -05:00
2015-08-24 14:48:10 -07:00
2015-08-31 12:45:09 -07:00
2015-09-03 15:43:05 -07:00
2015-09-09 08:33:31 -07:00