Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3664899pxu; Sun, 11 Oct 2020 19:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3LlcYHZwL/l0PmG8QFJXs4Gm22k8dUsz9QWXra0V0Xgtn3bRSSCyzQ0O0MR28wKy1M0IM X-Received: by 2002:a50:8745:: with SMTP id 5mr11527402edv.49.1602469413464; Sun, 11 Oct 2020 19:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602469413; cv=none; d=google.com; s=arc-20160816; b=mfbRSKgqQsDwBnXLPUr8z7EGBNSpAN8Z/ubx50n7Ck+ufmyCyT2WryDvOCC+YkZxe4 lYKzl0kII9z2DIGC/Vr7HS6rp+M4M/TXUufn7gNjjn6Ids6hb3puLJPE3eLVbG4DM+p4 nfCz016FWqgltlEFu8XG5TOXMBCgETk1ql+bgh4dRkFYKC0xBz+nkiHabqLytcPd4J3z fJ/IucDTw/QPTwLt1O6kh1h5ii/pJA3wBjFjXtGh1bZG2m6tFedXwPjb6W2dAwz0IDNR jxwgSPmJUwvYcQALCyUxy0AHpB0K9SY6fCSd1ZEABZaYKpsmchGRCBsoIhGKOvBw4TC7 d6Fw== 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 :dkim-signature; bh=yR1eFCNPUNyZNowkVeyCOYwKp+kL3+6mmW6s7WP6puQ=; b=Imqt6djlllK9EXOD0zDNhyv2EnP5Iyxk9kjrx9Janxakey0a5B/F6kYXHW/F5gVBhx PgLMOY0ejfp38XzGr3oq7yNYJcLp4YfozzpUH5XBAnpI9Pz8M+OZmfm8xFN4r62tcF/f vusM4AhZ+FE1Uw373uHhdWKCIPnH1RC+fYBGyMPdgFj66FLpiABWiP9fKIUU61W3T0CJ wrsyHp9NOw3df7WoQ0PDToit0lDhaTrqQuhsuEOkJjjvVMMO7MJi7q//L3w9plX5dOOZ lRtpjsQuU3AZq7YChzhO6a8wQZdm8cBTYQYcjTGwbEFr/DoM/JIlRvLB070+CjcI0QJ1 BDbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F2ykPiMN; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g19si13995381ejz.9.2020.10.11.19.23.11; Sun, 11 Oct 2020 19:23:33 -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=@kernel.org header.s=default header.b=F2ykPiMN; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbgJLAMl (ORCPT + 99 others); Sun, 11 Oct 2020 20:12:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:55592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725962AbgJLAMl (ORCPT ); Sun, 11 Oct 2020 20:12:41 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (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 BE4E1208B6; Mon, 12 Oct 2020 00:12:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602461561; bh=7mB11WGz2b7XbnZ+rHX5lvSu70OQ/30FveyKPnDiIso=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=F2ykPiMNJIBmld1WIg/uIRvr0/jM2kOR2K48RHpJzhXwkFNwRyrhI1/SWSxIvsySX ZQ70luDghF8V0pTs1zDr/krXWv1ETORhH34YTJvRjCDjhnPoal8VIgDEzGlTtfPh3P fTjQZA/YGFKaaWHdzzlNp8VFsJnTVgiIORcU4z4M= Date: Mon, 12 Oct 2020 09:12:36 +0900 From: Masami Hiramatsu To: Josh Poimboeuf Cc: Borislav Petkov , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Martin Schwidefsky , Vasily Gorbik , Masami Hiramatsu , x86 Subject: Re: [tip: objtool/core] x86/insn: Support big endian cross-compiles Message-Id: <20201012091236.0f9a64bfedb8825732b65ea5@kernel.org> In-Reply-To: <20201010174415.zwopoy6vpficoqlr@treble> References: <160208761921.7002.1321765913567405137.tip-bot2@tip-bot2> <20201009203822.GA2974@worktop.programming.kicks-ass.net> <20201009204921.GB21731@zn.tnic> <20201010174415.zwopoy6vpficoqlr@treble> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; 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 Sat, 10 Oct 2020 12:44:15 -0500 Josh Poimboeuf wrote: > On Fri, Oct 09, 2020 at 10:49:21PM +0200, Borislav Petkov wrote: > > On Fri, Oct 09, 2020 at 10:38:22PM +0200, Peter Zijlstra wrote: > > > On Wed, Oct 07, 2020 at 04:20:19PM -0000, tip-bot2 for Martin Schwidefsky wrote: > > > > The following commit has been merged into the objtool/core branch of tip: > > > > > > > > Commit-ID: 2a522b53c47051d3bf98748418f4f8e5f20d2c04 > > > > Gitweb: https://git.kernel.org/tip/2a522b53c47051d3bf98748418f4f8e5f20d2c04 > > > > Author: Martin Schwidefsky > > > > AuthorDate: Mon, 05 Oct 2020 17:50:31 +02:00 > > > > Committer: Josh Poimboeuf > > > > CommitterDate: Tue, 06 Oct 2020 09:32:29 -05:00 > > > > > > > > x86/insn: Support big endian cross-compiles > > > > > > > > x86 instruction decoder code is shared across the kernel source and the > > > > tools. Currently objtool seems to be the only tool from build tools needed > > > > which breaks x86 cross compilation on big endian systems. Make the x86 > > > > instruction decoder build host endianness agnostic to support x86 cross > > > > compilation and enable objtool to implement endianness awareness for > > > > big endian architectures support. > > > > > > > > Signed-off-by: Martin Schwidefsky > > > > Co-developed-by: Vasily Gorbik > > > > Signed-off-by: Vasily Gorbik > > > > Acked-by: Masami Hiramatsu > > > > Signed-off-by: Josh Poimboeuf > > > > > > This commit breaks the x86 build with CONFIG_X86_DECODER_SELFTEST=y. > > > > > > I've asked Boris to truncate tip/objtool/core. > > > > Yeah, top 4 are gone until this is resolved. > > Masami, I wonder if we even need these selftests anymore? Objtool > already decodes the entire kernel. No, they have different roles. The selftest checks if the decoder works correctly by comparing with the output of objdump. As far as I can see, the objtool relies on the sanity of the decoder (it trusts the output of the decoder). Thank you, -- Masami Hiramatsu