Whamcloud - gitweb
LU-539 obd_data_connect server side could be corrupted
authorBobi Jam <bobijam@whamcloud.com>
Tue, 26 Jul 2011 17:36:18 +0000 (01:36 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 1 Aug 2011 14:50:58 +0000 (10:50 -0400)
commitc05d602f27d4cb326dd10423e09046b16bee1d21
tree9b058fc9277cb0a80148ad1d274442158516fa2a
parentadc0fa37a44fce26e4c161176612c3c360a4dfbf
LU-539 obd_data_connect server side could be corrupted

In target_handle_connect(), we use assignment to copy client's connect
data to its server counterpart, and we define the pointers pointing to
a big buffer (struct obd_connect_data), while server's reply connect
data could be a smaller buffer (struct obd_connect_data_v1), the
assignment could corrupt the request's obd_connect_data reply buffer.

Change-Id: Ib72776d3dee8a2a836fda5b29ab49c3bbc026cab
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1144
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c