Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1554935rdd; Thu, 11 Jan 2024 02:45:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwTH5bnlNIEKf70MZQUhwClKgBNuDpXNk3kVBXN42Kr14i744oxeKDSBnE0H0XkX0JvME1 X-Received: by 2002:a05:6102:161f:b0:468:a5a:233e with SMTP id cu31-20020a056102161f00b004680a5a233emr362901vsb.30.1704969923532; Thu, 11 Jan 2024 02:45:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704969923; cv=none; d=google.com; s=arc-20160816; b=livtLjdvryUJu4Itq+obPfCOC+SaYG/ob94MBYLeYnsc38BtZ/ceH/JE9URl5O97B6 xdtuID01niHIlY41AJGsoh9MOG1g+1XW6IYmYoM44PK4HsEAxwdaMvt4XJeGnVx/hQPs oTTdn+AKhv2/HBiRLCVnJj5DhSTJg1u9ovFF3SmGSbvOBwruecppW8n9X7Xr7LTzMF/T y39tOXvJkMmRSKgmrj+0NMid7rTkzOy9BK4SSKcauz2tg67bpdVBRtDpVMrF7D/ebam3 lyY7eRH7ITYvi8F3pPCIRNE/IldMSJCWIA5qTuhc+3ZcVH0HiYQIR5XgILKNHXnxVPSe REHw== ARC-Message-Signature: i=1; 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=vW8Of4rRVFRSF0pvpntTq6HF59T9ZcEnNhUNAnRWd6w=; fh=pPIT3DVK4HNpxeX3j4dI3/4h+4tt1iXyoq/6PBAxGuI=; b=uOVM5Hb1ZPj5RksBNODOqrqb4vV6mhibg5npYVyM6PDOZT1Q72m68S2+uQzLjGxqC+ LL36dG5AmzhoZ6bung7wJAtTaNba2SAQ7ydfAk1gwXI4kHVOLlPbRLiG64ehNZug/gB7 Nkgll7gbyctfyF89FWQr+dV88Zf4I6hMNP26lJjYbUcIlkjTxj+jfgjkVeFhLKx90He2 JL6Adm23eGF6VNzG+cerIOi+XzJQsRxOPPXZtiRSHlKwx4wiid/Yrtfa5z0quSZpHn6G xZF9Fe7gMHEsrbnee3KZSf0zWmGWLEH22DkvM5cHKLQKyOWuQhkpWV82Hd7zY3D+gRIa 7yDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oNYmXVP6; spf=pass (google.com: domain of linux-kernel+bounces-23404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 f3-20020ac87f03000000b00428254553e7si678034qtk.764.2024.01.11.02.45.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:45:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23404-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=@linuxfoundation.org header.s=korg header.b=oNYmXVP6; spf=pass (google.com: domain of linux-kernel+bounces-23404-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23404-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 066B01C23F8A for ; Thu, 11 Jan 2024 10:45:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 614C914F65; Thu, 11 Jan 2024 10:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oNYmXVP6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D27C14AB5; Thu, 11 Jan 2024 10:44:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64B9EC433C7; Thu, 11 Jan 2024 10:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1704969843; bh=wTvyF0pAfwwWQaTolfICOUFyt2Pv4Lpw/gdxqRFsfWE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oNYmXVP6XsJgYWhj+lLirQKLMoSsJw0R2XQkt7T9zPMH0QkQ5uhQvXNq4XB9D1Aos pYCmvd6sknJrgT/Dav66vHkENYCFegEWjNOqKV+7mQhxz2NZWa1I4vKzNIb9XK9jKC QHkQA08uU6nLc0TEMbJ7jg2wpdM+2jZClmFDDyGU= Date: Thu, 11 Jan 2024 11:44:01 +0100 From: Greg Kroah-Hartman To: Namhyung Kim Cc: Harshit Mogalapalli , stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, pavel@denx.de, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org, allen.lkml@gmail.com, Vegard Nossum , Darren Kenny , Adrian Hunter , Arnaldo Carvalho de Melo , Ian Rogers , Jiri Olsa , Lieven Hey Subject: Re: [PATCH for-5.15] perf inject: Fix GEN_ELF_TEXT_OFFSET for jit Message-ID: <2024011155-fragrance-perfected-2183@gregkh> References: <2024010711-skeletal-material-15e8@gregkh> <20240109214955.451513-1-namhyung@kernel.org> <2024011043-unearned-manned-12b7@gregkh> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Jan 10, 2024 at 09:53:17AM -0800, Namhyung Kim wrote: > Hello, > > On Tue, Jan 9, 2024 at 11:59 PM Greg Kroah-Hartman > wrote: > > > > On Tue, Jan 09, 2024 at 01:49:55PM -0800, Namhyung Kim wrote: > > > From: Adrian Hunter > > > > > > When a program header was added, it moved the text section but > > > GEN_ELF_TEXT_OFFSET was not updated. > > > > > > Fix by adding the program header size and aligning. > > > > > > Fixes: babd04386b1df8c3 ("perf jit: Include program header in ELF files") > > > Signed-off-by: Adrian Hunter > > > Tested-by: Arnaldo Carvalho de Melo > > > Cc: Ian Rogers > > > Cc: Jiri Olsa > > > Cc: Lieven Hey > > > Link: https://lore.kernel.org/r/20221014170905.64069-7-adrian.hunter@intel.com > > > Signed-off-by: Arnaldo Carvalho de Melo > > > [namhyung: use "linux/kernel.h" instead to avoid build failure] > > > Signed-off-by: Namhyung Kim > > > --- > > > tools/perf/util/genelf.h | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > What is the git commit id of this change in Linus's tree? > > Sorry I forgot to add that. It's 89b15d00527b7825ff19130ed83478e80e3fae99 Thanks, now queued up. greg k-h