Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3677133ybd; Tue, 25 Jun 2019 06:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfkDSahHhN/0+xJIQKBw1SsDK1OTWamr304RqynPQtSOR8AD/2zxmBwHxHrPyfDrTMmzk8 X-Received: by 2002:a17:902:a5c5:: with SMTP id t5mr157266262plq.288.1561470197190; Tue, 25 Jun 2019 06:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561470197; cv=none; d=google.com; s=arc-20160816; b=h37CJ+Ue3tyfU/iEW7fuBawNWe3WJF3qk+XgLSAWZVndGV1PKFjVUltGdvHWSy4D4u uOChkwadhmjPoNaKGmM6VqqFEegODP3AUdffRT0jekXvVuuS5BepaLc7CPI2G+fNQEYC Z/6a6DjcFsJ2M+z5t6FaevdcawgupvCR9Yk2U9rAYyBhbMaFxYBtqPSC+S/HTL1JiDCU Ic/TS7rS4bNFytSTCKulH4bEU78F+NG/dJEQLj9LUYkaPoy8oQ8MOYSau/SVCBqzVpn1 cONUxMUTn/eaRV25wBEOX3aobPKPLAymvajgeWz+mtLl+jaFM1bCtSJZ3NCnBl7BCW/3 QgQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=v/Unt4e4VE3PxFFX/3EwUM1ggwx+sE4t6ePi2KXQIVE=; b=VfFBBKHU9LnryAyfxOODRFdh9xQRysqvydYzA6AXkhOUzVvNUalvctsmoWN+PCXPYx Jae/e6Lgal/Gb95PqMeRvVN+U+TP6e0IcnHvk3C7waGmfsQlqv8sNudPW1rILxzei8MW KXDusnvDnfAEunEbhxD9CecDTU2j+PpYlyP+kfSv7strKDoHQkZ56Ilb1NYn65zz+7sI +yidGUA5eDE5ONwRwnghlNKGZK32jHSSRby/7jffmvF14M9OYI0XGwh8hqCPK5jy5SFh Z7g86IwBp68/ZM1htuXXMFOzZL0nSY4o/pBWt+LVC5J9Tgv7dFoLpF808z3/CKTyAlvg Y00Q== 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 i22si2862298pju.59.2019.06.25.06.43.01; Tue, 25 Jun 2019 06:43:17 -0700 (PDT) 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 S1729605AbfFYNYb (ORCPT + 99 others); Tue, 25 Jun 2019 09:24:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32906 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726707AbfFYNYa (ORCPT ); Tue, 25 Jun 2019 09:24:30 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E21A3092669; Tue, 25 Jun 2019 13:24:22 +0000 (UTC) Received: from [10.18.17.153] (dhcp-17-153.bos.redhat.com [10.18.17.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 92ABC5C238; Tue, 25 Jun 2019 13:24:21 +0000 (UTC) Subject: Re: [PATCH v4 00/10] klp-convert livepatch build tooling To: Miroslav Benes , Petr Mladek Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-kbuild@vger.kernel.org References: <20190509143859.9050-1-joe.lawrence@redhat.com> <20190614083435.uq3mk6mprbatysol@pathway.suse.cz> From: Joe Lawrence Message-ID: <76da6ab0-5540-d9ff-c5ea-6dc31a39c744@redhat.com> Date: Tue, 25 Jun 2019 09:24:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Tue, 25 Jun 2019 13:24:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/19 7:36 AM, Miroslav Benes wrote: > > [ ... snip ... ] > > So I made a couple of experiments and found that GCC is somehow involved. > If klp-convert (from scripts/livepatch/) is compiled with our GCC 4.8.5 > from SLE12, the output is incorrect. If I compile it with GCC 7.4.0 from > openSUSE Leap 15.1, the output is correct. > > If I revert commit d59cadc0a8f8 ("[squash] klp-convert: make > convert_rela() list-safe") (from Joe's expanded github tree), the problem > disappears. > > I haven't spotted any problem in the code and I cannot explain a > dependency on GCC version. Any ideas? > Thanks for revisiting and debugging this. Narrowing it down to my "fix" to convert_rela() should be helpful. In my case, I was probably testing with RHEL-8, which has gcc 8.2 vs RHEL-7 which has gcc 4.8. I'll have to make sure to try with a few different versions for the next round. -- Joe