Skip to contentSkip to conversation

infiniband:core:Add needed error path in cm_init_av_by_path

PATCH Haggai Eran 2 participants 2 messages Dec 7, 2015 1 message not in the archive InfiniBand

lore
Share & tools
lore

Haggai Eran

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Nicholas Krause

To: [email protected]
Cc: [email protected]; [email protected]; Haggai Eran; jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org; Matan Barak; [email protected]; [email protected]; Doron Tsur; Erez Shitrit; [email protected]; [email protected]; [email protected]
Subject: [PATCH] infiniband:core:Add needed error path in cm_init_av_by_path

This adds a needed error path in the function, cm_init_av_by_path after the call to ib_init_ah_from_path in order to avoid incorrectly accessing the path pointer of structure type ib_sa_path_rec if this function call fails to complete its intended work successfully by returning a error code.

The subject doesn't seem to match the convention but apart from that,

I wonder if this should go to stable. If I understand correctly, this will fail only when the SGID isn't found in the GID table, but such connections would fail later on when creating a QP, right?

Haggai--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 11 lines · Haggai Eran
Quoted 10 lines · Nicholas Krause

To: [email protected]
Cc: [email protected]; [email protected]; Haggai Eran; jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org; Matan Barak; [email protected]; [email protected]; Doron Tsur; Erez Shitrit; [email protected]; [email protected]; [email protected]
Subject: [PATCH] infiniband:core:Add needed error path in cm_init_av_by_path

This adds a needed error path in the function, cm_init_av_by_path after the call to ib_init_ah_from_path in order to avoid incorrectly accessing the path pointer of structure type ib_sa_path_rec if this function call fails to complete its intended work successfully by returning a error code.

Quoted 7 lines
Quoted 1 line

The subject doesn't seem to match the convention but apart from that,

I wonder if this should go to stable. If I understand correctly, this will fail only when the SGID isn't found in the GID table, but such connections would fail later on when creating a QP, right?

Me too think this need a reconsider, to me the current logical don't really care the missing gid in cache when initializing AV, I'm not sure if it's necessary to fail all the following path for such cache missing...

Regards,
Michael Wang

Quoted 3 lines

Haggai

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html