Page MenuHomeFreeBSD

qlnxe: Fix a use-after-free in ecore_spq_post()
Needs ReviewPublic

Authored by markj on Jun 2 2021, 2:10 PM.
Tags
None
Referenced Files
F85510764: D30612.diff
Thu, Jun 6, 10:49 PM
Unknown Object (File)
Thu, May 23, 8:56 AM
Unknown Object (File)
Thu, May 23, 6:23 AM
Unknown Object (File)
Thu, May 23, 2:03 AM
Unknown Object (File)
Apr 21 2024, 9:08 PM
Unknown Object (File)
Mar 4 2024, 5:14 AM
Unknown Object (File)
Sep 10 2023, 6:46 AM
Unknown Object (File)
Aug 26 2023, 2:20 PM

Details

Reviewers
davidcs
Summary

ecore_sqp_add_entry() may free the spq entry structure. Then,
ecore_spq_post() may dereference the entry to check
p_ent->comp_mode == ECORE_SPQ_MODE_EBLOCK.

Fix the problem by changing ecore_sqp_add_entry() to return the new
entry pointer.

PR: 255868
MFC after: 1 week

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39663
Build 36552: arc lint + arc unit