From patchwork Tue Jun 15 03:07:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 460481 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3860763jae; Mon, 14 Jun 2021 20:09:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzEuAnLI5y01NzpdqJ+L7wcQKXoqXM8iVrCZBCEHCwbiwK3qCHHYSlmqzVLf/xGTETiAy0 X-Received: by 2002:a67:f8cc:: with SMTP id c12mr2893312vsp.37.1623726548143; Mon, 14 Jun 2021 20:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623726548; cv=none; d=google.com; s=arc-20160816; b=I6ipyivsvoomLr69BYhoL+/2Jg7zu/pCACsfOgeLiqcY2VXwI2W7d8Ttr9KdPzCaLE Cx51px+3qSynXzSbC0T955oI/r9gaoajghiqiy87tAYrCQkXCKeBKdXc2abY34SXTfgr 5RnOecbx7PGpAUINL1QP8okedfKTG9t2rqLCAw/u9kzg2nOnaTJn7uvE6npcC2TCxgsK 2aAWJrwQr4kD5NvQD2gf434+m3Ymyvk/Jp73qBni0JfhipPgGr0leKNSqVO43NXplyz0 JOYhGTdAwBGmqOPIEviKeNEVIRNP//+wq1W3XpnWldr2qe6ZmSrC8eJwhZ2iTvW1+kYc QtlQ== 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=m+ONvOy6BybEkcrsOQ5EfyN70Y/8S9L0jNeLEmKpXlU=; b=RLuNqjeyc4VmPBw2E498C0t190y7hGePBreHYMkFMh54INPktoxdHM2MSrukOCjP4k rAV2SovuaSyUgLsMeB/jQd8PzDvo8UUcRm4HVjUxfHiCWO4MZtW/9lemCEkRjkueEYHl 6cOqvmYD1Nlfi34hBFrAazghp54/C4QxhQPUjDIePL0HXddaPWSEzYOIhtOgz89Jb25f BN7fQV9bqX4K/aLpjTjV6ZTLPCC+7jNqJXsNCRvy9IAj10i2s7T5HcKevT9pZLsAZaWS pSwfa7ignH6pJN/H8SrfyN21Ogw3siwx3a/xX+GG1nQ2YeGFlMhDnKKlZZiXp6IyWO4J vOCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=GoGV8yd2; 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=fail (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 q14si8054462vsh.160.2021.06.14.20.09.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jun 2021 20:09:08 -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=fail header.i=@linaro.org header.s=google header.b=GoGV8yd2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lszRr-00069c-Fn for patch@linaro.org; Mon, 14 Jun 2021 23:09:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lszQc-0004YY-Pw for qemu-devel@nongnu.org; Mon, 14 Jun 2021 23:07:50 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:40789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lszQa-000876-SW for qemu-devel@nongnu.org; Mon, 14 Jun 2021 23:07:50 -0400 Received: by mail-pl1-x62a.google.com with SMTP id e7so7701103plj.7 for ; Mon, 14 Jun 2021 20:07:47 -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=m+ONvOy6BybEkcrsOQ5EfyN70Y/8S9L0jNeLEmKpXlU=; b=GoGV8yd2eCg4urI5zzXH3jsF4br8f8AF18x2Oj9he+76WAEA+4jPOkM2R+opEXs+qh XM0NHdi+/rz3pDLb+fZTfv0gMCLtYpzJMcHmdTs+TRHMrnIlPZnqZvr3KHCh70Q0kaN3 dB8OHjUGHmP/riR48bWR42g5ZM25XqrOwiQGP1trg5aCounqCV1ekUjFCScuwFi5jd8T tucslrhy0QApVxy3TL6cpJa1NfHNEGQRnqHiejr7Yp6HU8YTHl4RhAB9ZBMLGWnqcBzv 4YejpM18QJQmsrBbsM7xKgXS0Z13CrHrozKpSNG5ddPyhV426JyFnBmayk6FO8jDXgI2 SWpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m+ONvOy6BybEkcrsOQ5EfyN70Y/8S9L0jNeLEmKpXlU=; b=lhC8F6yc5WPIILX3kIf0JhZ8/8DBA87RL9R7n0V79ijun+ca57upAhu/qO3ZNjnGDn /CWoH+cMm6PMxqySJYH7+uij5EPeSgheaPNe4Z/jquMlnhghX3i7XP4S42OFykRfTDvr AkXqbn49EhQYxntlbEvdqK9w+5qBNj/vrQL+86Mm9levANKycvRp6C3cB+2UO6dEKnB9 XJLwT4ALaZcq0w4tHCOWygSz90ipyazbZFHjcE5vwrJ4UUChAkDhlMVF1wUkAuJ42zmD hihvfo0rtgHj30ui8uTf8jLNLJZocof+w/K9DTTvWXGHZb2e05xnxGii/PVj5UQ/yB/N 9O3Q== X-Gm-Message-State: AOAM530St+QNKXP3Idi00tXp3KzPkf578pZp+EnJHKk0GI8gXioGqOpO KFwvWQqgLXEf7ngpdinrMw0j0+GeqONrIg== X-Received: by 2002:a17:902:7b8a:b029:109:7bdb:ed9 with SMTP id w10-20020a1709027b8ab02901097bdb0ed9mr2102885pll.73.1623726466664; Mon, 14 Jun 2021 20:07:46 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id w71sm7554666pfc.164.2021.06.14.20.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 20:07:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/5] linux-user/s390x: Fix psw.mask handling in signals Date: Mon, 14 Jun 2021 20:07:39 -0700 Message-Id: <20210615030744.1252385-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ruixin.bao@ibm.com, jonathan.albrecht@linux.vnet.ibm.com, cohuck@redhat.com, qemu-s390x@nongnu.org, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The PSW_MASK_CC component of psw.mask was not handled properly in the creation or restoration of signal frames. r~ Richard Henderson (5): target/s390x: Expose load_psw and get_psw_mask to cpu.h target/s390x: Do not modify cpu state in s390_cpu_get_psw_mask target/s390x: Improve s390_cpu_dump_state vs cc_op target/s390x: Use s390_cpu_{set_psw,get_psw_mask} in gdbstub linux-user/s390x: Save and restore psw.mask properly target/s390x/cpu.h | 3 ++ target/s390x/internal.h | 5 -- linux-user/s390x/signal.c | 37 ++++++++++++-- target/s390x/cc_helper.c | 2 +- target/s390x/excp_helper.c | 28 +++++----- target/s390x/gdbstub.c | 15 +----- target/s390x/helper.c | 101 ++++++++++++++++++++----------------- target/s390x/sigp.c | 3 +- 8 files changed, 110 insertions(+), 84 deletions(-) -- 2.25.1