NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46208: 6.0_BETA crash (uvm_unmap_remove -> pmap_remove_ptes -> pmap_remove_pte)

This problem was fixed by

Module Name:    src
Committed By:   chs
Date:           Sun Jun 17 15:15:34 UTC 2012

Modified Files:
        src/sys/external/bsd/drm/dist/bsd-core: drm_bufs.c

Log Message:
when freeing the DRM_SHM kernel memory that can be mapped by a user process,
remove any user mappings before freeing the memory, so that a user process
doesn't have still have access to that physical memory after it's reused.
this really shouldn't be using kernel malloc'd memory at all,
but changing that would be much more involved.

To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/external/bsd/drm/dist/bsd-core/drm_bufs.c

I tested this change on netbsd-6 and could not find any problem.
Chuck, could you please pullup this change for 6.0?

Home | Main Index | Thread Index | Old Index