Linux wireless drivers development
 help / color / mirror / Atom feed
From: Ping-Ke Shih <pkshih@realtek.com>
To: Mehmet Fide <mehmet.fide@gmail.com>
Cc: Luka Gejak <luka.gejak@linux.dev>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Zong-Zhe Yang <kevin_yang@realtek.com>,
	Tzu-En Huang <tehuang@realtek.com>,
	Yan-Hsuan Chuang <yhchuang@realtek.com>,
	Kalle Valo <kvalo@kernel.org>,
	Stanislaw Gruszka <sgruszka@redhat.com>,
	Brian Norris <briannorris@chromium.org>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"mehmet.fide@screeningeagle.com" <mehmet.fide@screeningeagle.com>
Subject: RE: [PATCH rtw-next v4 1/4] wifi: rtw88: free the reserved pages of an interface on firmware recovery
Date: Fri, 27 Nov 2026 05:31:07 +0000	[thread overview]
Message-ID: <c7e381abd0d14e27b1d391926bebe7d4@realtek.com> (raw)
In-Reply-To: <20261121191528.591334-2-mehmet.fide@gmail.com>

Mehmet Fide <mehmet.fide@gmail.com> wrote:
> From: Mehmet Fide <mehmet.fide@screeningeagle.com>
> 
> After a firmware crash, mac80211 adds the interfaces again without
> removing them first. rtw_ops_add_interface() then reinitializes the
> reserved page list, and the pages allocated before the crash leak:
> 
> unreferenced object 0xffff0000cbe22c60 (size 96):
>   comm "hostapd", pid 25545, jiffies 4296463067
>   backtrace (crc cbdc21c4):
>     kmemleak_alloc+0xcc/0xe4
>     __kmalloc_cache_noprof+0x234/0x3bc
>     rtw_add_rsvd_page+0x38/0xa8 [rtw88_core]
>     rtw_add_rsvd_page_bcn+0x30/0x58 [rtw88_core]
>     rtw_ops_add_interface+0x144/0x2cc [rtw88_core]
> 
> mac80211 zeroes the driver data of a new and of a removed interface, so
> track in struct rtw_vif whether the list was initialized, and free the
> old pages when the interface is added again. Until then the pages stay
> on the list, so a download before the reconfiguration, from the beacon
> update work or a WoWLAN suspend, still finds them.
> 
> Fixes: 5c831644e1f4 ("rtw88: handle and recover when firmware crash")
> Suggested-by: Zong-Zhe Yang <kevin_yang@realtek.com>
> Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>

Acked-by: Ping-Ke Shih <pkshih@realtek.com>


  parent reply	other threads:[~2026-11-27  5:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 19:15 [PATCH rtw-next v4 0/4] wifi: rtw88: fixes around the firmware recovery Mehmet Fide
2026-11-21 19:15 ` [PATCH rtw-next v4 1/4] wifi: rtw88: free the reserved pages of an interface on " Mehmet Fide
2026-11-23 23:37   ` Luka Gejak
2026-11-27  5:31   ` Ping-Ke Shih [this message]
2026-11-21 19:15 ` [PATCH rtw-next v4 2/4] wifi: rtw88: report the frames purged from the TX report queue Mehmet Fide
2026-11-23 23:38   ` Luka Gejak
2026-11-27  5:38   ` Ping-Ke Shih
2026-11-21 19:15 ` [PATCH rtw-next v4 3/4] wifi: rtw88: do not drop stations when collecting them for an iteration Mehmet Fide
2026-11-23 23:38   ` Luka Gejak
2026-11-27  5:46   ` Ping-Ke Shih
2026-11-21 19:15 ` [PATCH rtw-next v4 4/4] wifi: rtw88: reset the stations outside of RCU on firmware recovery Mehmet Fide
2026-11-27  5:53   ` Ping-Ke Shih

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=c7e381abd0d14e27b1d391926bebe7d4@realtek.com \
    --to=pkshih@realtek.com \
    --cc=briannorris@chromium.org \
    --cc=kevin_yang@realtek.com \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luka.gejak@linux.dev \
    --cc=mehmet.fide@gmail.com \
    --cc=mehmet.fide@screeningeagle.com \
    --cc=s.hauer@pengutronix.de \
    --cc=sgruszka@redhat.com \
    --cc=tehuang@realtek.com \
    --cc=yhchuang@realtek.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