* Fix for ipv6_setsockopt NULL dereference [not found] <200703091207.31877.olaf.kirch@oracle.com> @ 2007-03-09 14:15 ` Olaf Kirch 2007-03-09 14:40 ` YOSHIFUJI Hideaki / 吉藤英明 2007-03-09 21:54 ` David Miller 0 siblings, 2 replies; 4+ messages in thread From: Olaf Kirch @ 2007-03-09 14:15 UTC (permalink / raw) To: netdev I came across this bug in http://bugzilla.kernel.org/show_bug.cgi?id=8155 Here's a potential fix. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play okir@lst.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax -- Fix NULL pointer derefence in ipv6_setsockopt, as described in bug #8155. Signed-off-by: olaf.kirch@oracle.com --- net/ipv6/ipv6_sockglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: build-2.6/net/ipv6/ipv6_sockglue.c =================================================================== --- build-2.6.orig/net/ipv6/ipv6_sockglue.c +++ build-2.6/net/ipv6/ipv6_sockglue.c @@ -413,7 +413,7 @@ static int do_ipv6_setsockopt(struct soc } /* routing header option needs extra check */ - if (optname == IPV6_RTHDR && opt->srcrt) { + if (optname == IPV6_RTHDR && opt && opt->srcrt) { struct ipv6_rt_hdr *rthdr = opt->srcrt; switch (rthdr->type) { case IPV6_SRCRT_TYPE_0: ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fix for ipv6_setsockopt NULL dereference 2007-03-09 14:15 ` Fix for ipv6_setsockopt NULL dereference Olaf Kirch @ 2007-03-09 14:40 ` YOSHIFUJI Hideaki / 吉藤英明 2007-03-09 21:56 ` David Miller 2007-03-09 21:54 ` David Miller 1 sibling, 1 reply; 4+ messages in thread From: YOSHIFUJI Hideaki / 吉藤英明 @ 2007-03-09 14:40 UTC (permalink / raw) To: olaf.kirch, davem; +Cc: netdev In article <200703091515.55985.olaf.kirch@oracle.com> (at Fri, 9 Mar 2007 15:15:54 +0100), Olaf Kirch <olaf.kirch@oracle.com> says: > I came across this bug in http://bugzilla.kernel.org/show_bug.cgi?id=8155 : > Fix NULL pointer derefence in ipv6_setsockopt, as described in bug #8155. > > Signed-off-by: olaf.kirch@oracle.com Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> I also ack to push this to -stable. --yoshfuji ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fix for ipv6_setsockopt NULL dereference 2007-03-09 14:40 ` YOSHIFUJI Hideaki / 吉藤英明 @ 2007-03-09 21:56 ` David Miller 0 siblings, 0 replies; 4+ messages in thread From: David Miller @ 2007-03-09 21:56 UTC (permalink / raw) To: yoshfuji; +Cc: olaf.kirch, netdev From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> Date: Fri, 09 Mar 2007 23:40:25 +0900 (JST) > In article <200703091515.55985.olaf.kirch@oracle.com> (at Fri, 9 Mar 2007 15:15:54 +0100), Olaf Kirch <olaf.kirch@oracle.com> says: > > > I came across this bug in http://bugzilla.kernel.org/show_bug.cgi?id=8155 > : > > Fix NULL pointer derefence in ipv6_setsockopt, as described in bug #8155. > > > > Signed-off-by: olaf.kirch@oracle.com > > Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> > > I also ack to push this to -stable. Thank you for reviewing. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fix for ipv6_setsockopt NULL dereference 2007-03-09 14:15 ` Fix for ipv6_setsockopt NULL dereference Olaf Kirch 2007-03-09 14:40 ` YOSHIFUJI Hideaki / 吉藤英明 @ 2007-03-09 21:54 ` David Miller 1 sibling, 0 replies; 4+ messages in thread From: David Miller @ 2007-03-09 21:54 UTC (permalink / raw) To: olaf.kirch; +Cc: netdev From: Olaf Kirch <olaf.kirch@oracle.com> Date: Fri, 9 Mar 2007 15:15:54 +0100 > I came across this bug in http://bugzilla.kernel.org/show_bug.cgi?id=8155 > > Here's a potential fix. > > Olaf > -- > Olaf Kirch | --- o --- Nous sommes du soleil we love when we play > okir@lst.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax > -- > Fix NULL pointer derefence in ipv6_setsockopt, as described in bug #8155. > > Signed-off-by: olaf.kirch@oracle.com Applied, thanks a lot Olaf. I'll push this to -stable too. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-03-09 21:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200703091207.31877.olaf.kirch@oracle.com>
2007-03-09 14:15 ` Fix for ipv6_setsockopt NULL dereference Olaf Kirch
2007-03-09 14:40 ` YOSHIFUJI Hideaki / 吉藤英明
2007-03-09 21:56 ` David Miller
2007-03-09 21:54 ` David Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox