Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757552AbcCXLGm (ORCPT ); Thu, 24 Mar 2016 07:06:42 -0400 Received: from ozlabs.org ([103.22.144.67]:52253 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757149AbcCXLGe (ORCPT ); Thu, 24 Mar 2016 07:06:34 -0400 Message-ID: <1458817586.3742.1.camel@ellerman.id.au> Subject: Re: [PATCH/RFC] ppc64 livepatch: frameless klp_return_helper using odd TOC From: Michael Ellerman To: Torsten Duwe , Balbir Singh Cc: Petr Mladek , jeyu@redhat.com, jkosina@suse.cz, jikos@kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, kamalesh@linux.vnet.ibm.com, linuxppc-dev@ozlabs.org, live-patching@vger.kernel.org, mbenes@suse.cz Date: Thu, 24 Mar 2016 22:06:26 +1100 In-Reply-To: <20160324080449.GA13139@lst.de> References: <20160323155858.GB27110@lst.de> <56F34F85.7020408@gmail.com> <20160324080449.GA13139@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 707 Lines: 21 On Thu, 2016-03-24 at 09:04 +0100, Torsten Duwe wrote: > On Thu, Mar 24, 2016 at 01:23:01PM +1100, Balbir Singh wrote: > > On 24/03/16 02:58, Torsten Duwe wrote: > > > > > > 1. Heuristics are bad. The better they are, the more subtly the > > > way they might fail. > [...] > > This CR+4 code leaves only 1 slot, so sibling calls are extremely dangerous, > as I mentioned. But with a little attention, this patch works very well. > > I mostly wanted to hear opinions about a transient odd TOC value > before I start polishing. Hi Torsten, I just posted the version I've been working on. I prefer it, but you'll probably tell me that there's some horrible case it doesn't handle correctly :) cheers