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/link_elf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/kern/link_elf.c') diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c index 2f9a1f6..5dd0623 100644 --- a/sys/kern/link_elf.c +++ b/sys/kern/link_elf.c @@ -655,7 +655,8 @@ link_elf_load_file(linker_class_t cls, const char* filename, Elf_Addr base_vaddr; Elf_Addr base_vlimit; int error = 0; - int resid, flags; + ssize_t resid; + int flags; elf_file_t ef; linker_file_t lf; Elf_Shdr *shdr; -- cgit v1.1