[Top] [All Lists]

Re: BUG: 2.3.35 SMP tcpdump crash

To: rusty@xxxxxxxxxxxxxxxx (Rusty Russell)
Subject: Re: BUG: 2.3.35 SMP tcpdump crash
From: kuznet@xxxxxxxxxxxxx
Date: Wed, 5 Jan 2000 19:55:16 +0300 (MSK)
Cc: davem@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <m125gyt-000Dt4C@xxxxxxxxxxxxxxxxxxxxxxx> from "Rusty Russell" at Jan 5, 0 02:19:27 pm
Sender: owner-netdev@xxxxxxxxxxx

> I must be very stupid today.  skb_copy() still copies MAC header:
>       /* Copy the bytes */
>       memcpy(n->head,skb->head,skb->end-skb->head);


> If you mean skb_cow: why not revert my recent `fix'.  Something like
> this, and be happy 8-).

Well, actually I did _not_ want to copy it in skb_cow().
When head is reallocated, copying old head is useless work.

The thing, which I said about, is that potential users of
skb_expand _probably_ really want this, when they expand tail.


<Prev in Thread] Current Thread [Next in Thread>