Linux wireless drivers development
 help / color / mirror / Atom feed
From: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
To: Wei Zhang <wei.zhang@oss.qualcomm.com>, jeff.johnson@oss.qualcomm.com
Cc: ath12k@lists.infradead.org, linux-wireless@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH ath-next 0/2] wifi: ath12k: fix NULL deref when MLO link activation fails
Date: Mon, 1 Jun 2026 10:56:08 +0800	[thread overview]
Message-ID: <eb631b60-aab0-40c4-a99a-2ba721c862a2@oss.qualcomm.com> (raw)
In-Reply-To: <20260512044906.1735821-1-wei.zhang@oss.qualcomm.com>



On 5/12/2026 12:49 PM, Wei Zhang wrote:
> ath12k_mac_op_change_sta_links() adds a link to ahsta->links_map
> before verifying that the link's vdev is ready, allowing broken links
> to be processed by subsequent operations and causing NULL dereferences.
> 
> Patch 1 fixes three error path inconsistencies in ath12k_mac_vdev_create()
> that leave arvif state or vdev resources inconsistent: a direct return on
> wmi_vdev_create failure bypasses err: which clears arvif->ar; and both
> failure paths in err_peer_del skip the DP peer cleanup and vdev rollback.
> 
> Patch 2 uses arvif->is_created (made reliable by patch 1) to guard
> against links with no vdev before allocating a link station, preventing
> broken links from entering links_map.
> 
> Wei Zhang (2):
>   wifi: ath12k: fix inconsistent arvif state in vdev_create error paths
>   wifi: ath12k: fix NULL deref in change_sta_links for unready link
> 
>  drivers/net/wireless/ath/ath12k/mac.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)
> 
> base-commit: 7b25796f571fc09a7aa6fe7efb23edccd326917d

Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>


  parent reply	other threads:[~2026-06-01  2:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-12  4:49 [PATCH ath-next 0/2] wifi: ath12k: fix NULL deref when MLO link activation fails Wei Zhang
2026-05-12  4:49 ` [PATCH ath-next 1/2] wifi: ath12k: fix inconsistent arvif state in vdev_create error paths Wei Zhang
2026-05-12  4:49 ` [PATCH ath-next 2/2] wifi: ath12k: fix NULL deref in change_sta_links for unready link Wei Zhang
2026-05-30 17:37 ` [PATCH ath-next 0/2] wifi: ath12k: fix NULL deref when MLO link activation fails Rameshkumar Sundaram
2026-06-01  2:56 ` Baochen Qiang [this message]
2026-06-01 17:00 ` Jeff Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=eb631b60-aab0-40c4-a99a-2ba721c862a2@oss.qualcomm.com \
    --to=baochen.qiang@oss.qualcomm.com \
    --cc=ath12k@lists.infradead.org \
    --cc=jeff.johnson@oss.qualcomm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wei.zhang@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox