Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754916AbbBTWJU (ORCPT ); Fri, 20 Feb 2015 17:09:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65272 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754526AbbBTWJS (ORCPT ); Fri, 20 Feb 2015 17:09:18 -0500 Date: Fri, 20 Feb 2015 16:08:45 -0600 From: Josh Poimboeuf To: Vojtech Pavlik Cc: Ingo Molnar , Jiri Kosina , Peter Zijlstra , Andrew Morton , Ingo Molnar , Seth Jennings , linux-kernel@vger.kernel.org, Linus Torvalds Subject: Re: live patching design (was: Re: [PATCH 1/3] sched: add sched_task_call()) Message-ID: <20150220220845.GI15980@treble.redhat.com> References: <20150219204036.GA16882@suse.com> <20150219214229.GD15980@treble.redhat.com> <20150220095003.GA23506@gmail.com> <20150220104418.GD25076@gmail.com> <20150220194901.GB3603@gmail.com> <20150220214613.GA21598@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20150220214613.GA21598@suse.com> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 29 On Fri, Feb 20, 2015 at 10:46:13PM +0100, Vojtech Pavlik wrote: > On Fri, Feb 20, 2015 at 08:49:01PM +0100, Ingo Molnar wrote: > > I.e. it's in essence the strong stop-all atomic patching > > model of 'kpatch', combined with the reliable avoidance of > > kernel stacks that 'kgraft' uses. > > > That should be the starting point, because it's the most > > reliable method. > > In the consistency models discussion, this was marked the > "LEAVE_KERNEL+SWITCH_KERNEL" model. It's indeed the strongest model of > all, but also comes at the highest cost in terms of impact on running > tasks. It's so high (the interruption may be seconds or more) that it > was deemed not worth implementing. Yeah, this is way too disruptive to the user. Even the comparatively tiny latency caused by kpatch's use of stop_machine() was considered unacceptable by some. Plus a lot of processes would see EINTR, causing more havoc. -- Josh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/