Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp508183lqt; Mon, 18 Mar 2024 14:41:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6ARn0hCHDddUpSC4pD9a+NkLRmfRrftRwDH3NB3vXeTcqT9MF0WE6Vy/nz48dPM7Dw/gKmMT16W/fsekZK4u35QGS1JNexvi/B+Ui7Q== X-Google-Smtp-Source: AGHT+IGn3PrxGaSg1snwf5DGkBHMQKGa82tCrl4WQVyyRBrykQr25ox13iOlSezNfktxMK83BBof X-Received: by 2002:a0c:ac0e:0:b0:690:b2c3:bfd0 with SMTP id l14-20020a0cac0e000000b00690b2c3bfd0mr13819257qvb.57.1710798064891; Mon, 18 Mar 2024 14:41:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710798064; cv=pass; d=google.com; s=arc-20160816; b=ha5Sr9pZ4fvUU+Y2vAvv94OBvstiPfBrp7iMiADD5pZmDlgz0vlbApUsTkQiF7vZZG 0BmXXw4As7IDD8IHdIxTfERWE6WJc0hzQBoTweJvB+jProJGeZLQvQuLTrUKXGEE/q47 lAwgVWF675ulrgcD+Y5Kig7V504RpnYW9zp6t4wn49CkSs7oNN5hHKfptXhhoIGKsZId 8AFwHCXsV3vgOEzMn44hA/kxW7bOop5aS69R4Dxrn2qaBKhRHAKfy/prd1tfXbrp3w79 r/iR20rPvonW478+NYzG4JVejyLG3qU+uKmaBuCuj6Dvi/QpiO6KmTCO9GCTTH/ru6xL NlQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ox9bH+gD2CktkBBcZmuumQXprDslbo3R8UFvF8ORQTk=; fh=pGWo8cnEVZmkbf4URlhEvcziHU9/unZNhZlEfDCNV5s=; b=Gjto4JTm+3Gk61Pnu5LUfFvfgVZ+A0BrUmTedrIdjWMdFus6Z8EIAiVmFQ2RBif6YK kDP/GUkLAQlRhuzMSiWIYxIFOiKKApouHAsx3t9MGTyENaPv4yqZJu4lznitXczVdW0m yLU8uvLuqfojmLFb66uaer+OciSpKNO1GvaJUguqoPGGdnwz6zHxlTsM7BF+c8lHexBX kH87LUmR14RX0dAgoHMz9DBj5o+r2tj6dKU2hnINSwYT3kRjejPOsA4oJubbtxkm4x10 UsxNqZ2i/xJK/kekEGGIAI4g6N5UdnIjC9DdWFKD0vP2i8NORDiEarr2vYiAAL16ImNX AgeQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IdRQZEnJ; 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-106716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106716-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id iv3-20020ad45ce3000000b00695d227f363si3044236qvb.354.2024.03.18.14.41.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 14:41:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IdRQZEnJ; 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-106716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106716-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 95A431C21350 for ; Mon, 18 Mar 2024 21:41:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB18F59B45; Mon, 18 Mar 2024 21:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="IdRQZEnJ" Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 8D11A59166 for ; Mon, 18 Mar 2024 21:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710798056; cv=none; b=HkOaxlsN996EU45eQX2to927iHZBgU1x7yYF69sbOCSVg5p/uODmddKztXR6Msg9++L9Us4+T5vmZLwLbsB83DD/flBn6ou+BvQvNkmLVpSEioO33JpsVhgpQhN9g4nEgae6ufAIAM6KjPUo937rvAw67qBVa55Hpel2uwq2UII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710798056; c=relaxed/simple; bh=J+IhkS5/3GB8AkkrIEaDcDuTxZrz47RTosu+l4UPPvA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=OiL1LQhCaleEZg3e7XaiADEsFah8zUvHX0dQzd5DkAPf4o4dVP76K/YNLNCHNQqZ5thIQF8eH0z48byvKW/cHQjJQn1jzwOYOWfPQDNOoIXZEICri1QGdHxXDdDcbocZyEtkGcvTIaMxiAcLe+7d+prP+k4HuM0wEr1XD3xLO3I= 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=IdRQZEnJ; arc=none smtp.client-ip=209.85.210.176 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-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e6b5432439so4702868b3a.1 for ; Mon, 18 Mar 2024 14:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710798055; x=1711402855; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ox9bH+gD2CktkBBcZmuumQXprDslbo3R8UFvF8ORQTk=; b=IdRQZEnJvNQ0SHwxPQ2UqtPuNNu/c0KjC9U3eHh0jLLvlDXfwCo9WCG1GKeURR41Um wjwGQ3PzRuPHkEHVkuzI7d0mPOwaZtKCbFUfSeH90Ef5wkMELumCnN11Gf/jvZ6mG9Hn URRD43gGj9de3/hvLkZ/xYinZNw1PcbnD04Ms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710798055; x=1711402855; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ox9bH+gD2CktkBBcZmuumQXprDslbo3R8UFvF8ORQTk=; b=QYJmmVmW/NzAfPSpNlkBjjoiGCZtaYi7myUeV/3Xq9ZTJyaqs8ikghFOsgbCMTw8fa NpjXgihjBtvGEPBXZgitpf0kL8p6rT6a+Au7X6xPSKadad88Q51GHuMwjyBy3S8dx7MD 03rTp9/x9qDAKBBcClkGRlkSUPxaTkfsk4Mj50hjWAf1rWveVoyRKdBmaEmijsBSkuhz rF3FIUpMG5PA/ubN/0/me1XN7EAUq8IIGeZmPfHcJWFmBWODkahbvXjtO/GPb5ZyZOpk zwxbJkQoz4fU86UkS9Lut2eFZLg8lDK+i6FvEsBqSvlDKb07mXGu4nPWUehNdEmrtYGt THtA== X-Forwarded-Encrypted: i=1; AJvYcCXlptoQYOL6wLXSgOKE4t8XRTkKppqDkY2j9fqKxCkcAGgui5QHUY5eoRA5rhM+P96fxsbdiTmf8V5mEVJ6zygsY53GdHI5XI0Lc50v X-Gm-Message-State: AOJu0Yz5rA2eEcofBIq7kA0tMfoZ5CChj9lQPsJ+aQrilUeQbFHkXuw3 fGLL+DGu7Mbp1UvYMB0Iz8XsBSP1tOorBhGHGyU+NHYVeBzszWSDC+n5fYehxQ== X-Received: by 2002:a05:6a21:3a48:b0:1a3:5e13:6922 with SMTP id zu8-20020a056a213a4800b001a35e136922mr5593119pzb.20.1710798054851; Mon, 18 Mar 2024 14:40:54 -0700 (PDT) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id b19-20020a639313000000b005dcc075d5edsm7365705pge.60.2024.03.18.14.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 14:40:53 -0700 (PDT) From: Kees Cook To: tglx@linutronix.de, Guixiong Wei Cc: Kees Cook , jgross@suse.com, mingo@redhat.com, bp@alien8.de, 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 Date: Mon, 18 Mar 2024 14:40:50 -0700 Message-Id: <171079804927.224083.15609364452504732018.b4-ty@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240317150547.24910-1-weiguixiong@bytedance.com> References: <20240317150547.24910-1-weiguixiong@bytedance.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="utf-8" Content-Transfer-Encoding: 8bit On Sun, 17 Mar 2024 23:05:47 +0800, Guixiong Wei wrote: > The commit aaa8736370db ("x86, relocs: Ignore relocations in > .notes section") only ignore .note section on print_absolute_relocs, > but it also need to add on walk_relocs to avoid relocations in .note > section. > > Applied to for-next/hardening, thanks! [1/1] x86, relocs: Ignore relocations in .notes section on walk_relocs https://git.kernel.org/kees/c/6ba438a29b5d Take care, -- Kees Cook