Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp2129433pja; Thu, 26 Mar 2020 10:08:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsTfVZHqcyURloXQ9zjwqrTDtr0GKETztRt9GbT39zc8GU6Nor5jD0alP2xTH8v+pwIHhFl X-Received: by 2002:aca:482:: with SMTP id 124mr877029oie.35.1585242484943; Thu, 26 Mar 2020 10:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585242484; cv=none; d=google.com; s=arc-20160816; b=vA4bdnVVtg5Yhqv0gL8S3a6pLrjAS1q8l5ofRw6dXVkNgNPeE9VBDVYkZjw4YU0dsD DmzHos/Fl3hClZypOhz/wKs9aM8cRg9IkJL2HD+3/ix+szWIfLupTg1crdXwLVeGhk4W 5H8qiuqgvqVBb0EqZSX1bEJJihBF2aamfhpmgfic8G1LKaKxtZYEhPNwgcypnUJOjhyh A41gKOSEEtM3UlsGLwsRmEIlQAr32ODU26Mu/Adj9n14nTHlQ6aLElt60+WUKeBfjPws rfQogYwU4O7vzqMZ0bO0LBthZ0gniuFulQCjsqxXsXxWz83uFhhZDUYqkvIvprxbJ0Jo K4WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=gARF0rHb0muzdyrqJu/MWBgxBGcjQdJxSC1i55veaKk=; b=Pc6gDRBzfyzaGfwEqFe4VXqCv17vt9abBAa0f5fzlG4ukTOksXRS2gP7AdNBf2Rywa j8VZoVDoEM/PKRE0/w8MxhF20s+i3vvSmRO2tg7DT8cR/LuXYzY/IBLGr/ToxUGZBjLl QylUem2QMXCMbg8HC2r+JE+YoPt/AVngl1okI/6jGHd1/q7s7gP5dTlJOvrdNCX2BWcZ aj8qGHgiSkc9beRK/r0Qq6/Amw6MJbnol+MGyYkU0MnXUxB4eZRPSxzKjYWpbOIDcdKR rOxsRKtlDOt/1jhdf4u3R3zxlHwFO8mToSLlYiF5IdunM0DbOi01qxIzGRMKvMZyqKys d+zw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si590082otf.37.2020.03.26.10.07.50; Thu, 26 Mar 2020 10:08:04 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727803AbgCZRG3 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Mar 2020 13:06:29 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([207.82.80.151]:50242 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726267AbgCZRG3 (ORCPT ); Thu, 26 Mar 2020 13:06:29 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-128-BbCZWy8OPy-iM7dSdlzdMw-1; Thu, 26 Mar 2020 17:06:25 +0000 X-MC-Unique: BbCZWy8OPy-iM7dSdlzdMw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 26 Mar 2020 17:06:25 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Thu, 26 Mar 2020 17:06:25 +0000 From: David Laight To: 'Jessica Yu' CC: "linux-kernel@vger.kernel.org" , "'Linus Torvalds'" , Masahiro Yamada , Matthias Maennich Subject: RE: modpost Module.symver handling is broken in 5.6.0-rc7 Thread-Topic: modpost Module.symver handling is broken in 5.6.0-rc7 Thread-Index: AdYDiqOPE71nee/CTfS3aDSZbkO5JwABAkKAAABe9DA= Date: Thu, 26 Mar 2020 17:06:25 +0000 Message-ID: <90b763cc306140499fddf8e3185e26f5@AcuMS.aculab.com> References: <931818529b1d4d13a08d30ddace22733@AcuMS.aculab.com> <20200326165036.GA22172@linux-8ccs> In-Reply-To: <20200326165036.GA22172@linux-8ccs> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jessica Yu > Sent: 26 March 2020 16:51 > +++ David Laight [26/03/20 16:25 +0000]: > >Something is currently broken in modpost. > >I'm guessing it is down to the recent patch that moved the > >namespace back to the end of the line. > > > >I'm building 2 'out of tree' modules that have a symbol dependency. > >When I build the 2nd module I get ERROR "symbol" undefined message. > > > >If I flip the order of the fields in Module.symver to the older order > >and link with modpost from 5.4.0-rc7 (which I happen to have lurking) > >it all works fine. > > > >Note that I'm using a named namespace, not the default one > >that is the full path of the module. > > > >I'll dig in a little further. > > [ Adding more people to CC ] > > Hi David, > > Could you provide some more details about how I can reproduce the > issue? As I understand it, you have two out-of-tree modules, and one > has a symbol dependency on the second? Pasting the modpost error > messages helps too. Ok, I've found out what broke it. Was actually the removal of the code that parsed Module.symvers from the current directory (which happened for 5.5.0-rc0). Took some digging and printfs in modpost to find what wasn't happening. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)