Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:57966 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753060Ab0ECVUb convert rfc822-to-8bit (ORCPT ); Mon, 3 May 2010 17:20:31 -0400 Received: by fxm10 with SMTP id 10so2581298fxm.19 for ; Mon, 03 May 2010 14:20:30 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1272907549-25847-1-git-send-email-linville@tuxdriver.com> <87k4rkk9tz.fsf@purkki.valot.fi> <1272920504.4907.5.camel@mj> From: =?ISO-8859-1?Q?G=E1bor_Stefanik?= Date: Mon, 3 May 2010 23:20:10 +0200 Message-ID: Subject: Re: [PATCH] iwlagn: Change the TPT calculations sanity-check to WARN_ON To: Adel Gadllah Cc: Pavel Roskin , Kalle Valo , "John W. Linville" , linux-wireless@vger.kernel.org, johill@sipsolutions.net, reinette.chatre@intel.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, May 3, 2010 at 11:10 PM, Adel Gadllah wrote: > 2010/5/3 Pavel Roskin : >> On Mon, 2010-05-03 at 22:48 +0200, G?bor Stefanik wrote: >> >>> One exception I can think of: major misconfiguration can cause a >>> wireless device to DMA data into sensitive memory locations. When >>> evidence of this is detected, it might make sense to BUG_ON() >>> (especially if the bogus DMA operations can be exploited remotely to >>> overwrite arbitrary memory addresses). However, in that case, the >>> attacker may have already overwritten panic() with malicious code as >>> well, so even this case doesn't hold. >> >> And then there is a case when encryption fails and there is a risk of >> transmitting data without encryption or accepting data without >> verification. > > So kill the connection rather than the whole system. Or maybe just drop the packet, as mac80211 AFAIK usually does. Perhaps print a WARN_ON to let developers know of the issue. But a BUG_ON is still excessive - I can't think of any way a WARN_ON + interface down may fail in preventing unencrypted data leak. -- Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)