Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp554900lqt; Mon, 18 Mar 2024 16:45:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEBM+YkDEoyqqjmw/hPY3IU3+ueE+CQX6ifokRH4I1kt0LgJIXlmtbH/jjZbw99ADBCFA50Drl/QD3R9E8Uu3WjaCRAXVj8hJGD/Spbw== X-Google-Smtp-Source: AGHT+IEM5f+diqr2Kt0pZitFvCUuN7XaATeL9Rz/tYzEwXmrLl3AgHA7LOxlv2ZoNxghgLQg2P3z X-Received: by 2002:a05:6830:16d2:b0:6e6:96d2:acbe with SMTP id l18-20020a05683016d200b006e696d2acbemr3141994otr.26.1710805556604; Mon, 18 Mar 2024 16:45:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710805556; cv=pass; d=google.com; s=arc-20160816; b=UiWeRfuFU8HNMh+/NPPeihboTDc9bRqh1ZSuX/8geijWvqNSBef5rxO1+IMqeiymbm SJyNfpIpHg23GG+5lmKIGXilKKQu4/0gCULCiPLJssTku03otdQYSdqc1PWW0odjuxy5 ks+q2U092VpkVtMYpIl9W2/AAWU006zn30I0nzSpslzWS3/dVqFPL7pNfnvC/OGXwKl5 6FQqhVLN9rQSZk93oMaOPPZMoriLNwTcmDGd4Yb8ulZvbLmpnuqVJyKFUaDR70hhwUw1 n/nDTea9YnMJq2ehSHZxfPvwWBsSoLC3BUC1RTxbJv8nw222dxc6gMyKEMwclqBgZUbP sDgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EyNKKJaFo0RNnDw1cX76A1V9oBiLwk9MCVF82VfEr8Q=; fh=uSRYjHCfxuxWD3r37gAWxtjbTjE9dtpL0TQb22L/G0M=; b=PD+wFvK3UOAC1HHXk9lt/HhVEnbuLJaKtTxSo1GrIjKabENBls0xwBYJMFulu4p9yI G5holFfvKmlBmTcxkN4kgn6bTZ2gCSW2DDuF7hqnI8+d68MJz1dqpoZWa0wBjNrkEheS k2EYJNxPxbXxX3BYd/Xjq9UHnr87RXP5SEtHOjKtubA9hxcLVxmW6Om1rF2ILVj4FsM7 W+0FDcy/jLV1TnmvdDe/PGGVX+YWA8oVh+ZXR96+NC1PcOA9Rhg8hQEqbf/ctMeHEypQ 4aFYsoGDx9zCHAyt5/y+JP8KLFD/Lw/l3QaOXZqXFeMxHQGcFcV4vLZJKInO5+T+95+I rcdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UP+WJbvt; 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-106825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m26-20020a05620a221a00b0078822dfd5afsi10078799qkh.312.2024.03.18.16.45.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 16:45:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UP+WJbvt; 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-106825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106825-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 51E911C2191D for ; Mon, 18 Mar 2024 23:45:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 206E65F86C; Mon, 18 Mar 2024 23:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="UP+WJbvt" Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (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 E403B59B64 for ; Mon, 18 Mar 2024 23:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710805549; cv=none; b=NV4E4UZ8XQqMIEaDY/X3G0okG+vWa3l8uANbGhd0KXF/Vp6DaPo9APFYc2kjMd3WV41PFZjpMpcbwAoj+8cwTK9iDvGnambdWB0WWNpUo2nHRUKrGzvVnxyHRAPJipAbJHIRU+9ro3pSsgZOMn+xGrJ9rHAXHDvP/0EHvTJmWmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710805549; c=relaxed/simple; bh=ddIX1pX8PUKYlrEFSGxj4dp81Coz+WVwDW5gqZgq2IY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=acaePTSfetzeNVI9DyxAhRGljJL5uR7drXCXPH5cOSLt5MvTsFiBSfrYYDi1OnaIWuAyO04BljIkRGKsQNnfCik+u6ouj0ZzJQ8mInOXNs9WDdySUoidIS8ycjiNvG+hMUgXrBxHmLGmsJptQ1tBV/YdD39ljWroMFaS9UBm52s= 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=UP+WJbvt; arc=none smtp.client-ip=209.85.161.41 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-oo1-f41.google.com with SMTP id 006d021491bc7-5a21b920209so2012963eaf.1 for ; Mon, 18 Mar 2024 16:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710805547; x=1711410347; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=EyNKKJaFo0RNnDw1cX76A1V9oBiLwk9MCVF82VfEr8Q=; b=UP+WJbvt4DkTE/aSDfcB2mZPHNKGKPI21xQbR4yaLTSXHLgFLohjYywOc1ESA/2dDW eUGQWwXJqlBMmtf8kuDJvvyrYKtErkTttlhTVESunE6AEFIkFFNv6YaFtLzmjpFyP8x2 e1FWvDbKSQ8KM4wciG+pl3yMNLU8Ga6Swmcsc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710805547; x=1711410347; h=in-reply-to: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=EyNKKJaFo0RNnDw1cX76A1V9oBiLwk9MCVF82VfEr8Q=; b=SBwvB78f2+9nsyqUjpXh0Y+64DKv9RQd/9D6f5d3EyAn/zxYrZIsB3j2DLWXDBCo5n yTITY6bNjRbBjhFzsJoF2sP6+D/7uryJvBgR4me+++d5muPX9K8suKwAIrw0ktjbYvp4 U+S2EMYkf7s88p4pMFPV45juvQJpD5JQx6L4F9yNt158a6Rn1XvHZyheVgq2HmAlqUIN bphcCHj5mZTGy0Gf1wDx/9o2NdW9kTC1iFbLgNCDs4IJsb4YkyCaLnYkKBCXB8lgBC80 zqUncVNyoGazwrQgQRnneKzHHpnKDM6AJ4XpxPTwNQJLT6k3f5zWG6deKx6J9h9YEsB4 PrAw== X-Forwarded-Encrypted: i=1; AJvYcCWjpYbQDGVqWf1bnDu/kANHQwfRJlVbgHpPku2/4p1IghbbrTF6L/fPluU0R4mvNNIm/HNxzIFC6yEZ+FeF+0OvWG5bh8Q5zZ7wMGIT X-Gm-Message-State: AOJu0Yxzbkt4RM2muypaX0FtPEELUEylDsyJLu0MUVPZQlUYM0SpdiFA wjcCelu6W433aFHsOmwok4zTMdtxlN8pe2YBnNGltUXJSAZfmHqWxBld316S+XDMJh9UkOmkPSU = X-Received: by 2002:a05:6870:3926:b0:220:9f8c:b97b with SMTP id b38-20020a056870392600b002209f8cb97bmr16205988oap.4.1710805547072; Mon, 18 Mar 2024 16:45:47 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id q20-20020a62ae14000000b006e6c38cbe96sm8493254pff.29.2024.03.18.16.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 16:45:46 -0700 (PDT) Date: Mon, 18 Mar 2024 16:45:45 -0700 From: Kees Cook To: Borislav Petkov Cc: tglx@linutronix.de, Guixiong Wei , jgross@suse.com, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, peterz@infradead.org, gregkh@linuxfoundation.org, tony.luck@intel.com, adobriyan@gmail.com, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] x86, relocs: Ignore relocations in .notes section on walk_relocs Message-ID: <202403181644.690285D3@keescook> References: <20240317150547.24910-1-weiguixiong@bytedance.com> <171079804927.224083.15609364452504732018.b4-ty@chromium.org> <20240318215612.GDZfi4fG52DTgra51p@fat_crate.local> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240318215612.GDZfi4fG52DTgra51p@fat_crate.local> On Mon, Mar 18, 2024 at 10:56:12PM +0100, Borislav Petkov wrote: > On Mon, Mar 18, 2024 at 02:40:50PM -0700, Kees Cook wrote: > > Applied to for-next/hardening > > Why? > > This is a patch that should go through the tip tree, if at all. The commit it refs to landed via -hardening, so I was taking the responsibility of landing this fix too. But it's fine to go via -tip if you prefer? -- Kees Cook