Message ID | 20210215152716.160248805@linuxfoundation.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp1167361jao; Mon, 15 Feb 2021 07:32:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3V6SdoBMqmhfZ0cHNSYiTG2+q6WmsuPeIXH2y4hduho636i3OrK5bLbiMXBjxYM9mJMkm X-Received: by 2002:a17:906:3944:: with SMTP id g4mr6393587eje.481.1613403156318; Mon, 15 Feb 2021 07:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613403156; cv=none; d=google.com; s=arc-20160816; b=CNq+/0IOp7y4+byCdrsfqid+lqv9PLBGEb8BhqwQ2dN9kGCWKPy8avd4o45aV0kcWP lRyBbbhI66FucA4clBWOkLS0fCrgY1Rqp+ksRcca7JPyyL5HozoBcikMJx9FpUw5ODEY G2weA18joG3CsvbAcPIvaSs0LUTDQb4qDPEI1ZY5FZusvB4xgTjqi1EYU0Nl/J2Ci9zj 3qwluCEKX/Uq3B/bT3SY4TyFHx8hgm6DLEs3jhcAU9IdQT9mTJEL695NOhWC0A06Fu3P VhyMxRaGB4mN67fb6slFnXXN/SbR0nBeTT0lVhv21B95LZma6mnm3IGpLfXF004QWlM4 QMrw== 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=yOZh65dpagB28N4S29Myp/s4G4wh8Bm0WI5a8KmOxAo=; b=Bi136K6Xov1lO3afbSytajLIOvzjG/mmo+vAOoW7kqTuCylBZqsPRVCpDeFED6n4sP xFQuqkao4v5OhzHMYUW2128w5NygS2WmuQ94VAFhzCEYsptI/I8w8URIh7lQ9u1jPA5i huORx3vUKjIEb2EOjAJSUzfVsrYGqCYBu/q3rVADLRDOf7OTxZVeIngEpQyob6J1/PbP 8KuOzyVme7t2SVK5T+pbKrXDnl62AR7smn7JnBqPk+nZb9mLYQfN5Eh+7CJ4DoUIhjCB lpCv+nfGVbasM+i7qimzcuK+aXAFn/OXK++0s97Tz0hzZ16TBZIAALH/AMH3Aog+bl3D 4MmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NUlE9Y8s; 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 df3si6873082edb.286.2021.02.15.07.32.35; Mon, 15 Feb 2021 07:32:36 -0800 (PST) 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=NUlE9Y8s; 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 S231132AbhBOPbk (ORCPT <rfc822;semen.protsenko@linaro.org> + 13 others); Mon, 15 Feb 2021 10:31:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:45562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbhBOPau (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 15 Feb 2021 10:30:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D21D564E6D; Mon, 15 Feb 2021 15:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613402933; bh=8uz61srI5MpGZlQlk5XsysikPJubFMCHy6yVxUdvUds=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NUlE9Y8sQ6X7pWq4qt0NAlbMgnIh11XamzRRb0L0krfqk0gu7nufRX3dF+CJzi+t/ 8o5L/ZQbOqzqe/TnQI0XrPwN1x1cpF86bLJ6qsF1gOiv+an8UwFajO6oLM9K6tycKf IZL63SeazC47PQKjWny5f4gBEdBKd5jSzxMMP6+k= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Kees Cook <keescook@chromium.org>, Mark Rutland <mark.rutland@arm.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.4 25/60] lkdtm: dont move ctors to .rodata Date: Mon, 15 Feb 2021 16:27:13 +0100 Message-Id: <20210215152716.160248805@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152715.401453874@linuxfoundation.org> References: <20210215152715.401453874@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
|
diff --git a/drivers/misc/lkdtm/Makefile b/drivers/misc/lkdtm/Makefile index c70b3822013f4..30c8ac24635d4 100644 --- a/drivers/misc/lkdtm/Makefile +++ b/drivers/misc/lkdtm/Makefile @@ -16,7 +16,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) diff --git a/drivers/misc/lkdtm/rodata.c b/drivers/misc/lkdtm/rodata.c index 58d180af72cf0..baacb876d1d94 100644 --- 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". */ }