Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1544271pxu; Thu, 8 Oct 2020 14:23:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc4njnCDgZaJESksic4dCZD/QC4WFXwrfW4g6lE5j10LkR5MKsnQNsR0ypVoHoUIhJsJkw X-Received: by 2002:a05:6402:943:: with SMTP id h3mr11259793edz.88.1602192224846; Thu, 08 Oct 2020 14:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602192224; cv=none; d=google.com; s=arc-20160816; b=T0K0OTg8bQzQ+1m75ykR/54EWXSsLFkUpA9H31O/mmm0kZ8o+Ql8jl/ANp4+m68uah bxhuAtiHiEBJhKQXSC95HiqRPY4ZPtcegvobDU8/mFfW7BMtFGgFhsuXYhsZDiMcdiOV caAl6chURqHMKxQhYMvwf/rufR9EFKOSzl1JMqA8UUju7MM8Yow/sIm3WI0bijsrlShu 8D75dbiFhe5MAQdzKxfN2kg3zdXTGWpWD1+afoK9BWrmiHa0hqPhDQZmov5ZS+SWp2A+ 3GlumfX+QbAS0GxXoB2edEKjZKGkiy8e1kZFJMGzRfTIreIm38OxgIZEZJumvvmsb61K TJWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=X1ocSHHH7S4WPWzCRukomddbOA2R9sPxS70QTfiattk=; b=CoF6U15H5+haoSkBWl/Z/iTWIPsdKApYTWzV+d/Su6SM+j2ikVrQhjQSj4GJP3BF+s k2c/LSNrwVbfWIzC+bGK+LY10EbECYCviTLyHRU70D2osWA8pxaneGHd80PDF5Lv+czA lwFJ0iP1h0JdbbyjVvsboGQuTGI2QBtm8ge0lm8/RWjLTnxE36JEYl3tg26mg4dzp0Yb imtSh3T50XPqCPMYBpbrDKOwDTaLupQrOGnTg0BX52MUd7Kwes3cJv7JWfoddLJYMgX4 Szao1MT+nvhGaSHIistkVaVgfe9QRnbIR7qCGqPenKFF8FIBh0usOm1Pl+yzXPjfgDVF o2HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si4948544edj.301.2020.10.08.14.22.58; Thu, 08 Oct 2020 14:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728236AbgJHTmP (ORCPT + 99 others); Thu, 8 Oct 2020 15:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgJHTmP (ORCPT ); Thu, 8 Oct 2020 15:42:15 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53A9DC0613D2; Thu, 8 Oct 2020 12:42:15 -0700 (PDT) Received: from [2a04:4540:1402:c000:5999:1c17:bedf:f05d] by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kQbno-000713-5y; Thu, 08 Oct 2020 21:42:12 +0200 Subject: Re: [PATCH V3 2/9] mac80211: add multiple bssid support to interface handling To: Pradeep Kumar Chitrapu Cc: linux-wireless-owner@vger.kernel.org, Johannes Berg , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org References: <20200812150050.2683396-1-john@phrozen.org> <20200812150050.2683396-3-john@phrozen.org> <6e914f17bc1fcd57bfb1a0d9f68fe4ad@codeaurora.org> <54033ab6e1bcf7ecda314c3ec81f1736@codeaurora.org> From: John Crispin Message-ID: <95f54d65-cd6d-7cb1-65c6-53a969dd8601@phrozen.org> Date: Thu, 8 Oct 2020 21:42:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <54033ab6e1bcf7ecda314c3ec81f1736@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 08.10.20 19:21, Pradeep Kumar Chitrapu wrote: > On 2020-10-08 01:06, John Crispin wrote: >> On 08.10.20 02:33, Pradeep Kumar Chitrapu wrote: >>>> >>>>  static int ieee80211_del_iface(struct wiphy *wiphy, struct >>>> wireless_dev *wdev) >>>>  { >>>> +    struct ieee80211_sub_if_data *sdata; >>>> +    struct ieee80211_vif *child, *tmp; >>>> + >>>> +    sdata = IEEE80211_WDEV_TO_SUB_IF(wdev); >>>> +    if (sdata->vif.type == NL80211_IFTYPE_AP) { >>> Hi John, Observed a NULL ptr dereference error here.. >>> >>> Thanks >>> Pradeep >> >> >> how did you trigger it ? >> >>     John > Hi > > Deleted the interface and did rmmod and insmod of > cfg80211/mac80211/ath modules. > > [  883.565933] Unable to handle kernel NULL pointer dereference at > virtual address 00000000 > [  883.565970] pgd = b311c000 > [  883.573357] [00000000] *pgd=00000000 > [  883.579021] Internal error: Oops: 5 [#1] PREEMPT SMP ARM > [  883.848257] task: bd1ac600 ti: b027a000 task.ti: b027a000 > [  883.852904] PC is at ieee80211_del_iface+0x34/0x90 [mac80211] > [  883.858333] LR is at extack_doit+0x20/0x6c [compat] > [  884.092936] [] (ieee80211_del_iface [mac80211]) from > [<7f56181c>] (extack_doit+0x20/0x6c [compat]) > [  884.100991] [<7f56181c>] (extack_doit [compat]) from [<8076a340>] > (genl_rcv_msg+0x27c/0x300) > [  884.110854] [<8076a340>] (genl_rcv_msg) from [<807696c0>] > (netlink_rcv_skb+0x58/0xb4) > > Thanks > Pradeep > last I tested rmmod/insmod will always crash the kernel when using ath11k however i'll ass !NULL guard in the next series     John