selftests: user: remove user suite
PATCH 1/1 selftests: user: remove user suite
The user test suite has only one test, test_user_copy which loads test_user_copy module for testing. But test_user_copy module has already been converted to kunit (see fixes). Hence remove the entire suite.
--- tools/testing/selftests/Makefile | 1 - tools/testing/selftests/user/Makefile | 9 --------- tools/testing/selftests/user/config | 1 - tools/testing/selftests/user/test_user_copy.sh | 18 ------------------ 4 files changed, 29 deletions(-) delete mode 100644 tools/testing/selftests/user/Makefile delete mode 100644 tools/testing/selftests/user/config delete mode 100755 tools/testing/selftests/user/test_user_copy.sh
tools/testing/selftests/Makefile +0 -1
@@ -107,7 +107,6 @@ TARGETS += tmpfs TARGETS += tpm2 TARGETS += tty TARGETS += uevent -TARGETS += user TARGETS += user_events TARGETS += vDSO TARGETS += mm
tools/testing/selftests/user/Makefile deleted +0 -9
@@ -1,9 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# Makefile for user memory selftests - -# No binaries, but make sure arg-less "make" doesn't trigger "run_tests" -all: - -TEST_PROGS := test_user_copy.sh - -include ../lib.mk
tools/testing/selftests/user/config deleted +0 -1
@@ -1 +0,0 @@ -CONFIG_TEST_USER_COPY=m
tools/testing/selftests/user/test_user_copy.sh deleted +0 -18
@@ -1,18 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0 -# Runs copy_to/from_user infrastructure using test_user_copy kernel module - -# Kselftest framework requirement - SKIP code is 4. -ksft_skip=4 - -if ! /sbin/modprobe -q -n test_user_copy; then - echo "user: module test_user_copy is not found [SKIP]" - exit $ksft_skip -fi -if /sbin/modprobe -q test_user_copy; then - /sbin/modprobe -q -r test_user_copy - echo "user_copy: ok" -else - echo "user_copy: [FAIL]" - exit 1 -fi
Signature · 1 line
2.39.2
Shuah Khan
maintainerQuoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")
Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 2 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Thanks,
-- Shuah
Quoted 9 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
The user test suite has been failing since cf6219ee889f as the test module wasn't found. So this is fixing the failure of kselftest. It just causes noise and may mask other failures. If you still think that fixes isn't needed, I can send a new version by removing the fixes tag.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Thanks,
-- Shuah
Signature · 2 lines
BR, Muhammad Usama Anjum
Shuah Khan
maintainerQuoted 6 lines · Muhammad Usama Anjum
Quoted 5 lines · Shuah Khan
Quoted 4 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.
Quoted 9 lines
Quoted 4 lines
Quoted 1 line
Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
The user test suite has been failing since
cf6219ee889fas the test module wasn't found. So this is fixing the failure of kselftest. It just causes noise and may mask other failures. If you still think that fixes isn't needed, I can send a new version by removing the fixes tag.
In which case this information should have been part of the change log to make it clear this is a fix. Fixes tag should also mention the releases this is applicable to so this patch doesn't make it to stables releases without cf6219ee889f - so this test still runs.
If you are adding Fixes tag it should mention the releases this is applicable to. Can you get me that information?
thanks,
-- Shuah
Quoted 11 lines · Shuah Khan
Quoted 10 lines · Muhammad Usama Anjum
Quoted 9 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 8 lines
Quoted 5 lines
The user test suite has been failing since
cf6219ee889fas the test module wasn't found. So this is fixing the failure of kselftest. It just causes noise and may mask other failures. If you still think that fixes isn't needed, I can send a new version by removing the fixes tag.In which case this information should have been part of the change log to make it clear this is a fix.
Sorry, I should have mentioned explicitly. Please let me know if I should send another version for this and the other patch for acceptance [1]?
Quoted 3 lines
Fixes tag should also mention the releases
this is applicable to so this patch doesn't make it to stables releases withoutcf6219ee889f- so this test still runs.
Release tag is unnecessary as the fix can be applied easily to fixes commit. From stable-kernel-rules:
Note, such tagging is unnecessary if the stable team can derive the appropriate versions from Fixes: tags.
Quoted 8 lines
If you are adding Fixes tag it should mention the releases this is applicable to. Can you get me that information?
thanks,
-- Shuah
[1]
https://lore.kernel.org/all/[email protected]
Signature · 2 lines
BR, Muhammad Usama Anjum
Shuah Khan
maintainerQuoted 7 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")
Quoted 9 lines
Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 2 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Thanks,
-- Shuah
As mentioned in other threads on this conversion to kunit and removal of kselfttest - NACK on this patch.
Please don't send me any more of these conversion and removal patches.
thanks,
-- Shuah
Quoted 14 lines · Shuah Khan
Quoted 13 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 2 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Quoted 9 lines
Quoted 3 lines
Thanks,
-- ShuahAs mentioned in other threads on this conversion to kunit and removal of kselfttest - NACK on this patch.
Please don't send me any more of these conversion and removal patches.
I think there is a misunderstanding about these particular patches (for string and usercopy selftests). Those were already converted, as desired, by the maintainer (me) to KUnit. These associated patches are cleaning up the dangling kselftest part of them, and should land (with the Fixes tag, which is aimed at the commit that did the conversion).
-Kees
Signature · 1 line
Kees Cook
Quoted 21 lines · Kees Cook
Quoted 18 lines · Shuah Khan
Quoted 16 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 2 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Thanks,
-- Shuah
Quoted 7 lines
Quoted 5 lines
As mentioned in other threads on this conversion to kunit and removal of kselfttest - NACK on this patch.
Please don't send me any more of these conversion and removal patches.
I think there is a misunderstanding about these particular patches (for string and usercopy selftests). Those were already converted, as desired, by the maintainer (me) to KUnit. These associated patches are cleaning up the dangling kselftest part of them, and should land (with the Fixes tag, which is aimed at the commit that did the conversion).
Yes, this is misunderstanding and these patches should be taken to remove dead tests in kselftests as their corresponding test modules have been moved already. So these patches are fixes.
Quoted 4 lines
-Kees
Signature · 2 lines
BR, Muhammad Usama Anjum
Shuah Khan
maintainerQuoted 25 lines · Muhammad Usama Anjum
Quoted 24 lines · Kees Cook
Quoted 21 lines · Shuah Khan
Quoted 7 lines · Shuah Khan
Quoted 5 lines · Muhammad Usama Anjum
The user test suite has only one test,
test_user_copywhich loadstest_user_copymodule for testing. Buttest_user_copymodule has already been converted to kunit (see fixes). Hence remove the entire suite.Fixes cf6219ee889f ("usercopy: Convert test_user_copy to KUnit test")Quoted 9 lines
Remove fixes tag - this isn't a fix and we don't want this propagating to stable releases without kunit test for this.
Quoted 2 lines
Signed-off-by Muhammad Usama Anjum <[email protected]>---
Thanks,
-- ShuahAs mentioned in other threads on this conversion to kunit and removal of kselfttest - NACK on this patch.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Please don't send me any more of these conversion and removal patches.
I think there is a misunderstanding about these particular patches (for string and usercopy selftests). Those were already converted, as desired, by the maintainer (me) to KUnit. These associated patches are cleaning up the dangling kselftest part of them, and should land (with the Fixes tag, which is aimed at the commit that did the conversion).
Yes, this is misunderstanding and these patches should be taken to remove dead tests in kselftests as their corresponding test modules have been moved already. So these patches are fixes.
Thank you both for the clarification
Applied linux-kselftest for Linux 6.12-rc1
thanks,
-- Shuah