Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mario 'BitKoenig' Holbe
Date: Wednesday, December 29, 2010 - 12:54 pm

Hello Larry,

On Tue, Dec 28, 2010 at 06:34:08PM -0600, Larry Finger wrote:
...
...
...

You're welcome :)


Sorry and thanks for completing the CC: list.


To be honest, I never bisected such a huge amount of commits before and
I'm somewhat afraid of doing it.

However, I think I'm able to nail the issue down to:
commit 84c164a34ffe67908a932a2d641ec1a80c2d5435 which went to 2.6.37-rc1.
Author: John W. Linville <linville@tuxdriver.com>
Date:   Fri Aug 6 15:31:45 2010 -0400

    b43: move hwrng registration driver to wireless core initialization

Message-ID: <1281126412-5089-1-git-send-email-linville@tuxdriver.com>
http://marc.info/?l=linux-wireless&m=128112658829379&w=2

I did 2 things:
1. I (manually) reverted 84c164a34ffe67908a932a2d641ec1a80c2d5435 from
   2.6.37-rc7: The crash disappears, b43 is useable.
2. I added 84c164a34ffe67908a932a2d641ec1a80c2d5435 to 2.6.36.2: The
   crash shows up as with vanilla 2.6.37-rc7.

I'm not sure why this is not reproducible for you, probably it has
something to do with the VIA Nano having a second HW-RNG driven by
via-rng. I experienced crashes in the past with earlier kernels when I
tried to move RNGs around via /sys/devices/virtual/misc/hw_random, but
never took the time to trace them down since I just got it working :)

Oh, I'm still able to trigger a crash with
$ cat /sys/devices/virtual/misc/hw_random/rng_available
on 2.6.37-rc7 without 84c164a34ffe67908a932a2d641ec1a80c2d5435 as well
as on vanilla 2.6.36.2. Probably this is (better) reproducible for you?

I suspect both (the 84c164a34ffe67908a932a2d641ec1a80c2d5435 crash as
well as the cat rng_available crash) having something to do with a
partially uninitialized rng-struct, or better: parts of the rng-struct
that are free()d too early (i.e. within its lifetime).


regards
   Mario
-- 
Doing it right is no excuse for not meeting the schedule.
                                -- Plant Manager, Delphi Corporation
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Wed Dec 29, 12:54 pm)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Wed Dec 29, 6:20 pm)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Thu Dec 30, 7:34 am)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Thu Dec 30, 1:45 pm)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Thu Dec 30, 4:17 pm)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Thu Dec 30, 7:25 pm)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Fri Dec 31, 1:51 am)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Tue Jan 4, 5:19 am)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Tue Jan 4, 5:57 am)
Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register(), Mario 'BitKoenig' Holbe, (Tue Jan 4, 4:06 pm)