Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5996547ybp; Tue, 15 Oct 2019 08:07:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNkCzo0aT+BElvnchnj8PZnVT/tKx18AP/XHddkMgw3XAHUYeHwFNPOb431sF+drewtPpF X-Received: by 2002:a17:906:6d82:: with SMTP id h2mr34650795ejt.127.1571152060987; Tue, 15 Oct 2019 08:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571152060; cv=none; d=google.com; s=arc-20160816; b=JsK5tTdlzgCcmyQkiysYCJ31h/ElyDZ05FNgG4tJgn4wFZZOS53ApKJ3KPbWLbpnAO kmQxUBehbCeP65TlztCOqd0qzX520hgvUrH6klPDEHZKUWC1a8EKCnmbx651AgfLGw3k vB0lANqCXFZlMUtxyO0kOipjY2xH7J6AiytCdfjkjJW5EoH3JIp0v4Fh1E+pUkAJAbUJ aekoAzTEhj6BSoDVUYx/X1WuT4js3+xykV7ChYLiyzQVZ9qHiuneOiTnfLKKGGFRxLWN aJ3m/aF0Q4Ww7e6sbsvDBNmWByVzuT3ShD6pu63/SnoMDUh1Co1q7r08fJ1pUFtFOD9y l7pQ== 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=QKsRTTw9BmVw6p+QsEwZkoDmx/4QhJ0H2VbUieOK80s=; b=Nt5SpldouCeUfjwuz5gCqPa0kIx9abtzTdTwsZiGqolCUMmv45LpHWFdnzr0ZLjMC3 NhSdx4l1RuQHokiLEsetOhTTJ9QuhD16eZmVYan3nIwVTAqsOdBMAIXJbaAaQ8rizuU1 nTb1EbURwp4tbYtw8ipXeAmaQWEDknx/GQYLvsd2f/7nS1pLItxD6YfrbDLGAdoExoYf 6lg8727W8bBFboFkxBinVreDPsdywYxH8ezQ/873nZdmWhEgucFYJV1B9csTh1XeJNcr rrCaKUdgk3rf41fDudM1fAll6hb2d29MK6RKLRfJwwNW46dj4YTGC1Mz46/FtbKfPSUb oSDA== 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 z12si13447624ejb.312.2019.10.15.08.07.15; Tue, 15 Oct 2019 08:07:40 -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 S1733217AbfJOPHB (ORCPT + 99 others); Tue, 15 Oct 2019 11:07:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60112 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732939AbfJOPHB (ORCPT ); Tue, 15 Oct 2019 11:07:01 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B38672100; Tue, 15 Oct 2019 15:07:00 +0000 (UTC) Received: from [10.18.17.119] (dhcp-17-119.bos.redhat.com [10.18.17.119]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D2F8619C58; Tue, 15 Oct 2019 15:06:53 +0000 (UTC) Subject: Re: [PATCH v3 5/6] x86/ftrace: Use text_poke() To: Miroslav Benes , Peter Zijlstra Cc: Jessica Yu , 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: <20191007081945.10951536.8@infradead.org> <20191008104335.6fcd78c9@gandalf.local.home> <20191009224135.2dcf7767@oasis.local.home> <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> From: Joe Lawrence Message-ID: <88bab814-ea24-ece9-2bc0-7a1e10a62f12@redhat.com> Date: Tue, 15 Oct 2019 11:06:53 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.71]); Tue, 15 Oct 2019 15:07:00 +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 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? -- Joe