From patchwork Fri May 13 10:51:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 9090371 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 43CA79F1C1 for ; Fri, 13 May 2016 10:57:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55F7B2021A for ; Fri, 13 May 2016 10:57:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5E48F2012D for ; Fri, 13 May 2016 10:57:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1AlX-0003an-GU; Fri, 13 May 2016 10:56:19 +0000 Received: from mail-bl2on0096.outbound.protection.outlook.com ([65.55.169.96] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b1AlV-0003ZY-2m for linux-arm-kernel@lists.infradead.org; Fri, 13 May 2016 10:56:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vtiRKcAYwI1/wtTNR71VMJMMFkFvHiTWIJv65achbP4=; b=xfJNRe5+vax7MeXDijmdRe+nbzJ/eYBtBPoC9pPJEO/lwzF5383IPSoFnGMUEk2F3UzJvQ171q1Ot2dM+TpQInew+kbOIDjdx4K55G/Le4XjImyE1r4ACnGL90AmPsshksn7ApukNDg9SO3/WVvAqYELrRUavfDZFiSYEuoIqMM= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost (95.143.213.121) by BN4PR07MB2228.namprd07.prod.outlook.com (10.164.63.146) with Microsoft SMTP Server (TLS) id 15.1.492.11; Fri, 13 May 2016 10:55:52 +0000 Date: Fri, 13 May 2016 13:51:15 +0300 From: Yury Norov To: Catalin Marinas Subject: Re: [RFC6 PATCH v6 00/21] ILP32 for ARM64 Message-ID: <20160513105115.GA16672@yury-N73SV> References: <1459894127-17698-1-git-send-email-ynorov@caviumnetworks.com> <20160512002000.GA30997@yury-N73SV> <20160512133533.GF11226@e104818-lin.cambridge.arm.com> <20160512134431.GB30205@yury-N73SV> <20160512140734.GG11226@e104818-lin.cambridge.arm.com> <20160512142457.GC30205@yury-N73SV> <20160512152805.GJ11226@e104818-lin.cambridge.arm.com> <57358C2B.1010106@huawei.com> <20160513092802.GA13400@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160513092802.GA13400@localhost.localdomain> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM3PR03CA044.eurprd03.prod.outlook.com (10.141.191.172) To BN4PR07MB2228.namprd07.prod.outlook.com (10.164.63.146) X-MS-Office365-Filtering-Correlation-Id: 3654fd3c-3c07-4d98-499c-08d37b1d26c4 X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2228; 2:HDNWMANoLZv6MSoljv37WYi1dnjU7w6b7SYPbJ3QNM34z0sLATyo1QzioBcmvCMa0e85Xi6MWzGSMYvC4i+mfEg6lg11HnRIvzVWoQa2zNhRMV+XlCGS2DDDw1V8QKOdj2oTrXb5iZy9dO4YoCW2t4RymyVnR+BQZoGZAedbf/8AQ2MbTMUluhPoS1rfPt1r; 3:3l8psITWeRp7VTTlccM30z1/b0a2zAsl9qA7Bav6blxSM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3LIu/wekUbBUw+K0h87DeEJUkMlkG9B4UwMd5CvpG/+tGpt+P4DeJwImN0IXKZtty7/w8eYtQj9tkYKYWV8+kcLZiMzSlgv1OsuTO+QuDegr5AKmIDXKn5LJjD3NCVl/xZGQH9qYe56e8nyfEJd0BPUrltK988BOQC6SeJbFRFQus= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BN4PR07MB2228; BCL:0; PCL:0; RULEID:; SRVR:BN4PR07MB2228; X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2228; 4:cHtWEIbptn4b7GD1hWEoKpDLjUjib8KVqxdltDB/Xu2CkFxNJKLfwTj0NS1NolWs7sHFvxd7XTQq3+vMgMKrFYGXctNb3pFOKXPRhye/969e/P/sH1b8L1B+mdhNMiqSgLFD20o0+bRKqUwvj/SW9HTlapUa+DpHy/B18SddPwMfG7xbPtzzTQ49DiODH39omOT0oGEZ0b7QHlPmVE6D8jmwlbiuutv8zIXltbDcBQQbpzilHSSaCvmfpLBf3fcsQtxyTc80u7CsWBDHubpVOXO3vlONsyJf9IZBPVig1jIX+ul0yP9Cd2tVfEwBRVQbTaZy7M6Y+g4LEhrEnzWKyRBbkeJSESvaWUhmKsTnpwLlZWyq3EhpIaIiqXJRj72k X-Forefront-PRVS: 0941B96580 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(24454002)(33716001)(19580395003)(15975445007)(77096005)(92566002)(19580405001)(6116002)(3846002)(575784001)(586003)(5008740100001)(23726003)(97756001)(2950100001)(83506001)(93886004)(1076002)(5004730100002)(76176999)(54356999)(50986999)(46406003)(9686002)(81166006)(8676002)(50466002)(2906002)(4326007)(4001350100001)(66066001)(1720100001)(76506005)(47776003)(110136002)(189998001)(33656002)(42186005); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR07MB2228; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN4PR07MB2228; 23:KDRa/vYtNndYVfy2Q4ed5QvqqCmL2/2gA9lm9u0kZ?= =?us-ascii?Q?mVEvprC+8LgiVRYPQJo9q+7F2/9oBqvwimI+jG0k9ybQmhREB0D9WHNAKksV?= =?us-ascii?Q?AwSCFAfRgdII8N3SNORl7NI0fzP5tCzdRYcom+TXMItDI4Uw1t/a/t1oSnJu?= =?us-ascii?Q?OhDO5K+xJKw6OEyVq1kVPg1qQidwvIiX6jGK/t8wzLoewUEullkEMrjEySow?= =?us-ascii?Q?Jiyd5K5hCiHpYUzzfP16DL3WFr2Vps6bH/RNulKcmZEERUtPMafXgmM5UZpD?= =?us-ascii?Q?CSLGvXvx27MuuEBDixEqCnnxKIFbs4TnYzkrZitG82Saoz17Igh7u8aib/AC?= =?us-ascii?Q?YqDOKWa1a4PdU7kCxLqgnKOit49Gxp1G0lpWRMvf9JUBMzq1TjA5vPhuZ0FZ?= =?us-ascii?Q?R4nohwxSxN/4xF9XpDefncXcAWtOpfhfkajip8CSEWcQfYaxp++m5ebpc9uz?= =?us-ascii?Q?QRRBHItbrq26zYrl1x55SeoS7YGfcEhxZ2+j4doDwsNoxHnzLnbeohE/efkR?= =?us-ascii?Q?QATm2TG7l2cs9kd0dE63xIJAv71erxVK7Qvz3kMV2JnxjDFYcqotXKxFbhJG?= =?us-ascii?Q?2kVfRmzOvG9pAnLDxbS2Tj6nhSXwvV1LbxN70RWHLmLDVIE0kz9NLvZ8Z6Qp?= =?us-ascii?Q?at3s8iwJ5Lz1zg7EWZoQpEES8p8fTANajgOFyTkjpl/Lw0vgkLYen2Z2d0yr?= =?us-ascii?Q?BtVbjL4155ZC0nkeQ3WgUwLfUEw0OGGfKV98lPdmzgv4FWWHvr25Tq0x8ofO?= =?us-ascii?Q?YmUa9CbIQtZFIS2780z52Ba6TwkEk9+ieJ8ofy0flaeWNFKNyljfRzMXRr2T?= =?us-ascii?Q?DuGmISSD2yfdFlIRH+dlPDnOFNx/nfCoXNidsN3vNEOzbn54SoKlt9dwJp/a?= =?us-ascii?Q?k0PTKL8brLHTxAs1xhsEYb/x+hZebOcVkpWw9IzrMEfdA9GxgHwoCoSwz5JV?= =?us-ascii?Q?Px/6egydY9VbGyOourm6ixTtO67ZrilDFATrfNkEhulGhwwnT+gGxcV5aVIt?= =?us-ascii?Q?APUOb1ab9MT8vDhIP0ElQcRHRl/IMFb2gMt8w9Y9YFs3H2w/xcx+8MdvsfwK?= =?us-ascii?Q?K0fWt41jbd81UOh2MTKztlTezwYRUoXQWg4o2nW/afEmdHB+w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2228; 5:T/aZULvr5rX1SnzgSGop+QkxL6/J24ZqTPz3mm25TTTGXBDL9xNPyCtIo7uTuziUadBDFZEVMlaeKAdz7BMZTJo1sl48z3JsuvAaRPRNIwUl4UH9jFNSIYWZhG8KzxA1iVM0hzffu3T76M8Qmo/KJg==; 24:RRw4KH7RT+5XgClIqix8tLYv/DbZ9o+FfohjNg8wMtoLjF7exqT6YQTN+H1zWV5d+hwS0dDBEOn4JU31EqzyuqgewSqPQioQczFAxkiAiMw=; 7:Ko/Qzg55a3P1WJZJwr8k+pEJ1HaXOJMwAMEijKPBfiMJSc99mgi1GlIBNVBStFdQnCa3U3ti4LNylCA+6C8RsSs2e05z0JwLFVcyixFo2qIGOv5jFhZhnJd+16sGvmzOnUzAoLXI0ZSjGnMzQQguKyzKbZiZGwgiwESeINexb2yO/bGd43bT4X6kbBIgPrrq SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2016 10:55:52.1069 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2228 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160513_035617_370855_A3458DBD X-CRM114-Status: GOOD ( 13.91 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, Kefeng Wang , arnd@arndb.de, pinskia@gmail.com, Prasun.Kapoor@caviumnetworks.com, Nathan_Lynch@mentor.com, linux-doc@vger.kernel.org, heiko.carstens@de.ibm.com, linux-kernel@vger.kernel.org, agraf@suse.de, klimov.linux@gmail.com, broonie@kernel.org, "Zhangjian \(Bamvor\)" , joseph@codesourcery.com, schwab@suse.de, schwidefsky@de.ibm.com, linux-arm-kernel@lists.infradead.org, christoph.muellner@theobroma-systems.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Fri, May 13, 2016 at 09:28:03AM +0000, Catalin Marinas wrote: > > The discussion is mainly around whether USER_DS for 32-bit compat apps > should be the same as USER_DS for native 32-bit apps. Even for native > 32-bit kernels, we don't use STACK_TOP as addr_limit. A read/write from > 0xffffffff would fail in both cases anyway. I think the LTP test doesn't > even try to access such memory but only to probe the range validity (I > haven't managed to build the latest LTP yet). This fix lets me build it (on top of 7b3ef3b0b) Of course, it's not 'official'. :) --- testcases/kernel/syscalls/fstatat/fstatat01.c | 1 + testcases/kernel/syscalls/preadv/preadv.h | 1 + testcases/kernel/syscalls/pwritev/pwritev.h | 1 + testcases/kernel/syscalls/request_key/Makefile | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/fstatat/fstatat01.c b/testcases/kernel/syscalls/fstatat/fstatat01.c index 128f6dd..6e23c9e 100644 --- a/testcases/kernel/syscalls/fstatat/fstatat01.c +++ b/testcases/kernel/syscalls/fstatat/fstatat01.c @@ -59,6 +59,7 @@ static const char *filenames[TEST_CASES]; static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0 }; static const int flags[] = { 0, 0, 0, 0, 9999, 0 }; +#define HAVE_FSTATAT #if !defined(HAVE_FSTATAT) #if (__NR_fstatat64 > 0) int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags) diff --git a/testcases/kernel/syscalls/preadv/preadv.h b/testcases/kernel/syscalls/preadv/preadv.h index f3ac30d..b001389 100644 --- a/testcases/kernel/syscalls/preadv/preadv.h +++ b/testcases/kernel/syscalls/preadv/preadv.h @@ -21,6 +21,7 @@ #include "config.h" #include "linux_syscall_numbers.h" +#define HAVE_PREADV #if !defined(HAVE_PREADV) int preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset) { diff --git a/testcases/kernel/syscalls/pwritev/pwritev.h b/testcases/kernel/syscalls/pwritev/pwritev.h index ae9d999..2a4d188 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev.h +++ b/testcases/kernel/syscalls/pwritev/pwritev.h @@ -21,6 +21,7 @@ #include "config.h" #include "linux_syscall_numbers.h" +#define HAVE_PWRITEV #if !defined(HAVE_PWRITEV) int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset) { diff --git a/testcases/kernel/syscalls/request_key/Makefile b/testcases/kernel/syscalls/request_key/Makefile index 9add429..2e8a37c 100644 --- a/testcases/kernel/syscalls/request_key/Makefile +++ b/testcases/kernel/syscalls/request_key/Makefile @@ -19,6 +19,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDLIBS += $(KEYUTILS_LIBS) +LDLIBS += $(lkeyutils) include $(top_srcdir)/include/mk/generic_leaf_target.mk