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, Apr 30, 9:34 AM
Unknown Object (File)
Mon, Apr 27, 3:39 PM
Unknown Object (File)
Thu, Apr 23, 6:15 AM
Unknown Object (File)
Apr 19 2026, 7:23 PM
Unknown Object (File)
Apr 4 2026, 7:59 AM
Unknown Object (File)
Mar 28 2026, 6:18 AM
Unknown Object (File)
Mar 21 2026, 3:09 AM
Unknown Object (File)
Nov 27 2025, 12:12 AM

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