Linux-kernel mailing list archive 2000-01,: Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)

# Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)

David S. Miller (davem@redhat.com)
Sun, 2 Jan 2000 03:41:58 -0800

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Ralf Burger: "Kernel-compiling-problem (bootsec.s/asm)"
- Previous message: Tigran Aivazian: "[patch-2.3.36-pre3] BCP"
- Maybe in reply to: Trever Adams: "OOPS in netfilter code I believe (2.3.36pre 1 and 3)"
- Next in thread: nascheme@enme.ucalgary.ca: "Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)"
- Reply: nascheme@enme.ucalgary.ca: "Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)"

Does this fix your problem?

Index: skbuff.c
===================================================================
RCS file: /vger/u4/cvs/linux/net/core/skbuff.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- skbuff.c 1999/12/23 02:13:42 1.62
+++ skbuff.c 2000/01/02 09:15:17 1.63
@@ -4,7 +4,7 @@
* Authors: Alan Cox <iiitac@pyr.swan.ac.uk>
* Florian La Roche <rzsfl@rz.uni-sb.de>
*
- * Version: $Id: skbuff.c,v 1.62 1999/12/23 02:13:42 davem Exp $
+ * Version: $Id: skbuff.c,v 1.63 2000/01/02 09:15:17 davem Exp $
*
* Fixes:
* Alan Cox : Fixed the worst of the load balancer bugs.
@@ -358,8 +358,9 @@
/* Set the tail pointer and length */
skb_put(n,skb->len);
- /* Copy the bytes: data pointers must point to same data. */
- memcpy(n->data - skb_headroom(skb), skb->head, skb->end-skb->head);
+
+ /* Copy the data only. */
+ memcpy(n->data, skb->data, skb->len);
copy_skb_header(n, skb);
return n;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Ralf Burger: "Kernel-compiling-problem (bootsec.s/asm)"
- Previous message: Tigran Aivazian: "[patch-2.3.36-pre3] BCP"
- Maybe in reply to: Trever Adams: "OOPS in netfilter code I believe (2.3.36pre 1 and 3)"
- Next in thread: nascheme@enme.ucalgary.ca: "Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)"
- Reply: nascheme@enme.ucalgary.ca: "Re: OOPS in netfilter code I believe (2.3.36pre 1 and 3)"