Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1004040lqt; Tue, 19 Mar 2024 09:57:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv3ZC6AQGrPeLDFjHnD5HvkaFJupXog3iK7L79YuN0Hhl5phWP5nzkrgOIZAWbPHZAse7J3UEi9RWOGrz20aDHjsNy8ghwt5zOuZWP9A== X-Google-Smtp-Source: AGHT+IF723EqfWnBgOAybnCOwGvlavoGGE4zQzAkIMSho3n/fdnhtIMS872qzStumBb6GPj/RDu1 X-Received: by 2002:a05:6a00:c87:b0:6e7:3391:b830 with SMTP id a7-20020a056a000c8700b006e73391b830mr38472pfv.9.1710867424093; Tue, 19 Mar 2024 09:57:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710867424; cv=pass; d=google.com; s=arc-20160816; b=G0XWB1SyHmz4NlzFQk8yY5q3dAEtj86WNvvynkXsll77QiLSsKCSgbXbK2T9tTqcOw Vc8ijJjSnWSV0m2yvjgrb8ps4d419MyRS1ptxsQK5cZOZOkHh2VAt8X+48pC4SyWjIjf /5+Ki2rN/tyatTKQt/Q9DRb9EX1IdAo/YmrcPxeyWlqa2v+umWIeBrHZdxNQavenPDCG hUI4n0sEKQ7zwX85yYAQkNqAElsykFh02cSckZEq203eZ4W/oVkg4np6YyLxb1qHd1/j F75vcd1iI89vKfQu6mMUJkIyOGCnicfsuzu7Sk1aku4+O+kUPIkn23UjJW8PHxTOdUUk Ophw== 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=IuNfW02G+/boJdMGNpGppLuETi2AT/FTA/TQaVA8xgU=; fh=vRK3mEAfdSMUKh9HqYCBw+4VTcMbWYBloees4l1P3Og=; b=AATWIy0nxz2vj2b4SPZzXwxq9YGiAhKp6hmS39b5zCA2wyzAlg6e5Z9PYu2ML92mNS F8w5t8elziDKeC9FlTbiXwkDhWXKKMB654+j3AgBekUZioNZ3KLSzWQbTV7yuIWKM6P/ cY5A8BoW0x24AzdpRzB3evvSVfHT9N6hhvm/9oETArxnt/n3f70qZjGwmFbzjio87TSg GkHoy9dMrfx20cNQbnwZ2+Nh+/O9MoBNkPWY5DPYN2t8C4iIpv/u3L+7C3rPRt0Rtrja 5NF0TL0XzKhTsApzuxZ2RV3AvUOGJIBEOM0qPGxzg27ixpfcg1gnN+8eaKDnRYtQ+pMP mHpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GdiPitYE; 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-107872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fa28-20020a056a002d1c00b006e6af984151si12023819pfb.108.2024.03.19.09.57.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GdiPitYE; 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-107872-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107872-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C0AAD283CE2 for ; Tue, 19 Mar 2024 16:57:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B02E1427B; Tue, 19 Mar 2024 16:56:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="GdiPitYE" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 32C2525601 for ; Tue, 19 Mar 2024 16:56:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710867392; cv=none; b=gxEIYV6VlZAYO5VWHmhdCtpGxL8jWr+eUWGdK2gxkvUv6cemU68+0yOAp6ITF/ar6Bs9ANyJpXLnok9/QV28VM72aA0iSQPUBLRXRFvgPnKGANsJMTuLM20tjlCoZLutiLV+XT/IEFnfo4irXm/Qahc7Q7yc0Qp10RI6jSHBYg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710867392; c=relaxed/simple; bh=xjgzHX9IZesh/m9mX3LwRDZEWPaQf//ud0zb58ExHUE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CBb8QZ9e9hG3ma0+wMNhQVeX8Mkmv6Sb4wJfA0u2q84fVt5rnuqXxj5GGIulV8QamsY9+XRiXcbmkB52GIwMuJ/CUkD7w9DwKDoyBKKnuYWra+AvOMRN5231+PK/42vq1+uIna5wyZ9T03FMoyrmMqmDL5VMLkUU8DafTn5DVQk= 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=GdiPitYE; arc=none smtp.client-ip=209.85.214.175 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-pl1-f175.google.com with SMTP id d9443c01a7336-1def89f0cfdso586635ad.0 for ; Tue, 19 Mar 2024 09:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710867390; x=1711472190; 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=IuNfW02G+/boJdMGNpGppLuETi2AT/FTA/TQaVA8xgU=; b=GdiPitYE6QEh0arRBKslX2pd+8Naw4qNnm2dLaG2i9ZWUkrECenDxMpuDRKTcfCjAB VD2Vzs2WKLtE8gW8EJUYMQvpPWVmNNMDgiHQNSIPSj6AgJjp1E3gvYKeBIrMtmaXX9a4 MuMI89g55ZTiiY2VxygXz6bcGtN6NPDJxYtt4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710867390; x=1711472190; 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=IuNfW02G+/boJdMGNpGppLuETi2AT/FTA/TQaVA8xgU=; b=PVYlTSPIUDJd7edc7yHCW/53cn7mPqSJj0ph78RsW8B87MmWcxVCHmLjHEgg7LTJpI m0zq92wJ7y+INfWcJMezA7pyb1qKA95IKbd+QRLlEscibYblirKwGJZdu/oBwKEqu7fO +vfdoo/OWzOLPY3xB/xABWTm7iXXHAexqLwb1RGOtgzJYd0y/R/MElhAn3SscrDEZRdO /IvmKWm68kHACSo7Zlq6Lv/ohArF+jt9oES8ygxex2wgHu7OyQHsWOJeZ9pC1+Kt01xq nEZeaOzPqMKVT4zhzuiVujQnJQOMRJ+slwJ1KtOP2nV9EXTo22TJjY9tJ2WMhTgUHWoh KzLQ== X-Forwarded-Encrypted: i=1; AJvYcCUulgWIKE2J5rlu4ciOk1TKWNLzDkNocRGzoS6Xp9+jugxA4DcTbk0duXvn68kh14J2mGuaTX9LVWtGEzfLLOcyCxRmUOfGAX4NjRJo X-Gm-Message-State: AOJu0Yyck4zjBYM3OUnnWXvsxSjrq/pUVYuqrPZnotXJvIHUQIeSGUGU 3M9KsCNBwgOeDJwuzTQL28e7GBZSCUdrkLDVXOH0xXmhdDUgi0IARqYqY1qozQ== X-Received: by 2002:a17:902:a388:b0:1de:fab2:98eb with SMTP id x8-20020a170902a38800b001defab298ebmr51491pla.5.1710867390467; Tue, 19 Mar 2024 09:56:30 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id k10-20020a170902c40a00b001defa2d8e22sm8424413plk.233.2024.03.19.09.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:56:29 -0700 (PDT) Date: Tue, 19 Mar 2024 09:56:29 -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: <202403190955.25E5E03E6@keescook> References: <20240317150547.24910-1-weiguixiong@bytedance.com> <171079804927.224083.15609364452504732018.b4-ty@chromium.org> <20240318215612.GDZfi4fG52DTgra51p@fat_crate.local> <202403181644.690285D3@keescook> <20240319081640.GAZflJ6IBQ7TEKD2Ll@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: <20240319081640.GAZflJ6IBQ7TEKD2Ll@fat_crate.local> On Tue, Mar 19, 2024 at 09:16:40AM +0100, Borislav Petkov wrote: > On Mon, Mar 18, 2024 at 04:45:45PM -0700, Kees Cook wrote: > > The commit it refs to landed via -hardening, > > Yap, saw that. It should've gone through tip too as it is clearly a tip > tree patch. > > > responsibility of landing this fix too. But it's fine to go via -tip > > if you prefer? > > Yes, please. Just send a Reviewed-by and it'll get picked up. Okay, thanks! Reviewed-by: Kees Cook > > Btw, while looking at that second patch, why does it have *three* Fixes: > tags? I think it wants to fix only your > > aaa8736370db ("x86, relocs: Ignore relocations in .notes section") As I understand it, the first first was incomplete. -- Kees Cook