From patchwork Mon Aug 5 14:27:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 816735 Delivered-To: patch@linaro.org Received: by 2002:adf:e00d:0:b0:367:895a:4699 with SMTP id s13csp1369913wrh; Mon, 5 Aug 2024 07:28:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX48JOaoF3L5MaemqFHaJgWNtfc8yI6cySpRSJEF0SABF0WcmG8D54LeU5/29+CgVnPMaMaDAtCZNkLVddXdZGI X-Google-Smtp-Source: AGHT+IHuHZRApEE3D4cQkbsjIw7NfH5w5/Y/4jIpSTEDJoZ73QC31VC3oqa8JG5XVVit4YRB77I5 X-Received: by 2002:ac8:5749:0:b0:447:e786:d712 with SMTP id d75a77b69052e-4518919ca4cmr157680251cf.0.1722868098181; Mon, 05 Aug 2024 07:28:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1722868098; cv=pass; d=google.com; s=arc-20160816; b=DsVW88bV3PvvRTcccJ5DhUC6t7isC5P4GpOOz6nPNvuFyp5Ez0bEVpcVOsUakCP6Z+ 5GHNNTJAqg4DyIowDHAszWHiLd9P0YIMBEA7aS0OD2Wzu4I/qxrmRW6pbC37z+KbgvUe sojR0S+V9OJADhmIk1J3SiHnBPITueNXcplSP+iK6R1E4jhimd+3Uku6CzMy3Kf43v+n ImZ3ycZBedQG9XEeiY/xDDG3431hYLKDMqWPZIchOsSLGvs9Er5eBhzG2CTxIayNVtZC vOutq85OuFJnQ56EC0n4k3VT0pCnE8W6oH6aHEZHs2XM0U0XuiY3sBYsvHqhDXSfiLB8 +IOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=ze8sq8T9JtIcfvOOW6kmTHCt3bDrnv4HyaotcHewua0=; fh=v2Nv3k9i7Amxu65q1mEuFELTOLzYYycJBMRhbhFxZhE=; b=ux14xBNbxBbVWd02EzZVoVGUCTkel/r5og1saX7HCfs1f1GdyfbZ74Kbdc1kQrDkZ6 xPjKabxqsihCnJDoHiGcBtvnpgkQJMmVd+w4kDxToUNA/R5DoF+MbC8LMKBtskd3BmMo 8J8GZ2WUUCajx3ZYMxSeoDZFIrZ3NtabYGqHMKh7kJAVMzZOpE/JEkeBGjE0TwJJ1Gk5 ykJPDquXkEoLwNe1xPI6K5gL2cevyAQ91yx/M63AQ8AVZEeoZup4bT+dNn8M8hVa/Vrm SEmyKQ5I845OvN4AY07xbXIoIg2bDdML1Qtr0zVX5/gcQ+NILKGdolVM+WRGv0Z0M/6u hRiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPlMSo8D; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d75a77b69052e-4518a75f904si94525981cf.354.2024.08.05.07.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 07:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPlMSo8D; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces~patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces~patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C52A2385C6D1 for ; Mon, 5 Aug 2024 14:28:17 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by sourceware.org (Postfix) with ESMTPS id 0E69B3857000 for ; Mon, 5 Aug 2024 14:28:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0E69B3857000 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0E69B3857000 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722868087; cv=none; b=GGnCDtFh6s2gEj3xi/opwczjoONMN0F41ec547lA7k915kTmlWU8vEmTSuVlbLNPuAgvZg5Bn23F47nOiIBl94tjuAjJ2wtq41XuPcBGPINJkIKOYPemGE96ORea8mCLVoyO44nEQId6px4L4y4J74+Ris1uhR7qWf19jk0Ka/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722868087; c=relaxed/simple; bh=mr89JiF3nMirKbdL8t/orKtKcIIh8FfRyxXw9uhi22o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vbKRyuWWsuTVXWWTmKH4p0caJUKORApaLQLMhB4A6f47ETh1SqCkZq9AeMixDuNBNoBk8WCMFfbLyIdNo3lsK/vO52Q3mcO0CuygVOJD0NHRfELG6qulkOjefohzedYdP5zp+bsppSpk/j8L/HtltvboJBSJuOLnLs/LngM+Ucw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1fc491f9b55so82908705ad.3 for ; Mon, 05 Aug 2024 07:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722868082; x=1723472882; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ze8sq8T9JtIcfvOOW6kmTHCt3bDrnv4HyaotcHewua0=; b=XPlMSo8Do5xrHEVxm7ACUPJsbGeaikg8a4lS/LOD09jDeZBF77VURA+ASIBxrUC8b/ 7q56TxDZhpqwKUQTRapHp17GqeenSPXemZczg0ROVH0c04jq3ESsTjlfcD2ot9PM4xrm FlDWrFYaxL8gP6aLbQqLDlF359c8RUCVvWyHukyZ8hla/+b9/aMKd+kE7ngYnVB5TJyl k/fIn7r4NywkODYa1hqjC/gaS97lj0Vz0HQLVUAzhtfkz+VyUTEunJb2w1vnO1RrVQSM ujrItxjg4evP38+l4C7W7kXtGD3hF+aD1A7k8NRSthpwfmi8AoXJn2Zpaf7hSXlmcgg6 E5uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722868082; x=1723472882; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ze8sq8T9JtIcfvOOW6kmTHCt3bDrnv4HyaotcHewua0=; b=pKPH5My54kJ3ZVGkozRi6PlMY1CGLFToQJNFNtiNCqT+8vt6kcGDRnv6G1/RaWqYJC NiPk3GQDafBDYN77chN1JKwSompqjlY2rKHXvUWAeSkL8c1Mv3kKgJtsm8J1Un1rlR8o 6OdCh1seh6xsb8Tt5jO/WgASFmMtZq1riOvq7Q9Yax+yzIH41tWJgE3eImAL7DYdV7Kq BcEOLp2zOwq62qmDOQy72m0naUlJrNLRkTVhMx0hI7G/Cgzqy7IOK7Y+00e0DtCdMC1Y CXSwbN5zT/+5+drQPFZLq9LdWjKZblaQGhmF2WuqcRyIOPJJKI5Y1EZmLYiAcTmwPNtm bO0A== X-Gm-Message-State: AOJu0YwsDXFKKmdKnDAR7EHdSgum0drDzxnf0A99NwlE6wXqEVOmpDWW iNm9vYOPLgO+dSLzuoImD4LhUlaHbGMi+XpMD+zblfesea9DX+w1UmXX3x3o/SR7SiyOpK+0w66 a X-Received: by 2002:a17:903:22c1:b0:1fc:5b41:baff with SMTP id d9443c01a7336-1ff5722e988mr123631355ad.3.1722868082357; Mon, 05 Aug 2024 07:28:02 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c1:a5f6:dd3a:f1fe:c356:81c1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff591750fesm68412645ad.191.2024.08.05.07.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Aug 2024 07:28:01 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Carlos O'Donell Subject: [PATCH v2] stdlib: Allow concurrent quick_exit (BZ 31997) Date: Mon, 5 Aug 2024 11:27:35 -0300 Message-ID: <20240805142758.806079-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patch=linaro.org@sourceware.org As for exit, also allows concurrent quick_exit to avoid race conditions when it is called concurrently. Since it uses the same internal function as exit, the __exit_lock lock is moved to __run_exit_handlers. It also solved a potential concurrent when calling exit and quick_exit concurrently. The test case 'expected' is expanded to a value larger than the minimum required by C/POSIX (32 entries) so at_quick_exit() will require libc to allocate a new block. This makes the test mre likely to trigger concurrent issues (through free() at __run_exit_handlers) if quick_exit() interacts with the at_quick_exit list concurrently. This is also the latest interpretation of the Austin Ticket [1]. Checked on x86_64-linux-gnu. [1] https://austingroupbugs.net/view.php?id=1845 Reviewed-by: Carlos O'Donell --- Changes from v1: - Fixed lint-makefiles issue. --- stdlib/Makefile | 1 + stdlib/exit.c | 18 +-- stdlib/tst-concurrent-exit-skeleton.c | 160 ++++++++++++++++++++++++++ stdlib/tst-concurrent-exit.c | 141 +---------------------- stdlib/tst-concurrent-quick_exit.c | 22 ++++ 5 files changed, 196 insertions(+), 146 deletions(-) create mode 100644 stdlib/tst-concurrent-exit-skeleton.c create mode 100644 stdlib/tst-concurrent-quick_exit.c diff --git a/stdlib/Makefile b/stdlib/Makefile index f659c38feb..043a452f72 100644 --- a/stdlib/Makefile +++ b/stdlib/Makefile @@ -274,6 +274,7 @@ tests := \ tst-bz20544 \ tst-canon-bz26341 \ tst-concurrent-exit \ + tst-concurrent-quick_exit \ tst-cxa_atexit \ tst-environ \ tst-getrandom \ diff --git a/stdlib/exit.c b/stdlib/exit.c index bbaf138806..8d7e2e53d0 100644 --- a/stdlib/exit.c +++ b/stdlib/exit.c @@ -28,6 +28,13 @@ __exit_funcs_lock is declared. */ bool __exit_funcs_done = false; +/* The lock handles concurrent exit() and quick_exit(), even though the + C/POSIX standard states that calling exit() more than once is UB. The + recursive lock allows atexit() handlers or destructors to call exit() + itself. In this case, the handler list execution will resume at the + point of the current handler. */ +__libc_lock_define_initialized_recursive (static, __exit_lock) + /* Call all functions registered with `atexit' and `on_exit', in the reverse of the order in which they were registered perform stdio cleanup, and terminate program execution with STATUS. */ @@ -36,6 +43,9 @@ attribute_hidden __run_exit_handlers (int status, struct exit_function_list **listp, bool run_list_atexit, bool run_dtors) { + /* The exit should never return, so there is no need to unlock it. */ + __libc_lock_lock_recursive (__exit_lock); + /* First, call the TLS destructors. */ if (run_dtors) call_function_static_weak (__call_tls_dtors); @@ -132,17 +142,9 @@ __run_exit_handlers (int status, struct exit_function_list **listp, } -/* The lock handles concurrent exit(), even though the C/POSIX standard states - that calling exit() more than once is UB. The recursive lock allows - atexit() handlers or destructors to call exit() itself. In this case, the - handler list execution will resume at the point of the current handler. */ -__libc_lock_define_initialized_recursive (static, __exit_lock) - void exit (int status) { - /* The exit should never return, so there is no need to unlock it. */ - __libc_lock_lock_recursive (__exit_lock); __run_exit_handlers (status, &__exit_funcs, true, true); } libc_hidden_def (exit) diff --git a/stdlib/tst-concurrent-exit-skeleton.c b/stdlib/tst-concurrent-exit-skeleton.c new file mode 100644 index 0000000000..cfd5140466 --- /dev/null +++ b/stdlib/tst-concurrent-exit-skeleton.c @@ -0,0 +1,160 @@ +/* Check if exit/quick_exit can be called concurrently by multiple threads. + Copyright (C) 2024 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include +#include +#include +#include +#include +#include + +/* A value larger than the minimum required by C/POSIX (32), to trigger a + new block memory allocation. */ +#define MAX_atexit 64 + +static pthread_barrier_t barrier; + +static void * +tf (void *closure) +{ + xpthread_barrier_wait (&barrier); + EXIT (0); + + return NULL; +} + +static const char expected[] = "00000000000000000000000000000000000" + "00000000000000000000003021121130211"; +static char crumbs[sizeof (expected)]; +static int next_slot = 0; + +static void +exit_with_flush (int code) +{ + fflush (stdout); + /* glibc allows recursive EXIT, the ATEXIT handlers execution will be + resumed from the where the previous EXIT was interrupted. */ + EXIT (code); +} + +/* Take some time, so another thread potentially issue EXIT. */ +#define SETUP_NANOSLEEP \ + if (nanosleep (&(struct timespec) { .tv_sec = 0, .tv_nsec = 1000L }, \ + NULL) != 0) \ + FAIL_EXIT1 ("nanosleep: %m") + +static void +fn0 (void) +{ + crumbs[next_slot++] = '0'; + SETUP_NANOSLEEP; +} + +static void +fn1 (void) +{ + crumbs[next_slot++] = '1'; + SETUP_NANOSLEEP; +} + +static void +fn2 (void) +{ + crumbs[next_slot++] = '2'; + ATEXIT (fn1); + SETUP_NANOSLEEP; +} + +static void +fn3 (void) +{ + crumbs[next_slot++] = '3'; + ATEXIT (fn2); + ATEXIT (fn0); + SETUP_NANOSLEEP; +} + +static void +fn_final (void) +{ + TEST_COMPARE_STRING (crumbs, expected); + exit_with_flush (0); +} + +_Noreturn static void +child (void) +{ + enum { nthreads = 8 }; + + xpthread_barrier_init (&barrier, NULL, nthreads + 1); + + pthread_t thr[nthreads]; + for (int i = 0; i < nthreads; i++) + thr[i] = xpthread_create (NULL, tf, NULL); + + xpthread_barrier_wait (&barrier); + + for (int i = 0; i < nthreads; i++) + { + pthread_join (thr[i], NULL); + /* It should not be reached, it means that thread did not exit for + some reason. */ + support_record_failure (); + } + + EXIT (2); +} + +static int +do_test (void) +{ + /* Register a large number of handler that will trigger a heap allocation + for the handle state. On EXIT, each block will be freed after the + handle is processed. */ + int slots_remaining = MAX_atexit; + + /* Register this first so it can verify expected order of the rest. */ + ATEXIT (fn_final); --slots_remaining; + + TEST_VERIFY_EXIT (ATEXIT (fn1) == 0); --slots_remaining; + TEST_VERIFY_EXIT (ATEXIT (fn3) == 0); --slots_remaining; + TEST_VERIFY_EXIT (ATEXIT (fn1) == 0); --slots_remaining; + TEST_VERIFY_EXIT (ATEXIT (fn2) == 0); --slots_remaining; + TEST_VERIFY_EXIT (ATEXIT (fn1) == 0); --slots_remaining; + TEST_VERIFY_EXIT (ATEXIT (fn3) == 0); --slots_remaining; + + while (slots_remaining > 0) + { + TEST_VERIFY_EXIT (ATEXIT (fn0) == 0); --slots_remaining; + } + + pid_t pid = xfork (); + if (pid != 0) + { + int status; + xwaitpid (pid, &status, 0); + TEST_VERIFY (WIFEXITED (status)); + } + else + child (); + + return 0; +} + +#include diff --git a/stdlib/tst-concurrent-exit.c b/stdlib/tst-concurrent-exit.c index 1141130f87..421c39d631 100644 --- a/stdlib/tst-concurrent-exit.c +++ b/stdlib/tst-concurrent-exit.c @@ -16,142 +16,7 @@ License along with the GNU C Library; if not, see . */ -#include -#include -#include -#include -#include -#include -#include +#define EXIT(__r) exit (__r) +#define ATEXIT(__f) atexit (__f) -#define MAX_atexit 32 - -static pthread_barrier_t barrier; - -static void * -tf (void *closure) -{ - xpthread_barrier_wait (&barrier); - exit (0); - - return NULL; -} - -static const char expected[] = "00000000000000000000000003021121130211"; -static char crumbs[sizeof (expected)]; -static int next_slot = 0; - -static void -exit_with_flush (int code) -{ - fflush (stdout); - /* glibc allows recursive exit, the atexit handlers execution will be - resumed from the where the previous exit was interrupted. */ - exit (code); -} - -/* Take some time, so another thread potentially issue exit. */ -#define SETUP_NANOSLEEP \ - if (nanosleep (&(struct timespec) { .tv_sec = 0, .tv_nsec = 1000L }, \ - NULL) != 0) \ - FAIL_EXIT1 ("nanosleep: %m") - -static void -fn0 (void) -{ - crumbs[next_slot++] = '0'; - SETUP_NANOSLEEP; -} - -static void -fn1 (void) -{ - crumbs[next_slot++] = '1'; - SETUP_NANOSLEEP; -} - -static void -fn2 (void) -{ - crumbs[next_slot++] = '2'; - atexit (fn1); - SETUP_NANOSLEEP; -} - -static void -fn3 (void) -{ - crumbs[next_slot++] = '3'; - atexit (fn2); - atexit (fn0); - SETUP_NANOSLEEP; -} - -static void -fn_final (void) -{ - TEST_COMPARE_STRING (crumbs, expected); - exit_with_flush (0); -} - -_Noreturn static void -child (void) -{ - enum { nthreads = 8 }; - - xpthread_barrier_init (&barrier, NULL, nthreads + 1); - - pthread_t thr[nthreads]; - for (int i = 0; i < nthreads; i++) - thr[i] = xpthread_create (NULL, tf, NULL); - - xpthread_barrier_wait (&barrier); - - for (int i = 0; i < nthreads; i++) - { - pthread_join (thr[i], NULL); - /* It should not be reached, it means that thread did not exit for - some reason. */ - support_record_failure (); - } - - exit (2); -} - -static int -do_test (void) -{ - /* Register a large number of handler that will trigger a heap allocation - for the handle state. On exit, each block will be freed after the - handle is processed. */ - int slots_remaining = MAX_atexit; - - /* Register this first so it can verify expected order of the rest. */ - atexit (fn_final); --slots_remaining; - - TEST_VERIFY_EXIT (atexit (fn1) == 0); --slots_remaining; - TEST_VERIFY_EXIT (atexit (fn3) == 0); --slots_remaining; - TEST_VERIFY_EXIT (atexit (fn1) == 0); --slots_remaining; - TEST_VERIFY_EXIT (atexit (fn2) == 0); --slots_remaining; - TEST_VERIFY_EXIT (atexit (fn1) == 0); --slots_remaining; - TEST_VERIFY_EXIT (atexit (fn3) == 0); --slots_remaining; - - while (slots_remaining > 0) - { - TEST_VERIFY_EXIT (atexit (fn0) == 0); --slots_remaining; - } - - pid_t pid = xfork (); - if (pid != 0) - { - int status; - xwaitpid (pid, &status, 0); - TEST_VERIFY (WIFEXITED (status)); - } - else - child (); - - return 0; -} - -#include +#include "tst-concurrent-exit-skeleton.c" diff --git a/stdlib/tst-concurrent-quick_exit.c b/stdlib/tst-concurrent-quick_exit.c new file mode 100644 index 0000000000..3f321668d6 --- /dev/null +++ b/stdlib/tst-concurrent-quick_exit.c @@ -0,0 +1,22 @@ +/* Check if quick_exit can be called concurrently by multiple threads. + Copyright (C) 2024 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#define EXIT(__r) quick_exit (__r) +#define ATEXIT(__f) at_quick_exit (__f) + +#include "tst-concurrent-exit-skeleton.c"