lkml.org 
[lkml]   [2008]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Fix kernel panic when calling tcp_v(4/6)_md5_do_lookup
From
From: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
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@cn.fujitsu.com>

Applied, thanks.


\
 
 \ /
  Last update: 2008-08-07 07:47    [W:0.057 / U:11.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site