Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4655805ybl; Wed, 22 Jan 2020 02:11:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwyqDVXlnQ4ixMNrfgE06q3XNi2l97UGnoU6t6FGO59bklqSgFPrlYrip5YCboruPPYVhxT X-Received: by 2002:a9d:7b50:: with SMTP id f16mr6886644oto.18.1579687894115; Wed, 22 Jan 2020 02:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579687894; cv=none; d=google.com; s=arc-20160816; b=SOzhuwyP2ZBcTjRk9Zv6LWvo2GLbq5exvSGKmJl6Qz7VgsY2EYP0pkGIoWwNhSczex OxYBYVMgSvip2Bn9TUsv0Q1PZFppTaW6ZF9s/1fwH8h/2wTy3TU9v9ZgGzul6e8Y+ZuI dxIK7jLqnhAAUxCQHQoLN5nefVHXoehrf3c5FqMZ/iGNLs9oW9O6aovt2Kyu8oxRzorl mDmTpTFEKERCvgQBZuQ9dKcS+jp0RIawK+wdRtd1CM/PtkMyqE9ygxXsckanh/ULP361 W3To5cZIK9yF8o5gyQ31rUNwpR9agNm309LkPZVggcZ3B0uEthabn5Mod+yLjtMATb3l XIEw== 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; bh=XGFTzoTGdZ6hcWXIcK7x3xV4ZY9OOQ0ONOAJZsnc/lg=; b=ln3FBdeDjSshW9ylQzX8c/DfwRBHZAadbSjyhRn/0xGpcE41Ta3LJuZLMWzT9IJZ1Z 4hXMBdzgZQWGomMGEpQXE4Z3fXskBASPf4jsufcYxT9cS4184XIxB3/KGe2MklQPioEv CeO2UF1jH8ayCidcbtUlEBmJH3bBdnNMHSbhEy+QlYOMtrVY6rBpfNKxNma88iX33OJ2 WDFvyMuk6Yjq6h0BVKEgaZgpHLWHWMFKbFrPaH5vXdhZpSayGP6w804Cqv+RVsCySWlG +fexlehCer/rq9NBX/aK+uw//4137JC8s8Acypba1r/Ozl65JIo4LkV+fLJzP5wdAtyF wDMw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si20993385oic.40.2020.01.22.02.11.22; Wed, 22 Jan 2020 02:11:34 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729393AbgAVKKC (ORCPT + 99 others); Wed, 22 Jan 2020 05:10:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:55116 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgAVKKC (ORCPT ); Wed, 22 Jan 2020 05:10:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BB8DCB2C0; Wed, 22 Jan 2020 10:09:59 +0000 (UTC) Date: Wed, 22 Jan 2020 11:09:56 +0100 (CET) From: Miroslav Benes To: Josh Poimboeuf cc: Peter Zijlstra , Steven Rostedt , Joe Lawrence , Jessica Yu , x86@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, bristot@redhat.com, jbaron@akamai.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, namit@vmware.com, hpa@zytor.com, luto@kernel.org, ard.biesheuvel@linaro.org, live-patching@vger.kernel.org, Randy Dunlap Subject: Re: [PATCH v3 5/6] x86/ftrace: Use text_poke() In-Reply-To: <20200121161045.dhihqibnpyrk2lsu@treble> Message-ID: References: <20191015135634.GK2328@hirez.programming.kicks-ass.net> <88bab814-ea24-ece9-2bc0-7a1e10a62f12@redhat.com> <20191015153120.GA21580@linux-8ccs> <7e9c7dd1-809e-f130-26a3-3d3328477437@redhat.com> <20191015182705.1aeec284@gandalf.local.home> <20191016074217.GL2328@hirez.programming.kicks-ass.net> <20191021150549.bitgqifqk2tbd3aj@treble> <20200120165039.6hohicj5o52gdghu@treble> <20200121161045.dhihqibnpyrk2lsu@treble> 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 > > > At this point, I only see downsides of -flive-patching, at least until > > > we actually have real upstream code which needs it. > > > > Can you explain this? The option makes GCC to avoid optimizations which > > are difficult to detect and would make live patching unsafe. I consider it > > useful as it is, so if you shared the other downsides and what you meant > > by real upstream code, we could discuss it. > > Only SLES needs it right? Why inflict it on other livepatch users? By > "real upstream code" I mean there's no (documented) way to create live > patches using the method which relies on this flag. So I don't see any > upstream benefits for having it enabled. I'd put it differently. SLES and upstream need it, RHEL does not need it. Or anyone using kpatch-build. It is perfectly fine to prepare live patches just from the source code using upstream live patching infrastructure. After all, SLES is nothing else than upstream here. We were creating live patches manually for quite a long time and only recently we have been using Nicolai's klp-ccp automation (https://github.com/SUSE/klp-ccp). So, everyone using upstream directly relies on the flag, which seems to be a clear benefit to me. Reverting the patch would be a step back. Also I think we're moving in the right direction to make the life of upstream user easier with a proposal of klp-ccp and Petr's patch set to split live patch modules. It is a path from inconvenient to comfortable and not from impossible to possible. Miroslav