[ofw] al_cm_qp.c: <NULL> p_listen induced crash

Stan C. Smith stan.smith at intel.com
Thu Apr 9 10:34:33 PDT 2009


Hi,
  It appears the svn commits for ND connection scaling (2082?) have introduced a failure in unchanged dap2test.exe code.

In al_cm_qp.c when attempting to match an inbound connection request to a posted listen, the context field is <null>
when passed to __proc_listen(). Later in __listen_req()
P_listen->obj.context is dereferenced ... Boom!

ibal!__listen_req(struct _al_listen * p_listen = 0x00000000, unsigned int new_cid = 3, struct _mad_cm_req * p_req =
0x005cfed8)+0x62
ibal!__proc_listen(struct _al_listen * p_listen = 0x00000000, unsigned int new_cid = 3, struct _ib_mad * p_mad =
0x00314480)+0x62
ibal!__cm_handler(struct _ib_al * h_al = 0x0008d378, unsigned int cid = 1)+0x6b
ibal!cm_cb(unsigned long error_code = 0, unsigned long ret_bytes = 0, struct _OVERLAPPED * p_ov = 0x0009d57c)+0x57
ibal!__cb_thread_routine(void * context = 0x00000000)+0xbf

The failure appears on x86 & x64.

Thoughts on a fix?

Thanks,

Stan.




More information about the ofw mailing list