]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: ublk: add test to verify that feat_map is complete
authorUday Shankar <ushankar@purestorage.com>
Thu, 18 Sep 2025 19:34:09 +0000 (13:34 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 19 Sep 2025 17:06:15 +0000 (11:06 -0600)
commita755da0dd0530e53aa026fd4d08b3097e1be6455
treea06e7cf732bb3af0b9e266aa6accd2fd28ea577a
parent742bcc1101bcaca92901fe3fe434e4b1a467b5e8
selftests: ublk: add test to verify that feat_map is complete

Add a test that verifies that the currently running kernel does not
report support for any features that are unrecognized by kublk. This
should catch cases where features are added without updating kublk's
feat_map accordingly, which has happened multiple times in the past (see
[1], [2]).

Note that this new test may fail if the test suite is older than the
kernel, and the newer kernel contains a newly introduced feature. I
believe this is not a use case we currently care about - we only care
about newer test suites passing on older kernels.

[1] https://lore.kernel.org/linux-block/20250606214011.2576398-1-csander@purestorage.com/t/#u
[2] https://lore.kernel.org/linux-block/2a370ab1-d85b-409d-b762-f9f3f6bdf705@nvidia.com/t/#m1c520a058448d594fd877f07804e69b28908533f

Signed-off-by: Uday Shankar <ushankar@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/testing/selftests/ublk/Makefile
tools/testing/selftests/ublk/test_generic_13.sh [new file with mode: 0755]