Skip to contentSkip to conversation

IB/sa: Fix use-after-free in ib_nl_send_msg()

PATCH Markus Elfring 2 participants 2 messages May 15, 2020 – May 19, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

This patch fixes commit -
commit 3ebd2fd0d011 ("IB/sa: Put netlink request into the request list before sending")'

Above commit adds the query to the request list before ib_nl_snd_msg.

I suggest to improve also this change description.

The query to the request list was added before ib_nl_snd_msg() by the commit 3ebd2fd0d011 ("…").

Quoted 1 line

This flag Indicates …

… indicates …

Quoted 3 lines

To handle the case where a response is received before we could set this flag, the response handler waits for the flag to be
set before proceeding with the query.

Please reconsider the word wrapping.

To handle the case where a response is received before we could set this flag, the response handler waits for the flag to be set before proceeding with the query.

Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus

#1 lore raw

Hi Markus,

Thanks for taking the time to review.

Quoted 8 lines · Markus Elfring
Quoted 4 lines

This patch fixes commit -
commit 3ebd2fd0d011 ("IB/sa: Put netlink request into the request list before sending")'

Above commit adds the query to the request list before ib_nl_snd_msg.

I suggest to improve also this change description.

The query to the request list was added before ib_nl_snd_msg() by the commit 3ebd2fd0d011 ("…").

Noted, will make this change.

Quoted 3 lines
Quoted 2 lines

This flag Indicates …

… indicates …

Noted.

Quoted 4 lines
Quoted 4 lines

To handle the case where a response is received before we could set this flag, the response handler waits for the flag to be
set before proceeding with the query.

Quoted 8 lines

Please reconsider the word wrapping.

To handle the case where a response is received before we could set this flag, the response handler waits for the flag to be set before proceeding with the query.

Would you like to add the tag “Fixes” to the commit message?

Noted!

Thanks,

Divya

Quoted 3 lines

Regards,
Markus