Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbZLIFAc (ORCPT ); Wed, 9 Dec 2009 00:00:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750724AbZLIFA3 (ORCPT ); Wed, 9 Dec 2009 00:00:29 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:50550 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750704AbZLIFA2 (ORCPT ); Wed, 9 Dec 2009 00:00:28 -0500 Date: Tue, 08 Dec 2009 21:00:35 -0800 (PST) Message-Id: <20091208.210035.37560621.davem@davemloft.net> To: sbrabec@suse.cz Cc: zambrano@broadcom.com, linux-kernel@vger.kernel.org, stable@kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH][stable] b44 WOL setup: one-bit-off stack corruption kernel panic fix From: David Miller In-Reply-To: <1259852188.8163.58.camel@hammer.suse.cz> References: <1259764520.8709.293.camel@hammer.suse.cz> <20091202.154220.118775778.davem@davemloft.net> <1259852188.8163.58.camel@hammer.suse.cz> X-Mailer: Mew version 6.2 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1095 Lines: 27 From: Stanislav Brabec Date: Thu, 03 Dec 2009 15:56:28 +0100 > About 50% of shutdowns of b44 Ethernet adapter ends by kernel panic with > kernels compiled with stack-protector. > > Checking b44_magic_pattern() return values, one call of > b44_magic_pattern() returns 127. It means, that set_bit(128, pmask) was > called on line 1509. It means that bit 0 of 17th byte of pmask was > overwritten. But pmask has only 16 bytes. Stack corruption happens. > > It seems that set_bit() on line 1509 always writes one bit off. > > The fix does not only solve the stack corruption, but also makes Wake On > LAN working on my onboard B44 on Asus A7V-333X mainboard. > > It seems that this problem affects all kernel versions since commit > 725ad800 on 2006-06-20. > > Signed-off-by: Stanislav Brabec Applied, thanks. -- 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/