xref: /xnu-8792.81.2/tests/pfz.c (revision 19c3b8c28c31cb8130e034cfb5df6bf9ba342d90)
1*19c3b8c2SApple OSS Distributions /*
2*19c3b8c2SApple OSS Distributions  * Copyright (c) 2020 Apple Inc. All rights reserved.
3*19c3b8c2SApple OSS Distributions  *
4*19c3b8c2SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5*19c3b8c2SApple OSS Distributions  *
6*19c3b8c2SApple OSS Distributions  * This file contains Original Code and/or Modifications of Original Code
7*19c3b8c2SApple OSS Distributions  * as defined in and that are subject to the Apple Public Source License
8*19c3b8c2SApple OSS Distributions  * Version 2.0 (the 'License'). You may not use this file except in
9*19c3b8c2SApple OSS Distributions  * compliance with the License. The rights granted to you under the License
10*19c3b8c2SApple OSS Distributions  * may not be used to create, or enable the creation or redistribution of,
11*19c3b8c2SApple OSS Distributions  * unlawful or unlicensed copies of an Apple operating system, or to
12*19c3b8c2SApple OSS Distributions  * circumvent, violate, or enable the circumvention or violation of, any
13*19c3b8c2SApple OSS Distributions  * terms of an Apple operating system software license agreement.
14*19c3b8c2SApple OSS Distributions  *
15*19c3b8c2SApple OSS Distributions  * Please obtain a copy of the License at
16*19c3b8c2SApple OSS Distributions  * http://www.opensource.apple.com/apsl/ and read it before using this file.
17*19c3b8c2SApple OSS Distributions  *
18*19c3b8c2SApple OSS Distributions  * The Original Code and all software distributed under the License are
19*19c3b8c2SApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20*19c3b8c2SApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21*19c3b8c2SApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22*19c3b8c2SApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23*19c3b8c2SApple OSS Distributions  * Please see the License for the specific language governing rights and
24*19c3b8c2SApple OSS Distributions  * limitations under the License.
25*19c3b8c2SApple OSS Distributions  *
26*19c3b8c2SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27*19c3b8c2SApple OSS Distributions  */
28*19c3b8c2SApple OSS Distributions 
29*19c3b8c2SApple OSS Distributions 
30*19c3b8c2SApple OSS Distributions #include <System/machine/cpu_capabilities.h>
31*19c3b8c2SApple OSS Distributions 
32*19c3b8c2SApple OSS Distributions #include <darwintest.h>
33*19c3b8c2SApple OSS Distributions 
34*19c3b8c2SApple OSS Distributions #include <stdio.h>
35*19c3b8c2SApple OSS Distributions #include <stdint.h>
36*19c3b8c2SApple OSS Distributions #include <unistd.h>
37*19c3b8c2SApple OSS Distributions #include <sys/sysctl.h>
38*19c3b8c2SApple OSS Distributions #include <sys/wait.h>
39*19c3b8c2SApple OSS Distributions #include <ptrauth.h>
40*19c3b8c2SApple OSS Distributions #include <dispatch/dispatch.h>
41*19c3b8c2SApple OSS Distributions #include <libkern/OSAtomic.h>
42*19c3b8c2SApple OSS Distributions 
43*19c3b8c2SApple OSS Distributions T_GLOBAL_META(T_META_RUN_CONCURRENTLY(true));
44*19c3b8c2SApple OSS Distributions 
45*19c3b8c2SApple OSS Distributions #if TARGET_OS_OSX && defined(_COMM_PAGE_TEXT_ATOMIC_ENQUEUE)
46*19c3b8c2SApple OSS Distributions 
47*19c3b8c2SApple OSS Distributions /* Keys and discriminators */
48*19c3b8c2SApple OSS Distributions #define COMMPAGE_PFZ_BASE_AUTH_KEY ptrauth_key_process_independent_code
49*19c3b8c2SApple OSS Distributions #define COMMPAGE_PFZ_FN_AUTH_KEY ptrauth_key_function_pointer
50*19c3b8c2SApple OSS Distributions #define COMMPAGE_PFZ_BASE_DISCRIMINATOR ptrauth_string_discriminator("pfz")
51*19c3b8c2SApple OSS Distributions 
52*19c3b8c2SApple OSS Distributions /* Auth and sign macros */
53*19c3b8c2SApple OSS Distributions #define SIGN_COMMPAGE_PFZ_BASE_PTR(ptr) \
54*19c3b8c2SApple OSS Distributions 	ptrauth_sign_unauthenticated(ptr, COMMPAGE_PFZ_BASE_AUTH_KEY, COMMPAGE_PFZ_BASE_DISCRIMINATOR)
55*19c3b8c2SApple OSS Distributions #define AUTH_COMMPAGE_PFZ_BASE_PTR(ptr) \
56*19c3b8c2SApple OSS Distributions 	        ptrauth_auth_data(ptr, COMMPAGE_PFZ_BASE_AUTH_KEY, COMMPAGE_PFZ_BASE_DISCRIMINATOR)
57*19c3b8c2SApple OSS Distributions #define SIGN_COMMPAGE_PFZ_FUNCTION_PTR(ptr) \
58*19c3b8c2SApple OSS Distributions 	ptrauth_sign_unauthenticated(ptr, COMMPAGE_PFZ_FN_AUTH_KEY, 0)
59*19c3b8c2SApple OSS Distributions 
60*19c3b8c2SApple OSS Distributions static void *commpage_pfz_base = NULL;
61*19c3b8c2SApple OSS Distributions 
62*19c3b8c2SApple OSS Distributions static void *
get_pfz_base(void)63*19c3b8c2SApple OSS Distributions get_pfz_base(void)
64*19c3b8c2SApple OSS Distributions {
65*19c3b8c2SApple OSS Distributions 	void *pfz_base = NULL;
66*19c3b8c2SApple OSS Distributions 	size_t s = sizeof(void *);
67*19c3b8c2SApple OSS Distributions 
68*19c3b8c2SApple OSS Distributions 	int ret = sysctlbyname("kern.pfz", &pfz_base, &s, NULL, 0);
69*19c3b8c2SApple OSS Distributions 	T_ASSERT_POSIX_SUCCESS(ret, "sysctlbyname(kern.pfz)");
70*19c3b8c2SApple OSS Distributions 
71*19c3b8c2SApple OSS Distributions 	commpage_pfz_base = SIGN_COMMPAGE_PFZ_BASE_PTR(pfz_base);
72*19c3b8c2SApple OSS Distributions 	T_LOG("pfz base = 0x%llx\n", commpage_pfz_base);
73*19c3b8c2SApple OSS Distributions }
74*19c3b8c2SApple OSS Distributions 
75*19c3b8c2SApple OSS Distributions static void
undefined_function(void)76*19c3b8c2SApple OSS Distributions undefined_function(void)
77*19c3b8c2SApple OSS Distributions {
78*19c3b8c2SApple OSS Distributions 	// We can use the same commpage_pfz_base as parent since the PFZ is slide
79*19c3b8c2SApple OSS Distributions 	// once per boot and is same across all processes
80*19c3b8c2SApple OSS Distributions 	void (*undefined)(void);
81*19c3b8c2SApple OSS Distributions 	uintptr_t addr = (uintptr_t) (void *) AUTH_COMMPAGE_PFZ_BASE_PTR(commpage_pfz_base);
82*19c3b8c2SApple OSS Distributions 	addr += _COMM_PAGE_TEXT_ATOMIC_DEQUEUE;
83*19c3b8c2SApple OSS Distributions 	addr += 4; // Jump ahead
84*19c3b8c2SApple OSS Distributions 	undefined = SIGN_COMMPAGE_PFZ_FUNCTION_PTR((void *)addr);
85*19c3b8c2SApple OSS Distributions 
86*19c3b8c2SApple OSS Distributions 	return undefined();
87*19c3b8c2SApple OSS Distributions }
88*19c3b8c2SApple OSS Distributions 
89*19c3b8c2SApple OSS Distributions typedef struct {
90*19c3b8c2SApple OSS Distributions 	void *next;
91*19c3b8c2SApple OSS Distributions 	char *str;
92*19c3b8c2SApple OSS Distributions } QueueNode;
93*19c3b8c2SApple OSS Distributions 
94*19c3b8c2SApple OSS Distributions T_DECL(test_arm_pfz, "Validate that ARM PFZ is mapped in",
95*19c3b8c2SApple OSS Distributions     T_META_CHECK_LEAKS(false), T_META_IGNORECRASHES(".*undefined_function*"),
96*19c3b8c2SApple OSS Distributions     T_META_ENABLED(false) /* rdar://62615792 */)
97*19c3b8c2SApple OSS Distributions {
98*19c3b8c2SApple OSS Distributions 	static dispatch_once_t pred;
99*19c3b8c2SApple OSS Distributions 	dispatch_once(&pred, ^{
100*19c3b8c2SApple OSS Distributions 		commpage_pfz_base = get_pfz_base();
101*19c3b8c2SApple OSS Distributions 	});
102*19c3b8c2SApple OSS Distributions 
103*19c3b8c2SApple OSS Distributions 	OSFifoQueueHead head = OS_ATOMIC_FIFO_QUEUE_INIT;
104*19c3b8c2SApple OSS Distributions 	char *str1 = "String 1", *str2 = "String 2";
105*19c3b8c2SApple OSS Distributions 	QueueNode node1 = { 0, str1 };
106*19c3b8c2SApple OSS Distributions 	QueueNode node2 = { 0, str2 };
107*19c3b8c2SApple OSS Distributions 
108*19c3b8c2SApple OSS Distributions 	OSAtomicFifoEnqueue(&head, &node1, 0);
109*19c3b8c2SApple OSS Distributions 	OSAtomicFifoEnqueue(&head, &node2, 0);
110*19c3b8c2SApple OSS Distributions 	QueueNode *node_ptr = OSAtomicFifoDequeue(&head, 0);
111*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(strcmp(node_ptr->str, str1), 0, "Dequeued first node correctly");
112*19c3b8c2SApple OSS Distributions 
113*19c3b8c2SApple OSS Distributions 	node_ptr = OSAtomicFifoDequeue(&head, 0);
114*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(strcmp(node_ptr->str, str2), 0, "Dequeued second node correctly");
115*19c3b8c2SApple OSS Distributions 
116*19c3b8c2SApple OSS Distributions 	node_ptr = OSAtomicFifoDequeue(&head, 0);
117*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(node_ptr, NULL, "Dequeuing from empty list correctly");
118*19c3b8c2SApple OSS Distributions 
119*19c3b8c2SApple OSS Distributions 	int child_pid = 0;
120*19c3b8c2SApple OSS Distributions 	if ((child_pid = fork()) == 0) { // Child should call undefined function
121*19c3b8c2SApple OSS Distributions 		return undefined_function();
122*19c3b8c2SApple OSS Distributions 	} else {
123*19c3b8c2SApple OSS Distributions 		int status = 0;
124*19c3b8c2SApple OSS Distributions 		wait(&status);
125*19c3b8c2SApple OSS Distributions 
126*19c3b8c2SApple OSS Distributions 		T_ASSERT_EQ(!WIFEXITED(status), true, "Did not exit cleanly");
127*19c3b8c2SApple OSS Distributions 		T_ASSERT_EQ(WIFSIGNALED(status), true, "Exited due to signal");
128*19c3b8c2SApple OSS Distributions 		T_LOG("Signal number = %d\n", WTERMSIG(status));
129*19c3b8c2SApple OSS Distributions 	}
130*19c3b8c2SApple OSS Distributions }
131*19c3b8c2SApple OSS Distributions 
132*19c3b8c2SApple OSS Distributions T_DECL(test_rdar_65270017, "Testing for rdar 65270017",
133*19c3b8c2SApple OSS Distributions     T_META_CHECK_LEAKS(false), T_META_ENABLED(false) /* rdar://65270017 */)
134*19c3b8c2SApple OSS Distributions {
135*19c3b8c2SApple OSS Distributions 	static dispatch_once_t pred;
136*19c3b8c2SApple OSS Distributions 	dispatch_once(&pred, ^{
137*19c3b8c2SApple OSS Distributions 		commpage_pfz_base = get_pfz_base();
138*19c3b8c2SApple OSS Distributions 	});
139*19c3b8c2SApple OSS Distributions 
140*19c3b8c2SApple OSS Distributions 	struct OSAtomicFifoHeadWrapper {
141*19c3b8c2SApple OSS Distributions 		// Embedded OSFifoQueueHead structure inside the structure
142*19c3b8c2SApple OSS Distributions 		void *first;
143*19c3b8c2SApple OSS Distributions 		void *last;
144*19c3b8c2SApple OSS Distributions 		int opaque;
145*19c3b8c2SApple OSS Distributions 
146*19c3b8c2SApple OSS Distributions 		int data;
147*19c3b8c2SApple OSS Distributions 	} wrapped_head = {
148*19c3b8c2SApple OSS Distributions 		.first = NULL,
149*19c3b8c2SApple OSS Distributions 		.last = NULL,
150*19c3b8c2SApple OSS Distributions 		.opaque = 0,
151*19c3b8c2SApple OSS Distributions 		.data = 0xfeed
152*19c3b8c2SApple OSS Distributions 	};
153*19c3b8c2SApple OSS Distributions 
154*19c3b8c2SApple OSS Distributions 	char *str1 = "String 1", *str2 = "String 2";
155*19c3b8c2SApple OSS Distributions 	QueueNode node1 = { 0, str1 };
156*19c3b8c2SApple OSS Distributions 	QueueNode node2 = { 0, str2 };
157*19c3b8c2SApple OSS Distributions 
158*19c3b8c2SApple OSS Distributions 	OSAtomicFifoEnqueue(&wrapped_head, &node1, 0);
159*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(wrapped_head.data, 0xfeed, "data is valid");
160*19c3b8c2SApple OSS Distributions 
161*19c3b8c2SApple OSS Distributions 	OSAtomicFifoEnqueue(&wrapped_head, &node2, 0);
162*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(wrapped_head.data, 0xfeed, "data is valid");
163*19c3b8c2SApple OSS Distributions 
164*19c3b8c2SApple OSS Distributions 	QueueNode *node_ptr = OSAtomicFifoDequeue(&wrapped_head, 0);
165*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(strcmp(node_ptr->str, str1), 0, "Dequeued first node correctly");
166*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(wrapped_head.data, 0xfeed, "data is valid");
167*19c3b8c2SApple OSS Distributions 
168*19c3b8c2SApple OSS Distributions 	node_ptr = OSAtomicFifoDequeue(&wrapped_head, 0);
169*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(strcmp(node_ptr->str, str2), 0, "Dequeued second node correctly");
170*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(wrapped_head.data, 0xfeed, "data is valid");
171*19c3b8c2SApple OSS Distributions 
172*19c3b8c2SApple OSS Distributions 	node_ptr = OSAtomicFifoDequeue(&wrapped_head, 0);
173*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(node_ptr, NULL, "Dequeuing from empty list correctly");
174*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(wrapped_head.data, 0xfeed, "data is valid");
175*19c3b8c2SApple OSS Distributions }
176*19c3b8c2SApple OSS Distributions 
177*19c3b8c2SApple OSS Distributions #define WIDE    50ll
178*19c3b8c2SApple OSS Distributions #define SMALL   2000ll
179*19c3b8c2SApple OSS Distributions 
180*19c3b8c2SApple OSS Distributions void
preheat(dispatch_queue_t dq)181*19c3b8c2SApple OSS Distributions preheat(dispatch_queue_t dq)
182*19c3b8c2SApple OSS Distributions {
183*19c3b8c2SApple OSS Distributions 	dispatch_apply(WIDE, dq, ^(size_t i) {
184*19c3b8c2SApple OSS Distributions 		sleep(1);
185*19c3b8c2SApple OSS Distributions 	});
186*19c3b8c2SApple OSS Distributions }
187*19c3b8c2SApple OSS Distributions 
188*19c3b8c2SApple OSS Distributions typedef struct elem {
189*19c3b8c2SApple OSS Distributions 	long    data1;
190*19c3b8c2SApple OSS Distributions 	struct elem *link;
191*19c3b8c2SApple OSS Distributions 	int     data2;
192*19c3b8c2SApple OSS Distributions } elem_t;
193*19c3b8c2SApple OSS Distributions 
194*19c3b8c2SApple OSS Distributions static size_t offset = offsetof(elem_t, link);
195*19c3b8c2SApple OSS Distributions static elem_t elements[WIDE][SMALL];
196*19c3b8c2SApple OSS Distributions 
197*19c3b8c2SApple OSS Distributions T_DECL(test_65270017_contended, "multithreaded testing for radar 65270017")
198*19c3b8c2SApple OSS Distributions {
199*19c3b8c2SApple OSS Distributions 	dispatch_queue_t global_q = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0);
200*19c3b8c2SApple OSS Distributions 	dispatch_queue_t queue = dispatch_queue_create("com.apple.libctests.threaded", 0);
201*19c3b8c2SApple OSS Distributions 	uint64_t __block t = 0;
202*19c3b8c2SApple OSS Distributions 
203*19c3b8c2SApple OSS Distributions 	struct OSAtomicFifoHeadWrapper {
204*19c3b8c2SApple OSS Distributions 		// Embedded OSFifoQueueHead structure inside the structure
205*19c3b8c2SApple OSS Distributions 		void *first;
206*19c3b8c2SApple OSS Distributions 		void *last;
207*19c3b8c2SApple OSS Distributions 		int opaque;
208*19c3b8c2SApple OSS Distributions 
209*19c3b8c2SApple OSS Distributions 		int data;
210*19c3b8c2SApple OSS Distributions 	};
211*19c3b8c2SApple OSS Distributions 
212*19c3b8c2SApple OSS Distributions 	struct OSAtomicFifoHeadWrapper wrapped_q_head1 = {
213*19c3b8c2SApple OSS Distributions 		.first = NULL,
214*19c3b8c2SApple OSS Distributions 		.last = NULL,
215*19c3b8c2SApple OSS Distributions 		.opaque = 0,
216*19c3b8c2SApple OSS Distributions 		.data = 0xfeed
217*19c3b8c2SApple OSS Distributions 	};
218*19c3b8c2SApple OSS Distributions 	OSFifoQueueHead *q1 = (OSFifoQueueHead *) &wrapped_q_head1;
219*19c3b8c2SApple OSS Distributions 
220*19c3b8c2SApple OSS Distributions 	struct OSAtomicFifoHeadWrapper wrapped_q_head2 = {
221*19c3b8c2SApple OSS Distributions 		.first = NULL,
222*19c3b8c2SApple OSS Distributions 		.last = NULL,
223*19c3b8c2SApple OSS Distributions 		.opaque = 0,
224*19c3b8c2SApple OSS Distributions 		.data = 0xdead
225*19c3b8c2SApple OSS Distributions 	};
226*19c3b8c2SApple OSS Distributions 	OSFifoQueueHead *q2 = (OSFifoQueueHead *) &wrapped_q_head2;
227*19c3b8c2SApple OSS Distributions 
228*19c3b8c2SApple OSS Distributions 	t = 0;
229*19c3b8c2SApple OSS Distributions 	T_LOG("Preheating thread pool");
230*19c3b8c2SApple OSS Distributions 
231*19c3b8c2SApple OSS Distributions 	preheat(global_q);
232*19c3b8c2SApple OSS Distributions 
233*19c3b8c2SApple OSS Distributions 	T_LOG("Starting contended pfz test");
234*19c3b8c2SApple OSS Distributions 
235*19c3b8c2SApple OSS Distributions 	dispatch_apply(WIDE, global_q, ^(size_t i) {
236*19c3b8c2SApple OSS Distributions 		dispatch_apply(SMALL, global_q, ^(size_t idx) {
237*19c3b8c2SApple OSS Distributions 			OSAtomicFifoEnqueue(q1, &(elements[i][idx]), offset); // contended enqueue on q1
238*19c3b8c2SApple OSS Distributions 		});
239*19c3b8c2SApple OSS Distributions 
240*19c3b8c2SApple OSS Distributions 		uint32_t count = 0;
241*19c3b8c2SApple OSS Distributions 		elem_t *p = NULL;
242*19c3b8c2SApple OSS Distributions 		do {
243*19c3b8c2SApple OSS Distributions 		        p = OSAtomicFifoDequeue(q1, offset);
244*19c3b8c2SApple OSS Distributions 		        T_QUIET; T_ASSERT_EQ(wrapped_q_head1.data, 0xfeed, "q1 data is valid");
245*19c3b8c2SApple OSS Distributions 		        if (p) {
246*19c3b8c2SApple OSS Distributions 		                OSAtomicFifoEnqueue(q2, p, offset);
247*19c3b8c2SApple OSS Distributions 		                T_QUIET; T_ASSERT_EQ(wrapped_q_head2.data, 0xdead, "q2 data is valid");
248*19c3b8c2SApple OSS Distributions 		                count++;
249*19c3b8c2SApple OSS Distributions 			}
250*19c3b8c2SApple OSS Distributions 		} while (p != NULL);
251*19c3b8c2SApple OSS Distributions 
252*19c3b8c2SApple OSS Distributions 		dispatch_sync(queue, ^{
253*19c3b8c2SApple OSS Distributions 			t += count;
254*19c3b8c2SApple OSS Distributions 		});
255*19c3b8c2SApple OSS Distributions 	});
256*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(t, ((uint64_t)WIDE * (uint64_t)SMALL), "OSAtomicFifoEnqueue");
257*19c3b8c2SApple OSS Distributions 
258*19c3b8c2SApple OSS Distributions 	t = 0;
259*19c3b8c2SApple OSS Distributions 	dispatch_apply(WIDE, global_q, ^(size_t i) {
260*19c3b8c2SApple OSS Distributions 		uint32_t count = 0;
261*19c3b8c2SApple OSS Distributions 		elem_t *p = NULL;
262*19c3b8c2SApple OSS Distributions 		do {
263*19c3b8c2SApple OSS Distributions 		        p = OSAtomicFifoDequeue(q2, offset);
264*19c3b8c2SApple OSS Distributions 		        T_QUIET; T_ASSERT_EQ(wrapped_q_head2.data, 0xdead, "q2 data is valid");
265*19c3b8c2SApple OSS Distributions 		        if (p) {
266*19c3b8c2SApple OSS Distributions 		                count++;
267*19c3b8c2SApple OSS Distributions 			}
268*19c3b8c2SApple OSS Distributions 		} while (p != NULL);
269*19c3b8c2SApple OSS Distributions 		dispatch_sync(queue, ^{
270*19c3b8c2SApple OSS Distributions 			t += count;
271*19c3b8c2SApple OSS Distributions 		});
272*19c3b8c2SApple OSS Distributions 	});
273*19c3b8c2SApple OSS Distributions 
274*19c3b8c2SApple OSS Distributions 	T_ASSERT_EQ(t, ((uint64_t)WIDE * (uint64_t)SMALL), "OSAtomicFifoDequeue");
275*19c3b8c2SApple OSS Distributions 
276*19c3b8c2SApple OSS Distributions 	dispatch_release(queue);
277*19c3b8c2SApple OSS Distributions }
278*19c3b8c2SApple OSS Distributions 
279*19c3b8c2SApple OSS Distributions #else
280*19c3b8c2SApple OSS Distributions 
281*19c3b8c2SApple OSS Distributions T_DECL(test_arm_pfz, "Validate that ARM PFZ is mapped in",
282*19c3b8c2SApple OSS Distributions     T_META_CHECK_LEAKS(false))
283*19c3b8c2SApple OSS Distributions {
284*19c3b8c2SApple OSS Distributions 	T_SKIP("No PFZ, _COMM_PAGE_TEXT_ATOMIC_ENQUEUE doesn't exist");
285*19c3b8c2SApple OSS Distributions }
286*19c3b8c2SApple OSS Distributions 
287*19c3b8c2SApple OSS Distributions #endif
288