Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp626343rwe; Wed, 24 Aug 2022 06:42:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR69i06WNWLYN5SNU/owCdEyyqEbvV1HSOFhyaXEwrSAPyZYp9vNIQ5DJNtu3vPlHATyhruH X-Received: by 2002:a05:6402:4313:b0:446:ffc0:50b5 with SMTP id m19-20020a056402431300b00446ffc050b5mr7494164edc.153.1661348529976; Wed, 24 Aug 2022 06:42:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1661348529; cv=pass; d=google.com; s=arc-20160816; b=X4tfixYXVf+rRjVO6TVaaDFMIAUua0/XiXzbPgklyZTCTdu7DSpbagf18iOxAsjuA5 uRk4V45YbI+gSHHnzrn91h6PeBJynZT9/Q71e4unPfVVkG0SBRmKP9PSSgWTjO2OysIb CXMEQxTvjq53EvJmmoz2jr3quPz/jlL36kGq0rSugqgibMvW0FRC9QHLgjeoPDxnN1CH ZgsyJ54rAxGDBcNoDEc18UzVwb8CW9r/ubZgoR7qxIHqLBvrnbP46wkeAeFDf+FHJeEO 03nGi89vSViTPZOfYKXyTX0wjyGpGPxa6Y68EfeyzkO0a8u+wIQHh71bklFnCWQrFrBL JVEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=ryYOvQzln/nmUXXw2vAXmm2r7k8FZ/Bc9UEurylfkFs=; b=XrakMN9O52dXjW3pwHmOl7T4swE7zs4KmbQPobxJnFpcSsfAsdwNz5b1IzoxF1Ugzh nh9m59DzxA+yaBL/xyQYnFpgxu8ID7gx0q5mG5vvl1jDipsaowLQjyTAxICutAeC0ehN 4Opgt12VlfEhFK6SsyGCG76v3x+E/ZogxIv7noxAjy0zgion5GVMWX9q/6PmRJFaOAGM TLY/Kt7s9suNScI1wTeBxhG6x136UqrftSiHeVTVTB1lLa2RCFtpdy+Oc/8D1aXoDyEc adwJgl7lkTkPS3pUUf3or9LbZLglp8X8lyJfOY1Ly3hCJ6EPbWeinSnYFSbKdZlZHq/D VXDQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="W/M4wntP"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hu9-20020a170907a08900b0073d97252accsi1995533ejc.921.2022.08.24.06.41.43; Wed, 24 Aug 2022 06:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="W/M4wntP"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236881AbiHXNEX (ORCPT + 99 others); Wed, 24 Aug 2022 09:04:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237618AbiHXNET (ORCPT ); Wed, 24 Aug 2022 09:04:19 -0400 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2105.outbound.protection.outlook.com [40.107.20.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58DC497EDE for ; Wed, 24 Aug 2022 06:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gg1UnnHvsM1gWQs3UCkAl9FB7VU4+t1e6I99Nh5yI/ErsDifQ/WLTosDoxBAkIMlyyWW14C6mH/HdqXlvySJJb6g37YlRfsDH9Y9FMXszzRnajw21YdiPFooSe8vEXD99lYmejddLtMDk4WySfHkUEQd9a0mOPl9gbzplhJy7QCVC1ZLcVh+Ie5BcmpZXppFhGp/+Emu6+m+ZYmH7Xo3HtM6QyfLnAJVjo/Sf/3biGYMS2cBskDKV5XE2cdMHr/LGLj/D3nXbHnbpcmYjDvI3tUDAlHjsaXMTaHX7vzAmRYEoAR0wfr7c1kfLije/CPn0rFIz5/LKyQlosGmiVJ9TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ryYOvQzln/nmUXXw2vAXmm2r7k8FZ/Bc9UEurylfkFs=; b=HTfhZLMDWpeiPMqr0v1dmhCbG8tXX11ygdSqpR19rcoKh6Akn7lDuryVT3c4eK5MFHk+pst59wqceSeFdQcABLuh2zo1iMUhclCs7MAC3oCWzVYb06Rh4qjeX/rynEN5TmCTFJ6mTwCazNeZJyea+u13Jr9gFaz/BgoVL5fDwHDFHcOPIACZbNLw5owpW+pFUZIP3CPpzlW11sWuWz6Ye3jvLgj/AhdjY3/UU3z/ydyfPYDJ6BDzVJQEAaLhHpN8la0UV5v5ZOP5/WUeVSjNB2zwcKUe5TKWNiJN0U61WObQwOgCXyYYFyITvSIxcD7SqOUoyTTcsBmVPdr4D98BTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ryYOvQzln/nmUXXw2vAXmm2r7k8FZ/Bc9UEurylfkFs=; b=W/M4wntPlRfWcYSyjwaZu+Aekv6o2uXfS8E15uNPbUENbMwZmNOWeoTlMz0ilyKc+t2Cy5sednhXqo4/kRFDftrYrOLrmTWOPQ9q/4+qBDneM0sR701jyDg3iN4hY49tm/JTDM/UbETPExVpFnoQgjOuFuQELZlpzrsJbWYZcj4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from AS4PR07MB8658.eurprd07.prod.outlook.com (2603:10a6:20b:4cd::12) by DB6PR0701MB2373.eurprd07.prod.outlook.com (2603:10a6:4:5c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Wed, 24 Aug 2022 13:04:12 +0000 Received: from AS4PR07MB8658.eurprd07.prod.outlook.com ([fe80::4582:5119:51fb:4037]) by AS4PR07MB8658.eurprd07.prod.outlook.com ([fe80::4582:5119:51fb:4037%3]) with mapi id 15.20.5566.015; Wed, 24 Aug 2022 13:04:12 +0000 Message-ID: Date: Wed, 24 Aug 2022 15:04:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] ARM: module: Teach unwinder about PLTs Content-Language: en-US To: Russell King Cc: florian.fainelli@broadcom.com, Kursad Oney , Ard Biesheuvel , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20220706163135.53874-1-alexander.sverdlin@nokia.com> From: Alexander Sverdlin In-Reply-To: <20220706163135.53874-1-alexander.sverdlin@nokia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS8P189CA0007.EURP189.PROD.OUTLOOK.COM (2603:10a6:20b:31f::23) To AS4PR07MB8658.eurprd07.prod.outlook.com (2603:10a6:20b:4cd::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae5e158e-bfe7-4786-5eb4-08da85d123f7 X-MS-TrafficTypeDiagnostic: DB6PR0701MB2373:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MrFmjwp6bgJJOELxgC06XQNoV4ub8GWvEHCnpnv4wQ4326nxEHMIlQfCRKFCT26vIHkR8UEXw6Ps7gUJ54dVqKC3psan7Uq3h+DxxRZ+P3viOwX4GpHLHO8B4QthJPV6LPerjFfCqnFk2m93ncgceujaDr5ghkUG5V2pwJlxz2eQ5Bqaygb+fKxoYg6aNbMxAL9Gde650HMrDi3jrxHON9uvg+GFmTqvNWR8JjsQwNm+PXgLgjPVmkVFVyNMSJb+8LoqhKC4kjmDXeVCBRE61I0mR99/G6uwgjTxb88RTvYEMNzJiKykFeyUESSdYtntqJGofQzOuMXEnkes6LMyE8s/pPQ2uVbPiFVAVJQCNkfzTTxp+sKMR8+hR7pYX54YTVwOllR/0IDRsYXLH+ZrrX7bvm04kaDDt7zG+ujc3fpCOkp0myz63Jt4XnkJ2yQ89ryg2Dee2OwEUA+DZr/m2+nyZ948Yq6rKWSghOvBl/s/YZ7v8KgdGFynAyFqrOziu6XTuriOuR6csSi60UT2KVidJe1VMae0KyFfQgkBUpnrvdrlmVBai2q7THbxGS2HSNLykJ10ejelSh2oLmEDasErDu6VemSxD0dSvcLfwSzDjf+fZXEEKs307jg6pi/mlml9Q90Zn27WMgh4eX/vzncypV88QY22akKw1N4w/3bhPlLLyN1Xa8enj7sURB3HPjMtpMi4x7G4KILH3SUNSSH7v43S4iR8TkyW62grFcrD0gD1/CrXCQhMfNRk26EBGvuPyvfcwRDPFnNdzTS6WDAs7L12mA8VwW1IfmvfmVYiH4NvrDR78Ed1y8d8mCcALz2DSe/lHfK7OSlkwsaJ12VKNBQoAPk/RdUo/xhNqb4NTgIvZs/8X9EeTG60zh57 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR07MB8658.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(396003)(376002)(366004)(346002)(136003)(36756003)(44832011)(41300700001)(6512007)(26005)(54906003)(2616005)(31686004)(83380400001)(186003)(38100700002)(6916009)(316002)(6506007)(2906002)(66946007)(478600001)(86362001)(31696002)(4326008)(6486002)(82960400001)(966005)(6666004)(5660300002)(66476007)(53546011)(66556008)(8936002)(8676002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MGJhVThXcDRLVUx6Vlg3NllBT3pYQmc5UGZDT24zT3pKeWR0TVBwL3BDWDRI?= =?utf-8?B?bmYrY3p5ZVI2K2o5bDc1MkJFK1o3U1VOenl2b2J4SjI2bElHZTk0NjYzRTA5?= =?utf-8?B?bCs1R21NV3l0T0dsMy9yQTdKL1VYcHBWTkNPUklvMU44cDdsbE95YjlKQkZD?= =?utf-8?B?K1YyWnJoQm1WdXNTMmxHV0ZJRDQzMnFYZ2J3VjdrcVhUVytYblN6MlgrSkN5?= =?utf-8?B?MUFNRWlLWmU1ZkREZGRwODlEZVhydWZNaXlzbnZwSUk5Ykh6cS9MMGE2TlNK?= =?utf-8?B?SkxtUTNEN20vYStqNStaY0JPa3pHRjNQWVJJZGNNTk95dFU0Q3I3RkJnUVF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pMYU9mUjJ0Z2NVVlN6bkFvUUFpUkJMa3Z3RzNSLzdpeXBibzNX?= =?utf-8?B?MWc9PQ==?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae5e158e-bfe7-4786-5eb4-08da85d123f7 X-MS-Exchange-CrossTenant-AuthSource: AS4PR07MB8658.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2022 13:04:12.6451 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 61ydGgaH5UVJ+8MKvPsRnVhMb2ouizHem4fx5kDjD82LiEz+ffWPHMVl6R2/Uq/Nh2bWZZOgxw+jLIJqkdSI4Zmpbu+45vVsdYZ7hUQsl1g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2373 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Russel, shall I add this one to your patch tracker? There is little interest to this patch, but also no complaints, as I can tell. On 06/07/2022 18:31, Alexander A Sverdlin wrote: > From: Alexander Sverdlin > > "unwind: Index not found eef26358" warnings keep popping up on > CONFIG_ARM_MODULE_PLTS-enabled systems if the PC points to a PLT veneer. > Teach the unwinder how to deal with them, taking into account they don't > change state of the stack or register file except loading PC. > > Tested-by: Kursad Oney > Link: https://lore.kernel.org/linux-arm-kernel/20200402153845.30985-1-kursad.oney@broadcom.com/ > Signed-off-by: Alexander Sverdlin > --- > arch/arm/include/asm/module.h | 5 +++++ > arch/arm/kernel/module-plts.c | 14 ++++++++++++++ > arch/arm/kernel/unwind.c | 13 ++++++++++++- > 3 files changed, 31 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h > index 5546c9751478c..07c51a34f77d5 100644 > --- a/arch/arm/include/asm/module.h > +++ b/arch/arm/include/asm/module.h > @@ -37,6 +37,11 @@ struct mod_arch_specific { > > struct module; > u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val); > +#ifdef CONFIG_ARM_MODULE_PLTS > +bool in_module_plt(unsigned long loc); > +#else > +static inline bool in_module_plt(unsigned long loc) { return false; } > +#endif > > #ifdef CONFIG_THUMB2_KERNEL > #define HAVE_ARCH_KALLSYMS_SYMBOL_VALUE > diff --git a/arch/arm/kernel/module-plts.c b/arch/arm/kernel/module-plts.c > index 1fc309b41f944..af7c322ebed68 100644 > --- a/arch/arm/kernel/module-plts.c > +++ b/arch/arm/kernel/module-plts.c > @@ -284,3 +284,17 @@ int module_frob_arch_sections(Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, > mod->arch.core.plt->sh_size, mod->arch.init.plt->sh_size); > return 0; > } > + > +bool in_module_plt(unsigned long loc) > +{ > + struct module *mod; > + bool ret; > + > + preempt_disable(); > + mod = __module_text_address(loc); > + ret = mod && (loc - (u32)mod->arch.core.plt_ent < mod->arch.core.plt_count * PLT_ENT_SIZE || > + loc - (u32)mod->arch.init.plt_ent < mod->arch.init.plt_count * PLT_ENT_SIZE); > + preempt_enable(); > + > + return ret; > +} > diff --git a/arch/arm/kernel/unwind.c b/arch/arm/kernel/unwind.c > index a37ea6c772cd5..53be7ea6181b3 100644 > --- a/arch/arm/kernel/unwind.c > +++ b/arch/arm/kernel/unwind.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -395,8 +396,18 @@ int unwind_frame(struct stackframe *frame) > > idx = unwind_find_idx(frame->pc); > if (!idx) { > - if (frame->pc && kernel_text_address(frame->pc)) > + if (frame->pc && kernel_text_address(frame->pc)) { > + if (in_module_plt(frame->pc) && frame->pc != frame->lr) { > + /* > + * Quoting Ard: Veneers only set PC using a > + * PC+immediate LDR, and so they don't affect > + * the state of the stack or the register file > + */ > + frame->pc = frame->lr; > + return URC_OK; > + } > pr_warn("unwind: Index not found %08lx\n", frame->pc); > + } > return -URC_FAILURE; > } > -- Best regards, Alexander Sverdlin.