Skip to contentSkip to conversation

kselftest fixes update for Linux 7.4-rc3

GIT PULL Merged Shuah Khan 2 participants 2 messages Nov 9 – Nov 10

Subsystems (3)
lore
Share & tools
lore

Shuah Khan

author maintainer
#0 lore raw

Hi Linus,

Please pull this kselftest fixes update for Linux 7.4-rc3

Fixes run_fat_tests hang, false bashism in kprobe_non_uniq_symbol.tc, and ftrace invalid test skip.

-- selftests/ftrace: Add missing spaces after ! in probe syntax tests -- tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc -- selftests/filesystems: Fix run_fat_tests hang

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4:

Linux 7.4-rc1 (2026-11-01 13:26:31 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-7.4-rc3

for you to fetch changes up to 36990c8fda77d918b1e52d5d6df3a144b552d86e:

selftests/ftrace: Add missing spaces after ! in probe syntax tests (2026-11-05 14:18:20 -0700)

----------------------------------------------------------------
linux_kselftest-fixes-7.4-rc3

Fixes run_fat_tests hang, false bashism in kprobe_non_uniq_symbol.tc, and ftrace invalid test skip.

-- selftests/ftrace: Add missing spaces after ! in probe syntax tests -- tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc -- selftests/filesystems: Fix run_fat_tests hang

----------------------------------------------------------------
Jaewon Jung (1):
selftests/ftrace: Add missing spaces after ! in probe syntax tests

Shuah Khan (1):
selftests/filesystems: Fix run_fat_tests hang

Steven Rostedt (1):
tracing/selftests: Fix false bashism in kprobe_non_uniq_symbol.tc

 tools/testing/selftests/filesystems/fat/run_fat_tests.sh   | 14 ++++++++++++++
 .../ftrace/test.d/dynevent/fprobe_syntax_errors.tc         |  4 ++--
 .../ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc         |  2 +-
 .../selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc |  2 +-
 4 files changed, 18 insertions(+), 4 deletions(-)

----------------------------------------------------------------

tools/testing/selftests/filesystems/fat/run_fat_tests.sh +14 -0
index d61264d4795d..0712c8d23fd7 100755
@@ -15,6 +15,8 @@ BASE_DIR="$(dirname $0)"
 TMP_DIR="$(mktemp -d /tmp/fat_tests_tmp.XXXXXX)"
 IMG_PATH="${TMP_DIR}/fat.img"
 MNT_PATH="${TMP_DIR}/mnt"
+# Kselftest framework requirement - SKIP code is 4.
+ksft_skip=4
 
 cleanup()
 {
@@ -23,6 +25,17 @@ cleanup()
 }
 trap cleanup SIGINT SIGTERM EXIT
 
+check_prereqs()
+{
+        local msg="skip all tests:"
+        local uid=$(id -u)
+
+        if [ $uid -ne 0 ]; then
+                echo $msg must be run as root >&2
+                exit $ksft_skip
+        fi
+}
+
 create_loopback()
 {
     touch "${IMG_PATH}"
@@ -73,6 +86,7 @@ unmount_image()
     sudo umount "${MNT_PATH}" &> /dev/null
 }
 
+check_prereqs
 create_loopback
 mount_image
 rename_exchange_test
tools/testing/selftests/ftrace/test.d/dynevent/fprobe_syntax_errors.tc +2 -2
index 384209968325..70751573e8de 100644
@@ -33,7 +33,7 @@ check_error 'f vfs_read ^$stack10000'	# BAD_STACK_NUM
 
 check_error 'f vfs_read ^$arg10000'	# BAD_ARG_NUM
 
-if !grep -q 'kernel return probes support:' README; then
+if ! grep -q 'kernel return probes support:' README; then
 check_error 'f vfs_read $retval ^$arg1' # BAD_VAR
 fi
 check_error 'f vfs_read ^$none_var'	# BAD_VAR
@@ -100,7 +100,7 @@ if grep -q "<argname>" README; then
 check_error 'f vfs_read args=^$arg*'		# BAD_VAR_ARGS
 check_error 'f vfs_read +0(^$arg*)'		# BAD_VAR_ARGS
 check_error 'f vfs_read $arg* ^$arg*'		# DOUBLE_ARGS
-if !grep -q 'kernel return probes support:' README; then
+if ! grep -q 'kernel return probes support:' README; then
 check_error 'f vfs_read%return ^$arg*'		# NOFENTRY_ARGS
 fi
 check_error 'f vfs_read ^hoge'			# NO_BTFARG
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc +1 -1
index 03eb9e70b438..f8e18ea8c268 100644
@@ -6,7 +6,7 @@
 SYMBOL='init_once'
 
 # We skip this test on kernel where SYMBOL is unique or does not exist.
-if [ "$(grep -c -E "[[:alnum:]]+ t ${SYMBOL}$" /proc/kallsyms)" -le '1' ]; then
+if [ "$(grep -c -E "[[:alnum:]]+ t ${SYMBOL}\$" /proc/kallsyms)" -le '1' ]; then
 	exit_unsupported
 fi
 
tools/testing/selftests/ftrace/test.d/kprobe/kprobe_syntax_errors.tc +1 -1
index b0e6b80ccb01..06efa67e01ff 100644
@@ -108,7 +108,7 @@ if grep -q "<argname>" README; then
 check_error 'p vfs_read args=^$arg*'		# BAD_VAR_ARGS
 check_error 'p vfs_read +0(^$arg*)'		# BAD_VAR_ARGS
 check_error 'p vfs_read $arg* ^$arg*'		# DOUBLE_ARGS
-if !grep -q 'kernel return probes support:' README; then
+if ! grep -q 'kernel return probes support:' README; then
 check_error 'r vfs_read ^$arg*'			# NOFENTRY_ARGS
 fi
 check_error 'p vfs_read+20 ^$arg*'		# NOFENTRY_ARGS
merge bot Merged
#1 lore raw
The pull request you sent on Mon, 9 Nov 2026 13:49:17 -0700:

The pull request you sent on Mon, 9 Nov 2026 13:49:17 -0700:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux_kselftest-fixes-7.4-rc3

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b3dfbde62cf1981c4638939c159dfd087b7a72e9

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html