From patchwork Wed Jul 25 13:45:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 10544027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D033112B for ; Wed, 25 Jul 2018 13:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AC6F2A01C for ; Wed, 25 Jul 2018 13:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DD8026247; Wed, 25 Jul 2018 13:45:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1B8602A01C for ; Wed, 25 Jul 2018 13:45:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=F0C13SELkCG7Ko0xgWskeSSmd3w6Wvc+DiAWtjoRKto=; b=ON0 z08+J6bPCZIa5Dy7Al5QaGGwkrDk+8J7ggck2FgLCCXD5s244IWz9g61j/6oD0dbFLyQAxvwnKoN4 Nuq7pquIuFVgrgpu/h0cqhSK5VcXhMdwHCN4H7vBTPi6NFOkoq9cWzl7+08SAwC2vkCa7tyxfOYIg M+aIYeiozx+dm/BIaCobp+7QZ6ZeaLb27MhYwJgiB2vM6/0vdFYH7m4/9B4qX8EqZ7TAp1s2EkpKK a906KIqXH5+TQTkAFt3EmUYOJOQc612gFLAOaXTBUeiwHdfv2967FuGEjcCvJcO9Pmzu2OefLRR56 WN+DZsYTmCH+6TuJ+cJjk1L8jTQ3AyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiK6b-00026Z-Uy; Wed, 25 Jul 2018 13:45:29 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fiK6Z-0001tx-Pa for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2018 13:45:29 +0000 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 7DF2B15A2; Wed, 25 Jul 2018 06:45:17 -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 5044A3F6A8; Wed, 25 Jul 2018 06:45:17 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 48CDA1AE0851; Wed, 25 Jul 2018 14:45:17 +0100 (BST) From: Will Deacon To: linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Don't use SIGMINSTKSZ when enforcing alternative signal stack size for compat tasks Date: Wed, 25 Jul 2018 14:45:10 +0100 Message-Id: <1532526312-26993-1-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180725_064527_861878_0E3526E5 X-CRM114-Status: GOOD ( 10.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, Will Deacon , oleg@redhat.com, linux@dominikbrodowski.net, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, steve.mcintyre@arm.com, dave.martin@arm.com, linux-arm-kernel@lists.infradead.org, ebiederm@xmission.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, 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(-)