diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2022-10-10 21:22:12 +0000 |
---|---|---|
committer | Patrick Mooney <pmooney@oxide.computer> | 2022-10-19 15:31:00 +0000 |
commit | f23ed011dd1990f5b6b2d755feeaa7baf5a22caa (patch) | |
tree | ab950dd1a5cdbf5a24fd284ecec87b8140108fd8 /usr/src/uts/common/syscall | |
parent | 470204d3561e07978b63600336e8d47cc75387fa (diff) | |
download | illumos-joyent-f23ed011dd1990f5b6b2d755feeaa7baf5a22caa.tar.gz |
15036 portfs wears inadequate pollcache disguise
Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@mnx.io>
Diffstat (limited to 'usr/src/uts/common/syscall')
-rw-r--r-- | usr/src/uts/common/syscall/poll.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/common/syscall/poll.c b/usr/src/uts/common/syscall/poll.c index 71069314d7..7af1c7edfe 100644 --- a/usr/src/uts/common/syscall/poll.c +++ b/usr/src/uts/common/syscall/poll.c @@ -279,6 +279,14 @@ pollunlock(int *lockstate) return (0); } +/* + * The pc_lock and pc_flag fields of port_fdcache_t must exactly match those of + * pollcache_t as they are accessed through t_pollcache as if they were part of + * a "real" pollcache. + */ +CTASSERT(offsetof(pollcache_t, pc_lock) == offsetof(port_fdcache_t, pc_lock)); +CTASSERT(offsetof(pollcache_t, pc_flag) == offsetof(port_fdcache_t, pc_flag)); + void pollrelock(int lockstate) { |