Re: mac80211 truesize bugs

Johannes Berg
2008-05-01T09:33:09Z

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

On Thu, 2008-05-01 at 02:20 -0700, David Miller wrote:
> From: Johannes Berg <johannes@sipsolutions.net>
> Date: Thu, 01 May 2008 11:08:06 +0200
>
> > > Seems the skb->destructor messes it up.
> >
> > Actually, it seems to be outside of mac80211, I put in a WARN_ON() and
> > got this:
>
> You're just seeing who freed it last here.
>
> It could have had it's ->truesize put into an illegal state
> elsewhere.

Yes, I know, but it doesn't come from my skb_orphan() call. Hence, I
just ﻿netif_rx() the packet which makes it go onto the input_pkt_queue
and then to netif_receive_skb() which gives it to af_packet and all
others should ignore it since I set ﻿PACKET_OTHERHOST.