Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4410115pxb; Sun, 14 Feb 2021 09:18:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+puNnI8fWu+h6oRibBh3G/9KuUec6D/KQjHYC43R1Tg7k+hiByDdWttHBXtugUW20Y54p X-Received: by 2002:aa7:d283:: with SMTP id w3mr11457893edq.30.1613323112981; Sun, 14 Feb 2021 09:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613323112; cv=none; d=google.com; s=arc-20160816; b=Pe33fqOJMXQGOuxFVkgkRHnObMh42tgxpRojwodCadEfX2bTP39Hci58d2tzeq2Gdz 6zTdQXw08GRCRq4ezBrOm0Z2wzM4ub+HXi0MQ1VDugLcpFSVhDn8brcnlWUPTGfn254B pAUf5cIbzI0LgpDfuDQZt/VBtm7vit/iEOYmA9kPJ4vo61AYynxCq7+CPWXXvqSLM+fT 1QPNHsH6lh7USywFEUfKmzemSXMilJweQD1hrUetoS0/WOTUpCuenZqDFTf7T9ZEO79c wXsAbu6mR5UBc8Og0MMDtQVHzPrWKS0qZTV6fN1dX3XPv2qZkOkGnpvxwwJx8y1/XkgS Omhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nP9iVBUN07gUfOCe1EuR2GGMtB+5XRkGcwnYSR1Y1zU=; b=tDQOXkiz5mRDz3DSQOd1lepqFSQyf3XhzpIq710eVQJjtzfsVU2/5ewgJpdNuzQHfJ 6CYHCYSyfBIzYjQl/LpMHkNpYG60L5kGSF05FOs5nU9lh9+0PJdRY9wOZ1ZhKXlsdwWk OFqli8uPSvimZVKjdRTBHV5th4mIwnF1BE1WL9Z3X7ZbJbX5UIr9UWEBWYAdCPqKvOX2 HzRpaVhs5C2bbZ7v291RCN/H1kX2Np7La3kygJY8G3HxTxRb9ToackKvvAmISljvwjRA NinqmRrAxDlfZ9jBVoJS0FekEHkGW1KLeG5/XwTMEa0F5gvbQ9aHf4ICiVetBSD70Gt6 sjGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Cpk4bz51; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si10270988ejd.541.2021.02.14.09.18.09; Sun, 14 Feb 2021 09:18:32 -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=@linuxfoundation.org header.s=korg header.b=Cpk4bz51; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229813AbhBNRRO (ORCPT + 99 others); Sun, 14 Feb 2021 12:17:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:48898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbhBNRRN (ORCPT ); Sun, 14 Feb 2021 12:17:13 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A93F6601FD; Sun, 14 Feb 2021 17:16:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613322992; bh=rt9KivGHTWjFc7frvPj3HqH62Z1WT3dELJ67xjgun70=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Cpk4bz51qEKvKmmtxjDvtbGxOmipHS2kkQqzrw6fIQ0PLjyZip/97dnHoPVOKzCbF xn8UwwkydWjuwNU0aV8gXdZFAwlqmV/CUxmGPIrTX/w+7JoTkdgfBnKipXiRiqTaiQ 2tGWS/OXtzaQLuDhnqUlFvRHZItLGhOZ7OcQY8cc= Date: Sun, 14 Feb 2021 18:16:29 +0100 From: Greg Kroah-Hartman To: Stephen Boyd Cc: Kees Cook , Mark Rutland , linux-kernel@vger.kernel.org, Arnd Bergmann , stable@vger.kernel.org Subject: Re: [PATCH] lkdtm: don't move ctors to .rodata Message-ID: References: <20201207170533.10738-1-mark.rutland@arm.com> <202012081319.D5827CF@keescook> <161300376813.1254594.5196098885798133458@swboyd.mtv.corp.google.com> <161306959090.1254594.16358795480052823449@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <161306959090.1254594.16358795480052823449@swboyd.mtv.corp.google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2021 at 10:53:10AM -0800, Stephen Boyd wrote: > 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 (00000000) > > > > > > [ 0.970815] ---[ end trace b5339784e20d015c ]--- > > > > > > > > > > > > Signed-off-by: Mark Rutland > > > > > > > > > > Oh, eek. Why was a ctor generated at all? But yes, this looks good. > > > > > Greg, can you pick this up please? > > > > > > > > > > Acked-by: Kees Cook > > > > > > > > Now picked up, thanks. > > > > > > > > > > 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. > > > > Why 5.10? This showed up in 5.8, so how would it be needed there? > > > > 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? 655389666643 ("vmlinux.lds.h: Create section for protection against instrumentation") does not apply cleanly to 5.4.y, so can you provide a working backport for both of those patches to 5.4.y that you have tested? thanks, greg k-h