Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1404733pxb; Fri, 26 Feb 2021 09:50:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwqL8+S8zyQdWygbsjTQrYA4mejfRBBVv4O80WKRBV6sVvMmpBiR8VjUMl6rv0wW+M6/Lj X-Received: by 2002:a05:6402:2683:: with SMTP id w3mr4694205edd.378.1614361824187; Fri, 26 Feb 2021 09:50:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614361824; cv=none; d=google.com; s=arc-20160816; b=MdNFshXRcXwoI7dshh9T3Z0Q2cb7AvJVDgXWEtbP6ZF0dU0M8O8jgCdUdcO15dBZ/m VnaKWiDxZu2z7uX+6bV3ibbyJIehFFDO5GMRE33yFJ03sEpZNacuI7vd7JIiB5MNa1NP gfJE6yc1xp8nISzERNu0YNnbtEtFlWX6DLLDjyqVRkbyCiNbq8gN5npu1VIiJGIG6ADk SMj2RifMePFJZPA2KC1asS4PcQr/W3310jcNzgLXax/r6bAD0PFi3O1P3xy18bnRO1jH RuDEI5sGX5JEFzhY6ey4RJZvFq0mNFOOhY0zTh0pJhz0PHclhzluuNRFoIyAZFtotXfL wmGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=K0LiJMFsZzonxRiACJX9bTxGPskMvO8X+dFkrCpK9f8=; b=r+5n8gyyJAVLPWRJJvApZAMAuxgGyBC0dK6jPbBJK53ieeBSb4bYPxWmI50P4NfNmf d8G/LM2xAt+o5suwRT6n4EiA5D8mcc1lxEvaL5PDfatgalIWTpgaRo6Mln9UMplRei9r FNoIg7zfv0KNGFzz6q3hDPDOkWqE7JRiV96oP7e0An+mqZ7OhY3Nr/ljCsfossQYyUgc YybbZTatoHNcSnCkFf4JDtcnRsVuQzQ/VVeHyLx7evBrZiFydWQIclxkVS8L3+Jt+GH4 jIixdxybyFVg1BWFblGT0Dkz8F/hcCtAFp9YJgO8a+jFA5Gdenrktafvki8jDzNKBh4D TdWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=flBMYTva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si6658288eji.267.2021.02.26.09.49.58; Fri, 26 Feb 2021 09:50:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=flBMYTva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbhBZRs0 (ORCPT + 99 others); Fri, 26 Feb 2021 12:48:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbhBZRsN (ORCPT ); Fri, 26 Feb 2021 12:48:13 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44AA1C061574 for ; Fri, 26 Feb 2021 09:47:33 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id 17so5666475pli.10 for ; Fri, 26 Feb 2021 09:47:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=K0LiJMFsZzonxRiACJX9bTxGPskMvO8X+dFkrCpK9f8=; b=flBMYTva+Ub7O2J4tf0pmjGVcRRmsH028DAWb+FJ5ZTaVZH3/wd50QU4ehT1YPn+3I Iix8MWa6WAR3JGYqbXgh2ZAgYBifslyGpfHIcg9i2qsfHPTAL62Gq5FiRd73StFnRaMa ii4vyNgpJFbBMMCxAPA4M59qvHkJyQaxID5oJy4ScRsOF2iU9mhFQ3RQbZfMC3zK0o5G /RURL3EiOTXKQIL8XquJi75X3DYnIIXzMOmF699893Sjpb+ErSgEvMaAPQTMQJeSnxiU 6Ewk1ZawmvKwXfCxvd9hzc6zZdjx0aiFMcPdQsWNZyMPLUyxjYZwBEeXhQWEubpaoNd7 xGNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=K0LiJMFsZzonxRiACJX9bTxGPskMvO8X+dFkrCpK9f8=; b=EblukSvSy4bVIuPedBDwhPLhfBDY9DkDRY0XhrYHBMNBlQeKiFJRQwv38VtBei0Kpe TeZHCsbhGncInTi911jeh8m+WC48K/5gwYy9hAGTOOVnrVt6KqfZ9AmWZF32ahXeeae4 mtrEegb6rVINr5BNO6a311PO1//5SJnlKX/fNZsox6nqOW/dD7cTS56lGy+ucCOVZBWb GtFmklLEQkjKvKlnxizAV8xU3YJclmjoEfsRVCi2fK1U3TduhRLednYqwqyf83b031tR tjSd68IRvscu3i1L6CU4Jn1hZLkvzZPuLLJ3shoFUN7x85smmZvuXdK9fW84+M5/u3q4 Ay+w== X-Gm-Message-State: AOAM533OTfd4WVWUOpRfbhxYpbz8SK8tMiABNpLRXKdDRydI7ZdMF3gn KP6kiZ6iLqM7cJyfWlzoF0yQ/w== X-Received: by 2002:a17:90a:f68b:: with SMTP id cl11mr4449383pjb.187.1614361652700; Fri, 26 Feb 2021 09:47:32 -0800 (PST) Received: from google.com ([2620:15c:f:10:e190:bf4c:e355:6c55]) by smtp.gmail.com with ESMTPSA id 7sm9924571pfh.142.2021.02.26.09.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 09:47:32 -0800 (PST) Date: Fri, 26 Feb 2021 09:47:25 -0800 From: Sean Christopherson To: Nadav Amit Cc: Linux-MM , LKML , Hugh Dickins , Andy Lutomirski , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Borislav Petkov , Andrew Morton , x86@kernel.org Subject: Re: [RFC 1/6] vdso/extable: fix calculation of base Message-ID: References: <20210225072910.2811795-1-namit@vmware.com> <20210225072910.2811795-2-namit@vmware.com> <2CDFE432-90D3-43EE-BA9F-2CFEB8BB343C@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2CDFE432-90D3-43EE-BA9F-2CFEB8BB343C@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 26, 2021, Nadav Amit wrote: > > > On Feb 25, 2021, at 1:16 PM, Sean Christopherson wrote: > > It's been literally years since I wrote this code, but I distinctly remember the > > addresses being relative to the base. I also remember testing multiple entries, > > but again, that was a long time ago. > > > > Assuming things have changed, or I was flat out wrong, the comment above the > > macro magic should also be updated. > > > > /* > > * Inject exception fixup for vDSO code. Unlike normal exception fixup, > > * vDSO uses a dedicated handler the addresses are relative to the overall > > * exception table, not each individual entry. > > */ > > I will update the comment. I am not very familiar with pushsection stuff, > but the offsets were wrong. > > Since you say you checked it, I wonder whether it can somehow be caused > by having exception table entries defined from multiple object files. Oooh, I think that would do it. Have you checked what happens if there are multiple object files and multiple fixups within an object file? > Anyhow, this change follows the kernel’s (not vDSO) exception table > scheme.