Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp6085416ybl; Tue, 27 Aug 2019 14:14:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/0rYllSpwU9qnrHYs7Y40U0FpgGhlTyf/J0JayVdB+7v3zJIH9Zga4aYTubWUomEZWjde X-Received: by 2002:a65:4489:: with SMTP id l9mr409295pgq.207.1566940449872; Tue, 27 Aug 2019 14:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566940449; cv=none; d=google.com; s=arc-20160816; b=N66iHaR6rzTQFtP57VrIYGwKonj/a5xct9/SneOBNazYkMejB+gqU2GexeFbuJLBJb cli6nzoxfJeFpicYrccaKm4OmcpbivhD127xaGatkd/19X5OuN7Jj5dpBYVAKvINh0W8 uWq7m32862rWw3wSaz4NfD9kh1fUFir4mpKDeP9J5hDoxzD9P5CpnEqOSkk+La6rEN0x fAhWGMJoXTDLik8ydI+zIvlZ5ck+GGoRmSEkGcJ6oQCeWi+ZsRrG0UBM504pWLq2avuh 5Cm0TK41YiKBxqQxu6+7oOkGwNI+q94HEqXhfi2DGl/+ZqadXUx4JzanV8czjajfr6Op uULA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=YsdXr08vQ7Rp87DlEpdyKDSwpfwzk0VoxGqnz3KaKWE=; b=Z5ebAc8RK/TYauEz7PM3h+m8aXZue7mgecAwCYblYeZQ/bSh2h93V7HxspmqpM/Zte A9vStBDe7oMGv7nWY0p25eP0B+/jo3qMlm1sjiUoOZ1sMr4ZPJorowsfsf+9AmfWZLZK +f5Sa2KTRQmzy78tV0mD7unhhtepIj5cYBZNMlebNSDV9nAQR3AKAPYncfbvcEax4IeI 098zvu1WD7dLYZRl7EpfbcKjUSGRFH0xfNP0jhjxrJmOsEcgWe8DnwJEQYzrjJv+1YdQ SkCn/rsxEWUHxUbe73EUhwBcjgZocTM19jQ2l1zf5JTOSy6oFU61g0V92WF6xB29ARWS ChxA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si173144pju.44.2019.08.27.14.13.50; Tue, 27 Aug 2019 14:14:09 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730473AbfH0VLY (ORCPT + 99 others); Tue, 27 Aug 2019 17:11:24 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49232 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbfH0VLX (ORCPT ); Tue, 27 Aug 2019 17:11:23 -0400 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i2ikJ-0006SQ-9d; Tue, 27 Aug 2019 22:11:19 +0100 Received: from ben by deadeye with local (Exim 4.92.1) (envelope-from ) id 1i2ikI-0007E4-NV; Tue, 27 Aug 2019 22:11:18 +0100 Message-ID: <2b6111fbbe3f44c18c93bd247601a40986eacb22.camel@decadent.org.uk> Subject: Re: a bug in genksysms/CONFIG_MODVERSIONS w/ __attribute__((foo))? From: Ben Hutchings To: Greg KH Cc: Nicholas Piggin , Masahiro Yamada , Ard Biesheuvel , Arnd Bergmann , LKML , Michal Marek , Nick Desaulniers , Linus Torvalds , Will Deacon , Debian kernel maintainers Date: Tue, 27 Aug 2019 22:11:13 +0100 In-Reply-To: <20190827170931.GA26908@kroah.com> References: <1566899033.o5acyopsar.astroid@bobo.none> <1566908344.dio7j9zb2h.astroid@bobo.none> <20190827170931.GA26908@kroah.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-BE+bv3pJLifouWhO5Q8C" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-BE+bv3pJLifouWhO5Q8C Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-08-27 at 19:09 +0200, Greg KH wrote: > On Tue, Aug 27, 2019 at 04:34:15PM +0100, Ben Hutchings wrote: > > On Tue, 2019-08-27 at 22:42 +1000, Nicholas Piggin wrote: > > > Masahiro Yamada's on August 27, 2019 8:49 pm: [...] > > > > modversions is ugly, so it would be great if we could dump it. > > > >=20 > > > > > IIRC (without re-reading it all), in theory distros would be okay > > > > > without modversions if they could just provide their own explicit > > > > > versioning. They take care about ABIs, so they can version things > > > > > carefully if they had to change. > >=20 > > Debian doesn't currently have any other way of detecting ABI changes > > (other than eyeballing diffs). > >=20 > > I know there have been proposals of using libabigail for this instead, > > but I'm not sure how far those progressed. >=20 > Google has started using libabigail to track api changes in AOSP, here's > a patch that updates the ABI file after changing it: > https://android-review.googlesource.com/c/kernel/common/+/1108662 >=20 > Note, there are issues with it, and some rough edges, but I think it can > work. Thanks for the pointer. > But, it means nothing at module load time, this is only at build-check > time. At least modversions would prevent module loading in some cases. Right, but I *think* that would be enough if we could mark modules for strict (exact version) or loose ("ABI version") matching as I outlined. Ben. --=20 Ben Hutchings I'm always amazed by the number of people who take up solipsism because they heard someone else explain it. - E*Borg on alt.fan.pratchett --=-BE+bv3pJLifouWhO5Q8C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAl1lnHEACgkQ57/I7JWG EQnH0BAAlri4E/3gs5cBbfQh5sIsnVG9aVv5R1v+vDF8+D6Cc68bnGBijEFifV94 LNiV9UvQzfkvxSNZHBAOPWZZlY3GIgWFR7IsSR539jH8QSu+8GTZyoO6ZWCx5sm7 feSSRh2KMTBhonLKRx7DzTMtI9x7UbyuxY82wESbE9BzRwUpZ/YJ1eVXByWkTsow 6OE9739/AtxDrgQ5mEhw21YVZzgf/173SsCJIZd7MwGN4Isyeetm9ZpCSQSpXez0 vlojkIlSKk1E+w2WwygxKd/nzYw/YPjfh/8HE6FvvVbdD1UcUj8o0kTjy39WVTe6 97lC0NEOA8ARgz1AIWpDt/PVYKKATm7iLGAUi5PeB42Hw4VqbuqQHhATelT8W3i2 UJ9zjeZiIWsB+hXBUB+fG3PAIebpnj4/OboTcpvPNDKxrLUSjOhqNH3yAdM7SGu/ IFUGo4ayvoXAspTxutjfhBDS6Hfd+voT79+0Za9gTsE4Awpz+soYtykwYpmZTrDc ov5iKmEpPI+eyJwDOn0o7bdMyx1OZdGQ+3fONi45rfH3kzVVBPfdzASGcIRtBFae xQxf9tOIKg0RKCWHKxnJ8OKQOWV05Bg0YofeSOsrO7srBbQd7WzlvH27o2Tohnb+ 8BfqtvE+Wk4fyxvYQm7qhXxWxu1+9V6UCvmP3TF9UDJxCnYSXQ4= =g4Is -----END PGP SIGNATURE----- --=-BE+bv3pJLifouWhO5Q8C--