OpenSolaris

Printable Version Enter a New Search
Bug ID 6740748
Synopsis fmd_nvl_alloc() result cannot be used as argument to fmd_xprt_post()
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:fm
Keywords
Responsible Engineer Eric Schrock
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_98
Fixed In snv_98
Release Fixed solaris_nevada(snv_98) , solaris_10u7(s10u7_01) (Bug ID:2166786)
Related Bugs 6726560
Submit Date 24-August-2008
Last Update Date 10-September-2008
Description
If a module creates an nvlist using fmd_nvl_alloc() for the purposes
of passing it to fmd via the transport module interface, it can cause
segfaults and memory corruption.  The reason is that the nvlist ops
are per-module, but the lifetime of the event may exceed that of the
module.  An attempt to free the nvlist after the module has been
closed will result in undefined behavior (dereferencing freed memory).
Work Around
N/A
Comments
N/A