mirror-linux/drivers
Oliver Neukum 17ee873dba HID: hid-sjoy: race between init and usage
The driver uses an initial IO to set the device to a default
state. That initialization is currently being done after the device
node has been created. That means that the single buffer used
for output can be altered while IO is in progress.
Move the intialization before announcement to user space.

Fixes: fac733f029 ("HID: force feedback support for SmartJoy PLUS PS2/USB adapter")
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
2026-05-12 17:23:08 +02:00
..
accel drm for v7.1-rc1 2026-04-15 08:45:00 -07:00
accessibility
acpi arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
amba
android mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
ata ata changes for 7.1-rc1 2026-04-15 15:03:01 -07:00
atm
auxdisplay auxdisplay: line-display: fix NULL dereference in linedisp_release 2026-03-27 09:54:31 +01:00
base regmap: Updates for v7.1 2026-04-15 14:27:51 -07:00
bcma
block mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
bluetooth Bluetooth: hci_qca: Fix missing wakeup during SSR memdump handling 2026-04-13 09:19:42 -04:00
bus soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
cache
cdrom
cdx
char mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
clk Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
clocksource clocksource: Rewrite watchdog code completely 2026-03-20 13:36:32 +01:00
comedi mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
connector
counter counter: rz-mtu3-cnt: do not use struct rz_mtu3_channel's dev member 2026-03-22 15:59:22 +09:00
cpufreq tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
cpuidle powerpc updates for 7.1 2026-04-14 17:10:15 -07:00
crypto This update includes the following changes: 2026-04-15 15:22:26 -07:00
cxl cxl: Adjust the startup priority of cxl_pmem to be higher than that of cxl_acpi 2026-03-19 15:12:40 -07:00
dax mm: rename VMA flag helpers to be more readable 2026-04-05 13:53:18 -07:00
dca
devfreq PM / devfreq: tegra30-devfreq: add support for Tegra114 2026-04-04 03:15:39 +09:00
dibs
dio
dma dmaengine updates for v7.1 2026-04-17 10:29:01 -07:00
dma-buf dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
dpll dpll: zl3073x: add ref-sync pair support 2026-04-12 08:27:34 -07:00
edac - Add new AMD MCA bank names and types to the MCA code, preceded by a clean 2026-04-14 15:32:39 -07:00
eisa
extcon
firewire
firmware soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
fpga
fsi
fwctl fwctl: Fix class init ordering to avoid NULL pointer dereference on device removal 2026-04-10 11:21:06 -03:00
gnss
gpib gpib: fix use-after-free in IO ioctl handlers 2026-04-02 14:30:40 +02:00
gpio soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
gpu mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
greybus
hid HID: hid-sjoy: race between init and usage 2026-05-12 17:23:08 +02:00
hsi
hte
hv mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
hwmon hwmon updates for 7.1 2026-04-15 14:37:32 -07:00
hwspinlock
hwtracing mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
i2c tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
i3c
idle
iio hwmon updates for 7.1 2026-04-15 14:37:32 -07:00
infiniband fwctl 7.1 merge window pull request 2026-04-16 21:15:56 -07:00
input Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
interconnect
iommu dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
ipack
irqchip Arm: 2026-04-17 07:18:03 -07:00
isdn
leds
macintosh
mailbox
mcb
md Device Mapper patches for 7.1 2026-04-15 15:11:05 -07:00
media [GIT PULL for v7.1] media updates 2026-04-15 08:32:10 -07:00
memory dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
memstick
message
mfd soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
misc pci-v7.1-changes 2026-04-15 14:41:21 -07:00
mmc mmc: sdhci-msm: Fix the wrapped key handling 2026-04-10 10:29:58 +02:00
most
mtd Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
mux
net fwctl 7.1 merge window pull request 2026-04-16 21:15:56 -07:00
nfc gpio updates for v7.1-rc1 2026-04-13 20:10:58 -07:00
ntb pci-v7.1-changes 2026-04-15 14:41:21 -07:00
nubus
nvdimm vfs-7.1-rc1.integrity 2026-04-13 10:40:26 -07:00
nvme for-7.1/io_uring-20260411 2026-04-13 16:22:30 -07:00
nvmem nvmem: zynqmp_nvmem: Fix buffer size in DMA and memcpy 2026-04-02 16:44:40 +02:00
of dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
opp
parisc
parport
pci pci-v7.1-changes 2026-04-15 14:41:21 -07:00
pcmcia resource: Pass full extent of empty space to resource_alignf callback 2026-03-27 10:18:39 -05:00
peci
perf arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
phy phy-for-7.1 2026-04-17 10:22:08 -07:00
pinctrl Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
platform chrome-platform: Updates for v7.1 2026-04-15 14:10:40 -07:00
pmdomain pmdomain: qcom: rpmhpd: Add power domains for Hawi SoC 2026-04-08 12:01:37 +02:00
pnp
power m68k updates for v7.1 2026-04-16 08:11:01 -07:00
powercap powercap: intel_rapl: Consolidate PL4 and PMU support flags into rapl_defaults 2026-04-01 16:03:05 +02:00
pps
ps3
ptp
pwm pwm: Changes for v7.1-rc1 2026-04-15 14:13:31 -07:00
rapidio
ras
regulator regulator: Updates for v7.1 2026-04-15 14:32:12 -07:00
remoteproc
resctrl arm64 updates for 7.1: 2026-04-14 16:48:56 -07:00
reset Support for Mobileye EyeQ6Lplus 2026-04-17 08:53:23 -07:00
rpmsg
rtc rtc: cmos: Do not require IRQ if ACPI alarm is used 2026-04-04 19:14:58 +02:00
s390 Driver core changes for 7.1-rc1 2026-04-13 19:03:11 -07:00
sbus
scsi Networking changes for 7.1. 2026-04-14 18:36:10 -07:00
sh
siox
slimbus
soc soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
soundwire soundwire updates for 7.1 2026-04-17 10:16:53 -07:00
spi tracing updates for v7.1: 2026-04-17 09:43:12 -07:00
spmi
ssb
staging mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
target mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
tc
tee soc: drivers for 7.1 2026-04-16 20:34:34 -07:00
thermal bitmap updates for v7.1 2026-04-14 08:55:18 -07:00
thunderbolt
tty xen: branch for v7.1-rc1 2026-04-15 15:16:39 -07:00
ufs
uio uio: replace deprecated mmap hook with mmap_prepare in uio_info 2026-04-05 13:53:44 -07:00
usb usb: typec: ucsi: skip connector validation before init 2026-04-07 13:35:44 +02:00
vdpa vdpa: use generic driver_override infrastructure 2026-04-04 00:47:50 +02:00
vfio VFIO updates for v7.1-rc1 2026-04-16 08:01:16 -07:00
vhost
video drm for v7.1-rc1 2026-04-15 08:45:00 -07:00
virt Arm: 2026-04-17 07:18:03 -07:00
virtio mm.git review status for linus..mm-stable 2026-04-15 12:59:16 -07:00
w1
watchdog watchdog: ni903x_wdt: Convert to a platform driver 2026-04-07 21:06:59 +02:00
xen dma-mapping updates for Linux 7.0: 2026-04-17 11:12:42 -07:00
zorro
Kconfig
Makefile