Message ID | 20210322121920.142955352@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3538672jai; Mon, 22 Mar 2021 05:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc44kuCphI6+gZwC/1wtnLaVuKeZjjox/91HCD1eL4FN8r88GMw7B+12nUI1eugRYRjK0/ X-Received: by 2002:a05:6402:2552:: with SMTP id l18mr25128274edb.71.1616417433530; Mon, 22 Mar 2021 05:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616417433; cv=none; d=google.com; s=arc-20160816; b=TmyVtlH3+eAYiw31rCeQgdKmOxfZQVb+2h4viWBkdjtDNaxZFPnhgiRVe53TauloFM zoCh4yTNZ0dKZ4OEcHL2qnrkDjcJHN932QXtdUYu0GNjwt/L+fIrv63Iy3yGl4ZMFQim 1zHFdDVtvpxr4ulMDH9kyJnihQJmRXMDBhSqWxgZIocNhNeagsa8QZX6NsXv4V4LSuFX owfOHKjA1lcKTqE59elYdBusSiS1n6WQKJaQNFIv5NwC3MKDA6cc60ghvz9YEpcMsvGW PVfDTxGCwuA7+zyfq0cp1NmRfkH0e8hQqu47z3ptLzho9DW2rMCljh7mp5XtQXlof+Ym ApDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=crdtPIDTC1i0jX7Os926RsH7oVxdejBrF2lpIE++uSM=; b=r33KndLCU2LvsNry+02KCPnozXNTW74TijoQ59xaDgprtMH+3KKYVohyHdW0XpA8eS /GKGhQVLf/68nwu/Hgdy2AHIbfTcvgtU06Yq12qFIcGTkpiiR3a2Zq9UQ/Xsy0/F3RZM H8zsN/tuvZ2iBk9D0kUZJwf6z6eoaqB+U5XOI7F6yCwoLGYQ5opcGoVcbqupvIyb9W7v M0vvZvssfeli4OgK/a2TnJkrmtdUNh/UV89Krzy2lZWUVgmv5/j/tBrS1k7GzgtwEND9 uMWkWdhuot75nORvfTY4a91E4c/fB2EvgS/RoENzudF3mxGoLVp97DeXon1Cz29M/EDT 9DBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YUm0g63Z; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx12si11199464edb.404.2021.03.22.05.50.33; Mon, 22 Mar 2021 05:50:33 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YUm0g63Z; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232208AbhCVMuA (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 22 Mar 2021 08:50:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:40960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232835AbhCVMsR (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 22 Mar 2021 08:48:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 60791619DC; Mon, 22 Mar 2021 12:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1616417068; bh=csEDHaGiGz95T2hFcn+4A2Nc9jq13tmY/hcqh1IU/Pk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YUm0g63Z5u+Axd61rRB/Pbqm7CMs9YxBQNkuB4ZhnxbdhYB/u23BLrggk0c4uBP5l J2HSMYWsj8UllGqUkXjpwjF3Oyn1TVYaDBG9TQ14tFssqLmALMWoZ15QfpC/TWOjoB 8wVZPFQwVmz0uLFgCj1W+e7dA7U3sMFs0Cxk3x20= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Arnd Bergmann <arnd@arndb.de>, Kees Cook <keescook@chromium.org>, Mark Rutland <mark.rutland@arm.com>, Nicolas Boichat <drinkcat@chromium.org> Subject: [PATCH 4.19 06/43] lkdtm: dont move ctors to .rodata Date: Mon, 22 Mar 2021 13:28:20 +0100 Message-Id: <20210322121920.142955352@linuxfoundation.org> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210322121919.936671417@linuxfoundation.org> References: <20210322121919.936671417@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/misc/lkdtm/Makefile +++ b/drivers/misc/lkdtm/Makefile @@ -13,7 +13,7 @@ KCOV_INSTRUMENT_rodata.o := n OBJCOPYFLAGS := OBJCOPYFLAGS_rodata_objcopy.o := \ - --rename-section .text=.rodata,alloc,readonly,load + --rename-section .noinstr.text=.rodata,alloc,readonly,load targets += rodata.o rodata_objcopy.o $(obj)/rodata_objcopy.o: $(obj)/rodata.o FORCE $(call if_changed,objcopy) --- a/drivers/misc/lkdtm/rodata.c +++ b/drivers/misc/lkdtm/rodata.c @@ -5,7 +5,7 @@ */ #include "lkdtm.h" -void notrace lkdtm_rodata_do_nothing(void) +void noinstr lkdtm_rodata_do_nothing(void) { /* Does nothing. We just want an architecture agnostic "return". */ }