All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rbd: Clear ceph_msg->bio_iter for retransmitted message
@ 2012-06-06  8:03 Yan, Zheng
  2012-06-06 14:10 ` Alex Elder
  2012-06-06 22:10 ` Alex Elder
  0 siblings, 2 replies; 7+ messages in thread
From: Yan, Zheng @ 2012-06-06  8:03 UTC (permalink / raw)
  To: ceph-devel

From: "Yan, Zheng" <zheng.z.yan@intel.com>

The bug can cause NULL pointer dereference in write_partial_msg_pages

Signed-off-by: Zheng Yan <zheng.z.yan@intel.com>
---
 net/ceph/messenger.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 1a80907..785b953 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -598,6 +598,7 @@ static void prepare_write_message(struct ceph_connection *con)
 	     le32_to_cpu(con->out_msg->footer.front_crc),
 	     le32_to_cpu(con->out_msg->footer.middle_crc));
 
+	m->bio_iter = NULL;
 	/* is there a data payload? */
 	if (le32_to_cpu(m->hdr.data_len) > 0) {
 		/* initialize page iterator */
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-11 15:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06  8:03 [PATCH] rbd: Clear ceph_msg->bio_iter for retransmitted message Yan, Zheng
2012-06-06 14:10 ` Alex Elder
2012-06-08  6:17   ` Hannes Reinecke
2012-06-08  6:32     ` Yan, Zheng
2012-06-11 15:48     ` Alex Elder
2012-06-06 22:10 ` Alex Elder
2012-06-06 22:35   ` Yan, Zheng 

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.