From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE0CD3FFFA7 for ; Fri, 5 Jun 2026 15:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780672487; cv=none; b=llGRz8ie+9qmekwL0gyNDf7Q0KR1WZL0W48r6khLwX6NIo5Fxk/Jlv279sAr3+xUHmngXCvvEoPzNK13URdwOL87VkZ20kYGA05FRAlS5aSlL8rq7bFRD9+odCzhCORtElGhtNrYXvAv+MWLq4pP4tmYA7WYa4i5xLxMbuycYWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780672487; c=relaxed/simple; bh=pVXqDCGJxcTY09vnClQDvcttv3WvWGsjeGCHpdDkg7w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u6xsWAn1jZcjIXL+R9VJbdWmf3cl8Y4SyOpPuNnqfwtnDzoVKmhDn6Kj8KzrWTDQeIaCG1ID0v/zUkwnAF1ZoyTmMdoEyXezVKBj3aXsszU6OOGbhcdSxoaCubIJjrWYCNh/IJ8PdESTMJ5nSsHMzz/ea8RfgXPfUPMwwobBHNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=bb49GgEP; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="bb49GgEP" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-490b7866869so24416155e9.2 for ; Fri, 05 Jun 2026 08:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1780672484; x=1781277284; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=w5Us6LXX/m1CkmS8+PwnhcahCPKlGB8k4LedTlqb3Mg=; b=bb49GgEPsSlce8cSGzzCUBfT7ydA151ASBn0zm/lNlFs/1W/JntJ5PRkvJ2Cv0ynMG /QH1sd6ws8dcrekw5fS0MeeEhOHcw1zjjMWy90tcGoKvauDEhumBQmpe3X9A9OKz/5XB jg4EzfAopKbU8+iVzsUWHGjE71Fn2nEyYDzFOZ7EQjsf1F9OmZaCEp/7o7EhBnrSKFEM Ybr2a9oLVCRVwe4P6mMF7d/pHHGO+bR8pUsyXEkF2jcU5dNWJC3TMuc7kakQZDUn/q4T iUet2MHtZO0o0eIKzRc7RoHFd7gTA0T3PpXXPBAGcMT3RLQJ/zcLBT678p3yABzZ4jnm gmXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780672484; x=1781277284; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w5Us6LXX/m1CkmS8+PwnhcahCPKlGB8k4LedTlqb3Mg=; b=OQ28fOnXw8kGqxPsMmEVnSw9iPGkE2cQzyLi8QDUJEURMjh8khz/DrLHq74y44Mtox vaHlG0L3T45oMyOoX21dewm366eCrulR0ciJRkLGHFSrwX40NO5iKbjfQwDH/ET7WofD q0QPI2TS53xBaAxUJsXhy/QTXSrUYAEAjeOKz+ZduAaVgjKeJNpWHUZzvn1Q5FpXoa1m 2Eg2FjPovu7ez3BXfqJzB5g3I90vNOoapppHFM9GdLBV5rQQpluxkjGS94fXL3r7bPSn M9QDoKgb9HFvT3ydMCk4DR+bVcODY5NvG3NBD04dT+BXz3Co0ddApHKPppwnfpTnlm/9 Toyw== X-Forwarded-Encrypted: i=1; AFNElJ8caI9E1jMwnNEqciDJKPOb7fmyu6Cem8+n711kLLDQeuLQcMQx1xR6EX3TDOFAZ2gV7AM7TOqoNlIADaU=@vger.kernel.org X-Gm-Message-State: AOJu0Yz68pk99NsxVB7VbfVL+MQ6f00A3geZa4N2vu2LnBSi7hvc1c1H K8ewCckqTrlQbfcFc2BTaFD6PrUCNRJDL0IaBNb92OhapkFwzDHx33+67qw+EOlyOY8= X-Gm-Gg: Acq92OFi9wIGBHtcpJO7lXXxAnrBF0puVZzlVq8EavAoHx1Tzw0jWx19VBrfD0QRI3+ b1D1BhAAViWa1UkPt09I0VEassaBlvzppN3PmjWEvUkyfpHE/kQTjZ6w/w5nOCh+CNV/rW3+nyB LeSIE+DMFZBbvFXqxrZANLNsXu7CFA17iYZyGmvw51Q0dKocsT0zF9oZJxi7Fc3nfh+A2V7Sjlt LcZKg/+fttmzC9YTye6kMYLzKFyuCHOx87c4yA7Fb0glMDaw7yAWPbmtufuwNHaRyKf++gBmisJ dWZ+f5OINcsqI1Yive830ad/hjf4yYgwY2wjgzMuXusyCKD94995wafwYpb5/+35VuIjWpIMrGw bsLaFgTThcOwzI+3GGxFnJBnwmRiIV03oXw6RrG3MLWEemhx7C4RNCGcm+eM5c109Wy1ymiiEcJ kmTRl6Is07DE2Yy9WqYy6d92ck4kN8fKK7QmDa X-Received: by 2002:a05:600c:310e:b0:490:b58b:a8cb with SMTP id 5b1f17b1804b1-490c263a615mr63235475e9.26.1780672484398; Fri, 05 Jun 2026 08:14:44 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4601f0a43e9sm26721601f8f.0.2026.06.05.08.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2026 08:14:44 -0700 (PDT) Date: Fri, 5 Jun 2026 17:14:42 +0200 From: Petr Mladek To: Marcos Paulo de Souza Cc: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Joe Lawrence , Shuah Khan , live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, marcos@mpdesouza.com Subject: Re: [PATCH 4/4] selftests: livepatch: Add information about minimum kernel support Message-ID: References: <20260524-livepatch-unload-on-fail-v1-0-7465de7f741d@suse.com> <20260524-livepatch-unload-on-fail-v1-4-7465de7f741d@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260524-livepatch-unload-on-fail-v1-4-7465de7f741d@suse.com> On Sun 2026-05-24 20:50:33, Marcos Paulo de Souza wrote: > The current livepatch selftests are compatible with kernel 4.12, so add > a note about it for future developers willing to contribute with new > tests. > > Signed-off-by: Marcos Paulo de Souza > --- > tools/testing/selftests/livepatch/README | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/testing/selftests/livepatch/README b/tools/testing/selftests/livepatch/README > index d2035dd64a2b..293f4730b927 100644 > --- a/tools/testing/selftests/livepatch/README > +++ b/tools/testing/selftests/livepatch/README > @@ -54,3 +54,6 @@ check_result(). The latter function greps the kernel's ring buffer for > those strings for result comparison. Other utility functions include > general module loading and livepatch loading helpers (waiting for patch > transitions, sysfs entries, etc.) > + > +All new tests and test modules MUST be compatible with kernel version 4.12 and > +later, including current upstream kernels. I do not have a good feeling about this. One thing is to accept fixes/workarounds for the backward compatibility. But forcing contributors to keep the compatibility might be too demanding. I might be wrong. But I think that you would need a pretty old userspace to run 4.12 kernel. And most people could not get it easily. Honestly, I though more about this effort and I am not sure how complicated it would be in the long term. I know about two pending patchsets which are breaking the backward compatibility: + Better integration of callbacks and shadow variables with the states API [1] + Introduce replace set support [2] Especially the 1st one is a pain. It is 19th patches and most of them are fixing/reworking the selftests. I think that it was the reason why nobody reviewed it yet. And it might be even worse if we wanted to make it backward compatible. [1] https://lore.kernel.org/all/20250115082431.5550-1-pmladek@suse.com/ [2] https://lore.kernel.org/all/20260529034542.68766-1-laoar.shao@gmail.com/ Best Regards, Petr