Return-path: Received: from mail-wi0-f170.google.com ([209.85.212.170]:53823 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbaDNT1i (ORCPT ); Mon, 14 Apr 2014 15:27:38 -0400 Received: by mail-wi0-f170.google.com with SMTP id bs8so5853194wib.1 for ; Mon, 14 Apr 2014 12:27:37 -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> Date: Mon, 14 Apr 2014 12:27:36 -0700 Message-ID: (sfid-20140414_212742_129337_F2B068A1) Subject: Re: [PATCH 2/3] cfg80211: fix processing world regdomain when non modular From: Colleen T To: Eliad Peller Cc: Arik Nemtsov , "Luis R. Rodriguez" , Janusz Dziedzic , Johannes Berg , linux-wireless , Sander Eikelenboom Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-wireless-owner@vger.kernel.org List-ID: 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.