Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935219AbcCQP7f (ORCPT ); Thu, 17 Mar 2016 11:59:35 -0400 Received: from verein.lst.de ([213.95.11.211]:57275 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751415AbcCQP7c (ORCPT ); Thu, 17 Mar 2016 11:59:32 -0400 Date: Thu, 17 Mar 2016 16:59:28 +0100 From: Torsten Duwe To: Balbir Singh Cc: Jiri Kosina , Michael Ellerman , linuxppc-dev@ozlabs.org, pmladek@suse.com, jeyu@redhat.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, kamalesh@linux.vnet.ibm.com, live-patching@vger.kernel.org, mbenes@suse.cz Subject: Re: [v3,1/8] powerpc: Create a helper for getting the kernel toc value Message-ID: <20160317155928.GB32575@lst.de> References: <3qNsms00H7z9snl@ozlabs.org> <56E9F332.1070206@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56E9F332.1070206@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 628 Lines: 14 On Thu, Mar 17, 2016 at 10:58:42AM +1100, Balbir Singh wrote: > > To be honest I think my v6 works well, but I don't have complete confidence > due to the lack of proper testing. livepatch samples plus some others I wrote > and I one Petr wrote all work (calling patched from within patched), I have outlined a failure scenario for you as a reply to v6 ;) Question to all: would it be feasible to limit the size of a single module's .text + TOC to let's say 8MB, and place modules at 10MB granularity? Then it would be unambiguous: exactly iff the high 40 bits of (TOC-LR) are zero, both belong to the same module. Torsten