All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: Mehmet Fide <mehmet.fide@gmail.com>, Ping-Ke Shih <pkshih@realtek.com>
Cc: 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-kernel@vger.kernel.org,
	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: Tue, 24 Nov 2026 00:37:49 +0100	[thread overview]
Message-ID: <38F350DD-D749-4754-AF9D-EBA4F8B430E6@linux.dev> (raw)
In-Reply-To: <20261121191528.591334-2-mehmet.fide@gmail.com>

On November 21, 2026 8:15:25 PM GMT+01:00, 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>
>---
>

Looks good to me,

Reviewed-by: Luka Gejak <luka.gejak@linux.dev>

Best regards,
Luka Gejak

  reply	other threads:[~2026-11-23 23:37 UTC|newest]

Thread overview: 15+ 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 [this message]
2026-11-27  5:31   ` Ping-Ke Shih
2026-12-01  8:13   ` Ping-Ke Shih
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
2026-11-27 14:13     ` Mehmet Fide
2026-11-30  1:41       ` 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=38F350DD-D749-4754-AF9D-EBA4F8B430E6@linux.dev \
    --to=luka.gejak@linux.dev \
    --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=mehmet.fide@gmail.com \
    --cc=mehmet.fide@screeningeagle.com \
    --cc=pkshih@realtek.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.