Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4668065pxu; Wed, 21 Oct 2020 02:07:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3on8PmPyaiuM/38GSJyzVjOOzeIacwqGjqI4gJzhoLC9sVwdN0HBqbOdz2TekP7dNJf2Q X-Received: by 2002:a17:906:564d:: with SMTP id v13mr2563084ejr.217.1603271235137; Wed, 21 Oct 2020 02:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603271235; cv=none; d=google.com; s=arc-20160816; b=u7cmxx/uEmaniyRxejymPoxOcix5dQPJny8s1ToUpQfP14YeuJV214aTBDxIOCdUwc GZfZAFCWfwnI25kYPcDbNo1Quy28LwfPsVQuw33RkN1/eGUDaQx1izc0/AwqzSvatnn7 H4/AsjuTEVbQ9Ujb6FVCLNwW1ajkdD/JfEOLzd+HeyAMPuQds/vARLQjDED/3t8A76B0 tkqe9II9t/luO44H6DVStjKvy7D7+qMZIa86OTMOTnW9lvREYtXfwyRmL3Cy2fSGA/SJ AC3rybX165IsNqthz9Pb3I2D++4x013ZOPB6cgFeP4sMe9XrTYgc5CsrSqk7i5MMemcd 9aJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qBsAOEuW+slQj+nlbUTh0pxb+2mg7iyV4RbTsmQcaBw=; b=YXTFC5baDeQakFGne6SXzVe2RrE2g50kgqxKZyJBnyCk97GaMpD9zza99ytpFM+BIE /zFJdKslf9qR2RGxFT+qse5Cgj2H8024YvBMiqOb8W9NScnFS1scX2gBnZDJmJccEjsA 8J9V21pg+VbmT7w8O7fUUxCHn1QEwsPKMy9yTazpOs5CNlONi7OtD6yAPG8PeadfQBnf UE10YBtUs9Nml46DDEdt1K7rXtc77WCCGsGCelJextH68ZAf96NiWPJwLQiRTgivY+YL QQ6hqdVOq72/+21rigCbN5SB30CpptRHJCe8PaMOyRDNdSoMRvjOWY6Ws0CA9wLyFgdJ xJ5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=to+3jR8i; 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 h13si950944edt.581.2020.10.21.02.06.51; Wed, 21 Oct 2020 02:07:15 -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=to+3jR8i; 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 S2437330AbgJTSPE (ORCPT + 99 others); Tue, 20 Oct 2020 14:15:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:46934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437306AbgJTSPD (ORCPT ); Tue, 20 Oct 2020 14:15:03 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (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 71C752098B; Tue, 20 Oct 2020 18:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603217702; bh=ATM9YDiM0sfiA1zQ3/mGre1Rk3rzW7SWzPouzYHlM78=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=to+3jR8iGDo3+ysj5KO1PtNhTAmQNcVvJSKliTIfhbaiyKHGnx84gHB6AXD7FuXLF jhAkIXo3VyPBX1+4F/LO+nKQh5NVgv0CGeO2yOLGCp1mYaHQYWzygLUz6WgZjxRgjD IrR/LMzdbJtaSXJE0J29dOiiasGfLufpA8gnRd24= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 095AC403C2; Tue, 20 Oct 2020 15:14:59 -0300 (-03) Date: Tue, 20 Oct 2020 15:14:58 -0300 From: Arnaldo Carvalho de Melo To: Andrii Nakryiko Cc: Hao Luo , Jiri Slaby , =?iso-8859-1?Q?=C9rico?= Rolim , dwarves@vger.kernel.org, open list , Arnaldo Carvalho de Melo , Andrii Nakryiko , Alexei Starovoitov , bpf Subject: Re: Segfault in pahole 1.18 when building kernel 5.9.1 for arm64 Message-ID: <20201020181458.GA2342001@kernel.org> References: <82b757bb-1f49-ab02-2f4b-89577d56fec9@kernel.org> <20201020122015.GH2294271@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Oct 20, 2020 at 10:10:19AM -0700, Andrii Nakryiko escreveu: > On Tue, Oct 20, 2020 at 10:05 AM Hao Luo wrote: > > Thanks for reporting this and cc'ing me. I forgot to update the error > > messages when renaming the flags. I will send a patch to fix the error > > message. > > The commit > > commit f3d9054ba8ff1df0fc44e507e3a01c0964cabd42 > > Author: Hao Luo > > AuthorDate: Wed Jul 8 13:44:10 2020 -0700 > > btf_encoder: Teach pahole to store percpu variables in vmlinux BTF. > > encodes kernel global variables into BTF so that bpf programs can > > directly access them. If there is no need to access kernel global > > variables, it's perfectly fine to use '--btf_encode_force' to skip > > encoding bad symbols into BTF, or '--skip_encoding_btf_vars' to skip > > encoding all global vars all together. I will add these info into the > > updated error message. > > Also cc bpf folks for attention of this bug. > I've already fixed the message as part of > 2e719cca6672 ("btf_encoder: revamp how per-CPU variables are encoded") > It's currently still in the tmp.libbtf_encoder branch in pahole repo. I'm now running: $ grep BTF=y ../build/s390x-v5.9.0+/.config CONFIG_DEBUG_INFO_BTF=y $ make -j24 CROSS_COMPILE=s390x-linux-gnu- ARCH=s390 O=../build/s390x-v5.9.0+/ To do the last test I wanted before moving it to master. - Arnaldo