From patchwork Tue Oct 1 17:56:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juerg Haefliger X-Patchwork-Id: 1170121 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46jRnF1VFcz9sQn; Wed, 2 Oct 2019 03:57:36 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iFMOw-0000TF-Vs; Tue, 01 Oct 2019 17:57:30 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iFMOu-0000Sa-0B for kernel-team@lists.ubuntu.com; Tue, 01 Oct 2019 17:57:28 +0000 Received: from mail-ed1-f69.google.com ([209.85.208.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iFMOt-0000W3-RR for kernel-team@lists.ubuntu.com; Tue, 01 Oct 2019 17:57:27 +0000 Received: by mail-ed1-f69.google.com with SMTP id c23so9157919edb.14 for ; Tue, 01 Oct 2019 10:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rhhY9mQd8d9xC9pWufYcjUcOBsYZwwgZbxG/ztoEF1M=; b=j0ZxGEHolcDsNphWcUjDOMX2YTmtAqUOapM5THGxEXgNzjIgZPQ2wcCY+X92Km4blX r+9xtBuxNYERuZVL6Jbc15PZrtSxlMQbkRmJfrCoJVwvsDj1nCXNsMerv2SJH8M8zM+1 bA16fIB6xEfIVBGwzdTF+bnLnyzPBFchfJ7XT1FyGNoOZbdpEdHVz+RzYAkv4eJRDZMH FvTsNSlTMLV/RQJgUfFzAsCN34JhZv5OH8ilI03MlGRFMngh2qrwjUiYnOXPd2nNjRcr ossM4u8qUzpjMtw0fJjlEHOKaEF30EmKWPBQgkNfeAvOtC6qGNNO8jja4fO0CPjlJvic ukgw== X-Gm-Message-State: APjAAAVSatxIP5F337ohwa10B+m9vuR69XE+SVOC8NJt1kKsXlndkbxX P6b/COs5zySM4ppdQS7MMiGxhVhLgboEamMRz9PcFJpcGW+IxSvJRGKhNUIf+DDtfcTQbNSJ6tD dgxEnqS1sEFHtARGQUTy2vzljUT2tqobxz0UPelckMg== X-Received: by 2002:a50:d0d5:: with SMTP id g21mr27014187edf.204.1569952647406; Tue, 01 Oct 2019 10:57:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyIBqxAN3RpHBhAAnSFnzHAdWoMeUcCyEIv/5+S0C0eaHupREItk7BiPXzbQ8sU7Cnh8cvHLg== X-Received: by 2002:a50:d0d5:: with SMTP id g21mr27014182edf.204.1569952647240; Tue, 01 Oct 2019 10:57:27 -0700 (PDT) Received: from localhost.localdomain ([194.191.228.147]) by smtp.gmail.com with ESMTPSA id b15sm3274901edf.24.2019.10.01.10.57.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2019 10:57:26 -0700 (PDT) From: Juerg Haefliger X-Google-Original-From: Juerg Haefliger To: kernel-team@lists.ubuntu.com Subject: [SRU][Xenial][PATCH 2/2] arm64: compat: Provide definition for COMPAT_SIGMINSTKSZ Date: Tue, 1 Oct 2019 19:56:52 +0200 Message-Id: <20191001175652.6486-3-juergh@canonical.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191001175652.6486-1-juergh@canonical.com> References: <20191001175652.6486-1-juergh@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Will Deacon https://bugs.launchpad.net/bugs/1844155 arch/arm/ defines a SIGMINSTKSZ of 2k, so we should use the same value for compat tasks. Cc: Arnd Bergmann Cc: Dominik Brodowski Cc: "Eric W. Biederman" Cc: Andrew Morton Cc: Al Viro Cc: Oleg Nesterov Reviewed-by: Dave Martin Reported-by: Steve McIntyre Tested-by: Steve McIntyre <93sam@debian.org> Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas (cherry picked from commit 24951465cbd279f60b1fdc2421b3694405bcff42) Signed-off-by: Juerg Haefliger --- arch/arm64/include/asm/compat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index eb8432bb82b8..b69e27152ea5 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -234,6 +234,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr) } #define compat_user_stack_pointer() (user_stack_pointer(task_pt_regs(current))) +#define COMPAT_MINSIGSTKSZ 2048 static inline void __user *arch_compat_alloc_user_space(long len) {