Neuter DRM(mapbufs) until somebody finds time to try to fix it.
It is _never_ OK to find a vnode from a struct cdev because you have no way of telling if you get the right one. You might be in jail or chroot for instance.
This commit is contained in:
parent
aea571c6b5
commit
068a6e0ac2
@ -923,8 +923,12 @@ int DRM(mapbufs)( DRM_IOCTL_ARGS )
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
vaddr = round_page((vm_offset_t)vms->vm_daddr + MAXDSIZ);
|
||||
#ifdef this_is_just_plain_bogus
|
||||
retcode = vm_mmap(&vms->vm_map, &vaddr, size, PROT_READ | PROT_WRITE,
|
||||
VM_PROT_ALL, MAP_SHARED, SLIST_FIRST(&kdev->si_hlist), foff );
|
||||
#else
|
||||
retcode = EOPNOTSUPP;
|
||||
#endif
|
||||
#elif defined(__NetBSD__)
|
||||
vaddr = round_page((vaddr_t)vms->vm_daddr + MAXDSIZ);
|
||||
retcode = uvm_mmap(&vms->vm_map, &vaddr, size,
|
||||
|
Loading…
Reference in New Issue
Block a user