mirror-linux/tools/testing/selftests
Ming Lei e7e1cc18f1 selftests/ublk: fix garbage output in foreground mode
Initialize _evtfd to -1 in struct dev_ctx to prevent garbage output
when running kublk in foreground mode. Without this, _evtfd is
zero-initialized to 0 (stdin), and ublk_send_dev_event() writes
binary data to stdin which appears as garbage on the terminal.

Also fix debug message format string.

Fixes: 6aecda00b7 ("selftests: ublk: add kernel selftests for ublk")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2026-01-21 07:54:55 -07:00
..
acct
alsa selftests/alsa: remove 0/NULL global variable assignment 2025-08-22 08:20:45 +02:00
amd-pstate
arm64 Merge branches 'for-next/misc', 'for-next/kselftest', 'for-next/efi-preempt', 'for-next/assembler-macro', 'for-next/typos', 'for-next/sme-ptrace-disable', 'for-next/local-tlbi-page-reused', 'for-next/mpam', 'for-next/acpi' and 'for-next/documentation', remote-tracking branch 'arm64/for-next/perf' into for-next/core 2025-11-28 15:47:12 +00:00
bpf Networking changes for 6.19. 2025-12-03 17:24:33 -08:00
breakpoints selftests: breakpoints: use suspend_stats to reliably check suspend success 2025-07-10 14:21:30 -06:00
cachestat selftests: cachestat: Fix warning on declaration under label 2025-10-22 09:23:18 -06:00
capabilities
cgroup cgroup: Changes for v6.19 2025-12-03 13:04:07 -08:00
clone3
connector
core
coredump selftests/coredump: add second PIDFD_INFO_COREDUMP_SIGNAL test 2025-11-04 22:05:01 +01:00
cpu-hotplug
cpufreq
damon selftests/damon/access_memory_even: remove unused header file 2025-09-13 16:55:02 -07:00
devices
dma selftests/dma: fix invalid array access in printf 2025-11-19 15:00:14 -07:00
dmabuf-heaps
drivers Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-12-02 15:37:53 -08:00
dt
efivarfs
exec
fchmodat2
filelock
filesystems selftests/filesystems: remove CLONE_NEWPIDNS from setup_userns() helper 2025-11-03 17:41:18 +01:00
firmware
fpu
ftrace linux_kselftest-next-6.19-rc1 2025-12-03 15:08:18 -08:00
futex selftest/futex: Fix spelling mistake "boundarie" -> "boundary" 2025-09-20 18:23:13 +02:00
gpio
hid selftests/hid: add tests for missing release on the Dell Synaptics 2025-10-15 17:27:06 +02:00
ia64
intel_pstate
iommu iommufd: Make vfio_compat's unmap succeed if the range is already empty 2025-11-05 15:11:26 -04:00
ipc
ir
kcmp
kexec selftests/kexec: Ignore selftest binary 2025-09-25 13:43:28 -06:00
kho selftest/kho: update generation of initrd 2025-09-13 16:54:55 -07:00
kmod
kselftest selftests/run_kselftest.sh: exit with error if tests fail 2025-11-19 15:00:22 -07:00
kselftest_harness selftests/kselftest_harness: Add harness-selftest.expected to TEST_FILES 2025-09-16 18:05:03 -06:00
kvm arm64 updates for 6.19: 2025-12-02 17:03:55 -08:00
landlock selftests: centralise maybe-unused definition in kselftest.h 2025-09-13 16:55:16 -07:00
lib
livepatch selftests: livepatch: use canonical ftrace path 2025-10-15 14:50:46 +02:00
lkdtm stackleak: Rename STACKLEAK to KSTACK_ERASE 2025-07-21 21:35:01 -07:00
locking
lsm
media_tests
membarrier
memfd
memory-hotplug
mincore
mm selftests/mm: fix division-by-zero in uffd-unit-tests 2025-11-24 14:25:17 -08:00
module
mount
mount_setattr selftests/mount_setattr: add smoke tests for open_tree_attr(2) bug 2025-08-11 14:51:49 +02:00
move_mount_set_group
mqueue
mseal_system_mappings
namespaces selftests/namespaces: fix nsid tests 2025-11-11 10:01:32 +01:00
nci
net selftests: net: add a hint about MACAddressPolicy=persistent 2025-12-01 12:02:13 -08:00
nolibc nolibc changes for v6.19 2025-12-03 09:23:25 -08:00
ntb
openat2
pci_endpoint selftests: pci_endpoint: Skip IRQ test if IRQ is out of range. 2025-08-27 18:41:00 +05:30
pcie_bwctrl
perf_events selftests: centralise maybe-unused definition in kselftest.h 2025-09-13 16:55:16 -07:00
pid_namespace
pidfd selftests/pidfd: add second supported_mask test 2025-11-04 22:04:38 +01:00
power_supply
powerpc powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-09-01 13:23:29 +05:30
prctl
proc Patch series in this pull request: 2025-10-02 18:44:54 -07:00
pstore
ptp
ptrace Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
rcutorture Merge branch 'rcu/misc' into next 2025-11-30 22:20:33 +01:00
resctrl
ring-buffer
riscv selftests: riscv: Add README for RISC-V KSelfTest 2025-09-18 19:26:07 -06:00
rlimits
rseq tools: Remove s390 compat support 2025-11-17 11:10:38 +01:00
rtc
rust
safesetid
sched
sched_ext sched_ext: Add a selftest for scx_bpf_dsq_peek 2025-10-15 06:46:36 -10:00
seccomp Performance events updates for v6.18: 2025-09-30 11:11:21 -07:00
sgx
signal
size
sparc64
splice
static_keys
sync
syscall_user_dispatch
sysctl sysctl: Nixify sysctl.sh 2025-07-23 11:56:02 +02:00
tc-testing selftests/tc-testing: Test CAKE scheduler when enqueue drops packets 2025-12-02 13:28:00 +01:00
tdx
thermal/intel thermal: intel: selftests: workload_hint: Mask unsupported types 2025-09-04 22:17:47 +02:00
timens
timers selftests/timers/nanosleep: Add tests for return of remaining time 2025-11-14 20:34:50 +01:00
tmpfs
tpm2
tty
turbostat
ublk selftests/ublk: fix garbage output in foreground mode 2026-01-21 07:54:55 -07:00
uevent
user_events selftests/user_events: fix type cast for write_index packed member in perf_test 2025-11-15 10:52:02 -08:00
vDSO tools: Remove s390 compat support 2025-11-17 11:10:38 +01:00
vfio vfio: selftests: replace iova=vaddr with allocated iovas 2025-11-12 08:04:42 -07:00
vsock selftests/vsock: disable shellcheck SC2317 and SC2119 2025-11-12 06:19:40 -08:00
watchdog selftests: watchdog: skip ping loop if WDIOF_KEEPALIVEPING not supported 2025-09-16 16:55:04 -06:00
wireguard wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config 2025-09-21 14:22:01 -07:00
x86 selftests/x86: Update the negative vsyscall tests to expect a #GP 2025-11-18 10:38:26 -08:00
zram mm: remove unused zpool layer 2025-09-21 14:21:59 -07:00
.gitignore
Makefile VFIO updates for v6.18-rc1 2025-10-04 08:24:54 -07:00
gen_kselftest_tar.sh
kselftest.h Summary of significant series in this pull request: 2025-10-02 18:18:33 -07:00
kselftest_deps.sh
kselftest_harness.h A set of updates for futexes and related selftests: 2025-09-30 16:07:10 -07:00
kselftest_install.sh
kselftest_module.h
lib.mk selftests: always install UAPI headers to the correct directory 2025-09-18 12:05:27 -06:00
run_kselftest.sh selftests/run_kselftest.sh: exit with error if tests fail 2025-11-19 15:00:22 -07:00