May I have 2 code reviewers for:

6911329 Incorrect code in kstat_delete causes panic


A colleague was looking into a crash and the reason turned out to be a  NULL 
pointer dereference in kstat_delete():

kstat_delete(kstat_t *ksp)
{     kmutex_t *lp;
   ekstat_t *e = (ekstat_t *)ksp;
   zoneid_t zoneid = e->e_zone.zoneid;
   kstat_zone_t *kz;

   if (ksp == NULL)

Note that there is a dereference of 'ksp' [via 'e'] before the check for ksp 
being NULL. 

unfortunately we don't have a dump/stacktrace anymore to inspect who
called kstat_delete(NULL) and why.

zones-discuss mailing list

Reply via email to