Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2019 05:44:52 +1100
From:      Peter Jeremy <peter@rulingia.com>
To:        Andrew Turner <andrew@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r353640 - head/sys/kern
Message-ID:  <20191023184452.GA8725@server.rulingia.com>
In-Reply-To: <201910161321.x9GDL2ee021543@repo.freebsd.org>
References:  <201910161321.x9GDL2ee021543@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2019-Oct-16 13:21:02 +0000, Andrew Turner <andrew@FreeBSD.org> wrote:
>Author: andrew
>Date: Wed Oct 16 13:21:01 2019
>New Revision: 353640
>URL: https://svnweb.freebsd.org/changeset/base/353640
>
>Log:
>  Stop leaking information from the kernel through timespec
> =20
>  The timespec struct holds a seconds value in a time_t and a nanoseconds
>  value in a long. On most architectures these are the same size, however
>  on 32-bit architectures other than i386 time_t is 8 bytes and long is
>  4 bytes.
> =20
>  Most ABIs will then pad a struct holding an 8 byte and 4 byte value to
>  16 bytes with 4 bytes of padding. When copying one of these structs the
>  compiler is free to copy the padding if it wishes.

Are there any other structs passed from kernel to userland that include
padding?

--=20
Peter Jeremy

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE7rKYbDBnHnTmXCJ+FqWXoOSiCzQFAl2wn59fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEVF
QjI5ODZDMzA2NzFFNzRFNjVDMjI3RTE2QTU5N0EwRTRBMjBCMzQACgkQFqWXoOSi
CzT0aQ//XQLIKUlNQEau0wTr8TItxH/cVTV9Xnxr/V5x2U80JSP2GKa4DrFvCbfA
1bq63ofZgvfVogKUcLdCrT2nb84FrYgnIYCIAquwJkzum/UJfqtAxldeqQ+EFX3m
B/vrv/JPmv48GhKzlERAAlu7eAN6z7PREl+Wgc4YDkOsp+D+wpF1TtafY8/WJFHn
Vc3skMKN0AuDj3eRysgF7qARYN9JOYaMGXuoa9eO4n9X0yM5C+ypzv9n1ohWpWSZ
LbLUxYwcXTdaprXggFQxoBBCayEdcSMBJO6502LMSceaUUTpxz7qFZZrDcWR4MPa
ErEgp7JwK+En+MAzww8MXCMeFJN4oNuQd4JXd/3XYeG5NyHRa1mOdWAZe3b52VoQ
RVMOVUu63tKLNkZNO/Tj5fg1SaaPfVf9WKtgeT8UROgHUXsNwkb2Y/dgUvlMbQbq
YKO55xxTrQASKDxaW/Zo6gb3Nt8fuEd2f2aw5k98Kyg55ulMPzgi67FWYXwyd+Xk
KCHsAGwcPhRqu/Dgk2Q81gWGUFuORGGuwu5uPoz64sZiDtDCblslHZzJvAIWegUc
jGRv2VAbhwxxsEDucEyOKvAPACk1WfjyTN/DLso33S6gqrFK2qdYLl6iurGodhZX
5Z0c2k5FSUcYM9kF8ev4QfmVQb4HCEL5lDBL4qHRfvS9izZxKWo=
=1fyl
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--



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