Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1429188ybm; Tue, 21 May 2019 14:02:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpubz2utJWukXPTkM8hwq0LTQdQhrqrNN1AmN8w87Zfiu9FzsOL5ZKUgENRqb9tluK5v+t X-Received: by 2002:a65:578b:: with SMTP id b11mr84882525pgr.446.1558472551232; Tue, 21 May 2019 14:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558472551; cv=none; d=google.com; s=arc-20160816; b=cMly9881XIEwKS9Mogqu15bNxk1VHSyaE4gb0ApjAb93ubSLoYAoqnXmA3jmn6tZgi nbcNfw+NROzul58ztQxN/wlSsBkY27wwrJleoBc2j0ZohiDhjsYZP/+zCRaedviIn4rR u1qJ5ebBvuch0Qd0zqzXWySi4dlvyz5NifR2NM0Dxp78BaIHb63bShV1v0Y7h6a4JQTz endmrX59T0sEE7/ZcwlFW6JlJoWTVJUdYlKLus+zl8AZLAp5EFWoFjD7ZMiJmXVn4Zho NUUtYjVXjEsfZMKCpoVsSdHwNZhoo/5kxHmoxzZclotUQKESkH2WAkfS1O1hpE+HpjXL 7Alw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Hfxtr18FqEqBe3BqLiWXcRSDgJ7g6vUS8fyqcIXyGUU=; b=WHebX3VU9NI9VWQ9gJdS+zvRRUCpBiGWtvNic6/k2eZOxCExu7NmgOcyQnT50DdJiA 9XcZu2MKsrUMYEDzxaXppOsUsuOX3Tj5j5MWCzFr6MPsuP+r71NwykZGSLQsL8HRseZi en/ukUIV2D9FfwMxsORl+/YHi/JegycWvyy/7j5XjpseOTYIsqtIPEFJvnaBzqWmSTw8 a0cr+O0tN4cY2c8tLFawZxS6lq2wXo8MD584aZDtaAELJt+hTlVrnp9WXzgJg6c7MV4E 695XQPzXkvb5stZSgqY3CZEr3/1Ggs7O2GGTjyhLQhRVVPMOcdhC2zhQu5RpZ55aTrda QRkQ== 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 65si22462544plb.39.2019.05.21.14.02.15; Tue, 21 May 2019 14:02:31 -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 S1727627AbfEUVAX (ORCPT + 99 others); Tue, 21 May 2019 17:00:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52660 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbfEUVAX (ORCPT ); Tue, 21 May 2019 17:00:23 -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 6C09937EE7; Tue, 21 May 2019 21:00:23 +0000 (UTC) Received: from treble (ovpn-125-173.rdu2.redhat.com [10.10.125.173]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 39180196F6; Tue, 21 May 2019 21:00:19 +0000 (UTC) Date: Tue, 21 May 2019 16:00:14 -0500 From: Josh Poimboeuf To: Joe Lawrence Cc: Johannes Erdfelt , Jessica Yu , Jiri Kosina , Miroslav Benes , Steven Rostedt , Ingo Molnar , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Oops caused by race between livepatch and ftrace Message-ID: <20190521210014.aoew7p7y3jbl7na4@treble> References: <20190520194915.GB1646@sventech.com> <90f78070-95ec-ce49-1641-19d061abecf4@redhat.com> <20190520210905.GC1646@sventech.com> <1802c0d2-702f-08ec-6a85-c7f887eb6d14@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 21 May 2019 21:00:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 03:27:47PM -0400, Joe Lawrence wrote: > BTW, livepatching folks -- speaking of this window, does it make sense for > klp_init_object_loaded() to unconditionally frob the module section > permissions? Should it only bother iff it's going to apply > relocations/alternatives/paravirt? Yeah, technically there shouldn't be a need to do the frobbing unless there are .klp.rela or .klp.arch sections for the given object. Though I'm not sure it really matters all that much since loading a livepatch is a pretty rare event. -- Josh