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-11 22:05:36 +02:00
2015-08-30 18:12:36 -04:00
2015-08-18 11:55:06 -07:00
2015-05-11 10:50:17 -04:00
2015-07-31 15:25:52 -07:00
2015-07-15 15:59:58 -07:00
2015-08-27 20:15:34 +02:00
2015-08-28 21:03:00 +02:00
2015-09-08 22:33:14 -07:00
2015-08-18 11:55:07 -07:00
2015-07-12 21:13:22 +02:00
2015-09-17 20:14:15 +03:00
2015-09-09 14:19:50 -07:00
2015-07-27 01:06:53 -07:00
2015-09-09 14:19:50 -07:00
2015-08-31 14:48:02 -07:00
2015-09-01 15:06:22 -07:00
2015-08-18 11:55:07 -07:00
2015-08-29 13:15:03 -07:00
2015-09-10 10:58:33 -07:00
2015-09-10 13:53:15 -07:00
2015-05-11 10:50:17 -04:00
2015-05-25 17:46:21 -04:00
2015-05-11 10:50:17 -04:00
2015-08-24 14:48:10 -07:00
2015-05-11 10:50:18 -04:00
2015-07-27 01:06:53 -07:00
2015-09-04 15:23:22 +02:00
2015-08-10 20:43:06 +02:00
2015-08-31 12:45:09 -07:00
2015-09-09 21:43:22 -07:00
2015-03-31 13:58:35 -04:00
2015-09-09 21:43:22 -07:00
2015-06-18 21:14:32 +02:00
2015-08-20 22:00:11 +02:00
2015-09-06 23:48:33 -07:00
2015-08-17 14:22:48 -07:00
2015-05-11 10:50:17 -04:00
2015-09-10 13:53:15 -07:00
2015-09-04 14:26:56 +02:00
2015-06-24 02:58:51 -07:00
2015-05-11 10:50:17 -04:00
2015-09-01 15:06:22 -07:00
2015-09-03 15:43:05 -07:00
2015-09-09 08:33:31 -07:00
2015-09-05 22:02:11 -07:00
2015-09-08 22:50:26 -07:00
2015-06-10 22:49:20 -07:00
2015-05-11 10:50:17 -04:00
2015-08-09 22:43:52 -07:00
2015-09-04 14:29:25 +02:00
2015-05-11 10:50:17 -04:00
2015-09-03 08:08:17 -07:00
2015-04-09 00:02:26 -04:00
2015-07-21 10:39:03 -07:00
2015-05-11 10:50:17 -04:00