Module Name: src
Committed By: kamil
Date: Mon Dec 17 06:53:01 UTC 2018
Modified Files:
src/sys/uvm: uvm_map.c
Log Message:
Raise the fill_vmentries() E2BIG limit from 1MB to 10MB
The previous limit was not enough for libFuzzer as it requires up to 2.5MB
in test-suite.
Alternative approaches to retrieve larger address map during happened to be
worse during the evaluation due to difficulties in locking and atomicity.
Discussed with <christos>
To generate a diff of this commit:
cvs rdiff -u -r1.356 -r1.357 src/sys/uvm/uvm_map.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.356 src/sys/uvm/uvm_map.c:1.357
--- src/sys/uvm/uvm_map.c:1.356 Wed Sep 12 15:58:08 2018
+++ src/sys/uvm/uvm_map.c Mon Dec 17 06:53:01 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_map.c,v 1.356 2018/09/12 15:58:08 maxv Exp $ */
+/* $NetBSD: uvm_map.c,v 1.357 2018/12/17 06:53:01 kamil Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.356 2018/09/12 15:58:08 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.357 2018/12/17 06:53:01 kamil Exp $");
#include "opt_ddb.h"
#include "opt_pax.h"
@@ -4963,7 +4963,7 @@ fill_vmentries(struct lwp *l, pid_t pid,
return EINVAL;
if (oldp) {
- if (*oldlenp > 1024 * 1024)
+ if (*oldlenp > 10UL * 1024UL * 1024UL)
return E2BIG;
count = *oldlenp / elem_size;
if (count == 0)