modify:User space memory access

perf_event_open,futex,process_vm_readv,process_vm_writev,move_pages
This commit is contained in:
Hitoshi Iizuka
2017-10-23 20:09:22 +09:00
parent 12840601e1
commit 08a625cc0d
5 changed files with 674 additions and 662 deletions

View File

@ -246,18 +246,6 @@ static int cmpxchg_futex_value_locked(uint32_t __user *uaddr, uint32_t uval, uin
return curval;
}
static int get_futex_value_locked(uint32_t *dest, uint32_t *from)
{
/*
* Officially we should call:
* return getint_user((int *)dest, (int *)from);
*
* but McKernel on x86 can just access user-space.
*/
*dest = *(volatile uint32_t *)from;
return 0;
}
/*
* The hash bucket lock must be held when this is called.
* Afterwards, the futex_q must not be accessed.