Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2094348rbb; Tue, 27 Feb 2024 10:21:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6DnXcDmYC3zlzwA6Cb//hDp/HsvQicpUa7btnHDh4GJw4RCF0b2TTEXcqmQOhG+gCrTLR3zQ5k+8/0EL+qTNduwVSrD/tN1ZThpjGpQ== X-Google-Smtp-Source: AGHT+IHztSL8aQfz2zMIOPnvJ/7+9+tLNX9doiL0Go/lv5LpIzlgKUoZITaUvQ4BGtFc9gQ4sKlU X-Received: by 2002:a05:6a20:9e4d:b0:1a1:e4b:f396 with SMTP id mt13-20020a056a209e4d00b001a10e4bf396mr2846633pzb.0.1709058090389; Tue, 27 Feb 2024 10:21:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709058090; cv=pass; d=google.com; s=arc-20160816; b=S47LTd/SCyCPinmCieoV011JYVnF4DgP/qsrYwtYhxxRZkZOJxrs1iGMIsDNM6yObV /NLcs6OK9rCrW/XASfhTi9zOf6xmfB5XH1hmnkPH89vfgIqMe1fClSm+Tu+8MzSgHfl6 ue6R4bY/iR/GzSYHaKth/lOWJwmOrWb8Q+LXLv+cLVshLEFbdtEu1MYq0jvO+OHUYXTi NvSqrM8MZpOV8QW3NP3qIwCsHmHIvlD/4/63KkWHcV5uN413sfDgZOYTXvyZrDMRQhhe QbctK5fgS3Ama/bndir77OuKJZ1trHOd4CfPwMCSRjmkk+l4vZ8nX1n2lzsqemWEMZSd MclQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CUGpOInHfB6oXANt5lLDq7+qRlwHtdSo25I/C8lV/gE=; fh=TJC+nOhgMYBGOwK1zjzrQpvG+GmXty7EKnzrjtFzIds=; b=bvuX2Ko5I6k7zs+3KmL0ZSYDAtJKBlgOzkoa5JgVkPi3HesrezJPqnWvclHYVLUlq3 7/I13FoG4a/7tXC0/MFBpDY17mmy/gomJxV+e2WcFN1jcrDRrxg8VCfhuB+VlNhSt3LT EBUAQtUdXMtaIwSenbVb4P9tv0+8SByv/QJiRmelYkg9HfZ5XkT1FvuzHbvj5dwe7zn3 Bx/e7haYAi+vvrI+m2c3v3IEa/TSPtTmcDdjYVIg89IkMRhW1Z4wMIpqavhWnmdahdfA XrEiR3KSPCjSxcKM4mLLB8vZuAYItMUlESQB3pcDPI+rPXumjhpU4xRpNNQ2QwLQDVVK PJ6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fnzfJaTV; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-83773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p22-20020a63e656000000b005dc4da211fdsi5772291pgj.141.2024.02.27.10.21.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 10:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fnzfJaTV; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-83773-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83773-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E98FEB23CAA for ; Tue, 27 Feb 2024 17:53:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A004EB47; Tue, 27 Feb 2024 17:53:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="fnzfJaTV" Received: from mail-il1-f174.google.com (mail-il1-f174.google.com [209.85.166.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA1A84E1DD for ; Tue, 27 Feb 2024 17:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709056390; cv=none; b=iiIbr+ygjD5kAEcph844unCFZ4LJPqa1N3z1obDC08oQrPro5us0KaQ5X6R2gQARA4Y4Xv6hCUi76M1K1Ol651QiGH1YEEfn81eLOEmDnwqdvyUFdY15v4BeDOXqtWQwA4Uh6AEH2GphesPloBGQDd3t9LCoQDDw+bPgCZXFDkc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709056390; c=relaxed/simple; bh=johZxZO1BLynAj27mgUIzBpZBiX+HwYZwRJmg+3qXYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hJNugQXatnj00UMk53K1D6lVJ2Nv36QJ4Z6xBHDP1Vavs2yWGDLBLK+DCW4IqkIhyyf4QLchyWkljkXgWomTDY20Vr8wCRguT6NsYOG3qgqlfJglW+YC63gTaiyROPIlu/mxYewfjOIdQ1vAG8zDIyBA4c99yqH2uRrGu0dCrjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=fnzfJaTV; arc=none smtp.client-ip=209.85.166.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-il1-f174.google.com with SMTP id e9e14a558f8ab-3652762edcfso12411115ab.2 for ; Tue, 27 Feb 2024 09:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709056388; x=1709661188; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CUGpOInHfB6oXANt5lLDq7+qRlwHtdSo25I/C8lV/gE=; b=fnzfJaTV+nyhUr76UkWyLKrcOOPungxNguphO43afBIlEVFU+Cc/5p5nJwrBoL9Qrw mHB2NFHK2adkUqhP89PfRpY3gy5QBXjpty+EPFU39fQxUmFjDkENVOxmpujboasLI//j JlUR6rRHNMFesLJaIf2hlJmnSRN3XNM98IKHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709056388; x=1709661188; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CUGpOInHfB6oXANt5lLDq7+qRlwHtdSo25I/C8lV/gE=; b=TXw1aEXEy3eCzA1JGaPPHshBKmUlWT2Nz4abSDmB3dVx/ntA0lNwmJRaTZaWVpblY+ y0/Ic1zOdcu8llEDwwUF8G2SkDX+uBIaRZ0Mifc5y21orvYSbJH+8w3C+fOOv+I6XwoD koK8ee6cfpdYY0uSqc1zqphQlwJ21KGbouNB/hy0eBZVQXoReLRymi5qMXg0zuBMudZ/ EzmqQUlthT9dTRS1Jp2Rpd5IuP1gRDC6UJNTcgdM3kww/3ey8bhKtUKzUnhCM8OjbLRy vQAGPVblJw/+lBA+j1GRfn1h6Xqm5IP3L9czVg8AqFLi4UsazHjcGjzZ2sHwFqvw/wll Mvlw== X-Forwarded-Encrypted: i=1; AJvYcCXUOanOJg3Ofte236U4yvMDAByR2OywjkY4H7w1p459tn3nOM9n575CAsacGKtNyGN1PDl33SttXaLCWVKeEc3R+NaTFBTpVZVLKIcH X-Gm-Message-State: AOJu0YyxpTim0c2C9Y+U4uW/SpPYWnpGje+/A5V+vLBv0NgYVllgteMU DuDv0aLKgEEQwIYtdrqsDii6Bq0C+g2qP0sSD+Yvxt07OQdYxVoHx7GTYh9RjA== X-Received: by 2002:a05:6e02:118a:b0:363:c919:2716 with SMTP id y10-20020a056e02118a00b00363c9192716mr9374131ili.20.1709056387901; Tue, 27 Feb 2024 09:53:07 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id ld18-20020a056a004f9200b006e533074414sm3593917pfb.21.2024.02.27.09.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 09:53:07 -0800 (PST) Date: Tue, 27 Feb 2024 09:53:06 -0800 From: Kees Cook To: =?iso-8859-1?Q?J=FCrgen_Gro=DF?= Cc: Borislav Petkov , Guixiong Wei , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Greg Kroah-Hartman , Tony Luck , Kristen Carlson Accardi , Boris Ostrovsky , Stefano Stabellini , Oleksandr Tyshchenko , Guixiong Wei , Jann Horn , Andrew Morton , Alexey Dobriyan , Chris Wright , Jeremy Fitzhardinge , Roland McGrath , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] x86, relocs: Ignore relocations in .notes section Message-ID: <202402270952.93228D6@keescook> References: <20240222171840.work.027-kees@kernel.org> <0443c7c2-1c3f-4cf8-940d-88306956832a@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0443c7c2-1c3f-4cf8-940d-88306956832a@suse.com> On Tue, Feb 27, 2024 at 05:13:35PM +0100, J?rgen Gro? wrote: > ... a test of "sec_applies->shdr.sh_type == SHT_NOTE" work as well? Oh yeah! Thanks. I'll send a v2. -- Kees Cook