Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2019 00:07:54 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354420 - head/sys/sys
Message-ID:  <201911070007.xA707sUx011844@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Thu Nov  7 00:07:54 2019
New Revision: 354420
URL: https://svnweb.freebsd.org/changeset/base/354420

Log:
  Fix the alignment of struct xunpcb on systems with >64-bit pointers.
  
  Reviewed by:	emaste
  Obtained from:	CheriBSD
  MFC after:	3 days
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D22268

Modified:
  head/sys/sys/unpcb.h

Modified: head/sys/sys/unpcb.h
==============================================================================
--- head/sys/sys/unpcb.h	Wed Nov  6 23:45:43 2019	(r354419)
+++ head/sys/sys/unpcb.h	Thu Nov  7 00:07:54 2019	(r354420)
@@ -156,7 +156,7 @@ struct xunpcb {
 		char	xu_dummy2[256];
 	};
 	struct xsocket	xu_socket;
-} __aligned(8);
+} __aligned(MAX(8, sizeof(void *)));
 
 struct xunpgen {
 	ksize_t	xug_len;



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