Return-path: Received: from mail-pd0-f175.google.com ([209.85.192.175]:54238 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755372AbaDPKiw (ORCPT ); Wed, 16 Apr 2014 06:38:52 -0400 Received: by mail-pd0-f175.google.com with SMTP id x10so10587109pdj.20 for ; Wed, 16 Apr 2014 03:38:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <1393376982-28276-1-git-send-email-mcgrof@do-not-panic.com> <1393376982-28276-3-git-send-email-mcgrof@do-not-panic.com> <1393852248.10039.5.camel@jlt4.sipsolutions.net> From: Arik Nemtsov Date: Wed, 16 Apr 2014 13:38:37 +0300 Message-ID: (sfid-20140416_123859_407803_D7E63C07) Subject: Re: [PATCH 2/3] cfg80211: fix processing world regdomain when non modular To: Colleen T Cc: Eliad Peller , "Luis R. Rodriguez" , Janusz Dziedzic , Johannes Berg , linux-wireless , Sander Eikelenboom Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Thanks for testing Colleen! I'll respin the patch on top of wireless-testing. Arik On Mon, Apr 14, 2014 at 10:27 PM, Colleen T wrote: > Hello, > > Applying Arik's patch on top of Luis' resolves our problem. > > You also get my: > > Tested-by: Colleen Twitty > > Thanks, > -Colleen > > On Sun, Apr 13, 2014 at 5:50 AM, Eliad Peller wrote: >> On Wed, Apr 9, 2014 at 7:33 PM, Arik Nemtsov wrote: >>> >>> Seems I might have found the culprit - reg_todo is called while the >>> request to CRDA is in flight and the patch in question causes the >>> already-in-process user-request to be handled again. Since it's the >>> same regdomain as the last request (it's the last request itself), we >>> get this: >>> >>> treatment = __reg_process_hint_user(user_request); >>> if (treatment == REG_REQ_IGNORE || >>> treatment == REG_REQ_ALREADY_SET) { >>> kfree(user_request); <------ >>> return treatment; >>> } >>> >>> Can you try adding the attached patch? It just replaced relevant >>> kfree-s with a function that avoids freeing the last request. >>> >> i encountered a similar panic, and this patch seems to fix it. >> so you get my: >> >> Tested-by: Eliad Peller >> >> Eliad.