From patchwork Tue Mar 15 08:43:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 551429 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp3288421mag; Tue, 15 Mar 2022 02:22:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaW1PDIUzBTXzDhv/Dj6EQt04gFT0bXjds69TqviUr6hyDmS9jJ/83KAq/WMgM8EMDjrJ9 X-Received: by 2002:a37:6cd:0:b0:67b:118d:81e8 with SMTP id 196-20020a3706cd000000b0067b118d81e8mr17498769qkg.88.1647336139997; Tue, 15 Mar 2022 02:22:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647336139; cv=none; d=google.com; s=arc-20160816; b=EQPINV7W6ZXpxrih8V8GYK3vgUJyEQ8R7OTK+ChBPGg8L9joHl6kk/zLaB2rJp7oRR AVmnEvVQohlYucgmjGd6JryzM3B0ntfRAY1YJ98b9IknWfVCbIA5FHtuK1d8MrJtwhdy Hb67MDwI0jj6E2P1CtbwFX9JFXmuNjsGKeQ3IhNAVRIZlny6Q6ZGab83rgI8P7B9wruz hjW/7/mYKu0szXOKepOv2fTTS/BFVJbj79pgIsTNT3T0uDruAF1UhPjt9uB9pR8V4v4/ nZUDes1uWQ/MrMgHbuB7spxzIyt0++rjBj/PdvtaaggbJbxXqUGf3cYSlq5DsJkzK0On DNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=GQcXlmS9K62wJuAQUabURuXRQcJ5mQNx97YBkJ7y2uE=; b=SBwaIjGdjCTstCPHTaHlM/i+0AvQh6LgSH/hyXLqPcJfLJ/u6G2d7C0F2z+CiOCKk/ nw9GULWhMgjl2pR5TeXb8tZ9SBBxay0cJcrL6W4is6SJgwqenKXNFXVhgpuEnYOGKoSI v7qYy4vjE6gajDG1vmnyWgDH4TANB7LaxG0ARHAInW8xXXzmERxyaqcAM2JGVa3fMH+m RPSvl0BeG+R5i5Fb7RrH6H5olYMhj8xsJdHtcUFV7ekKJoIb0GZJ+48BwXefRmps3pVm EUSnvlLOxf6U2xABpaRGRBsG5Q0MaXlA/APhy1lzh7LytoraRtsKca4tcpVo61CJS1OI hQow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zBu1VBAD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h2-20020ac87142000000b002e0b7b8b018si7638305qtp.0.2022.03.15.02.22.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Mar 2022 02:22:19 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zBu1VBAD; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45862 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nU3Nj-0001E0-JC for patch@linaro.org; Tue, 15 Mar 2022 05:22:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nU2ls-0008Pj-Is for qemu-devel@nongnu.org; Tue, 15 Mar 2022 04:43:13 -0400 Received: from [2607:f8b0:4864:20::102d] (port=43635 helo=mail-pj1-x102d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nU2lr-00052S-6f for qemu-devel@nongnu.org; Tue, 15 Mar 2022 04:43:12 -0400 Received: by mail-pj1-x102d.google.com with SMTP id z12-20020a17090ad78c00b001bf022b69d6so1781523pju.2 for ; Tue, 15 Mar 2022 01:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GQcXlmS9K62wJuAQUabURuXRQcJ5mQNx97YBkJ7y2uE=; b=zBu1VBADxbp71pL8DbGmz21n0w4+PeKgbsnAqUctk/fKKiwrr1tXPThvQJTjrccOGV gggBs+PGIsqTGkMxqEhYJbYJFM7N4V1WJqwqhJJCduNBS4xkzBg4Iv97h+252grnAxUe 8HJDySmAq7BlcCRA4PJPyGjtNfFVy71EnEi+mcQ79zW8zgJ3mZCq+Ba7TczG91DlT5BW EUnZtkvQKAx45ABeboPmHwX6O81Yfc7ZOU0lmwL2w71B1G2Tt9y0AEDgcN6DYe3PWohS lBt78E2faQZHCLZYHqoiFPVz4+dBpPTVU4fkuItadiGDYCSHBz2NtmyZuw1rPSsRYT9k He4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GQcXlmS9K62wJuAQUabURuXRQcJ5mQNx97YBkJ7y2uE=; b=xEkm3CwHsY0j56whQQLYN4DWocf2MNKsrZet0BtPQZ89ikZO8LZd7E4FvPn9pyAzc0 KQ4hsNhz/HZDJprfd+8M2CaB3tDUbi4GeGcrdSzNgn4gkWxMLjoNS8u21nyFfv+JiLf8 e/gaQmYpOqXkDbHc34euiLtznGDMP30AdB/MgBf1kWWUm/hEOrMUNqYIzNN3aL2gxcAr BrQBNFwZBeArlJD/FdPiCV6kylqItongqOV3IWsdJkwyGUCMBPgGTSwPiSbMdTINCuJ6 3i3SbmYpGiRYpGMMl5i3EvlBUWayBkjGnXAtqpSxidJVz7g1e8w2+f5tOQoPTznQtXuX adgA== X-Gm-Message-State: AOAM530YtvTuhOB2z2nUm83rM4zaKY4eLxPF2Pe+PDEDhcoY4zDhWHov 1z0Rs0bQ39geEZequWZPxLZLSbo4eb7Z2w== X-Received: by 2002:a17:902:6ac7:b0:150:24d6:b2ee with SMTP id i7-20020a1709026ac700b0015024d6b2eemr27473706plt.168.1647333789566; Tue, 15 Mar 2022 01:43:09 -0700 (PDT) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id ob13-20020a17090b390d00b001becfd7c6f3sm2233762pjb.27.2022.03.15.01.43.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 01:43:09 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/5] linux-user: signal mask fixes for pselect et al Date: Tue, 15 Mar 2022 01:43:03 -0700 Message-Id: <20220315084308.433109-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102d.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Split out some helpers from sigsuspend. Reuse them for pselect, epoll_pwait, ppoll. Fix an alpha buglet found on the way. r~ Richard Henderson (5): linux-user/alpha: Fix sigsuspend for big-endian hosts linux-user: Split out helpers for sigsuspend linux-user: Properly handle sigset arg to pselect linux-user: Properly handle sigset arg to epoll_pwait linux-user: Properly handle sigset arg to ppoll linux-user/signal-common.h | 26 ++++++++ linux-user/signal.c | 23 +++++++ linux-user/syscall.c | 119 ++++++++++++++----------------------- 3 files changed, 92 insertions(+), 76 deletions(-)