]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipv4: additional update of dev_net(dev) to struct *net in ip_fragment.c, NULL ptr...
authorDavid Ford <david@blue-labs.org>
Mon, 30 Nov 2009 07:02:22 +0000 (23:02 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:22:10 +0000 (10:22 -0800)
commitbe488339a245d9b235a47ad563b0719bcfd5928c
tree3c988463893737b95db885ffa18045190c332c39
parentc3f57df2bda0d830179b776166df0a100da733ac
ipv4: additional update of dev_net(dev) to struct *net in ip_fragment.c, NULL ptr OOPS

commit bbf31bf18d34caa87dd01f08bf713635593697f2 upstream.

ipv4 ip_frag_reasm(), fully replace 'dev_net(dev)' with 'net', defined
previously patched into 2.6.29.

Between 2.6.28.10 and 2.6.29, net/ipv4/ip_fragment.c was patched,
changing from dev_net(dev) to container_of(...).  Unfortunately the goto
section (out_fail) on oversized packets inside ip_frag_reasm() didn't
get touched up as well.  Oversized IP packets cause a NULL pointer
dereference and immediate hang.

I discovered this running openvasd and my previous email on this is
titled:  NULL pointer dereference at 2.6.32-rc8:net/ipv4/ip_fragment.c:566

Signed-off-by: David Ford <david@blue-labs.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ip_fragment.c