Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp868161pxj; Wed, 16 Jun 2021 15:50:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0Bkx/BPs73u61R0AZOsf6+IJwWMPF+ULKgdaFnVJMI2cDABguhTpgFWaBFi4sWO54XX2R X-Received: by 2002:a6b:e303:: with SMTP id u3mr1318629ioc.177.1623883808642; Wed, 16 Jun 2021 15:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623883808; cv=none; d=google.com; s=arc-20160816; b=CdrvCtPrY8zQKauOPEN3UylksapRU1TowowHqNugXFiCDCU+D1u4+Xz+B152MpzJHn 8LnKIEqUL8enqViC1tcZAc1mLpCl9xghxp3g+5MuQw2C+OQmPkFZ/DoasMbRTMIxF/Dp mHEphAyCV+2nk2z3i+i6jwhlKUgllDhzMxNHM7SMggZ/UI/5N9b3IL+Q6pcdfNewjzxz HHMFp5sVwN9lBbkGkZdGh/VsMkW2dzyntM4rQUVVwaKFBeS1+fG660peUSoRlJ1w0Q4a Q5uF1xGhbPD8n7atTOwKffu4sGh/TXDsJf9YA2QjDhLmrmEZhZpCap+KCksM7s/L4+uE vGbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=7EuWnCH1NhomNvzi6vS1JhxS2jRR6i8YPKGHykMi2sY=; b=EYm9PJy/sTefZDI9w/RLvk8JRdOUAe1h+Vh5xSGDx5vRw44cl43Sy/4wrnwbIYLA0Z sIPjCHtxuafylkWOxV0ED4JnEHfkbOsoLhvV5bxYF/p+srbaq/DqyI5TEUHSmvLfq5pY uWJiYErHs9Gbj5ElLpOayqtDHjAB4nNg3GdsyoFqfJSIwM/S7ghxYXQUS3hDzZvdL6IK 1/E1kC4VhHp4BcE1402Zpn24EvdC0y7GCLbN4EOkv9fmL1JtNd6xj+t4EVpM6E7aRpSW mYMCKSPQ4zxmXVtosdl2W13Sde+AYwtLoNEa0xY9ASyUQ/VYaGN1Ez/SSLQoBZ400/Lk CMjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k14si4344434jad.8.2021.06.16.15.49.57; Wed, 16 Jun 2021 15:50:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232185AbhFPQEu (ORCPT + 99 others); Wed, 16 Jun 2021 12:04:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:34208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbhFPQEg (ORCPT ); Wed, 16 Jun 2021 12:04:36 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 17CC561159; Wed, 16 Jun 2021 16:02:29 +0000 (UTC) Date: Wed, 16 Jun 2021 12:02:27 -0400 From: Steven Rostedt To: Mark-PK Tsai Cc: , , , , , , , Subject: Re: [PATCH v4] recordmcount: Correct st_shndx handling Message-ID: <20210616120227.6fc005c3@gandalf.local.home> In-Reply-To: <20210616154126.2794-1-mark-pk.tsai@mediatek.com> References: <20210616154126.2794-1-mark-pk.tsai@mediatek.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jun 2021 23:41:26 +0800 Mark-PK Tsai wrote: > From: Peter Zijlstra > > One should only use st_shndx when >SHN_UNDEF and SHN_XINDEX, then use .symtab_shndx. Otherwise use 0. > > This handles the case: st_shndx >= SHN_LORESERVE && st_shndx != SHN_XINDEX. > > Reported-by: Mark-PK Tsai > Signed-off-by: Peter Zijlstra (Intel) > Tested-by: Mark-PK Tsai > [handle endianness of sym->st_shndx] > Signed-off-by: Mark-PK Tsai > --- Thanks, I pulled this in and started the testing. -- Steve