Return-path: Received: from mail-ie0-f177.google.com ([209.85.223.177]:34239 "EHLO mail-ie0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbaDMMum (ORCPT ); Sun, 13 Apr 2014 08:50:42 -0400 Received: by mail-ie0-f177.google.com with SMTP id rl12so7124938iec.22 for ; Sun, 13 Apr 2014 05:50:42 -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: Sun, 13 Apr 2014 15:50:42 +0300 Message-ID: (sfid-20140413_145046_610235_4F3E9D8E) Subject: Re: [PATCH 2/3] cfg80211: fix processing world regdomain when non modular From: Eliad Peller To: Arik Nemtsov Cc: Colleen T , "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: 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.