linux/drivers
Tony Krowiak 7abe149489 s390/vfio-ap: do not reset queue removed from host config
commit b9bd10c434 upstream.

When a queue is unbound from the vfio_ap device driver, it is reset to
ensure its crypto data is not leaked when it is bound to another device
driver. If the queue is unbound due to the fact that the adapter or domain
was removed from the host's AP configuration, then attempting to reset it
will fail with response code 01 (APID not valid) getting returned from the
reset command. Let's ensure that the queue is assigned to the host's
configuration before resetting it.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: "Jason J. Herne" <jjherne@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Fixes: eeb386aeb5 ("s390/vfio-ap: handle config changed and scan complete notification")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240115185441.31526-7-akrowiak@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-01-31 16:20:56 -08:00
..
accel accel/habanalabs: fix information leak in sec_attest_info() 2024-01-25 15:45:06 -08:00
accessibility accessibility: speakup: refactor deprecated strncpy 2023-10-05 13:34:05 +02:00
acpi acpi: property: Let args be NULL in __acpi_node_get_property_reference 2024-01-25 15:45:21 -08:00
amba amba: bus: balance firmware node reference counting 2023-10-17 13:37:35 -05:00
android binder: fix race between mmput() and do_exit() 2024-01-25 15:45:09 -08:00
ata SCSI fixes on 20231130 2023-12-02 06:27:20 +09:00
atm atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2023-12-09 21:17:45 +00:00
auxdisplay auxdisplay: panel: Replace deprecated strncpy() with strtomem_pad() 2023-09-29 14:48:31 -07:00
base PM: sleep: Fix possible deadlocks in core system-wide PM code 2024-01-31 16:20:53 -08:00
bcma bcma: Add explicit of_device.h include 2023-04-14 15:32:56 +03:00
block loop: fix the the direct I/O support check when used on top of block devices 2024-01-25 15:45:30 -08:00
bluetooth Bluetooth: btmtkuart: fix recv_buf() return value 2024-01-25 15:44:56 -08:00
bus bus: mhi: ep: Pass mhi_ep_buf_info struct to read/write APIs 2024-01-25 15:45:22 -08:00
cache riscv: RISCV_NONSTANDARD_CACHE_OPS shouldn't depend on RISCV_DMA_NONCOHERENT 2023-10-26 09:42:37 +02:00
cdrom cdrom: Remove now superfluous sentinel element from ctl_table array 2023-10-02 20:04:58 -06:00
cdx cdx: Unlock on error path in rescan_store() 2024-01-25 15:45:25 -08:00
char hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-01-31 16:20:54 -08:00
clk clk: qcom: dispcc-sm8550: Use the correct PLL configuration function 2024-01-25 15:45:07 -08:00
clocksource clocksource/drivers/ep93xx: Fix error handling during probe 2024-01-25 15:45:10 -08:00
comedi comedi: add HAS_IOPORT dependencies again 2023-10-05 13:34:05 +02:00
connector connector: Fix proc_event_num_listeners count not cleared 2024-01-02 14:13:48 +00:00
counter First set of Counter fixes for 6.6 2023-10-02 13:13:15 +02:00
cpufreq cpufreq: scmi: process the result of devm_of_clk_add_hw_provider() 2024-01-25 15:44:39 -08:00
cpuidle cpuidle: haltpoll: Do not enable interrupts when entering idle 2024-01-25 15:44:40 -08:00
crypto crypto: sahara - do not resize req->src when doing hash operations 2024-01-25 15:44:43 -08:00
cxl cxl/port: Fix missing target list lock 2024-01-25 15:45:25 -08:00
dax Many singleton patches against the MM code. The patch series which are 2023-11-02 19:38:47 -10:00
dca Mainly singleton patches all over the place. Series of note are: 2023-04-27 19:57:00 -07:00
devfreq PM / devfreq: Fix buffer overflow in trans_stat_show 2024-01-31 16:20:54 -08:00
dio drivers: dio: fix possible memory leak in dio_init() 2022-11-09 15:12:37 +01:00
dma dmaengine: fsl-edma: fix DMA channel leak in eDMAv4 2023-12-11 20:14:29 +05:30
dma-buf dma-buf: fix check in dma_resv_add_fence 2023-11-27 20:00:47 +01:00
dpll dpll: sanitize possible null pointer dereference in dpll_pin_parent_pin_set() 2023-12-12 16:20:54 -08:00
edac EDAC/thunderx: Fix possible out-of-bounds string access 2024-01-25 15:44:37 -08:00
eisa EISA: Replace all non-returning strlcpy with strscpy 2023-07-27 10:04:42 -07:00
extcon extcon: realtek: add the error handler for nvmem_cell_read 2023-10-17 17:38:57 +09:00
firewire firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 2024-01-05 21:28:08 +09:00
firmware firmware: qcom: qseecom: fix memory leaks in error paths 2024-01-25 15:44:53 -08:00
fpga Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
fsi fsi: i2cr: Switch to use struct i2c_driver's .probe() 2023-08-22 15:51:33 +02:00
gnss driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
gpio gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe 2024-01-25 15:45:28 -08:00
gpu drm/amdgpu: fall back to INPUT power for AVG power via INFO IOCTL 2024-01-25 15:45:28 -08:00
greybus greybus: gb-beagleplay: Remove use of pad bytes 2024-01-25 15:45:23 -08:00
hid HID: wacom: Correct behavior when processing some confidence == false touches 2024-01-25 15:45:17 -08:00
hsi hsi: omap_ssi: Explicitly include correct DT includes 2023-07-31 23:17:57 +02:00
hte hte: Changes for v6.7-rc1 2023-10-31 18:32:51 -10:00
hv TTY/Serial changes for 6.7-rc1 2023-11-03 15:44:25 -10:00
hwmon hwmon: (corsair-psu) Fix probe when built-in 2023-12-08 10:36:02 -08:00
hwspinlock hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation 2023-07-17 11:49:18 -07:00
hwtracing coresight: etm4x: Fix width of CCITMIN field 2024-01-20 11:53:02 +01:00
i2c i2c: s3c24xx: fix transferring more than one message in polling mode 2024-01-25 15:45:31 -08:00
i3c I3C for 6.7 2023-11-04 16:25:36 -10:00
idle x86: Fix CPUIDLE_FLAG_IRQ_ENABLE leaking timer reprogram 2024-01-25 15:44:37 -08:00
iio iio: adc: ad7091r: Allow users to configure device events 2024-01-31 16:20:53 -08:00
infiniband IB/iser: Prevent invalidating wrong MR 2024-01-25 15:45:08 -08:00
input Input: atkbd - use ab83 as id when skipping the getid command 2024-01-25 15:45:09 -08:00
interconnect interconnect: qcom: icc-rpm: Fix peak rate calculation 2023-12-06 17:00:42 +02:00
iommu iommu: Don't reserve 0-length IOVA region 2024-01-25 15:45:23 -08:00
ipack tty: make tty_operations::write()'s count size_t 2023-08-11 21:12:46 +02:00
irqchip - Flush the translation service tables to prevent unpredictable behavior 2023-11-19 13:49:32 -08:00
isdn hardening updates for v6.7-rc1 2023-10-30 19:09:55 -10:00
leds leds: aw200xx: Fix write to DIM parameter 2024-01-25 15:45:18 -08:00
macintosh powerpc updates for 6.7 2023-11-03 10:07:39 -10:00
mailbox Moving repo 2023-11-05 18:45:32 -08:00
mcb mcb: fix error handling for different scenarios when parsing 2023-10-21 23:04:02 +02:00
md Revert "Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"" 2024-01-25 15:45:31 -08:00
media media: ov01a10: Enable runtime PM before registering async sub-device 2024-01-31 16:20:55 -08:00
memory IOMMU Updates for Linux v6.7 2023-11-09 13:37:28 -08:00
memstick memstick: jmb38x_ms: Annotate struct jmb38x_ms with __counted_by 2023-09-27 12:13:18 +02:00
message scsi: message: fusion: Initialize return value in mptfc_bus_reset() 2023-10-24 22:36:39 -04:00
mfd mfd: intel-lpss: Fix the fractional clock divider flags 2024-01-25 15:45:18 -08:00
misc misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write 2023-11-27 13:38:29 +00:00
mmc mmc: sdhci_omap: Fix TI SoC dependencies 2024-01-25 15:45:07 -08:00
most staging: most: Replace all non-returning strlcpy with strscpy 2023-06-01 07:07:37 -07:00
mtd mtd: rawnand: Clarify conditions to enable continuous reads 2024-01-31 16:20:55 -08:00
mux mux: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
net mlxsw: spectrum_router: Register netdevice notifier before nexthop 2024-01-25 15:45:31 -08:00
nfc nfc: virtual_ncidev: Add variable to check if ndev is running 2023-11-22 10:55:48 +00:00
ntb ntb: Check tx descriptors outstanding instead of head/tail for tx queue 2023-08-22 12:38:19 -04:00
nubus nubus: Don't list slot resources by default 2023-05-22 13:51:56 +02:00
nvdimm libnvdimm: remove kernel-doc warnings: 2023-10-18 09:48:05 -07:00
nvme nvmet-tcp: Fix the H2C expected PDU len calculation 2024-01-25 15:45:25 -08:00
nvmem nvmem: brcm_nvram: store a copy of NVRAM content 2023-12-15 13:15:02 +01:00
of of: unittest: Fix of_count_phandle_with_args() expected value message 2024-01-25 15:45:09 -08:00
opp OPP: Pass rounded rate to _set_opp() 2024-01-31 16:20:54 -08:00
parisc parisc/power: Fix power soft-off when running on qemu 2023-11-18 18:59:30 +01:00
parport parport: parport_serial: Add Brainboxes device IDs and geometry 2024-01-20 11:53:02 +01:00
pci PCI: mediatek-gen3: Fix translation window size calculation 2024-01-25 15:45:26 -08:00
pcmcia PCMCIA odd cleanups and fixes for v6.7-rc1 2023-11-07 16:40:42 -08:00
peci Update peci-next for v6.6-rc1 2023-08-08 10:53:30 +02:00
perf drivers/perf: hisi: Fix some event id for HiSilicon UC pmu 2024-01-25 15:44:38 -08:00
phy phy fixes for 6.7 2023-12-17 09:19:27 -08:00
pinctrl pinctrl: at91-pio4: use dedicated lock class for IRQ 2023-12-21 09:05:02 +01:00
platform platform/x86/intel/vsec: Fix xa_alloc memory leak 2024-01-25 15:44:39 -08:00
pmdomain Power management fixes for 6.7-rc4 2023-12-02 09:01:00 +09:00
pnp PNP: replace deprecated strncpy() with memcpy() 2023-10-20 19:50:40 +02:00
power power: supply: Fix null pointer dereference in smb2_probe 2024-01-25 15:45:23 -08:00
powercap powercap: DTPM: Fix missing cpufreq_cpu_put() calls 2023-12-05 20:51:24 +01:00
pps driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00
ps3 driver/ps3: Include <video/cmdline.h> for mode parsing 2023-02-20 14:56:51 +01:00
ptp ptp: ocp: fix bug in unregistering the DPLL subsystem 2023-12-29 08:37:23 +00:00
pwm pwm: Fix out-of-bounds access in of_pwm_single_xlate() 2024-01-25 15:45:14 -08:00
rapidio rapidio: make all 'class' structures const 2023-10-05 13:51:35 +02:00
ras ras/debugfs: Fix error checking for debugfs_create_dir() 2023-05-16 21:12:23 +02:00
regulator regulator: Merge up pending fix 2023-10-30 13:14:27 +00:00
remoteproc remoteproc: st: Fix sometimes uninitialized ret in st_rproc_probe() 2023-10-16 11:24:34 -06:00
reset reset: Fix crash when freeing non-existent optional resets 2023-11-30 15:02:21 +01:00
rpmsg rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-01-31 16:20:55 -08:00
rtc RTC for 6.7 2023-11-05 18:49:40 -08:00
s390 s390/vfio-ap: do not reset queue removed from host config 2024-01-31 16:20:56 -08:00
sbus sbus: Explicitly include correct DT includes 2023-08-28 13:36:24 -05:00
scsi scsi: mpi3mr: Block PEL Enable Command on Controller Reset and Unrecoverable State 2024-01-25 15:45:14 -08:00
sh sh: Remove superhyway bus support 2023-10-25 16:50:11 +02:00
siox siox: fix possible memory leak in siox_device_add() 2022-11-09 15:40:14 +01:00
slimbus driver core: make struct bus_type.uevent() take a const * 2023-01-27 13:45:52 +01:00
soc soc: fsl: cpm1: qmc: Fix rx channel reset 2024-01-31 16:20:55 -08:00
soundwire soundwire: fix initializing sysfs for same devices on different buses 2024-01-31 16:20:53 -08:00
spi spi: coldfire-qspi: Remove an erroneous clk_disable_unprepare() from the remove function 2024-01-25 15:45:25 -08:00
spmi spmi: mtk-pmif: Serialize PMIF status check and command submission 2024-01-25 15:45:23 -08:00
ssb ssb: relax SSB_EMBEDDED dependencies 2023-10-19 10:26:26 +03:00
staging staging: vc04_services: Do not pass NULL to vchiq_log_error() 2024-01-25 15:45:20 -08:00
target scsi: target: core: add missing file_{start,end}_write() 2024-01-25 15:45:13 -08:00
tc The main MIPS changes for 5.6: 2020-01-31 11:28:31 -08:00
tee OP-TEE fix for supplicant based device enumeration 2023-12-06 16:15:26 +01:00
thermal drivers/thermal/loongson2_thermal: Fix incorrect PTR_ERR() judgment 2024-01-25 15:44:40 -08:00
thunderbolt thunderbolt: Fix minimum allocated USB 3.x and PCIe bandwidth 2023-12-08 09:03:49 +02:00
tty serial: apbuart: fix console prompt on qemu 2024-01-25 15:45:24 -08:00
ufs scsi: ufs: core: Simplify power management during async scan 2024-01-25 15:45:13 -08:00
uio uio: Fix use-after-free in uio_open 2024-01-20 11:53:01 +01:00
usb usb: xhci-mtk: fix a short packet issue of gen1 isoc-in transfer 2024-01-25 15:45:24 -08:00
vdpa vdpa: Fix an error handling path in eni_vdpa_probe() 2024-01-25 15:45:23 -08:00
vfio hisi_acc_vfio_pci: Update migration data pointer correctly on saving/resume 2024-01-25 15:45:25 -08:00
vhost virtio/vsock: send credit update during setting SO_RCVLOWAT 2024-01-25 15:44:52 -08:00
video fbdev: flush deferred IO before closing 2024-01-25 15:45:13 -08:00
virt configfs-tsm for v6.7 2023-11-04 15:58:13 -10:00
virtio virtio_ring: fix syncs DMA memory with different direction 2023-12-04 08:36:25 -05:00
w1 nvmem: add explicit config option to read old syntax fixed OF cells 2023-10-21 19:19:06 +02:00
watchdog watchdog: rti_wdt: Drop runtime pm reference count when watchdog is unused 2024-01-25 15:45:05 -08:00
xen xen/events: fix error code in xen_bind_pirq_msi_to_irq() 2023-11-28 12:48:27 +01:00
zorro zorro: Include zorro.h in names.c 2023-08-21 13:27:44 +02:00
Kconfig - removed AR7 platform support 2023-11-10 09:19:46 -08:00
Makefile - removed AR7 platform support 2023-11-10 09:19:46 -08:00