Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3150848yba; Tue, 16 Apr 2019 05:55:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDBPoBxZ7KRcNqpCk1OTSv/X0H/9WRYrUmgf5+uLoony8kCLScwg5PcyakP7MdlqLVdSI9 X-Received: by 2002:a17:902:6b0b:: with SMTP id o11mr17408041plk.266.1555419350224; Tue, 16 Apr 2019 05:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555419350; cv=none; d=google.com; s=arc-20160816; b=yHxxNRc3pAzzHPm1G+4FJWLw0gjkphWNHAjrPrqyENy7rIBiSv3gS+mzfug6z7ybsP i7Qgy+jBE5p5U8kzRNpS0+Gas/St5TLXkql/D2jMHz4M9jYdvkPzFXWPLbJF5owJYCjN KNOPovcuveu3kJjtcjT74eriokeC60V1VxZeBBMmr0PzObELn9iFbgSWAQHIFmUxPBNT VReSAs27yXeok1WWRYYPvJxHM2jQI9op8VogMHGsOnwxf7mw7FnhHg1rwD4lFyQs3LvQ xk2JV3L7upzxR2xWQ7YRB3m7epVR5e3/JgXYFHi1O8XwAulAE2LS3xp+yw924zxexoi1 uBqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=nWI4cFZu0T2uS4FKlVPWAdban+FOGvA6GSfMDF7iKS0=; b=ZfqI2a9oa5/vsJK4OQ+mA2nFldIzvDrp6Y/nMP3R9liLcqM8rFdCcyRxjQkon/61GF Gv/hdgpfySkF4n9LwzrtTU8VJq+t1jrJqiEvBBGKvv2k5RhaRjptecrz3CRi9DdcnZ/t 1HcJ+EpstGpZjylWJmlGiTI0TDaYY377giIa7SsbT8SktQDMqxNL9BQ98OCdfT47bKgX hNU86xZA4o2RhcPppjxh2gcRWzihDcQ2ArhPQKZ7z8kYeMSajRT95udMuekoWrr6QA+8 KdGNjQsAMUJnQe0aEta9poxFkuF5o24EjquVzAurt9w264TFMkrVyOSrJn5fZwVrmI/M 3rNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YyiyejyC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c26si27171415pgw.251.2019.04.16.05.55.32; Tue, 16 Apr 2019 05:55:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YyiyejyC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729079AbfDPMys (ORCPT + 99 others); Tue, 16 Apr 2019 08:54:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:52904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbfDPMys (ORCPT ); Tue, 16 Apr 2019 08:54:48 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A176205ED; Tue, 16 Apr 2019 12:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555419287; bh=tBz4qqTz9PQ/H6dWlOMBzyFYTI3ugAxa00FsDjnuN8o=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=YyiyejyCIq69cV1LSFMOdIGoyRAUu55+ljOtwg0QDUgfF2BpgCHcrlD5m5/JeX7u9 g4rSekO30RMZXJ05VRz9VZiz3rrLOCZxcpZdmu8b7o2FogrW/7K1NpjwGhIqU4vnzA 8p+23l/XAGTJf4PVmRu9Rvqvnud5zZ3ZExVMRmcA= Date: Tue, 16 Apr 2019 14:54:44 +0200 (CEST) From: Jiri Kosina To: Petr Mladek cc: Josh Poimboeuf , Kamalesh Babulal , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes Subject: Re: [PATCH] livepatch: Enforce reliable stack trace as config dependency In-Reply-To: Message-ID: References: <20190209091728.23046-1-kamalesh@linux.vnet.ibm.com> <20190211140813.z7kap634gz3gp6a4@treble> <20190212094608.bzwc26j67daqnx6x@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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Apr 2019, Jiri Kosina wrote: > > Do you mean to convert the error into warning? > > > > For example, the change below. Note that I did not mention > > the possibility to force the transition by intention. It is risky > > and people should not get used to it. > > > > Heh, I think that this was the main reason why it was the error. > > We did not want to get people used to forcing livepatches. > > > > > > diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > > index d1af69e9f0e3..8d9bce251516 100644 > > --- a/kernel/livepatch/core.c > > +++ b/kernel/livepatch/core.c > > @@ -1035,11 +1035,10 @@ int klp_enable_patch(struct klp_patch *patch) > > return -ENODEV; > > > > if (!klp_have_reliable_stack()) { > > - pr_err("This architecture doesn't have support for the livepatch consistency model.\n"); > > - return -EOPNOTSUPP; > > + pr_warn("This architecture doesn't have support for the livepatch consistency model.\n"); > > + pr_warn("Only one livepatch can be installed.\n"); > > } > > > > - > > This seems to have been lost. > > I think we should take this aproach before Miroslav is ready with > realiable stack traces for s390. At the same time, I'd suggest issuing a > proper WARN() there instead of just pr_warn(). The kernel might be in a > potentially funky state, so let's at least get the 'W' taint in place. Ignore the above, there is nothing wrong with the kernel unless the patch is forced. So we should be good taking it as-is. Petr, could you please send it with proper changelog and signoff? Thanks, -- Jiri Kosina SUSE Labs