Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1034433imu; Fri, 11 Jan 2019 13:45:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN74rELx3bTvL1NaAxGLy/bJQmyje9guPCOKNDo3Z9wa+dtSDKyKqWqQX+9i0xdz0Hr1vzbb X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr15805243plb.97.1547243156436; Fri, 11 Jan 2019 13:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547243156; cv=none; d=google.com; s=arc-20160816; b=YEWDJWxYEGBB2MnY8/nFAwiL6UaQX/BohDKxDpAvX+SG6lVK9edOIKXAMX1N2HCbGi 0i3G0UeSW96dDWpga2bpGardXaK37hig/bL8za5gAiUcel654afnZ9CagRUgR/YKbCcm DocSsQebH5K0sMVLUHMcHwRHZD1T8nOQwiHMiJuJ6tiSOIszDdKby4u03nxcn0uTZbEc +vP8/0Xsyig2RwTBmM2YqBENuskrJRXATQ9ubkcS1pSwpqXEabNserYPOVyjtNsD2tgk pDzVshk2Qne/lIlN4xfYh3R4/fjZn1OCuvNkH2QoGCWbeE0Cv7V3sinJAbSDQ8lJBYa9 7PzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m3CrTepKE9bOKdD2lVwedPpPDopsWymPLzLZFg/5vro=; b=ROGsVBNFIpRzOGUnFgUQ3lcE50NWPe5I5d2q50n5LUW3WHXs9ShpLSw3p7hVuF6kzq 6ifcYs3P+FJNEwx3bz8O3BkI+C10dMAZvxmqTv8l286ixJ7yxzdmtoWUuFrKxO7lQ4Ts E8Ct5ZyCGkHfoPw9T93QNm0PcBqlW750ShBhbdY9Hg7ie/9lEo3H53wgvPG1zZHrWPDO Naf+OoVkHvT9hnSorRpjLBSnT9WuhBN+C/Gb3X7UAFXofb6SqNM6xoopGUV3l6fb/zKp pyCZ7nfbkpZJuP8Uuskx0tx+fQ4969LasmwbmnFi+hqME4vJQozQp6o+QjeCoO5yxA14 MBUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si16885899pge.384.2019.01.11.13.45.41; Fri, 11 Jan 2019 13:45:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388263AbfAKTJb (ORCPT + 99 others); Fri, 11 Jan 2019 14:09:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731288AbfAKTJb (ORCPT ); Fri, 11 Jan 2019 14:09:31 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AAA4B73A6C; Fri, 11 Jan 2019 19:09:30 +0000 (UTC) Received: from redhat.com (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C731F9F7B; Fri, 11 Jan 2019 19:09:27 +0000 (UTC) Date: Fri, 11 Jan 2019 14:09:26 -0500 From: Joe Lawrence To: Josh Poimboeuf Cc: Artem Savkov , x86@kernel.org, Thomas Gleixner , "Eric W . Biederman" , linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH v2] x86/tools/relocs: fix big section header tables Message-ID: <20190111190926.GA9606@redhat.com> References: <20181129153258.cutmesclgfadc5gu@treble> <20181129155615.2594-1-asavkov@redhat.com> <20181129155750.xskdusm2fvub6tqa@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129155750.xskdusm2fvub6tqa@treble> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 11 Jan 2019 19:09:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 09:57:50AM -0600, Josh Poimboeuf wrote: > On Thu, Nov 29, 2018 at 04:56:15PM +0100, Artem Savkov wrote: > > In case when the number of entries in the section header table is larger > > then or equal to SHN_LORESERVE the size of the table is held in the sh_size > > member of the initial entry in section header table instead of e_shnum. > > Same with the string table index which is located in sh_link instead of > > e_shstrndx. > > > > This case is easily reproducible with KCFLAGS="-ffunction-sections", > > bzImage build fails with "String table index out of bounds" error. > > > > Signed-off-by: Artem Savkov > > Reviewed-by: Josh Poimboeuf > Gentle ping to nudge this patch along (I didn't see it in anyone's tree). Thanks, --- Joe