Re: [PATCH] Fix kernel panic when calling tcp_v(4/6)_md5_do_lookup

From: David Miller
Date: Thu Aug 07 2008 - 01:44:25 EST


From: Gui Jianfeng <guijianfeng@xxxxxxxxxxxxxx>
Date: Thu, 07 Aug 2008 13:12:57 +0800

> If the following packet flow happen, kernel will panic.
> MathineA MathineB
> SYN
> ---------------------->
> SYN+ACK
> <----------------------
> ACK(bad seq)
> ---------------------->
> When a bad seq ACK is received, tcp_v4_md5_do_lookup(skb->sk, ip_hdr(skb)->daddr))
> is finally called by tcp_v4_reqsk_send_ack(), but the first parameter(skb->sk) is
> NULL at that moment, so kernel panic happens.
> This patch fixes this bug.
>
> Below is the OOPS output:
...
> Signed-off-by: Gui Jianfeng <guijianfeng@xxxxxxxxxxxxxx>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/