Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jul 2020 00:03:06 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363062 - head/sys/sys
Message-ID:  <202007100003.06A036D0068714@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Fri Jul 10 00:03:06 2020
New Revision: 363062
URL: https://svnweb.freebsd.org/changeset/base/363062

Log:
  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

Modified:
  head/sys/sys/mman.h

Modified: head/sys/sys/mman.h
==============================================================================
--- head/sys/sys/mman.h	Thu Jul  9 23:01:36 2020	(r363061)
+++ head/sys/sys/mman.h	Fri Jul 10 00:03:06 2020	(r363062)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007100003.06A036D0068714>