From patchwork Wed Sep 5 14:34:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 146001 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5014695ljw; Wed, 5 Sep 2018 07:34:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZysc3/AePH5V3vVQMRv8Fqdgz/T++9LDlTDY/DTG+HRATiBMymXyGIsy/hN5izNeQ/k3in X-Received: by 2002:a63:1125:: with SMTP id g37-v6mr22240192pgl.187.1536158079987; Wed, 05 Sep 2018 07:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536158079; cv=none; d=google.com; s=arc-20160816; b=MLSdaYCfQDlZXOw6sJUXUO6W+7tyv09mCHtScY48Vx2R8i3lS4nI0E66hCIRIuYvS4 2JVs8Un4Sv6d522BTATkz7AIWrv7TalW6g/PIWKxC0gZrp0WC1rTc05pQNHeMUU8sZhu dy0+qhEF0rF+qa0u1tj10fmoZ9M3J4bXqEgSKSf81jgH04DML9Bz7tMTWCQrKG5ApAE2 DxKhx3vBNQywsndTVMQlknt611oGzJ7iqPnZdpV56EeFodOw4tTJRF+R7uyGRm+81Bnl +aNePyRr03hdGKZvExWtDvnJzUxMblw41qtMhIZxuvDdzCfsyX6EAT1KA7MWPCILo5qD NW0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=yjCoTUycYfY1ZIqwU1LKG2zfHEzw0hU/9/VVhEvEo6c=; b=xlbHwNflaLfFmEKbOiCrUycfASDK20FchMEdkZvKF/nt3sNAi81NyY7F9xQp+i8wx4 GXJoK+7wXf8/umodOfp0hha2IyFAa78gDNz07/2fNON6wJ34HEKKkQELeIY7qSNIZjwJ dAkeewqUumUnAV8JAtPNVQzfZ5DVoRKNeLqIjshyCLMnnxhLaUuVeZfwUjPYiRTWlwE4 1Ydge4xK+fQWMz8yQS2nCX/HgMxKWJRgavSZG2cp8gVVwKxbwMaFfiA44TilJcGcXXAR jVbGokfJN9MWcN5njXwXrvRqoP+ilWYjJGafZAmfMkIEpWyuyiuRV1Ebu/2Ozmok/55y tucA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z127-v6si2159256pgz.370.2018.09.05.07.34.39; Wed, 05 Sep 2018 07:34:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727729AbeIETFE (ORCPT + 32 others); Wed, 5 Sep 2018 15:05:04 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbeIETFE (ORCPT ); Wed, 5 Sep 2018 15:05:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9875280D; Wed, 5 Sep 2018 07:34:36 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 67A343F575; Wed, 5 Sep 2018 07:34:36 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id CB7A51AE3546; Wed, 5 Sep 2018 15:34:50 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@dominikbrodowski.net, ebiederm@xmission.com, akpm@linux-foundation.org, viro@zeniv.linux.org.uk, oleg@redhat.com, steve.mcintyre@arm.com, dave.martin@arm.com, Will Deacon Subject: [RESEND PATCH 0/2] Don't use SIGMINSTKSZ when enforcing alternative signal stack size for compat tasks Date: Wed, 5 Sep 2018 15:34:41 +0100 Message-Id: <1536158083-30166-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This is a resend of: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/593559.html now based on 4.19-rc2. The Debian folks have observed a failure in the 32-bit arm glibc testsuite when running under a 64-bit kernel. They tracked this down to sigaltstack(2) enforcing the alternative signal stack to be at least SIGMINSTKSZ bytes, which is higher for native arm64 tasks than compat 32-bit tasks. These patches resolve the issue by allowing an architecture to define COMPAT_SIGMINSTKSZ for compat tasks, which is then used by the sigaltstack checking code. Feedback welcome, Will --->8 Will Deacon (2): signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ arch/arm64/include/asm/compat.h | 1 + include/linux/compat.h | 3 +++ kernel/signal.c | 14 +++++++++----- 3 files changed, 13 insertions(+), 5 deletions(-) -- 2.1.4 Tested-by: Steve McIntyre <93sam@debian.org> Tested-by: Steve McIntyre <93sam@debian.org>