HomeFreeBSD

iwlwifi: plug memory modified after free

Description

iwlwifi: plug memory modified after free

In certain situations we saw a memory modified after free. This was
tracked down to a pointer not NULLed after free and used in a different
code path. It is unclear how the race happens pending further
investigation but setting the pointer to NULL after free and adding a
check in the 2nd code path handling the case gracefully helps for now.

While here improve another debug messge in sta handling.

Sponsored by: The FreeBSD Foundation

(cherry picked from commit 586c8e32330591693c5fca4e089d90340b313f5d)

Details

Provenance
bzAuthored on Dec 27 2021, 5:42 PM
Parents
rG96e43f01b762: iwlwifi: cherry-pick fixes from upstream iwlwifi-next
Branches
Unknown
Tags
Unknown