DeviceFS Bugs
Colin (478) 2433 posts |
In DeviceFS.s in ‘Deregister’, the parent record (pr) is being used after the pr block of memory has been freed. The block of memory is freed in the Unlink macro (macros.s).
and similarly in ‘deregisterdev’ the device record (dr) is being used after the dr block of memory has been freed.
The unlink macro is only used in one other place, in fsystem.s, so it may be easier to stop unlink freeing memory and free memory explicitly. |
Colin (478) 2433 posts |
There’s even bigger problems with other parts of DeviceFS accessing freed parent and device records when a device has been deregistered. I’ll send in a fix for the whole thing. |