NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/50511 (npf fails to load tree file above certain size)
The following reply was made to PR kern/50511; it has been noted by GNATS.
From: Geoff Wing <gcw%pobox.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: kern/50511 (npf fails to load tree file above certain size)
Date: Thu, 18 Aug 2016 16:35:58 +1000
You can change it to allow large allocations but I presume there is
potential for kernel memory exhaustion by user programs.
Index: common/lib/libprop/prop_kern.c
===================================================================
RCS file: /cvsroot/src/common/lib/libprop/prop_kern.c,v
retrieving revision 1.19
diff -u -r1.19 prop_kern.c
--- common/lib/libprop/prop_kern.c 11 May 2015 16:48:34 -0000 1.19
+++ common/lib/libprop/prop_kern.c 18 Aug 2016 06:31:56 -0000
@@ -408,7 +408,7 @@
int error;
if (pref->pref_len >= prop_object_copyin_limit)
- return EINVAL;
+ printf("_prop_object_copyin: large requested object size (%u)\n", (unsigned int) pref->pref_len);
/*
* Allocate an extra byte so we can guarantee NUL-termination.
Home |
Main Index |
Thread Index |
Old Index