Message ID | 20201120202426.18009-10-rick.p.edgecombe@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=cYCG=E2=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 434A7C64E69 for <linux-mm@archiver.kernel.org>; Fri, 20 Nov 2020 20:30:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AC44F2223F for <linux-mm@archiver.kernel.org>; Fri, 20 Nov 2020 20:30:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC44F2223F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 7EFD36B0074; Fri, 20 Nov 2020 15:30:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6D4886B0075; Fri, 20 Nov 2020 15:30:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 57B286B0078; Fri, 20 Nov 2020 15:30:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0227.hostedemail.com [216.40.44.227]) by kanga.kvack.org (Postfix) with ESMTP id 296266B0074 for <linux-mm@kvack.org>; Fri, 20 Nov 2020 15:30:09 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C792D180AFE25 for <linux-mm@kvack.org>; Fri, 20 Nov 2020 20:30:08 +0000 (UTC) X-FDA: 77505938496.10.legs25_3208b6c2734e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id A0C7116A4AD for <linux-mm@kvack.org>; Fri, 20 Nov 2020 20:30:08 +0000 (UTC) X-HE-Tag: legs25_3208b6c2734e X-Filterd-Recvd-Size: 2618 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf32.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Fri, 20 Nov 2020 20:30:06 +0000 (UTC) IronPort-SDR: Sb+81ztaOitdqApLJ+dZfmhvnuR6bCVvwQerqx96b707IJYB8qlcIC0O62ic0dHTR2ZT3Q8OAo VuSNO5xmVqyQ== X-IronPort-AV: E=McAfee;i="6000,8403,9811"; a="171702888" X-IronPort-AV: E=Sophos;i="5.78,357,1599548400"; d="scan'208";a="171702888" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2020 12:30:05 -0800 IronPort-SDR: L1xDqxf3UVznloBFPan2HQRYqMBh/YHfvW36kbJ8ZoLYsTqGGXh+fYXmNokknMcHOPOuJTURc/ R1wrNmlQC+Hg== X-IronPort-AV: E=Sophos;i="5.78,357,1599548400"; d="scan'208";a="342163328" Received: from rpedgeco-mobl.amr.corp.intel.com (HELO localhost.intel.com) ([10.209.105.214]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2020 12:30:04 -0800 From: Rick Edgecombe <rick.p.edgecombe@intel.com> To: akpm@linux-foundation.org, jeyu@kernel.org, bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, luto@kernel.org, dave.hansen@linux.intel.com, peterz@infradead.org, x86@kernel.org, rppt@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com Cc: elena.reshetova@intel.com, ira.weiny@intel.com, Rick Edgecombe <rick.p.edgecombe@intel.com> Subject: [PATCH RFC 09/10] ftrace: Use module writable address Date: Fri, 20 Nov 2020 12:24:25 -0800 Message-Id: <20201120202426.18009-10-rick.p.edgecombe@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201120202426.18009-1-rick.p.edgecombe@intel.com> References: <20201120202426.18009-1-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
New permission vmalloc interface
|
expand
|
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 8185f7240095..ea6377108bab 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -6134,7 +6134,7 @@ static int ftrace_process_locs(struct module *mod, if (!count) return 0; - sort(start, count, sizeof(*start), + sort(module_adjust_writable_addr(start), count, sizeof(*start), ftrace_cmp_ips, NULL); start_pg = ftrace_allocate_pages(count);
Use the module writable address to accommodate arch's that have a separate writable address for perm_alloc. Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com> --- kernel/trace/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)