Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2384809pxb; Thu, 11 Feb 2021 10:57:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyP1NSwMQjx1dFrQU1He4EOx7cFJ7GL5/X/WCzZWw1rKtj7LaFd8AyU6vTdMXci+xtHsg6d X-Received: by 2002:aa7:dcc6:: with SMTP id w6mr10004155edu.19.1613069864213; Thu, 11 Feb 2021 10:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613069864; cv=none; d=google.com; s=arc-20160816; b=hyvza45sQaVQXpfJcMkYYayDD8Xb5tYtnrDwF+3gjNZ8SgPgRFYkknQIu8hl4KXlIp 0q7y5GTKNGZwPvp2v7o5YrgNFNo5wSRfcOXBHMhQS1PD2i9O6n3LXpsrMi7ydRSrktu+ moIafsvgGjVExUrJ7xHsVTRCy5bERwnSgJ1pH5GR8CJbolnAcbdZZVB0yV6E8lqbbwaJ VJDq01gPqL5WwsuGhaBKGV1VJPSh5zWcfHmG8KZXDcHul55AKkLw+UIb03ddBJ1CQHmg /tbEBKjMdo+hZ/8Y6lMrOHLF8DgXsWq1lz6th2Kc478ZU7sS1F0o9Z87bk6CiepH5dnS 2CaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=xpndM70yEhgRGe+KrDE0IH979jxYXm9ttbsYqDRk0G8=; b=g6e8tsIA/+yeaEYVoewguP4EAY2qqd1QaNLLtm+bXkuwPORu13GNwj58TofmcNyWCQ DBZg/gHQ84R1F5dTvqwZ78VHO4KxmsLgpuV3iZMIYCy5TXDJa6K3GlRay2XR5nqKe1DX srsyDqgAOdtXIsy57KJNHgZ5hmr8kXXdpCZ1dEDRL/a/eW436PfpBCMqUCYl40Ic+CAq +L0sEnxDQyaQV7b+qWTIBJ4MjwCmWJ+L8BDj7TMzYvMxT+L6tSKXBavryzRxIiVSqek/ B0YrMJEcOJzvg10rQpLjfBlfCkJtZ6TU3Jj4Y3JtsjAdSfZSkj/D5tnmj9vfx1YL/iFM smGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E06KTUuH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si4310896ejr.614.2021.02.11.10.57.11; Thu, 11 Feb 2021 10:57:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@chromium.org header.s=google header.b=E06KTUuH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230407AbhBKSyq (ORCPT + 99 others); Thu, 11 Feb 2021 13:54:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230239AbhBKSxy (ORCPT ); Thu, 11 Feb 2021 13:53:54 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A340C061574 for ; Thu, 11 Feb 2021 10:53:14 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id b145so4261652pfb.4 for ; Thu, 11 Feb 2021 10:53:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=xpndM70yEhgRGe+KrDE0IH979jxYXm9ttbsYqDRk0G8=; b=E06KTUuHa1N69lin9dfmfYrh3O7liQ7sjr9V4elOQ0pI9DtEuIM5pG2uYR0na8s/M6 y1xZbYr2CEvGVbC36Tob7tY+JTq4jDUSnRPaiBUr+DKoYI+5ba5OITaRwuNTJOTAPFSG Aovxw10AMACoyXiGbcmoGniQfdbGRwP+Kg0gM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=xpndM70yEhgRGe+KrDE0IH979jxYXm9ttbsYqDRk0G8=; b=HmzkyjHNLMdDh0uqJ/Lshwu3b1EiSAl/Ni6jrz+6xkMNj5gSvo7byyAhvHF1dzzxCM +yCLgqMgW6EJL103s22wad6Fq4QcpZ7xChDAFWd9XiVtwV8ydWIW9q5A+qGSJcIt6BcX 6Zkk2c/D20NTOK16V4N4Ye7AbEg0qznqhQpySZr3jp07oOBN4cFyGw48RvLrKDnxJZ2e mH8f1a8lCwF8o/e7fykZW0GijB5tk0CDxQaac7ORvUevyH9sIsvBjwH0EYudt8JxXskZ zkR8WJ4QkyW6UaZbpDs/xpB0oA9lMir8k4NYcT+IhsXii7SRNYlHx87Jd2QvmMsrlmIy AQCA== X-Gm-Message-State: AOAM533PHUZFLipM3d8vzpaqIK3rmYNiy9ABl2uf/txPq3JG9oMerC+T SAiZiLhVc5gea3iD7tSz22FJ+Q== X-Received: by 2002:a65:654e:: with SMTP id a14mr9560819pgw.265.1613069593951; Thu, 11 Feb 2021 10:53:13 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:f038:5688:cf3c:eca2]) by smtp.gmail.com with ESMTPSA id t17sm6812101pfc.43.2021.02.11.10.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 10:53:12 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20201207170533.10738-1-mark.rutland@arm.com> <202012081319.D5827CF@keescook> <161300376813.1254594.5196098885798133458@swboyd.mtv.corp.google.com> Subject: Re: [PATCH] lkdtm: don't move ctors to .rodata From: Stephen Boyd Cc: Kees Cook , Mark Rutland , linux-kernel@vger.kernel.org, Arnd Bergmann , stable@vger.kernel.org To: Greg Kroah-Hartman Date: Thu, 11 Feb 2021 10:53:10 -0800 Message-ID: <161306959090.1254594.16358795480052823449@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Greg Kroah-Hartman (2021-02-11 06:23:10) > On Wed, Feb 10, 2021 at 04:36:08PM -0800, Stephen Boyd wrote: > > Quoting Greg Kroah-Hartman (2020-12-09 06:51:33) > > > On Tue, Dec 08, 2020 at 01:20:56PM -0800, Kees Cook wrote: > > > > On Mon, Dec 07, 2020 at 05:05:33PM +0000, Mark Rutland wrote: > > > > > [ 0.969110] Code: 00000003 00000000 00000000 00000000 (0000000= 0) > > > > > [ 0.970815] ---[ end trace b5339784e20d015c ]--- > > > > >=20 > > > > > Signed-off-by: Mark Rutland > > > >=20 > > > > Oh, eek. Why was a ctor generated at all? But yes, this looks good. > > > > Greg, can you pick this up please? > > > >=20 > > > > Acked-by: Kees Cook > > >=20 > > > Now picked up, thanks. > > >=20 > >=20 > > Can this be backported to 5.4 and 5.10 stable trees? I just ran across > > this trying to use kasan on 5.4 with lkdtm and it blows up early. This > > patch applies on 5.4 cleanly but doesn't compile because it's missing > > noinstr. Here's a version of the patch that introduces noinstr on 5.4.97 > > so this patch can be picked to 5.4 stable trees. >=20 > Why 5.10? This showed up in 5.8, so how would it be needed there? >=20 Sorry for the confusion. Can commit 655389666643 ("vmlinux.lds.h: Create section for protection against instrumentation") and commit 3f618ab33234 ("lkdtm: don't move ctors to .rodata") be backported to 5.4.y and only commit 3f618ab3323407ee4c6a6734a37eb6e9663ebfb9 be backported to 5.10.y?