Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938Ab0LaCZL (ORCPT ); Thu, 30 Dec 2010 21:25:11 -0500 Received: from mail-qw0-f46.google.com ([209.85.216.46]:39160 "EHLO mail-qw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412Ab0LaCZK (ORCPT ); Thu, 30 Dec 2010 21:25:10 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=L9fNkwXVoYEZsXOzTLQKDpJij1PO5j6NRoDYVFOQdkRuErk8/L/CH2Nz6g1N2VAcNw IGOThk6nvjbPDosasDIjp4aN5lDFz4ZXIDwkElSjATb/sRGIllyexZxy8daO1trD1+yl JKjlvv2eImgL4urKtBrhhfkgs8boRd+ieGDDk= Message-ID: <4D1D3F01.9000502@lwfinger.net> Date: Thu, 30 Dec 2010 20:25:05 -0600 From: Larry Finger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11 MIME-Version: 1.0 To: =?UTF-8?B?TWljaGFlbCBCw7xzY2g=?= CC: "Mario 'BitKoenig' Holbe" , LKML , wireless , b43-dev Subject: Re: 2.6.37-rc7: Regression: b43: crashes in hwrng_register() References: <4D1A8200.4010609@lwfinger.net> <20101229195440.GD5838@darkside.kls.lan> <4D1BD2B0.4020101@lwfinger.net> <20101230012003.GA2665@darkside.kls.lan> <4D1BF056.3060909@lwfinger.net> <20101230143406.GA23219@darkside.kls.lan> <4D1CD161.4040107@lwfinger.net> <20101230204522.GC23219@darkside.kls.lan> (sfid-20101230_214555_989234_FFFFFFFFCC2D4737) <1293760653.6528.78.camel@maggie> In-Reply-To: <1293760653.6528.78.camel@maggie> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2282 Lines: 49 On 12/30/2010 07:57 PM, Michael Büsch wrote: > On Thu, 2010-12-30 at 21:45 +0100, Mario 'BitKoenig' Holbe wrote: >> On Thu, Dec 30, 2010 at 12:37:21PM -0600, Larry Finger wrote: >>> The head of the rng_list is damaged. It is initialized at compile time and >>> should be OK. To help discover the order in which hwrng_register() is called, >>> apply the attached patch. Run it once with commit 84c164a34ffe67908a installed, >>> and once with it reverted. >> >> All right, 3 dmesg excerpts attached... >> 2.6.37-rc7-vanilla.dmesg: >> 2.6.37-rc7 vanilla (i.e. with 84c164a34ffe67908a), crashing >> via-rng is registered first, b43-rng second >> 2.6.37-rc7-without.dmesg: >> 2.6.37-rc7 with 84c164a34ffe67908a reverted, not crashing >> b43-rng is registered first, via-rng second >> 2.6.37-rc7-without+modprobe.dmesg: >> 2.6.37-rc7 with 84c164a34ffe67908a reverted, b43 blacklisted and >> manually modprobed after via-rng, crashing >> via-rng is registered first, b43-rng second >> >> Seems like the crash shows up when b43-rng is registered second, but not >> when via-rng is registered second. >> Btw.: `cat rng_available' does also not crash when via-rng is registered >> second. > > > I suspect that there is some "hw_random.h" header version mixup is going > on here. The layout of struct hwrng was changed recently. > > Your crash seems to happen on the list head embedded in struct hwrng. > > Please make sure that your build environment is clean and you're not > using any external stuff such as compat-wireless. All of hwrng-core, > rng-via and b43 must be compiled against the same hw_random.h. AFAIK, he is building with the mainline 2.6.37-rc7/8 tree from Linus, thus the build should be clean, but thanks for the heads-up. In an Email from Herbert Xu that did not go to the wireless or b43 lists, it is suspected that the xstore command on a VIA CPU might generate more than 4 bytes of output and clobber the list header. We now also know that a second copy of via-rng will also fail, thus b43 is cleared. Larry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/