From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752104AbcCVTA3 (ORCPT ); Tue, 22 Mar 2016 15:00:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48524 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520AbcCVTAX (ORCPT ); Tue, 22 Mar 2016 15:00:23 -0400 Date: Tue, 22 Mar 2016 15:00:19 -0400 From: Jessica Yu To: Jiri Kosina Cc: Josh Poimboeuf , Miroslav Benes , Rusty Russell , Petr Mladek , Jonathan Corbet , linux-api@vger.kernel.org, live-patching@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: livepatch: reuse module loader code to write relocations Message-ID: <20160322190018.GB30747@packer-debian-8-amd64.digitalocean.com> References: <1458157628-8264-1-git-send-email-jeyu@redhat.com> <1458157628-8264-5-git-send-email-jeyu@redhat.com> <20160321191832.GC12357@packer-debian-8-amd64.digitalocean.com> <20160321213445.e64jic2uoc7tdtbl@treble.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-OS: Linux eisen.io 3.16.0-4-amd64 x86_64 User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +++ Jiri Kosina [21/03/16 23:02 +0100]: >On Mon, 21 Mar 2016, Josh Poimboeuf wrote: > >> According to my test that still results in the literal value of >> "(64 - 8)". > >Alright. But we should be able to special-case it with a two #if checks on >the __SIZEOF_LONG__ value and BUILD_BUG_ON() when __SIZEOF_LONG__ is not >of one of the ususal sizes. > And while we're at it, we might as well add a BUILD_BUG_ON check for KSYM_NAME_LEN too, since we are also hard coding that field width, and we'd like to be alerted if that value ever changes.