Merge 5.2-rc5 into android-mainline
Linux 5.2-rc5 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Dieser Commit ist enthalten in:
@@ -636,11 +636,11 @@ static int apply_vma_lock_flags(unsigned long start, size_t len,
|
||||
* is also counted.
|
||||
* Return value: previously mlocked page counts
|
||||
*/
|
||||
static int count_mm_mlocked_page_nr(struct mm_struct *mm,
|
||||
static unsigned long count_mm_mlocked_page_nr(struct mm_struct *mm,
|
||||
unsigned long start, size_t len)
|
||||
{
|
||||
struct vm_area_struct *vma;
|
||||
int count = 0;
|
||||
unsigned long count = 0;
|
||||
|
||||
if (mm == NULL)
|
||||
mm = current->mm;
|
||||
@@ -797,7 +797,8 @@ SYSCALL_DEFINE1(mlockall, int, flags)
|
||||
unsigned long lock_limit;
|
||||
int ret;
|
||||
|
||||
if (!flags || (flags & ~(MCL_CURRENT | MCL_FUTURE | MCL_ONFAULT)))
|
||||
if (!flags || (flags & ~(MCL_CURRENT | MCL_FUTURE | MCL_ONFAULT)) ||
|
||||
flags == MCL_ONFAULT)
|
||||
return -EINVAL;
|
||||
|
||||
if (!can_do_mlock())
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren