Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756615AbYHLAlh (ORCPT ); Mon, 11 Aug 2008 20:41:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754090AbYHLAl0 (ORCPT ); Mon, 11 Aug 2008 20:41:26 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:21252 "EHLO g1t0029.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754079AbYHLAlZ (ORCPT ); Mon, 11 Aug 2008 20:41:25 -0400 Message-ID: <48A0DC32.9030309@hp.com> Date: Mon, 11 Aug 2008 20:41:22 -0400 From: Brian Haley Organization: Open Source and Linux Organization User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Eugene Teo CC: Alexey Dobriyan , John Gumb , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, YOSHIFUJI Hideaki Subject: Re: OOPS, ip -f inet6 route get fec0::1, linux-2.6.26, ip6_route_output, rt6_fill_node+0x175 References: <9F6ACAE02B6DD040A1E259977622CFDB033590C3@oslexcp1.eu.tandberg.int> <20080807203748.GA5196@martell.zuzino.mipt.ru> <489BD227.6000209@hp.com> <20080811110335.GA29407@kernel.sg> In-Reply-To: <20080811110335.GA29407@kernel.sg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 32 Eugene Teo wrote: > I think it's better to use a helper routine like ipv6_get_saddr to make > sure that both dst and rt6i_idev arguments are checked for NULL. > > I have compiled, and tested the patch. > > Thanks, > Eugene > > --- > Fix NULL pointer dereference in rt6_fill_node(). > > # ip -f inet6 route get fec0::1 > > BUG: unable to handle kernel NULL pointer dereference at 00000000 > IP: [] rt6_fill_node+0x175/0x3b0 > EIP is at rt6_fill_node+0x175/0x3b0 > > Cc: Stable > Signed-off-by: Eugene Teo Acked-by: Brian Haley But Yoshfuji might have another opinion since he did the work to remove ipv6_get_saddr() in the first place. -Brian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/