Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628AbdCAMv1 (ORCPT ); Wed, 1 Mar 2017 07:51:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42222 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdCAMvU (ORCPT ); Wed, 1 Mar 2017 07:51:20 -0500 Date: Wed, 1 Mar 2017 06:43:00 -0600 From: Josh Poimboeuf To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, a.p.zijlstra@chello.nl, torvalds@linux-foundation.org, peterz@infradead.org, hpa@zytor.com, linux-tip-commits@vger.kernel.org Subject: Re: [tip:core/urgent] objtool: Fix __unreachable section relocation size Message-ID: <20170301124300.7upqx3aefcqj46ky@treble> References: <20170301060504.oltm3iws6fmubnom@treble> <20170301103712.GA22478@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170301103712.GA22478@gmail.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 01 Mar 2017 12:43:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1813 Lines: 45 On Wed, Mar 01, 2017 at 11:37:12AM +0100, Ingo Molnar wrote: > > * tip-bot for Josh Poimboeuf wrote: > > > Commit-ID: 90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 > > Gitweb: http://git.kernel.org/tip/90a7e63a31b8f7d630d12ef0d8d37d3ab87f76e5 > > Author: Josh Poimboeuf > > AuthorDate: Wed, 1 Mar 2017 00:05:04 -0600 > > Committer: Ingo Molnar > > CommitDate: Wed, 1 Mar 2017 07:38:25 +0100 > > > > objtool: Fix __unreachable section relocation size > > > > Linus reported the following commit broke module loading on his laptop: > > > > d1091c7fa3d5 ("objtool: Improve detection of BUG() and other dead ends") > > > > It showed errors like the following: > > > > module: overflow in relocation type 10 val ffffffffc02afc81 > > module: 'nvme' likely not compiled with -mcmodel=kernel > > BTW., beyond inadequate testing, another mistake I failed to notice during review > is that the title of the patch was actively misleading: an "objtool: " prefix > suggests a change that only affects objtool, while the changes here were to > compiler-gcc.h, affecting pretty much everyone... > > So a better, more informative commit title would have been: > > objtool, compiler.h: Improve detection of BUG() and other dead ends > > ... to at least warn people about the wider impact. (To be honest I personally > probably would still not have noticed the bug, but maybe others.) > > Along the same lines I'll fix the title of this fix patch as well, once a final > version has been reached. Yeah, that would have been a more informative title indeed. For what seemed (to me) like a straightforward improvement, which was 90% objtool and 10% kernel, that commit introduced a surprising number of subtle bugs in the kernel. -- Josh