Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6908652ybp; Wed, 16 Oct 2019 00:26:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbCASMGrHCqwDdyadnu1e2Qpbpm82Xl8sBPYOxNjy8Ga3XPN0VI1TPfET22epqFx7S2ibl X-Received: by 2002:a17:906:4ac8:: with SMTP id u8mr38938013ejt.193.1571210788915; Wed, 16 Oct 2019 00:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571210788; cv=none; d=google.com; s=arc-20160816; b=Rhkg3wETexDVOTFOQtOLuD/k3akV8SZx/ZsmSeeP+XGgqa9U6nzezEEBHc8Nmb/sAO vmpZGHCxL4YUTb6gwb34JoJ1v7s6zfBhmzW3MeyaR1h7vNV8FFfrbIOlmv/1yoQJVbEl Nw6oA7Sx4K+c6azY5Glz4g0UTmzhQd4MRBEgQ7UlmOJd7Z1jiEyIhYtduCO0+xFiArIv hTRiUiQdzbbDNlGFl8AYSgdES85Z8m19o1EgZXxz8Nz66iKo2wNXPMgY6+dRCTQ3YPdx cz1O8JLDza72ILIR5Y7arQC34u2h3VpKK6M7N6s2qZLHcM9TtXpvjdpRzATwiV9x52BC Bw6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=OGGkN2GScmHUTojpextyjOUK2mRGMP13xzJp45HtwS4=; b=Ip7PJJvzHu9mWNYqqztPM6uFndBzUeWdB1SXS32gb5uXUC6p8eXYq3MLZjMro7RYj2 sQg0rGk6jtz1mh1ISzbUwgEhKwSxlwD0MvG3ce+NWNZV919ft4JGoSKnzKPoxPmjFFJt 3NFBjvzeKDyJoVs+Ow/XmDCVyuePL7GgqKILm4GCTk68FZB9YzNrfouIKbFxtOowedF4 CImczKXYMiV2O+b1QECnfGQMrYkf4C29/ArnOTMhdSUBEpY6Qxumny2CF3VFO+BVSysq aoII0o4OIomMpfCvPisqh17VEveHtFuLSeO6czBAzoMS76V7jjlsENY1AKV3e9JOfIJN Dt6A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si14109784edr.429.2019.10.16.00.26.05; Wed, 16 Oct 2019 00:26:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727392AbfJOWRu (ORCPT + 99 others); Tue, 15 Oct 2019 18:17:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51926 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbfJOWRu (ORCPT ); Tue, 15 Oct 2019 18:17:50 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 513AA51EE6; Tue, 15 Oct 2019 22:17:49 +0000 (UTC) Received: from [10.10.120.184] (ovpn-120-184.rdu2.redhat.com [10.10.120.184]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F3C096064B; Tue, 15 Oct 2019 22:17:44 +0000 (UTC) Subject: Re: [PATCH v3 5/6] x86/ftrace: Use text_poke() To: Jessica Yu Cc: Miroslav Benes , Peter Zijlstra , Steven Rostedt , 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, jpoimboe@redhat.com, live-patching@vger.kernel.org References: <20191010092054.GR2311@hirez.programming.kicks-ass.net> <20191010091956.48fbcf42@gandalf.local.home> <20191010140513.GT2311@hirez.programming.kicks-ass.net> <20191010115449.22044b53@gandalf.local.home> <20191010172819.GS2328@hirez.programming.kicks-ass.net> <20191011125903.GN2359@hirez.programming.kicks-ass.net> <20191015130739.GA23565@linux-8ccs> <20191015135634.GK2328@hirez.programming.kicks-ass.net> <88bab814-ea24-ece9-2bc0-7a1e10a62f12@redhat.com> <20191015153120.GA21580@linux-8ccs> From: Joe Lawrence Message-ID: <7e9c7dd1-809e-f130-26a3-3d3328477437@redhat.com> Date: Tue, 15 Oct 2019 18:17:43 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20191015153120.GA21580@linux-8ccs> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 15 Oct 2019 22:17:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/19 11:31 AM, Jessica Yu wrote: > +++ Joe Lawrence [15/10/19 11:06 -0400]: >> On 10/15/19 10:13 AM, Miroslav Benes wrote: >>> Yes, it does. klp_module_coming() calls module_disable_ro() on all >>> patching modules which patch the coming module in order to call >>> apply_relocate_add(). New (patching) code for a module can be relocated >>> only when the relevant module is loaded. >> >> FWIW, would the LPC blue-sky2 model (ie, Steve's suggestion @ >> plumber's where livepatches only patch a single object and updates are >> kept on disk to handle coming module updates as they are loaded) >> eliminate those outstanding relocations and the need to perform this >> late permission flipping? > > I wasn't at Plumbers sadly, was this idea documented/talked about in > detail somewhere? (recording, slides, etherpad, etc?). What do you > mean by updates are kept on disk? Maybe someone can explain it more > in detail? :) > Livepatching folks -- I don't have the LPC summary link (etherpad?) that Jiri put together. Does someone have that handy for Jessica? Thanks, -- Joe