Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2004045yba; Fri, 17 May 2019 08:52:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm9GIvQaCIk3PSiUyl6HY2+CZMuiRLB4EufUC0GPbWJ2q6fbRnRz2F4ahsozgwMESjxdfy X-Received: by 2002:a17:902:bd8a:: with SMTP id q10mr9714619pls.155.1558108363592; Fri, 17 May 2019 08:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558108363; cv=none; d=google.com; s=arc-20160816; b=M7xtD8vnTPeLiO2uQFFUNNsWLepccMuICgsn0Bsh0WNuGgZ+eJqKDRCURyMxEAu/eE 4zemFi4bAOxbG372P5ePgjmKQoXym6i53AQVJxh3fUrYczghzcr4gUxHfgD2Wgfzh1/4 gLtv0/HekHJqRAwyIUgZAILO5lQhVBmDT5Yw8ZEmIS87GvlEHh31IinYF0hVMHpXSEqE lIy8vUGL5OaEmWVZLdEIBiKpMQ/yHeL/2tjBVm3/7Kb9h3ml4Sg7c4mIw8CJ/n5PgPi3 VsxwHFnNSh2BqgfZTzWPCcVJ4YqE8rcSF4Tpvea1K7gJE8gl7ijEZmbR3wgExcLway2p njNg== 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=n7Exe8CcQouU6da3leB2/AlNVmLv65Ny2om3kVZgP1Q=; b=m5SoflPWIVhDbWKsEZoinv/Re+7J2nmnCRRVzuyNyaXdVKcCSCvbtNbs5qJYN5oHQk TKpIHQ6wNvmnzK2W89Aa/2jM5THVJlKjC3nkl/UmKOlfih1M2EfYlf9WLgtmm2nyVcOg 7aiZKWclnrsSECbeZ1z6Vj9z7pUue6v2YyOq+XAX/CpPIRT13At2NKVMB/9XjDPjIUnq 2q9awLopFbkqRXv+O9+V5qvQ75/eLi/eayTUw7NzORvzJhEjPW1GzS43QSxXWurJHups l7EjonOGR18Aj4KQMIvMRdig9aTbVUwqMZe2pVPwmCSJvJyLsfRFvd/e1A1j38EWUtuC e5qQ== 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 e5si8353966pgb.262.2019.05.17.08.52.20; Fri, 17 May 2019 08:52:43 -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 S1728828AbfEQOaN (ORCPT + 99 others); Fri, 17 May 2019 10:30:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45846 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728396AbfEQOaN (ORCPT ); Fri, 17 May 2019 10:30:13 -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 5C09575724; Fri, 17 May 2019 14:30:07 +0000 (UTC) Received: from [10.18.17.208] (dhcp-17-208.bos.redhat.com [10.18.17.208]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6059C78576; Fri, 17 May 2019 14:30:05 +0000 (UTC) Subject: Re: livepatching selftests failure on current master branch To: Miroslav Benes , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jikos@kernel.org, jpoimboe@redhat.com, pmladek@suse.com, tglx@linutronix.de References: From: Joe Lawrence Message-ID: Date: Fri, 17 May 2019 10:30:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 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.25]); Fri, 17 May 2019 14:30:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/17/19 10:17 AM, Miroslav Benes wrote: > Hi, > > I noticed that livepatching selftests fail on our master branch > (https://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching.git/). > > ... > TEST: busy target module ... not ok > > --- expected > +++ result > @@ -7,16 +7,24 @@ livepatch: 'test_klp_callbacks_demo': in > test_klp_callbacks_demo: pre_patch_callback: vmlinux > test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state > livepatch: 'test_klp_callbacks_demo': starting patching transition > +livepatch: 'test_klp_callbacks_demo': completing patching transition > +test_klp_callbacks_demo: post_patch_callback: vmlinux > +test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state > +livepatch: 'test_klp_callbacks_demo': patching complete > % modprobe test_klp_callbacks_mod > livepatch: applying patch 'test_klp_callbacks_demo' to loading module > 'test_klp_callbacks_mod' > test_klp_callbacks_demo: pre_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init > +test_klp_callbacks_demo: post_patch_callback: test_klp_callbacks_mod -> [MODULE_STATE_COMING] Full formed, running module_init > test_klp_callbacks_mod: test_klp_callbacks_mod_init > % rmmod test_klp_callbacks_mod > test_klp_callbacks_mod: test_klp_callbacks_mod_exit > +test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away > livepatch: reverting patch 'test_klp_callbacks_demo' on unloading module > 'test_klp_callbacks_mod' > test_klp_callbacks_demo: post_unpatch_callback: test_klp_callbacks_mod -> [MODULE_STATE_GOING] Going away > % echo 0 > /sys/kernel/livepatch/test_klp_callbacks_demo/enabled > -livepatch: 'test_klp_callbacks_demo': reversing transition from patching to unpatching > +livepatch: 'test_klp_callbacks_demo': initializing unpatching transition > +test_klp_callbacks_demo: pre_unpatch_callback: vmlinux > +test_klp_callbacks_demo: pre_unpatch_callback: test_klp_callbacks_busy -> [MODULE_STATE_LIVE] Normal state > livepatch: 'test_klp_callbacks_demo': starting unpatching transition > livepatch: 'test_klp_callbacks_demo': completing unpatching transition > test_klp_callbacks_demo: post_unpatch_callback: vmlinux > > ERROR: livepatch kselftest(s) failed > not ok 1..2 selftests: livepatch: test-callbacks.sh [FAIL] > > which probably means that the consistency model is not in the best shape. > There were not many livepatch changes in the latest pull request. Stack > unwinder changes may be connected, so adding Thomas to be aware if it > leads in this direction. > > Unfortunately, I'm leaving in a minute and will be gone till Wednesday, so > if someone confirms and wants to investigate, definitely feel free to do > it. > I will take a look today. Thanks for reporting. I hope it's something silly in the tests not the consistency model ... -- Joe