Changeset 175 for trunk/kernel


Ignore:
Timestamp:
Jul 11, 2017, 12:23:33 PM (7 years ago)
Author:
max@…
Message:

detect use-after-frees

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/khm.c

    r53 r175  
    141141        spinlock_lock(&khm->lock);
    142142
     143        assert( (current->busy == 1) , __FUNCTION__ , "page already freed" );
     144
    143145        // release block
    144146        current->busy = 0;
Note: See TracChangeset for help on using the changeset viewer.