mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Petr Mladek <pmladek@suse.com>
To: Sasha Levin <sashal@kernel.org>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>,
	Miroslav Benes <mbenes@suse.cz>,
	Joe Lawrence <joe.lawrence@redhat.com>,
	Song Liu <song@kernel.org>,
	Marcos Paulo de Souza <mpdesouza@suse.com>,
	Eva Kurchatova <eva.kurchatova@virtuozzo.com>,
	Yafang Shao <laoar.shao@gmail.com>, Shuah Khan <shuah@kernel.org>,
	live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/4] selftests/livepatch: build and run the tests outside the running kernel
Date: Mon, 23 Nov 2026 15:16:03 +0100	[thread overview]
Message-ID: <awRKo4D-H2sHFfwR@pathway.suse.cz> (raw)
In-Reply-To: <20261110161050.2451750-1-sashal@kernel.org>

On Tue 2026-11-10 11:10:46, Sasha Levin wrote:
> The livepatch selftests build their test modules against the running
> kernel and skip every test without its devel files, so they do not
> work when built for one kernel and run on another, as CI systems do.
> In KernelCI, 36 of 69 kselftest builds of mainline fail to compile the
> modules because the kernel lacks CONFIG_LIVEPATCH, and where the
> modules do build, the installed tests skip themselves.
> 
> - Patch 1 skips the modules and tests when livepatch is not enabled.
> - Patch 2 lets "make clean" remove the modules without a kernel build
>   directory.
> - Patch 3 builds the modules against the kernel in O= or KBUILD_OUTPUT.
> - Patch 4 runs the tests with the installed modules, without the devel
>   files.
> 
> Tested on x86_64 against kernels built with O= and in place, a kernel
> without livepatch and the Debian headers. The modules build and clean
> in every case, and the installed tests pass 8/8 in a VM without devel
> files, where they were all skipped before.

My only open problem is the "O=<kernel> KDIR=<kernel>" parameters
mentions in the commit message in the 2nd patch. They do not work
for me.

Otherwise, this patchset looks ready for linux-next.

I am going to push it (with removing the problematic parameters from
the commit message) by the end of this week unless anyone complains
in the meantime.

Best Regards,
Petr

      parent reply	other threads:[~2026-11-23 14:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-10 16:10 Sasha Levin
2026-11-10 16:10 ` [PATCH v4 1/4] selftests/livepatch: skip the tests on kernels without livepatch Sasha Levin
2026-11-23 10:15   ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 2/4] selftests/livepatch: clean the test modules without a kernel build directory Sasha Levin
2026-11-23 10:23   ` Petr Mladek
2026-11-23 15:44     ` Sasha Levin
2026-11-10 16:10 ` [PATCH v4 3/4] selftests/livepatch: build the test modules against the kernel in O= Sasha Levin
2026-11-23 14:09   ` Petr Mladek
2026-11-10 16:10 ` [PATCH v4 4/4] selftests/livepatch: run the tests with prebuilt test modules Sasha Levin
2026-11-23 14:10   ` Petr Mladek
2026-11-23 14:16 ` Petr Mladek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awRKo4D-H2sHFfwR@pathway.suse.cz \
    --to=pmladek@suse.com \
    --cc=eva.kurchatova@virtuozzo.com \
    --cc=joe.lawrence@redhat.com \
    --cc=jpoimboe@kernel.org \
    --cc=laoar.shao@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=mbenes@suse.cz \
    --cc=mpdesouza@suse.com \
    --cc=sashal@kernel.org \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®