Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938317AbcKXJlQ (ORCPT ); Thu, 24 Nov 2016 04:41:16 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:63956 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935701AbcKXJkT (ORCPT ); Thu, 24 Nov 2016 04:40:19 -0500 From: Arnd Bergmann To: Nicholas Piggin Cc: Greg Kroah-Hartman , Ingo Molnar , Al Viro , Adam Borowski , Michal Marek , Philip Muller , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linus Torvalds , Andrew Morton , Peter Zijlstra , linux-arch , linux-kbuild , Russell King Subject: Re: [PATCH] x86/kbuild: enable modversions for symbols exported from asm Date: Thu, 24 Nov 2016 10:38:04 +0100 Message-ID: <2648926.soV2DX4tAK@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <20161124185322.1e2a492c@roar.ozlabs.ibm.com> References: <20161123205338.GA12050@angband.pl> <20161124073639.GA12728@kroah.com> <20161124185322.1e2a492c@roar.ozlabs.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:UTBV51MaugUs9hVSkwPz7RO5VttZYfEfNpyIXJQfRjunEJim7Fv h9DW3LnNmbkiWnIryOkbdhF3H5L4N4IVpUg7+49vsn6kSfE44gCsjU8M6uzDvAXKVVOuStm iAk+XTjlJjPUQBiU7Q0NoNfDvYRUgG6ZBoPldOfbdIQg1bDZbesgqmub7+K6lEm1hfK0t3I BciZloqpH5SkpCsnPK5eA== X-UI-Out-Filterresults: notjunk:1;V01:K0:nZtN4l0FnyI=:5GSdFNK//dO7xobXy//jly iYsJx9kOTpxr9AUOmrv0zPvJEKPcaHdvtbcLvEpB6/Ke4qGCh2ZfcFSPDAQRLaLm7CORIkx6E 7hVxvySoN1CquHU1vtOzql+7gPq71KBJv6UM/cUaV5xld46HDFudPhflWcgsdVqrjL78Uwil4 hrEzPSU8eCproMZ9yjzfJHvu5NhpAKLaNqIKDQmqKIGy3fr0BaCk6yp76UmA2NrT+PIpzPzm0 X0cf/PM1DJX7wCkiAoNNpBew4NISaE08LDmebn5jcCrTzL4AlUTU+i0pSI+pj+hg6JjZV+hhS bHMQYyeiM9OTUUBMUp6VlrplfkoexduEQJ7Imie8MOtjox1tg2zUL+Tt5IBtljzg305JRwVOD a6VPmEw+pfJmXJo650WiR2hf6ydq/2KcTHW9XImSyNZFlN8D7pGzSKVxonc1Uethj0waSq7iU 0iZnz4QJwohpNEKUPdhYoniUlza/L5N6lbwZzXXYKgp1KTZpB4C8FmQv0yoyNuKF/pZk7y9Uk zNS7Jd8fgryr/5kZVeuy/qpjR3VY/bUb4RPkz791Ase59BxP1ed1bK1P00A/m0+Npzk/iQ8BE agJGbEimJobBnEaaZMRNjYwJIrwdAKFcg77ERKlboYy/dzNUGkaJCFgaEhV+vQ1BUQMKkcNXT H8LBrQ3MlWUyA2GW69EXYBljVpv/xDDRiU930yaoVAzbOOpaYdTgyK4Uy8g9EWX0okcdzniS8 Q2tG/8udAb5hgOVF Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1608 Lines: 31 On Thursday, November 24, 2016 6:53:22 PM CET Nicholas Piggin wrote: > > > > > Google tells me > > > Linus is not a neutral bystander on the topic of symbol versioning, so I'm > > > bracing for a robust response (actually I don't much care either way, I'm > > > happy to put a couple of bandaids on it and keep it going) > > > > There are tools that people are working on to make it more obvious where > > API breaks happen by looking at the .o debug data instead of our crazy > > current system (which is really better than nothing), perhaps we should > > start using them instead? > > > > See here for more details about this: > > https://kernel-recipes.org/en/2016/talks/would-an-abi-changes-visualization-tool-be-useful-to-linux-kernel-maintenance/ > > Hmm. I guess it's basically similar to modversions, so has downsides of not > detecting a semantic change unless it changes the type. But still, if we could > replace our custom code with a tool like this for modversions functionality, > that alone would be a massive improvement. But requiring debug info might be > a bit of a show stopper. I also don't know if that would handle asm functions. It's certainly not an option for v4.9 at this point. There is also no realistic way we can get a correct asm/asm-prototypes.h for all the other architectures in place. At the moment, powerpc is the only one that actually works with modversions. We can either make CONFIG_MODVERSIONS a per-architecture opt-in and let only the ones that have the header file select that, or revert all of Al's original patches that moved the exports. Arnd