Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755747AbdLVNNF (ORCPT ); Fri, 22 Dec 2017 08:13:05 -0500 Received: from mx2.suse.de ([195.135.220.15]:53394 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770AbdLVNNB (ORCPT ); Fri, 22 Dec 2017 08:13:01 -0500 Date: Fri, 22 Dec 2017 14:12:59 +0100 (CET) From: Miroslav Benes To: Petr Mladek cc: jpoimboe@redhat.com, jeyu@kernel.org, jikos@kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, jbaron@akamai.com Subject: Re: [PATCH 2/2] livepatch: Allow loading modules on architectures without HAVE_RELIABLE_STACKTRACE In-Reply-To: <20171221151428.rt4dlizxb5nqhb3h@pathway.suse.cz> Message-ID: References: <20171208172523.12150-1-mbenes@suse.cz> <20171208172523.12150-3-mbenes@suse.cz> <20171221151428.rt4dlizxb5nqhb3h@pathway.suse.cz> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 960 Lines: 24 On Thu, 21 Dec 2017, Petr Mladek wrote: > On Fri 2017-12-08 18:25:23, Miroslav Benes wrote: > > Now that immediate feature was removed, it is not possible to load > > livepatch modules on architectures without HAVE_RELIABLE_STACKTRACE. Fix > > it by removing guilty check in klp_register_patch(). > > > > The architectures without HAVE_RELIABLE_STACKTRACE will now rely only on > > kernelspace/userspace boundary switching, the (fake) signal and force > > feature. > > I do not thing that this is a good idea. It encourages people to use > the force feature. They might get used to it. > > If people are going to provide livepatches, they should be capable > enough to provide a kernel where it is allowed. IMHO, the upstream > kernel should not support bad/dirty practices out of box. You're probably right. It is true that with immediate gone the only reasonable thing for all supported architectures is to provide HAVE_RELIABLE_STACKTRACE. Miroslav