From 80ae8fe82cdaa69f78dc90fa27bc9e79863de0ea Mon Sep 17 00:00:00 2001 From: kib Date: Tue, 21 Feb 2012 01:05:12 +0000 Subject: Fix found places where uio_resid is truncated to int. Add the sysctl debug.iosize_max_clamp, enabled by default. Setting the sysctl to zero allows to perform the SSIZE_MAX-sized i/o requests from the usermode. Discussed with: bde, das (previous versions) MFC after: 1 month --- sys/kern/kern_ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_ctf.c') diff --git a/sys/kern/kern_ctf.c b/sys/kern/kern_ctf.c index 2737860..5ded1be 100644 --- a/sys/kern/kern_ctf.c +++ b/sys/kern/kern_ctf.c @@ -68,7 +68,7 @@ link_elf_ctf_get(linker_file_t lf, linker_ctf_t *lc) int flags; int i; int nbytes; - int resid; + ssize_t resid; int vfslocked; size_t sz; struct nameidata nd; -- cgit v1.1