Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1447472pxu; Thu, 8 Oct 2020 11:41:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRoOcjq9FiY2/Eo9W5lDWQml+G/6dJp8XsMSinfhISLu1R9b5BvnhjGOgSJ3Wjr8qwgKJO X-Received: by 2002:aa7:c1d7:: with SMTP id d23mr10201222edp.205.1602182478915; Thu, 08 Oct 2020 11:41:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602182478; cv=none; d=google.com; s=arc-20160816; b=i/zm4tytiLKsqI+2TUy7zAxRNZsDIb/83keNus7iRi5myZq1yxYyvZ5nJYSZbJbwbY CzTarsiYRKVYHf9IKRvfvJzIQloCshFDuF4rrUPHD9wqvUfdGhpz03f1ohle9KnzXfN8 8RFCwWxOI7Tg0PlLkbUnkaFTa6hattUZPDfUHle53afFdkyghxhjK/3kCd7smwGw3hnN ON6F9PmebyKxr8h3lcLx06OCJUefhotDVRTQbc1pWMABP5he6FJbtNr4xq5ss9vkmP+L YCHfgvRjoJWMz9bbZGFnRbmoJO5rKmdc3kGJ5s3skvZrwfpz2xAbjchFe+cX8nrSpxjx k5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=T4CyNJKnG99VEej2e/7lHhrxFfBRsgUPqyoAlIl4Qa8=; b=B8rfKyVSXsk+uC3LSBLtj9IXchEkT+olLncwYXizBmvRj2NaeAsvFL34vjYNz4ZH38 0COp8Krknnhr87agpKRbWp+WCenho8oHbAmJVYY26YGnolesJU3J3ZewHcZ6dr4uGyR8 TiAWp911zWD9bgxFTLWUUuC9QpjOCjVN6zrBfecnCjd3h8lyyXy0U9SqaDI+gukc++Cg A3ySIe5Ro3VHo8fcVSQUsU9qcsnLNQ9YouDJCEzdHvIMyLhgjmOQt+BmiIYQP49RU2S8 L277zqXW0lWFMlp+UHSpZL2fpAcjE5a3CqJ35v1Vtwi8aZXhK/rzCDVgQwNYCd9kDsyW K66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=r6Rd97WD; 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 h10si4372584edw.139.2020.10.08.11.40.53; Thu, 08 Oct 2020 11:41:18 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=r6Rd97WD; 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 S1731938AbgJHRVc (ORCPT + 99 others); Thu, 8 Oct 2020 13:21:32 -0400 Received: from z5.mailgun.us ([104.130.96.5]:46104 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731937AbgJHRVc (ORCPT ); Thu, 8 Oct 2020 13:21:32 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1602177691; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=T4CyNJKnG99VEej2e/7lHhrxFfBRsgUPqyoAlIl4Qa8=; b=r6Rd97WDW4IiLADouP4ljUhU8NyxtZZ5oJXUjRi1k6IZ/Cmtg5s5fQjKKUIOrlBV1EcxisNi RPZDBe9XZf/O1LT6yWTF0Qp0yBpo//bfPI6VGsPA4if7i1gMcF6qdx8gJAy7hrRczhfYCJZG 0XJTgTbDIYHyTTkx5p2xgsy8RGE= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 5f7f4a9b22a1856a12e7f4a4 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 08 Oct 2020 17:21:31 GMT Sender: pradeepc=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 796A2C433F1; Thu, 8 Oct 2020 17:21:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pradeepc) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3AFF9C433CA; Thu, 8 Oct 2020 17:21:30 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 08 Oct 2020 10:21:30 -0700 From: Pradeep Kumar Chitrapu To: John Crispin Cc: Johannes Berg , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, linux-wireless-owner@vger.kernel.org Subject: Re: [PATCH V3 2/9] mac80211: add multiple bssid support to interface handling In-Reply-To: References: <20200812150050.2683396-1-john@phrozen.org> <20200812150050.2683396-3-john@phrozen.org> <6e914f17bc1fcd57bfb1a0d9f68fe4ad@codeaurora.org> Message-ID: <54033ab6e1bcf7ecda314c3ec81f1736@codeaurora.org> X-Sender: pradeepc@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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