Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp731834rwd; Sat, 27 May 2023 05:45:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WBJTZZF9imp4El0wSJcFUJo6RwcuEZqFvrxNyZwu0cxEUxSom+S4DsZgAFo+grdQGVQJ+ X-Received: by 2002:a17:90a:7102:b0:255:3f6f:2c6 with SMTP id h2-20020a17090a710200b002553f6f02c6mr4968091pjk.22.1685191524880; Sat, 27 May 2023 05:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685191524; cv=none; d=google.com; s=arc-20160816; b=dOT//ulhNiiAES6XIsB7zkH0N/vKDBrDvQDm4nNlrvSiSSb38l+xq7gH2bHX2tyBPg 8xBdIQTfl5msv+ViN6jPEPl1pZG2fYElkMLI25b7VHwD5CwQzoguvrcyesFUMdZhKjC9 JiwFE4vmTQYEdYWo1H8P9uLmx5tbJKnJeO5VswNKTlEhfnDeaYvt1F1Y1gdjN4bvt99g x96HeVw7qNJ+exXNpNPRq2eZrZer4fqQdW3dT2NBcd3FTPa/ld3ob6fKJv4HGWRk3cUw CJYYF3XiEHKSdvrF/C7NzpzYgnEQd9GJoKih+kiYxrbsD9NjWGzaoeTg9fXXo+62/i51 GjgA== 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=lGAalMcI44BoMUnHyiT4dUVVsCE5jDHOSSKWuauwHLM=; b=v2UfgQWWwAfC41G2MVRa198SjHMsWzplM1DjKj9UUPMpGKnDsA5aOGWqzfIc3KT0jX TkQD49g1F8z9+6NtXiaFAENRvZnp5B2wOekowMMm2Z+9cWs8ez/Xy6HULkpyxTgAW1t7 9Y6RHnBUxOdhzUNfcGr/1LRQz6h0D0z8vWQ9tKEryljcMx2qHFH5ftaCStBKgfyqM9ku fBQomA5Y9RzfV57BctIX5msTWU/IYlAHK9lBC+e4dYP7eXUywESmUACwqDn+0azKLONW gBpgliA9boJpJXmFWi6cVEID3qumwgPFl5DMGjvIDKnL2AoZ4A2HWCPVs0JKl3nrc5wW cDRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=MhDztrkH; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x15-20020a17090ab00f00b002509203c8b2si5961196pjq.47.2023.05.27.05.45.09; Sat, 27 May 2023 05:45:24 -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=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=MhDztrkH; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231620AbjE0M3a (ORCPT + 99 others); Sat, 27 May 2023 08:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229593AbjE0M33 (ORCPT ); Sat, 27 May 2023 08:29:29 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E0E8F3 for ; Sat, 27 May 2023 05:29:27 -0700 (PDT) Received: from nazgul.tnic (dynamic-002-247-254-198.2.247.pool.telefonica.de [2.247.254.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 052DD1EC03DB; Sat, 27 May 2023 14:29:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1685190565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lGAalMcI44BoMUnHyiT4dUVVsCE5jDHOSSKWuauwHLM=; b=MhDztrkHT7uHlxzsiEPOHv25IadCJLvky+z53VoiRCMmF/wavFqbAwp1FYybSV4nvHnxjf +QtTN3/mH8adv7bjrwDwnBEZ45EWGqpwyd5XmgzskIRUNFC1Pvp0oM8aEhd43D6zutl3en JYXSlsyc4ZPAzKGryAWlrFtF/vhqPpg= Date: Sat, 27 May 2023 14:29:16 +0200 From: Borislav Petkov To: Nadav Amit Cc: Dave Hansen , Jiri Slaby , Thomas Gleixner , Ingo Molnar , Dave Hansen , X86 ML , LKML Subject: Re: [PATCH v2] x86/lib: Do not use local symbols with SYM_CODE_START_LOCAL() Message-ID: <20230527122916.GAZHH3nHk7kkUA7CeM@nazgul.local> References: <38e24fd4-9213-229d-9919-7ae3bfb113bb@intel.com> <24E47178-C177-425F-A8EF-CFFAE22597D4@gmail.com> <20230526155336.GAZHDWAFi1FRqq83TP@nazgul.local> <0F07EEDB-8A3F-4224-9FF1-43A5300B1B8B@gmail.com> <20230526204559.GAZHEahxxnQaHhSUul@nazgul.local> <49861038-B8CA-4CDD-BD44-73066FF453F3@gmail.com> <20230527072338.GAZHGv+no2LZASyLWM@nazgul.local> <9A302EB1-308A-4904-801C-DC70D9908E11@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9A302EB1-308A-4904-801C-DC70D9908E11@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS,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 On Sat, May 27, 2023 at 02:17:43AM -0700, Nadav Amit wrote: > That’s not according to the symbol table - that’s in your mind. s/your mind/objdump/ Objdump takes the next symbol's address as the end of the previous one. > Anyhow, the argument that __get_user_nocheck_8 and bad_get_user_clac are > related makes no sense even conceptually. I don't think anyone's making that argument. Maybe you should read again what I said: "the exception handling ends up being part of __get_user_nocheck_8" > Some people would even say “elementary”. I was sure it was already clear. Your cocky attitude will get you nowhere. But whatever you prefer. > I appreciate your help, but I have reasonable workarounds for my use-case > (and for the record, no, I don’t think that this solution that you > propose is reasonable). I'm simply stating what objdump does. I guess objdump is not good enough for you. > It is not “a new tool". You screw up every tool that tries to understand I'm not screwing up anything - that's your claim. > All the other local symbols are irrelevant to the discussion as they fall > within some other symbol's range. As does this one if you deal with it just like objdump does. > You are not (not) helping me. I am trying to help you (and other users). Gee, thanks. I didn't know this needed any help. > So just don’t do such weird things. Yah, good luck with that. If it needs to be done in a weird way and it is the *right* thing to do for the kernel, I couldn't care less about some external tools. As to what you want to address, I'll talk to toolchain folks first and get back to you. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette