Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5725324pxj; Wed, 23 Jun 2021 07:43:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwODiJjTPrt6uzgUiHXVx3Rr2IPHKy5gHaWLvpYGugjQMK2b1TizjkDxl76P/zs/irCyrMw X-Received: by 2002:a5d:91d8:: with SMTP id k24mr7598257ior.84.1624459428378; Wed, 23 Jun 2021 07:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624459428; cv=none; d=google.com; s=arc-20160816; b=G+Gu/UH1QcV5K11pZeJZg4sBdwFZtqeYw0uE8220nn2RRQ/7QoGRmUkXib6HWtTa4l afPu5qnCZf0cAISrnkE4D4oy2D7fB5aa7RlH3zErwBkKBGNY0pxDNoZF/Xrr1w4oaFCf IUeUpXrzvlMQmiAPRrsp5MzsYnSuInN7FtVNWaTyazI8cQssCC6ZcyLIGe1/d2o6Pdk4 OpluB9n/BEFZa/VYr7DUM1YsHlt2HOWuKiF9+O4jPCrOVgAf2ybRzf8QcIHC78yqmIra /awi9hrWUUEOcdnwh8CyEkvgXHBaqXB1kx1eDDegm2M38tES+AUnqeM4ftS0Qv/2wOgz zsUg== 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=8nS7uvAhBiL/5PAeFh5xwF2jqFe3gL8wNzd3Fwa7KW8=; b=MGC+AJb7KMFKZGIWCeIIQTu3TTr081sMbrmJmrfXoHj1kXhbRPMGTwD4Rkiw+SAjce wk5xB6UdAEp665F1vevMfCNsodg+pZOoF7k9AcbCdXT+OsgD8ZOsJUADxXWcSxhZuoug uWrWfW4y2yyhv6/duviOR686dKGwkIly9WcX+pPxIB7m7CcQeRHYdgwsEp6525Xrx200 uFSnQk94b49bMSXkCxVbrSTGcY5OD0s5TE5G3J63M1egv9vfi8LSFdl3Sog6h9LXks3W d1rP/KwF420jaA9DMFSGJNosFlUKgti9isi5bZQGMoPEXs94oDLyaX8tu6ih6ZlaAhWy I0sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b="sg/dO4tn"; 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 q11si22633156ilo.33.2021.06.23.07.43.36; Wed, 23 Jun 2021 07:43:48 -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="sg/dO4tn"; 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 S230476AbhFWOpZ (ORCPT + 99 others); Wed, 23 Jun 2021 10:45:25 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:15017 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbhFWOpX (ORCPT ); Wed, 23 Jun 2021 10:45:23 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1624459386; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=8nS7uvAhBiL/5PAeFh5xwF2jqFe3gL8wNzd3Fwa7KW8=; b=sg/dO4tnJGz/2fpG1U5f0EX96MsxXNIZNM0fKgA9tb0xNzJKwL9XalSXF3+SmK8y0o970Aen kPeSPwrS2r3GAtNKFdO8LyFiamlwoAgdbTEJPFbWBXQ6C768jYvOl/O8Sw11PKBqBHGjhCc4 4QKPif5iOiMKKySpc/PNNZYnMqI= X-Mailgun-Sending-Ip: 198.61.254.9 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 60d348645e3e57240b5e2461 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 23 Jun 2021 14:42:44 GMT Sender: akalaise=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 98FCBC433F1; Wed, 23 Jun 2021 14:42:43 +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: akalaise) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3F6E8C433D3; Wed, 23 Jun 2021 14:42:39 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 23 Jun 2021 20:12:39 +0530 From: Abinaya Kalaiselvan To: Nicolas Cavallari Cc: Johannes Berg , linux-wireless@vger.kernel.org Subject: Re: [PATCHv2] mac80211: fix NULL ptr dereference during mesh peer connection for non HE devices In-Reply-To: <717ff301-e29c-66d1-c0d7-5efd1b2415ba@green-communications.fr> References: <1618483625-31097-1-git-send-email-akalaise@codeaurora.org> <717ff301-e29c-66d1-c0d7-5efd1b2415ba@green-communications.fr> Message-ID: <95cff90ba7d4b69fb71fd59d202c2d67@codeaurora.org> X-Sender: akalaise@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-06-15 19:47, Nicolas Cavallari wrote: > On 19/04/2021 13:23, Johannes Berg wrote: >> On Thu, 2021-04-15 at 16:17 +0530, Abinaya Kalaiselvan wrote: >>> "sband->iftype_data" is not assigned with any value for non HE >>> supported >>> devices, which causes NULL pointer access during mesh peer connection >>> in those devices. Fix this by accessing the pointer after HE >>> capabilities condition check. >>> >>> Fixes: 7f7aa94bcaf0 (mac80211: reduce peer HE MCS/NSS to own >>> capabilities) >>> Signed-off-by: Abinaya Kalaiselvan >>> --- >>> v2: >>> * ieee80211_sta_he_cap structure instance is initialized. >>> >> How about taking other feedback into account? >> >> johannes >> > > I got a crash because of this bug and this patch fixes it. Abinaya, do > you plan to submit a version with the indentation fixed, or can I do > it ? Thanks Nicolas. I have sent the updated patch with indentation fix. Thanks, Abinaya Kalaiselvan