Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3618974rwd; Mon, 22 May 2023 17:25:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ddaoc7T1QT3MdhaQAQP5OVXPRelM4i0/X1iQZfN3fHvkhwyKND9KEV3N45dAkgsPnu3j8 X-Received: by 2002:a17:903:2343:b0:1a9:9a18:3458 with SMTP id c3-20020a170903234300b001a99a183458mr15400434plh.31.1684801524129; Mon, 22 May 2023 17:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684801524; cv=none; d=google.com; s=arc-20160816; b=IDPWPDWLvHasiBi9uyADYdJDhP0SXbbcqyQ2v2gkGcmMbcBOxkujlvn1nR70A3gL3A mbf+TPKOi+zPAYGreMs6GfHzbm/xRkbeJjP6XQs4KLDOFtRhxUI/+VLxx/WuECSlwAYY AB5gzW3Cx0igBU7JXLM+j2rVVex5Qcn1wiCfDgjA+L5I7UrgYFjnFrmMBi3/LHLRhhjn nc2r21FoVdpFtFb/V5LEa6mz8i/wsXjmDkzghIOMlziOpltduvJDpZ0sGJyO+RDZG1ES 8bCCSzbFuG0P5vjkcThQjsExl5JKiTJkDUqzAS5ru9oT3wrRONn80zXO+tAPdAG097k0 8C4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eCUDdFWO/x24L1UQwluZwvwivpq5/on0dcLWvhYbYSU=; b=WIOu5pbbYuPsGt1QK8HE+/uCBLJUI0ZtkL/3wB9KJKe/PjVlBW4LVE9vak9UTOf1B1 ugH/JP0F15NwsDhvkBQtGxeyrERgOi0gIfsx/wttcxJiePt51DuMPXoHOppiIjcatPhm o6NV0sugQ++7EXmEmA2KimT/a+RwTCuC6wN8zA+L+ZTEHJLZTQa/OYLttn9KkEUVV5Xp UcAHKXvVuNdAtS7C0x5LObFb/F134uwEy5WQ/qf5WB0V1wt+Rgo2p/b9wSxGFqb/5QMP moec7ZLPmxaIpXkIA1Gyb8oU73pAirAogllCqwGPuZBp5stJqNYPLhxb9Zl5Z9Ml+xu2 S/yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lZg9alK4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a170902c94e00b001a647aadbe0si5404974pla.568.2023.05.22.17.25.07; Mon, 22 May 2023 17:25: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=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=lZg9alK4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234545AbjEWAAY (ORCPT + 99 others); Mon, 22 May 2023 20:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235131AbjEVX2A (ORCPT ); Mon, 22 May 2023 19:28:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 302641705; Mon, 22 May 2023 16:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=eCUDdFWO/x24L1UQwluZwvwivpq5/on0dcLWvhYbYSU=; b=lZg9alK4iixyEKRz/zYjW0Etft BvpnLZNHaUmP2SjnHqYfUnltKhJ49JkAOUPwY42FcdMxtx+EJinbmnZtqaFnwS8BA+3V5IEg4lcs0 wGL+vJqnThSteKOHNraEkFv2tyLCHo1vSq8b72e26b5x3e9i5BrRWAGfcwWHeICXg/th+l4pP19AB L+MnpIoap5fDbWY3MLK8VEG9AOQCQWdqKJ2DfOlHYL5Ad7vcbUAJYuA1JZn5suMVl76QO0zznhRA/ kR3YI/opWognhplXq77WASwnqhEZnGn9S4z4tB+DJBIuV9L1dUDh272uQSMQce0mybSg967fxDVr3 D1Z8OGvA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q1Eql-008L8p-23; Mon, 22 May 2023 23:21:59 +0000 Date: Mon, 22 May 2023 16:21:59 -0700 From: Luis Chamberlain To: Alexander Lobakin Cc: Nick Alcock , Petr Mladek , Steven Rostedt , masahiroy@kernel.org, linux-modules@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, akpm@linux-foundation.org, eugene.loh@oracle.com, kris.van.hees@oracle.com, bpf@vger.kernel.org, Jiri Olsa Subject: Re: [PATCH modules-next v10 00/13] kallsyms: reliable symbol->address lookup with /proc/kallmodsyms Message-ID: References: <20221205163157.269335-1-nick.alcock@oracle.com> <20230508180653.4791819e@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, May 19, 2023 at 05:50:35PM +0200, Alexander Lobakin wrote: > FYI for devs: I posted RFC of kallsyms with file paths almost a year > ago[0], but it went unnoticed =\ > > `file name + function name` is not a unique pair: in one of FG-KASLR > discussions, someone even wrote simple script, which showed around 40 > collisions in the kernel. My approach was to include file path starting > at the kernel root folder, i.e. `net/core/dev.o:register_netdev`. > I'm not sure why no comments happened back then tho. Maybe you could > take a look, I'm pretty busy with other projects, but if you find > anything useful there in the RFC, I could join to a little bit. > > [0] > https://lore.kernel.org/all/20220818115306.1109642-1-alexandr.lobakin@intel.com Petr suggested line number too, that'd fix it too. Luis