Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1074998ybp; Fri, 11 Oct 2019 08:37:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWt+m6PkrDcohJJwgpdbLNPYw3dNk3y/Z5taiytz4URhvblNtbEgiKf1JasWUDBWZJx+DP X-Received: by 2002:a17:907:10dc:: with SMTP id rv28mr14357291ejb.7.1570808227303; Fri, 11 Oct 2019 08:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570808227; cv=none; d=google.com; s=arc-20160816; b=Ts5iY0CZKsgnUyGT4IKuVW2psg3RuySWPq0M42KmAchu+xmbjAKHdrEUXxXfsn+zOz E1Nw0xkx8I+r3Y9hNeiLzzLItclSphwItkPqPo9nAz3y7QL4G85RxoGd68885nzgEcz2 zz+uEtONR9N3k0HyEKDfivi85RtBjdg7q8vRvihpiABbRrGazkqULD94QusYiO7eqicK QiW+E3oDN6HZUKGolI4t3CdkLgPYxW9PYlZssJG7Tmc9Vj+XCiRubYRgNT9eDs8sl7vW plQb7vr7W+goKM/3FSnzkRHz/QhRWAUl3FHoIYH+lobq2OkBrRG4XfKBlr9Id7benk4n 0dTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7P8MIVGCXYmRcpjs2XPbrApfat1HUy7rNUKo4DCw708=; b=omNuIv/NfO8foi5+KYB9FE1oQdvLkA6Fgbp1vr20QHHsGjEiu75JNWDWGUW8iSZIHr T90NpVEB7fppuLXkzdaj1lDbe+A+Xe8dsh2ErFX6lgaw7GHeG5F6pjIBly5t1nApr1xS WhHshkyj7Qd685zQ/oMKJdSR1OoDpaLKvPX7AmzoWlO2VgA7GJmfnIjHZLJexbq8+2Wh e0+StwjX6Y+rPRCXNcb327k/+1u49Fx52L5YpPyGzSzy2X6J2qGICqxrRNaBxoHrSqU2 donDToMFhOBrEEHVHLyG4dqRxyQxQz/3BFv01I+aHkYZ3Lwrzz4Bmiu3YvZRh2KHt6s2 Lf3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RKONM7n3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sb7si5634971ejb.321.2019.10.11.08.36.43; Fri, 11 Oct 2019 08:37:07 -0700 (PDT) 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=@kernel.org header.s=default header.b=RKONM7n3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728176AbfJKPeA (ORCPT + 99 others); Fri, 11 Oct 2019 11:34:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfJKPeA (ORCPT ); Fri, 11 Oct 2019 11:34:00 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67B47206A1; Fri, 11 Oct 2019 15:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570808039; bh=mEEKusn2KXkFF2wpevGWXBDSbPnxXtY0JLt93wPjI5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RKONM7n3ew0qj8uo7JgnNFWZRsUqkmylNmRCXgoTgcf18TV7jJh6yuRuu8JEfGYD8 +xoems0f8jS4JOqNQ1ILV/qY5p7eHZN2m9PiKeY8ZXcfmDl4hUQpAKaJQRQwP/DDVW mkD/k/SxyRaWUdsxpSUKezKqljOQjcDvcqKvAsq4= Date: Fri, 11 Oct 2019 17:33:57 +0200 From: Greg Kroah-Hartman To: Matthias Maennich Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, Jessica Yu , Masahiro Yamada , Martijn Coenen , Lucas De Marchi , Shaun Ruffell , Will Deacon , linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org Subject: Re: [PATCH 3/4] symbol namespaces: revert to previous __ksymtab name scheme Message-ID: <20191011153357.GD1283883@kroah.com> References: <20191010151443.7399-1-maennich@google.com> <20191010151443.7399-4-maennich@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010151443.7399-4-maennich@google.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 10, 2019 at 04:14:42PM +0100, Matthias Maennich wrote: > The introduction Symbol Namespaces changed the naming schema of the > __ksymtab entries from __kysmtab__symbol to __ksymtab_NAMESPACE.symbol. > > That caused some breakages in tools that depend on the name layout in > either the binaries(vmlinux,*.ko) or in System.map. E.g. kmod's depmod > would not be able to read System.map without a patch to support symbol > namespaces. A warning reported by depmod for namespaced symbols would > look like > > depmod: WARNING: [...]/uas.ko needs unknown symbol usb_stor_adjust_quirks > > In order to address this issue, revert to the original naming scheme and > rather read the __kstrtabns_ entries and their corresponding > values from __ksymtab_strings to update the namespace values for > symbols. After having read all symbols and handled them in > handle_modversions(), the symbols are created. In a second pass, read > the __kstrtabns_ entries and update the namespaces accordingly. > > Suggested-by: Jessica Yu > Fixes: 8651ec01daed ("module: add support for symbol namespaces.") > Signed-off-by: Matthias Maennich Reviewed-by: Greg Kroah-Hartman