From 50030f954761926d8a17fc59dafd4e953fb411a4 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Fri, 10 Jul 2020 00:03:06 +0000 Subject: [PATCH] shmfd: make shm_size a vm_ooffset_t On 32-bit platforms, this expands the shm_size to a 64-bit quantity and resolves a mismatch between the shmfd size and underlying vm_object size. The implementation did not account for this kind of mismatch. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25602 --- sys/sys/mman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/mman.h b/sys/sys/mman.h index b004b2210441..75376e4bec16 100644 --- a/sys/sys/mman.h +++ b/sys/sys/mman.h @@ -254,7 +254,7 @@ typedef __size_t size_t; struct file; struct shmfd { - size_t shm_size; + vm_ooffset_t shm_size; vm_object_t shm_object; int shm_refs; uid_t shm_uid;