Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1398906pxb; Sun, 22 Aug 2021 15:55:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlsOuiTypWrDhWZTubqTucHnsKj5e3Y8sjIGztqopVhBHpQuvou8kE9/Rj+E2fZd8+bRY8 X-Received: by 2002:a17:906:f992:: with SMTP id li18mr32209972ejb.381.1629672936315; Sun, 22 Aug 2021 15:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629672936; cv=none; d=google.com; s=arc-20160816; b=WS/gQh7CPx2MJmpabMXeLawfPium63vxX+hqc3GoNB75IR26HsEZn7PGEht1Ymch8i 655Ui7LVo7Trm8zqt5hdHTwXshn6Ny0DLVxrFvlyElBayTMCIqF7rbmc4NgEohmqLNL0 AZMyWh0lNgtgbjNFGyKjQ1GifK5tn3dgNM95xEZp0ZKrAVHqf9C9mL7fe/dFGngtkkw0 g/z2LI+/NROndnOFF+GObM5EWsWkLoFjPB9g11tWPXnuKe+ZQvkaAvkFCs0SjwbVOYRW MSwLVL9BtLy/NjX0jsO2Gc5p59TMRBgkBpRvT65omopOC3H6fX6XWdVpcZN49dzBmYFr pM5g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Ed3GqrOG9mDN34eH1Tr5OjkoyB3m3r+fRZda0yY/B9Y=; b=AthhXK5RkpXwmQq0m5AKqG4KUjsm9pRQfa1L5A51WqnT6KuF2AXYRVTL5F1KMGyMcJ NvaXmsqf6ubNeol4iXdleEpwkJpGqoq3AUMGiW/uc8xWGuD54o2NBhBMufuiWDSEQtNv firWVtlSsGVg2k4Gu9P8GevkoB3IMso75qSEGvadAEW+ij3+1NKno+kxH29FtkAqajQo iTLaUepHtngERRZuBtX3Bnt1mmTEIK3GoNLu++X828CLjXvHQWZ6/ctw+M/IBwzj0gXE Z+SAa2l+DZc9R7/Up0Nr2ikvVnIKIje6AWO+Vr21hk6hcxYuG1sS8V8PscFI8OEGDoWa jOCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="LL/gK+wo"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si473019ejc.561.2021.08.22.15.55.05; Sun, 22 Aug 2021 15:55:36 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="LL/gK+wo"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233672AbhHVWvt (ORCPT + 99 others); Sun, 22 Aug 2021 18:51:49 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:33253 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232833AbhHVWvp (ORCPT ); Sun, 22 Aug 2021 18:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1629672664; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Ed3GqrOG9mDN34eH1Tr5OjkoyB3m3r+fRZda0yY/B9Y=; b=LL/gK+woWvq5lkiRLiMN9yungOZQpNWWfRk7TFrap5+IZSjZ9aT82MAadaOBg8D6a4tLlH 7KQaeC/UcjHZ/xZJNgQ0NuR701VKoAycgreMW9LayfbLCMhePvZGL561YwWeZoqOKHKOm6 1M8TfWX/s9hY9MdGu4e2lqws0Kfhi2o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-203-UvB58LEYN-GhEpcT1AOAsQ-1; Sun, 22 Aug 2021 18:51:00 -0400 X-MC-Unique: UvB58LEYN-GhEpcT1AOAsQ-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 747CE1082921; Sun, 22 Aug 2021 22:50:59 +0000 (UTC) Received: from jlaw-desktop.redhat.com (unknown [10.22.32.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 80E0360C9F; Sun, 22 Aug 2021 22:50:54 +0000 (UTC) From: Joe Lawrence To: x86@kernel.org, Josh Poimboeuf , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Miroslav Benes , Andy Lavr Subject: [PATCH v3 0/2] objtool: altinstructions fix and cleanup Date: Sun, 22 Aug 2021 18:50:35 -0400 Message-Id: <20210822225037.54620-1-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This version won't eat your memory and swap when building the entire kernel. Apologies to Andy who discovered this over the weekend. Tested full build and boot w/o problem. The vmlinux sections, relocs, size, etc. all appear to be the same before and after this set. External tooling (kpatch-build) is happy, too. v3: - fix bug introduced in arch_decode_instruction() [andy] v2: - drop the sec->len update from the first patch [josh] - rip out sec->len as suggested [josh] Joe Lawrence (2): objtool: make .altinstructions section entry size consistent objtool: remove redundant len value from struct section tools/objtool/arch/x86/decode.c | 2 +- tools/objtool/check.c | 16 ++++++++-------- tools/objtool/elf.c | 14 ++++++-------- tools/objtool/include/objtool/elf.h | 1 - tools/objtool/orc_gen.c | 2 +- tools/objtool/special.c | 4 ++-- 6 files changed, 18 insertions(+), 21 deletions(-) -- 2.26.3