All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@kernel.org>
To: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Cc: Ping-Ke Shih <pkshih@realtek.com>,
	 "linux-wireless@vger.kernel.org"
	<linux-wireless@vger.kernel.org>,
	 "kernel-dev@igalia.com" <kernel-dev@igalia.com>
Subject: Re: [PATCH net 0/5] wifi: rtlwifi: usb probe error path fixes
Date: Mon, 11 Nov 2024 13:33:46 +0200	[thread overview]
Message-ID: <87wmhavwbp.fsf@kernel.org> (raw)
In-Reply-To: <Zy3uKIzbZXluWcJ8@quatroqueijos.cascardo.eti.br> (Thadeu Lima de Souza Cascardo's message of "Fri, 8 Nov 2024 07:55:36 -0300")

Thadeu Lima de Souza Cascardo <cascardo@igalia.com> writes:

> On Fri, Nov 08, 2024 at 01:41:45AM +0000, Ping-Ke Shih wrote:
>> Thadeu Lima de Souza Cascardo <cascardo@igalia.com> wrote:
>> > These are fixes that affect mostly the usb probe error path. It fixes UAF
>> > due to firmware loading touching freed memory by waiting for the load
>> > completion before releasing that memory. It also fixes a couple of
>> > identified memory leaks.
>> 
>> This goes via wireless tree, not net. Just send to linux-wireless (you have done).
>> No need "net" in patch subject. 
>> 
>> I would quickly check if you did really encounter problems and
>> have tested this patchset with real hardware?
>> 
>> 
>
> Yeah, I was playing it safe here, in case some of the same rules apply, and
> "PATCH net" was required.
>
> If found this with a reproducer emulating a usb gadget device (by using
> /dev/raw-gadget), and then injecting memory allocation failures at
> different points in the probe path (at ieee80211_register_hw and then at
> init_sw_vars).
>
> I haven't tested this with real hardware, but given this lies in the probe
> error path, I suppose it would be harder to test for the bugs that they
> fix. On the other hand, it would be nice to at least confirm that it
> doesn't break them, though I find it hard that it would.

Yeah, regressions are what we maintainers are most worried. We certainly
do not want cleanup patches breaking existing setups.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

      reply	other threads:[~2024-11-11 11:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-07 13:33 [PATCH net 0/5] wifi: rtlwifi: usb probe error path fixes Thadeu Lima de Souza Cascardo
2024-11-07 13:33 ` [PATCH net 1/5] wifi: rtlwifi: do not complete firmware loading needlessly Thadeu Lima de Souza Cascardo
2024-11-08  1:57   ` Ping-Ke Shih
2024-11-18  1:55   ` Ping-Ke Shih
2024-11-07 13:33 ` [PATCH net 2/5] wifi: rtlwifi: rtl8192se: rise completion of firmware loading as last step Thadeu Lima de Souza Cascardo
2024-11-08  1:58   ` Ping-Ke Shih
2024-11-07 13:33 ` [PATCH net 3/5] wifi: rtlwifi: wait for firmware loading before releasing memory Thadeu Lima de Souza Cascardo
2024-11-08  2:12   ` Ping-Ke Shih
2024-11-08 11:05     ` Thadeu Lima de Souza Cascardo
2024-11-11  1:12       ` Ping-Ke Shih
2024-11-07 13:33 ` [PATCH net 4/5] wifi: rtlwifi: fix init_sw_vars leak when probe fails Thadeu Lima de Souza Cascardo
2024-11-08  2:14   ` Ping-Ke Shih
2024-11-07 13:33 ` [PATCH net 5/5] wifi: rtlwifi: usb: fix workqueue " Thadeu Lima de Souza Cascardo
2024-11-08  2:23   ` Ping-Ke Shih
2024-11-08 11:15     ` Thadeu Lima de Souza Cascardo
2024-11-11  2:58       ` Ping-Ke Shih
2024-11-08  1:41 ` [PATCH net 0/5] wifi: rtlwifi: usb probe error path fixes Ping-Ke Shih
2024-11-08 10:55   ` Thadeu Lima de Souza Cascardo
2024-11-11 11:33     ` Kalle Valo [this message]

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=87wmhavwbp.fsf@kernel.org \
    --to=kvalo@kernel.org \
    --cc=cascardo@igalia.com \
    --cc=kernel-dev@igalia.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pkshih@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.