Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2633761imu; Thu, 29 Nov 2018 07:58:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/WYGWsyMwCl3w9JaE/4wIAQ3Qa/OdPy6frwNX+sL6FewW1GM940iid8yz2GBcCTwX8L1b/t X-Received: by 2002:a62:3a04:: with SMTP id h4mr1875767pfa.119.1543507130783; Thu, 29 Nov 2018 07:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543507130; cv=none; d=google.com; s=arc-20160816; b=aYN3GqRSrOxIt7UK2dnNIXZNG7CQ6KrNBie8ulRMSY5+Ow4wi/DYr2OegZIXjZIOAt dVN0xSnm4X7O78obmpGqw8L6lLfRqDEpwBWH29sqa6se44Rt2tl48bGOMlwNhJcZeRlx Amb75qWs+M6df5BR4qSgHyUVllfkzJyvP0pJX3RETuCRsm0VGNdE4Zkd7W5p8cqiGRo5 bYwF3QASlKOU+8ZsfFwKnNsSPCuvhrVGWAJCtbzzVyylyMdvMrigXL1fa4EFrU74Mg7a Y87GOfdVt4GpH6qYc/TKviolHX6NTwp3dbiXOurfGazkf5pNWqnTDtLSOrmV+s28HX7L VWBA== 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=WqWlefALR4SP2hrrYrmCwK1dHgN1ekrwt5KFr3+F+8g=; b=Hik3ySiS53uEQALCug42+Jx9evXMc1Um0qNYXor0VxMhJEb5ThMd1jehKJiFFTqDur SCzqXJN0uh+T0+Ta0YSYTH08t1LpiHyuCjpwUJEIa38KZ84PVPQPv68fJsYBi6oML+au +bDCu/RA+gZYBDmkeK6qePfKuyYW+J59+/ogsWRmM9Ren03+WyY5y/R8g3AGw4cuXT33 8MVGvIbOr6+FGoCdrtkkoi/H7iD68SSzR3DoYBfObLWeArB3f9hN6GSVZQ84VXYhHPzC c3fwsgiEc20CU3NI+gkvXemgbzFf/H3YcmVaoLdWrgEbc06xKshDSvOXkvUBDTh5JRzF inHw== 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 n12si2318878pgb.563.2018.11.29.07.58.34; Thu, 29 Nov 2018 07:58:50 -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 S1728872AbeK3DDm (ORCPT + 99 others); Thu, 29 Nov 2018 22:03:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49082 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728363AbeK3DDm (ORCPT ); Thu, 29 Nov 2018 22:03:42 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 189503078AAE; Thu, 29 Nov 2018 15:57:53 +0000 (UTC) Received: from treble (ovpn-123-4.rdu2.redhat.com [10.10.123.4]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1864163F9C; Thu, 29 Nov 2018 15:57:51 +0000 (UTC) Date: Thu, 29 Nov 2018 09:57:50 -0600 From: Josh Poimboeuf To: Artem Savkov Cc: x86@kernel.org, Thomas Gleixner , "Eric W . Biederman" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] x86/tools/relocs: fix big section header tables Message-ID: <20181129155750.xskdusm2fvub6tqa@treble> References: <20181129153258.cutmesclgfadc5gu@treble> <20181129155615.2594-1-asavkov@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181129155615.2594-1-asavkov@redhat.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Thu, 29 Nov 2018 15:57:53 +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 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 -- Josh