Received: by 10.223.185.111 with SMTP id b44csp64157wrg; Fri, 9 Mar 2018 00:58:45 -0800 (PST) X-Google-Smtp-Source: AG47ELuvIVvIl2X6D/Xr1u8LvXD1JdbuZdWeSb+6wkGKjSZ2Fpnu9TOgnxRgZznW5u+XHpAH1/Tm X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr26877384plb.77.1520585925299; Fri, 09 Mar 2018 00:58:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520585925; cv=none; d=google.com; s=arc-20160816; b=AjNpphLIqzcPCfO2FAJ4JOeKImmoHjaXhbL98TXmTJV15DKC8Mxvudsv+FsCA4ckpi +meGme0n0kXaBRCDqyTwQ5yAuFtiLavJr+1trGnbyiSlIJUXv4lD3tom2nP2pIWmgwhJ S5BUjNzqr8mV8JLeocnULOLQlNfS+B1BDJtFnqAwFptgejlKhUgUeTNk7NZzH8yveKg7 /56IyTWJ3SXNkidqu1zzH1QXBt5kXOxYR/gn5utInoLsZ8wocRs4oRILEYBPQ97p+WQ0 CVjeCcYgmUf7eIdj/gM6PzAR8E6omraLAnuWCQATSiHngT6AFZCCGAbfB16l/2hd5sB6 TV9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=MXeLMqTVR5vluAnKWBcfRwCFfXrj0CIi+0evtmGncG0=; b=FTg6dPyj1S9vItEJpsxd7H0FobDsNtBvoLHZKjkQ2cZG6eL7fGmsgMNWAjbpXQ8KGU iFDViYUmA7xzN+9mdl+eJxmfjeXEKCS2desNnRkXnb10KKHM1enV+gCglonYtRA4odAS +LbdThptKFB4ieDdJzjnnShLgZNHW1T1eFw57oaraZCbcEtSHmYz6VyFf3IXCUmyr2qr QjfoZYAMqwBefSYcs4W7EfKyrKJ3oeCoq0gymVpjvjI2dWT9shfUVGISRePQyQFu5vJP lOsWoh24sW4QQfnk59DBwoNOrQT6mN8DC8r2g8JZL9wrAXC2pvsvMnEKRlLI3g+qmEEh p2vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=lViJ2ebl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q29si516892pfg.318.2018.03.09.00.58.30; Fri, 09 Mar 2018 00:58:45 -0800 (PST) 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; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=lViJ2ebl; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbeCIIz6 (ORCPT + 99 others); Fri, 9 Mar 2018 03:55:58 -0500 Received: from mail-ve1eur01on0118.outbound.protection.outlook.com ([104.47.1.118]:58688 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751026AbeCIIzz (ORCPT ); Fri, 9 Mar 2018 03:55:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=MXeLMqTVR5vluAnKWBcfRwCFfXrj0CIi+0evtmGncG0=; b=lViJ2eblY45iSmLDK0ICarksFHbPab18g9gxIEHop3klcw0MD/qq2QzJ8M79k2bawheD1nK96KQmMoUziD7sP+qm1PoOeHEfrSQcYhdY41uhW064kJBqTj3MA/NcxxRu01Q5ZO6+WACv6WYfp34dZFZrCFR2pABZG+bJ6dmM9VI= Received: from AM3PR07CA0074.eurprd07.prod.outlook.com (2603:10a6:207:4::32) by VI1PR07MB1054.eurprd07.prod.outlook.com (2a01:111:e400:5096::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.7; Fri, 9 Mar 2018 08:55:52 +0000 Received: from VE1EUR03FT019.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::206) by AM3PR07CA0074.outlook.office365.com (2603:10a6:207:4::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.588.7 via Frontend Transport; Fri, 9 Mar 2018 08:55:52 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.240 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.240; helo=mailrelay.int.nokia.com; Received: from mailrelay.int.nokia.com (131.228.2.240) by VE1EUR03FT019.mail.protection.outlook.com (10.152.18.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.18 via Frontend Transport; Fri, 9 Mar 2018 08:55:51 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id w298su1h029531 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Mar 2018 10:54:56 +0200 Received: from [10.151.73.41] ([10.151.73.41]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id w298suJF029510; Fri, 9 Mar 2018 10:54:56 +0200 X-HPESVCS-Source-Ip: 10.151.73.41 Subject: Re: [PATCH v3 2/2] ARM: ftrace: Add MODULE_PLTS support To: Ard Biesheuvel CC: linux-arm-kernel , Ingo Molnar , Linux Kernel Mailing List , Steven Rostedt , Russell King References: <20180309084151.2379-1-alexander.sverdlin@nokia.com> <20180309084151.2379-3-alexander.sverdlin@nokia.com> From: Alexander Sverdlin Message-ID: <93864477-75bb-3f73-1d06-03d128b04f94@nokia.com> Date: Fri, 9 Mar 2018 09:54:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240;IPV:CAL;SCL:-1;CTRY:FI;EFV:NLI;SFV:NSPM;SFS:(10019020)(39860400002)(39380400002)(346002)(376002)(396003)(2980300002)(438002)(57704003)(199004)(189003)(59450400001)(81166006)(77096007)(26005)(68736007)(53936002)(81156014)(186003)(8936002)(8676002)(6346003)(336012)(2486003)(2906002)(76176011)(4326008)(23676004)(356003)(106002)(106466001)(22756006)(50466002)(58126008)(31696002)(86362001)(6246003)(305945005)(316002)(97736004)(6666003)(5660300001)(64126003)(478600001)(229853002)(2950100002)(36756003)(65806001)(31686004)(230700001)(65956001)(47776003)(6916009)(26826003)(54906003)(53546011)(65826007)(21356005);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR07MB1054;H:mailrelay.int.nokia.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;VE1EUR03FT019;1:h288wCVwVcHMcgEs87zHtijyDb1IwcpX5HWKmZ82JIPCim3h+JLWXp/8F0rzY4vCgLJsgB1Z+nsQpOkrGXgfBruxjApxkCpyGHNMlbqn4cBIBWcv+oGqDS9lnlQSryI4 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3d9899b5-ae82-4388-e199-08d5859b8fb2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328);SRVR:VI1PR07MB1054; X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1054;3:3NH6WZr2W90ilWgzrzVKa9N3d5c2mygCyEtXU6XqRcXho5QdxFb6YpjSYlDu9iQ+l4W4Ov6RrhTkGobn3KJkRPvv5BwS+DyeuwB0QKsi8xxz3/vaD1ffF+q/+j+s6CoNPOWcBWd5so47Qf4dDyctJr9hlpY0VusSNEw/fjCAe8oluKkwkMENb8pkbtJwfExl//W4wWBR43qimuWm5NqZfldTQ+VPXxsWuHIRaArfB5tGYmidZzFlr9H1tUjSgRBy+1pZKAPTLp9jofoxVPxJ64+CL8Phnu9+dgH8SzYKnZBwIc1mMFIf97dCJYDengPYrmRoy72ZNGHCf4cC7Ix2HL8LTMfzyrjR3NO2tubxq3g=;25:c9DFgIeqGwuMM5LiZ+ZS/dkPtnWfMeiUCho6GQw0gL1CvDf2N+wZHELbKGtgd3KmPgiwAmsaLIfTE/+1F712d7A8KSxkUlOEkFDqfBFgrgWYD1vJoJqnyRVkc2WwQmQXm+Dr9G6Vfuu7PvJw+vYoVGVZN8LU2FowbFHpFAuzCWESfOVCqUEw74noNgQRXumyRNG+hOhTa07+uoucojtAVQ+/HpGnSM+97+UykngUUcN+WtBVY3C5ZWGh/n/6CEjcfjW4u5W5wsHL20Euu+mpSJMaYB3t2xSVqw1AudeU3tGY3xGKQoZXZ73w/b6uGjEA4X/y2IdJsvlx9XSzYH+qoA== X-MS-TrafficTypeDiagnostic: VI1PR07MB1054: X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1054;31:AO8kciBbmrygtzU2pbqmyBCMSw23bnVPYwWEuH+Ef3jYvbF+4TXS/V34HnGo7mD1J53xyFckbfsuKTvi+ZOUiHfbqnZ3GKg0t3hSIulMSYRc4FXNOVbdnjY5dZL6SrjIEB7EuZ0OZPFubsE6pLpAjNrhhOv7q0d9AKJerzaRTmyWWUkCTxAlaKt2Wqgtaig3g04M6rwjdYhPstidN08w7lab+fqAK5jKeqhpjEAcVzI=;20:fBAKVf8QfzabW3K/eJdW1CqnSB9KX6JtbflAuDTuK+m59UeaGweRj0rwQ7nkLuYa19djuKypFFSviPWfQmK5ddYafuECqQr8/2VoyLcvPGZ3OOu6TP7N5LPWO1f8UsMMiu9/er2CyDuUxpjc3I3fqyK69IfDErF7k7dsd6r8xMkzm3WcjkMO+39pgABhr4hz+JWfLZ4pUYcCsTTsGkkvIqwbsJmcEEoUOzBr0xmcPW9cT/v6hRcIjDpiddzM8F5qcCZNrbTMn7FcUyXPPkOG6OW61KpZl5z0J7kxsssmkCFh7U1AWI99KvUysnLH4+oSUQPnqJN1COeYhm8af0L42/8BPo8QJ0d48tbH+vy3iBcy2WZfTj7e2Zdqv3EZWxHo0MDX6P3158A1Ewcx/pMxLLgfw0rXYgwuC3GRySFBcngT4HsliChVIb0NJOfADgr5Dv/y5lYrDGFaLp9aJ7La4CGgb6rHD+N7w9ym7bnKqWuZiFp5MymDeXNmXPjHbFtrkA/mlUdv7gAWvZM4oC+hjTPVDHpewhUxqG5NSoam8OkcgGg8HOFzfF7+Nb9RVAZaqzlU2fZceCh3Xemre/ew3avQsAmeq6d6bM34zPt9Jps= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231220)(11241501184)(806099)(944501244)(52105095)(93006095)(93004095)(3002001)(10201501046)(6055026)(6041310)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(6072148)(201708071742011);SRVR:VI1PR07MB1054;BCL:0;PCL:0;RUL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Ei7RohwLCJIQxJhU9FHsnm+nBW3qadRxJNLjY16yUQPqPhTv2xQVw6JwDZLn9nbdXPljvnB0353njZu7QlzwdbFziBaiq/d943JZwbUB1K9LG4pehdddWh9eEICfXSGWKh79qMqxcgEyDzsgzs1pWs1JZRG6lAAHH1CchxzV+iCcbriTnEv7B5CGQ==;5:OTzSvczBX3ctgBloVO1USyGfFRds/9GxWgfBN/FVB8FEPjNYIBav+MgFJpRS4lbTvA35uVAUInp+LnYOO6D9LFZN7UFpOmiz5sKgOU93kSrK3W0ifSgBA3BrcWv0m+ltsdCVneKBjqR2ld0mfaF3/zpQXqPyCwarQ5P0XBWnOAU=;24:CcHSUd5pZgdAAabe5Ey1EWUAxtqtm9uq7dFdjMj9BCblTfIGsJiFKGFySmyO4OX9TKg6X+zWSB2QEGciTlvFI8m3vb8myPuow1FH7T8tfvc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;VI1PR07MB1054;7:jX/uyJM8gq0J9WT2SztZtcsPrYB6xMb4qfTcSBUQlH+76skuaCTncTNCGLbKfuQaseLq5YslZBT2vhy3KC5AzP1A0Z3Cn7+eWZqqug3gAv5B19tbkDk5kitx6QAOr9nZ96wyCiAoXA107P1ndhZLULAAsb2ADj4hBnQDDUGG098nJUuF0ZYWoLwbdLRAZXpublBSxS0dKxhH7QYensIMZFIaa/C0yvwopDCKJ5rt6KrHnQOhZyWHRgEhbEsL//S+ X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2018 08:55:51.7895 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3d9899b5-ae82-4388-e199-08d5859b8fb2 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0;Ip=[131.228.2.240];Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1054 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ard! On 09/03/18 09:50, Ard Biesheuvel wrote: >> +static u32 fixed_plts[] = { >> + FTRACE_ADDR, >> + MCOUNT_ADDR, >> +#ifdef CONFIG_OLD_MCOUNT >> + (unsigned long)ftrace_caller_old, >> + (unsigned long)mcount, >> +#endif >> +}; >> + > Do we need this stuff in the PLT loader if ftrace is disabled? You are right, it probably would not even build w/o FTRACE. I'll fix it, thanks for looking into this! >> static bool in_init(const struct module *mod, unsigned long loc) >> { >> return loc - (u32)mod->init_layout.base < mod->init_layout.size; >> @@ -31,26 +41,43 @@ u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) >> { >> struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : >> &mod->arch.init; >> + int idx; >> + struct plt_entries *plt; >> + >> + /* Pre-allocate entries in the first plt */ >> + if (!pltsec->plt_count) { >> + plt = (struct plt_entries *)pltsec->plt->sh_addr; >> + for (idx = 0; idx < ARRAY_SIZE(plt->ldr); ++idx) >> + plt->ldr[idx] = PLT_ENT_LDR; >> + memcpy(plt->lit, fixed_plts, sizeof(fixed_plts)); >> + pltsec->plt_count = ARRAY_SIZE(fixed_plts); >> + /* >> + * cache the address, >> + * ELF header is available only during module load >> + */ >> + pltsec->plt_ent = plt; >> + } >> + plt = pltsec->plt_ent; >> >> - struct plt_entries *plt = (struct plt_entries *)pltsec->plt->sh_addr; >> - int idx = 0; >> + idx = ARRAY_SIZE(fixed_plts); >> + while (idx) >> + if (plt->lit[--idx] == val) >> + return (u32)&plt->ldr[idx]; >> > Same here. -- Best regards, Alexander Sverdlin.