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
Unknown Object (File)
Thu, Nov 27, 12:12 AM
Unknown Object (File)
Wed, Nov 19, 7:34 AM
Unknown Object (File)
Tue, Nov 18, 8:36 AM
Unknown Object (File)
Fri, Nov 7, 3:57 PM
Unknown Object (File)
Wed, Nov 5, 2:47 PM
Unknown Object (File)
Wed, Nov 5, 7:30 AM
Unknown Object (File)
Oct 21 2025, 3:05 PM
Unknown Object (File)
Oct 20 2025, 5:14 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