From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA682C4360F for ; Tue, 2 Apr 2019 14:31:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 961EC20857 for ; Tue, 2 Apr 2019 14:31:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="luPyrpbd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 961EC20857 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nBtE+osrJR/lM5tsxm5TouKEsFYNxGqfPc+cY1BvAR0=; b=luPyrpbdyu9IMG T/fcroi2WcMfQNEZtyoX3C5m2yqFJi2ojJOGQ2+dkdQ1gXt9JwJkwkIpyegMCdaER5glNsCWlOE0X gv6rE3xmFZfjKC0rkQRirxghJsizC/oCnfxxu/iUpcaMm82eLitBUrQxa/NVNBOktG7deviZZUuv1 y/pL71YTaC9qsKuEhDFioEVE3jch6PO8nEL/67KDmh35XIdOYCfvC+bzGNrzfjZCKlKjfSFcwl/gt XYq10RAlGP10OvIK7uNP9ZG8FdSWtTLISxyoJaKeCFAE2yCboaAXmz58XxfuGowit0J3IcNud9f4u ZAKIytJFccRLlCgelTsw==; 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 1hBKRy-0002ys-H6; Tue, 02 Apr 2019 14:31:42 +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 1hBKRv-0002yY-A5 for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 14:31:40 +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 D99A216A3; Tue, 2 Apr 2019 07:31:37 -0700 (PDT) Received: from mbp (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EA8513F721; Tue, 2 Apr 2019 07:31:36 -0700 (PDT) Date: Tue, 2 Apr 2019 15:31:34 +0100 From: Catalin Marinas To: Vincenzo Frascino Subject: Re: [PATCH v2 1/4] arm64: compat: Alloc separate pages for vectors and sigpage Message-ID: <20190402143134.7dlfj2vb5fwmfnfk@mbp> References: <20190402111304.20825-1-vincenzo.frascino@arm.com> <20190402111304.20825-2-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190402111304.20825-2-vincenzo.frascino@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_073139_349393_F021A928 X-CRM114-Status: GOOD ( 12.64 ) 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: Mark Rutland , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 02, 2019 at 12:13:01PM +0100, Vincenzo Frascino wrote: > In the current implementation AArch32 installs a special page called > "[vectors]" that contains sigreturn trampolines and kuser helpers, > and this is done at fixed address specified by the kuser helpers ABI. > > Having sigreturn trampolines and kuser helpers in the same page, makes > difficult to maintain compatibility with arm because it makes not > possible to disable kuser helpers. > > Address the problem creating separate pages for vectors and sigpage in > a similar fashion to what happens today on arm. > > Change as well the meaning of mm->context.vdso for AArch32 compat since > it now points to sigpage and not to vectors anymore in order to make > simpler the implementation of the signal handling (the address of > sigpage is randomized). > > Cc: Catalin Marinas > Cc: Will Deacon > Signed-off-by: Vincenzo Frascino Reviewed-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel