Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp373332ybi; Thu, 13 Jun 2019 18:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi4nVjh45ID9rlcsgl18ZrJRU4ugqFEcXbmBizP8htq+okOh/sWjVQiHZKSTi5MZSQ2BHa X-Received: by 2002:a65:5889:: with SMTP id d9mr7037948pgu.39.1560474534911; Thu, 13 Jun 2019 18:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560474534; cv=none; d=google.com; s=arc-20160816; b=FUCL0OHOP0NEqEILJTrBlz19556jYMhSJzQNxwUQ7pv0duEo1uErsQkZXnPMRX01iJ XU8kiG/YHAKoc0rBz6v65jacc+ZPnWwkRMWOFzMbjPDdwV1K4R3CqLRNPmRfGwBqrdJl J3m6dCy+Sm2SrpwlwSzpMqqC0Z0rDBohmQRhImGvewz/kLT3aBd41S/u8KmQ7WdgFVrI 8NnXzYEtkocmXSRAkuTDNRr3x8NfVU06u1J0NRG9X1P1IhikBt7RXT9LUpUxH1nTwLo/ veR5q/08CB5RnGyhge2x9WtcL7hiRAKilGF0qqMJNVoy9VKUpRJbqet/wdf/p5sY2fvR TLxg== 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:mime-version :message-id:date:subject:cc:to:from; bh=8qpDSuMh/jLjRYs8NDt1lIhKXntWyKMclMdLQl9logE=; b=amOuHnF3o6Gz5PFqDFDWSEBbsyEYaT2h8FIAhXEYiDFVdGfF+CmHmxOggYq9+PpTPE MY24jpOmeNmUJ7DQNNmK15ucgXeENidDO+zDgMrnRmwfiIsprt1nXsZogCd6xK9ZiVft 461jFpxsEsWRWwcVXrYBivlgllL1RAS3UQq1P/DOBdY2RTgPGSFJpk7RBJFnlaWkjjC3 vybml+hZt9iVdf/OH/SD0luc7jv5GxnNvvAxtppQcEMuX0UuiO4Ql8MayKtLNBiEq67O DS+gDyvNHdzdc5ZNOA5N3O9E+bj4M1Vrf3XF2BX/yKnbqn2uh3p7rzSiHvxwX38TKPta zPvw== 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 w12si848379plp.296.2019.06.13.18.08.38; Thu, 13 Jun 2019 18:08:54 -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 S1726103AbfFNBIc (ORCPT + 99 others); Thu, 13 Jun 2019 21:08:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33532 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbfFNBIc (ORCPT ); Thu, 13 Jun 2019 21:08:32 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 34CD23082DDD; Fri, 14 Jun 2019 01:08:29 +0000 (UTC) Received: from treble.redhat.com (ovpn-121-232.rdu2.redhat.com [10.10.121.232]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DC8B5429D; Fri, 14 Jun 2019 01:08:24 +0000 (UTC) From: Josh Poimboeuf To: Jessica Yu Cc: Steven Rostedt , Petr Mladek , Jiri Kosina , Miroslav Benes , Joe Lawrence , linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Johannes Erdfelt , Ingo Molnar Subject: [PATCH 0/3] module: Livepatch/ftrace fixes Date: Thu, 13 Jun 2019 20:07:21 -0500 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 14 Jun 2019 01:08:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1 fixes a module loading race between livepatch and ftrace. Patch 2 adds lockdep assertions assocated with patch 1. Patch 3 fixes a theoretical bug in the module __ro_after_init section handling. Josh Poimboeuf (3): module: Fix livepatch/ftrace module text permissions race module: Add text_mutex lockdep assertions for page attribute changes module: Improve module __ro_after_init handling arch/arm64/kernel/ftrace.c | 2 +- include/linux/module.h | 4 ++-- kernel/livepatch/core.c | 10 ++++++++-- kernel/module.c | 29 ++++++++++++++++++++++------- kernel/trace/ftrace.c | 10 +++++++++- 5 files changed, 42 insertions(+), 13 deletions(-) -- 2.20.1