svn commit: r317529 - in stable: 10/sys/sys 11/sys/sys
Eric Badger
badger at FreeBSD.org
Thu Apr 27 22:28:51 UTC 2017
Author: badger
Date: Thu Apr 27 22:28:49 2017
New Revision: 317529
URL: https://svnweb.freebsd.org/changeset/base/317529
Log:
Move td_sigqueue to the end of struct thread
In order to preserve KBI in stable branches, replace the existing
td_sigqueue slot with padding and move the expanded (as of r315949)
td_sigqueue to the end of the struct.
Reported by: jhb
Suggested by: kib
Reviewed by: jhb, kib, vangyzen
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D10515
Modified:
stable/11/sys/sys/proc.h
Changes in other areas also in this revision:
Modified:
stable/10/sys/sys/proc.h
Modified: stable/11/sys/sys/proc.h
==============================================================================
--- stable/11/sys/sys/proc.h Thu Apr 27 22:03:08 2017 (r317528)
+++ stable/11/sys/sys/proc.h Thu Apr 27 22:28:49 2017 (r317529)
@@ -224,8 +224,8 @@ struct thread {
struct umtx_q *td_umtxq; /* (c?) Link for when we're blocked. */
struct vm_domain_policy td_vm_dom_policy; /* (c) current numa domain policy */
lwpid_t td_tid; /* (b) Thread ID. */
- sigqueue_t td_sigqueue; /* (c) Sigs arrived, not delivered. */
-#define td_siglist td_sigqueue.sq_signals
+ uint64_t padding1[4];
+ void *padding2[4];
u_char td_lend_user_pri; /* (t) Lend user pri. */
/* Cleared during fork1() */
@@ -341,6 +341,8 @@ struct thread {
int td_lastcpu; /* (t) Last cpu we were on. */
int td_oncpu; /* (t) Which cpu we are on. */
sbintime_t td_sleeptimo; /* (t) Sleep timeout. */
+ sigqueue_t td_sigqueue; /* (c) Sigs arrived, not delivered. */
+#define td_siglist td_sigqueue.sq_signals
};
struct thread0_storage {
More information about the svn-src-all
mailing list