Skip to contentSkip to conversation

macsec: fix validation failed in asynchronous operation.

PATCH RESEND In review Ryder Lee 2 participants 3 messages Jan 21, 2017 – Jan 23, 2017 1 message not in the archive

Subsystems (4)
lore
Share & tools
lore

Ryder Lee

author
#0 lore raw

PATCH RESEND 1/1 macsec: fix validation failed in asynchronous operation.

Add missing "macsec_skb_cb(skb)->valid = true" in callback function macsec_decrypt_done(), this fixes packet validation failed while decrypting asynchronously.

---
 drivers/net/macsec.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/macsec.c +3 -0
index f83cf66..73d8d39 100644
@@ -880,6 +880,9 @@ static void macsec_decrypt_done(struct crypto_async_request *base, int err)
 	aead_request_free(macsec_skb_cb(skb)->req);
 
 	rcu_read_lock_bh();
+	if (err == 0)
+		macsec_skb_cb(skb)->valid = true;
+
 	pn = ntohl(macsec_ethhdr(skb)->packet_number);
 	if (!macsec_post_decrypt(skb, &macsec->secy, pn)) {
 		rcu_read_unlock_bh();
Signature · 1 line
1.9.1

A message that is not in the archive (sent off-list or not yet received): 1484988127-25860-1-git-send-email-ryder.lee-NuS5LvNUpcJWk0Htik3J/[email protected]

#2 lore raw

Why are you resending this?

The original posting on Jan 20th made it to the mailing list and is queued up in patchwork just fine.

Also, regardless of the reason, a "RESEND" patch should always contain an explanation of why it needs to be resent. So that the maintainer doesn't need to ask questions like I am right now.

author
#3 lore raw

Sorry for forgetting to explain it.

The original patch was incomplete, but I sent it out by mistake... So please ignore it.

Quoted 8 lines · David Miller

Why are you resending this?

The original posting on Jan 20th made it to the mailing list and is queued up in patchwork just fine.

Also, regardless of the reason, a "RESEND" patch should always contain an explanation of why it needs to be resent. So that the maintainer doesn't need to ask questions like I am right now.