From patchwork Mon May 15 08:33:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 55763 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 275D13853812 for ; Mon, 15 May 2023 08:33:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 275D13853812 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684139636; bh=/wARBADlKVI7pqqybZKtKEneKt5GixLM9MJP9nhnxcY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=P4IuK61IHoIzL1mGFOfPjYJBcOZgFzzt7SHYebgaYwFGeYngWrEBg1FhUd8F7e6J7 PetRYGZR5cEcmTUhGOCnK1E03snWK3jokS3M1Y1vfImMI/DXEM18KOf42V6RrsgiJm AGcq9Hr5R7UzRy3o9ph5CU8yVtuxDb8LwqAbTTLI= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 369233857001 for ; Mon, 15 May 2023 08:33:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 369233857001 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4f2510b2b98so10159468e87.3 for ; Mon, 15 May 2023 01:33:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684139605; x=1686731605; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/wARBADlKVI7pqqybZKtKEneKt5GixLM9MJP9nhnxcY=; b=iWb6TGpgWcruk/moFkWsH/WAjQGa3xHQrnQJgxwdCIVXPebXBo+qCnUOrj9vvHV3t9 NE1K4+H5ommOUvEwsZk4nlaVNLCS8zf9CcDh5aNVKD/FtXY8fltfm3HzxAyiPusDNMrJ SOyQ7e3HniHl17XQ7FTyQfqbkRlUgRaa3ih7xmHuRF+ZDQ8cRC/VafBJiSuuWK9IC5us L0axViwV0VQcpFgXO0YA4z6Fo8tGaLNLZSuEEppPY0zwC8olg+ipTd5GSDJuySe/TXt3 jMwa1DnbndymXPqjkTVdggXAD2pmpGT+5Z0zUuvG6UCPo1kmgk/g4G3l+snDBzdR3wGn xXIg== X-Gm-Message-State: AC+VfDx7Lo38VwKt6DZa31JL0fcZXnWCbDRv2FuYCWJlAg3ApH21IgL7 Kip0PnGCA9oc0YnGRpX7b0nTSu9FUwo= X-Google-Smtp-Source: ACHHUZ5hJ26D2AOH+M8JB4/FplIOJBsPXdawd9rgvIg50eynahTkIhBengjh1qLeMKrGySANMULsEw== X-Received: by 2002:a19:751a:0:b0:4f0:223e:7916 with SMTP id y26-20020a19751a000000b004f0223e7916mr5760079lfe.62.1684139605226; Mon, 15 May 2023 01:33:25 -0700 (PDT) Received: from surface-pro-6.. ([194.190.106.50]) by smtp.gmail.com with ESMTPSA id p3-20020a05651238c300b004f251e73fc5sm2510677lft.30.2023.05.15.01.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 01:33:24 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [PATCH 0/4] x86_64-gnu signal fixes Date: Mon, 15 May 2023 11:33:19 +0300 Message-Id: <20230515083323.1358039-1-bugaevc@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Hello, now that we got enough of the system running on x86_64-gnu, we can actually test the signal machinery. In fact we sort of *have to*, because /bin/sh receives SIGCHLD when a command completes, and wants to handle it. Suprisingly, most of the logic actually does just work! -- but several things were broken; and this patch series contains the fixes. With these patches (+ the thread setup fixes that I'll send as a separate series) I'm able to receive a signal, do all the trampoline and intr-rpc magic, run the handler, and sigreturn back into user code -- apparently successfully. Sergey