Message ID | 20210215152720.995680282@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c80e:0:0:0:0:0 with SMTP id p14csp1172524jao; Mon, 15 Feb 2021 07:39:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyG2lGpSMvP627H3vInWtOLy0NiX77AgUIJKrlknx9OOgqFAsau9AMv8KRsZfiXKInwxA1K X-Received: by 2002:a50:f096:: with SMTP id v22mr6267264edl.275.1613403584120; Mon, 15 Feb 2021 07:39:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613403584; cv=none; d=google.com; s=arc-20160816; b=JscstEDKUIhhk96tfC0aVMnS4B5cXtBYYRWeHSbuUJsFsVZ2W+f29/7UIdqyz0VRrL kS7gv2YpuEzsorj+Sbe079/iFMEwJQxG6w66opoMZRCDT3d7wCFltLC4JcRHk7XNAwj8 XSDZDjdsbbyXcXFcyNGV18Y1mwEP5DfF+gqnADv60Vvo8IrPrKU+h9UUx8f4FEvsxLFC fx4MLIJ/mfGbu79ixC+AOoDJ0zoGsPCNuzH7hJoHScryVd+40m0btDXxpyiBecc2Apgc nFif8oHbZHZIsEnHgHKMe48e/2L8OxtDzYXNpgjXKibwnk1IL5FADb8Hj7MR1HnHkU2V ibQw== 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=SSVxe52Z5DJ7x2Y4XgUuX4TTFhLENf09lPXc3HzwYXQ=; b=0XUJGuaGONmf4oFDlqxlXEaL9Bc9xlHZXyXr+WWerByWVVg4I46yI16v4G2XVPkCaw Dr7d9tJ/DAg5KfcQIGw9yewAfbmInTz5DRl1/S/14KmpCDSxwREJ/sDRbpv/tQqyOxYQ prhoz68Ug9qBKg/AQliANH+SGx/jlHVU9B5+3NZ6tbGVkcYJ3KSqXW/K/q8SwM1tSCVQ VLijCRx0upxK1+q1bKrx1Ig+ceVdOIjBxJLOJ5Axon6wCHY8T9iPYRnCY1fU3QDfpm6T dKb1vC5bM2fZWmB+ViebdzagwAx1XZhPJeOOm0acdVZJr8lAEuBQSZ6H95Gbnbgx58w8 dFBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cRhmDT4X; 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 x5si12376627ejv.626.2021.02.15.07.39.42; Mon, 15 Feb 2021 07:39:44 -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=cRhmDT4X; 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 S231448AbhBOPjA (ORCPT <rfc822;semen.protsenko@linaro.org> + 13 others); Mon, 15 Feb 2021 10:39:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:50308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231390AbhBOPhV (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 15 Feb 2021 10:37:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 20C5F64E94; Mon, 15 Feb 2021 15:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613403149; bh=N7iQosL3JKwRkW9ldYYAmSXSbyFJasnEVSlivJd289U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cRhmDT4XcTNkx+GTKs3m+RgRkH9762IbpJaWmPnlz22ZaLv1FxVBhFlhaIgjzSX3c xRqZJxom8BbSiCu2rdyb0I34dadg76ffvoDEBHDpWntzb6AMltEacSyogq43mRcLDG 8xYn5cFnH+lZjXKJ3xvDr6NR7tboR79VxEzGg7v0= 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>, Stephen Boyd <swboyd@chromium.org> Subject: [PATCH 5.10 047/104] lkdtm: dont move ctors to .rodata Date: Mon, 15 Feb 2021 16:27:00 +0100 Message-Id: <20210215152720.995680282@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210215152719.459796636@linuxfoundation.org> References: <20210215152719.459796636@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 @@ -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) --- 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". */ }