Re: Wireless-testing's b43 panics in b43_generate_txhdr on packet transmit



On Saturday 31 May 2008 22:29:13 Stefanik Gábor wrote:
On Sat, May 31, 2008 at 10:22 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
On Sat, 2008-05-31 at 19:54 +0200, Michael Buesch wrote:
On Saturday 31 May 2008 18:50:36 Pavel Roskin wrote:
On Sat, 2008-05-31 at 18:41 +0200, Michael Buesch wrote:
On Saturday 31 May 2008 18:34:29 Stefanik Gábor wrote:
"BUG: unable to handle kernel NULL pointer dereference at 00000004
IP: [<f8dd3a99>] :b43:b43_generate_txhdr+0x6a9/0x790

So can you put a few printks into the function to see where it dereferences
a NULL pointer? (or use gdb to lookup the offset).

u8 key_idx = info->control.hw_key->hw_key_idx;

info->control.hw_key is NULL.

Is a NULL pointer supposed to tell "do not encrypt", or is this a mac80211 bug?

It's probably a bug.

johannes


Should we assume that it's the first key if it happens?

No. It looks like it should not happen at all.


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



Relevant Pages

  • Re: OT: my new PC rocks!!
    ... Microsoft basically "owns" the ACPM thing and has the hardware ... for practically everything;) doing all the work and the "Windows" bit ... is merely the pretty graphics and mouse pointer routines to stare at ... actually seen it up and running to test if this "bug" is even older ...
    (alt.lang.asm)
  • Re: Unhandled exception on clicking dialog box OK button,Its URGENT
    ... impression that the text is a bstr, and how large are those buffers, and why do you ... pointer; and the second suspicition is that it is a pointer to a buffer that is too small. ... What was the call stack trace, and what were the values of the variables ... You have to do SOMETHING besides say "my program has a bug, ...
    (microsoft.public.vc.mfc)
  • Re: Real pain with SegFoult
    ... For three days I'am looking for a bug, but I'm not able to find it. ... Only leave the correct casts in place. ... look at every single pointer usage. ... assumption is correct, the assertion will never, ever fire. ...
    (comp.lang.c)
  • Re: Security fix for remapping of page 0 (was [PATCH] Change ZERO_SIZE_PTR to point at unmapped spac
    ... case of kernel bug to get to that NULL pointer (or zero-sized-alloc ... this whole discussion about NULL derefs is quite missing the point by the way. ... the proper bug class is about unintended userland ptr derefs by the kernel, ... it by default or otherwise by banning userland from using its address space;). ...
    (Linux-Kernel)
  • Re: First things you check for when youve got errors
    ... implicit int and also implicit function declarations via the compiler ... So that's always my first focus. ... If you are good about always either destroying or setting invalid pointers to null you will only occasionally get a sefault due to a wild pointer. ... However if you get a really difficult bug, with wrong output popping up seemingly from nowhere, probably it is due to a pointer pointing into memory that you own but have reallocated for another purpose. ...
    (comp.lang.c)