]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: cfg80211: avoid leaking stack data into trace
authorBenjamin Berg <benjamin.berg@intel.com>
Mon, 25 Sep 2023 15:18:56 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 09:59:00 +0000 (11:59 +0200)
commitaa77b187b1f09cf98be3a6beb67640954b1d274a
treeb83f1f4ba114a8d53b3f42b23162ef4b43ca2f50
parent30a2285a2e1897b044cd19beb59d172d51632635
wifi: cfg80211: avoid leaking stack data into trace

[ Upstream commit 334bf33eec5701a1e4e967bcb7cc8611a998334b ]

If the structure is not initialized then boolean types might be copied
into the tracing data without being initialised. This causes data from
the stack to leak into the trace and also triggers a UBSAN failure which
can easily be avoided here.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://lore.kernel.org/r/20230925171855.a9271ef53b05.I8180bae663984c91a3e036b87f36a640ba409817@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/nl80211.c