Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1984983yba; Fri, 17 May 2019 08:33:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYOJisCpLBUvPmU1YK7PrHOKbPlr2907wm7mcwk2a0Z6zekljV9VH3UrEmJfCDYHfM1xIg X-Received: by 2002:a65:528b:: with SMTP id y11mr57235234pgp.341.1558107211747; Fri, 17 May 2019 08:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558107211; cv=none; d=google.com; s=arc-20160816; b=piYa5px5yIKqIQFFEdK2ikY1Dprd9lUiwgg0ioxwlx0hK8a0DDECiGZYyF5pCNYrdR m0jdicRhMk3U+Gf58vT08ud8RN2bBtFk5ckGK/pXc2iLVN0LgflpFQ0esesB6BJsq/7U yt+lMSZrawQ9pA60j6iAVTuHRRUdGAEi/U6wkwhgvKVH2Q+bo9V7akvKgDI61SyCqKUq 9cw7EOcVs5YIRrY9YBquUn/ngXHYg2Yu7tzXKrylVuWeKjHqm/eZ4lxTaZ2gQdrsRKpF KsKs3j1V1uyX1MfTwNdjT33VY4OznAwgKVv5FbPZB0CHxANdQq3tYnzXeGt0amSAaj8L Ay8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=7WeNdDe/IEyN2svZCD+BPeZpmkq9HiJJVf+zvYumwLY=; b=hdhFQvMPMrdAf6lbYe86QG39sKeoqwr7DeZyz0+DsjEK/G2Vmggyvv2nAN8XveuxmL qPoQHR/3vujavrSZ5g6CBJdytnA+HywE6YuId6KifzdEpGUk4V5WxaEL/UEmdvnwJYF/ 5T+oJdqtKZCEIYOWTW+b66gi4MvqCtojAKpXnDMmTxW4SRzOwxaYrk1bewFeE5x6Nve/ oXY3Czz6cU1hOlPntLGq+Sz9VGHrbTK8haWXgw1u5+CvstG5WE1HANsFK7/HkofMax7q K6e2mkV6sXrTJcCJr/ScI7zDxXJH3o4E19xw8werpr3cBGsg9fRnhIUwja4vAszhlFQv ihfg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x143si8571077pgx.504.2019.05.17.08.33.16; Fri, 17 May 2019 08:33:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729056AbfEQORn (ORCPT + 99 others); Fri, 17 May 2019 10:17:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:56332 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729019AbfEQORm (ORCPT ); Fri, 17 May 2019 10:17:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id A0BC4AD3A; Fri, 17 May 2019 14:17:41 +0000 (UTC) Date: Fri, 17 May 2019 16:17:40 +0200 (CEST) From: Miroslav Benes To: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org cc: jikos@kernel.org, joe.lawrence@redhat.com, jpoimboe@redhat.com, pmladek@suse.com, tglx@linutronix.de Subject: livepatching selftests failure on current master branch Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Miroslav