linux/drivers/s390/cio
Vineeth Vijayan 5b76268dac s390/cio: Fix NULL pointer dereference in ccw_device_get_util_str()
The channel path registry entry associated with a CHPID may be removed
while the subchannel's PMCW still references that CHPID. In this case,
chpid_to_chp() can return NULL, leading to a NULL pointer dereference.

Add the missing NULL check before dereferencing the returned pointer.

Fixes: 199652309a ("s390/cio: add helper to query utility strings per given ccw device")
Cc: stable@vger.kernel.org
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
History 2026-09-23 16:43:32 +02:00
..
airq.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
blacklist.c kernel.h: drop hex.h and update all hex.h users 2026-01-20 19:44:19 -08:00
blacklist.h s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
ccwgroup.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ccwreq.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
chp.c s390/cio: Guard PMCW field accesses with dnv check 2026-09-17 06:59:41 +02:00
chp.h s390/cio: Externalize full CMG characteristics 2024-11-13 14:31:31 +01:00
chsc.c s390/cio: Restore GFP_DMA for CHSC allocation 2026-05-11 16:27:25 +02:00
chsc.h s390/cio: Externalize full CMG characteristics 2024-11-13 14:31:31 +01:00
chsc_sch.c s390/cio: Restore GFP_DMA for CHSC allocation 2026-05-11 16:27:25 +02:00
chsc_sch.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cio.c s390/cio: Fix cio_update_schib() to not cache invalid schib 2026-09-17 06:59:41 +02:00
cio.h s390/cmf: Fix virtual vs physical address confusion 2026-09-22 12:21:04 +02:00
cio_debug.h s390/cio: introduce CIO debugfs directory 2021-03-22 11:36:04 +01:00
cio_debugfs.c s390/cio: introduce CIO debugfs directory 2021-03-22 11:36:04 +01:00
cio_inject.c s390: Remove KMSG_COMPONENT macro 2025-11-24 11:45:21 +01:00
cio_inject.h s390/cio: add CRW inject functionality 2021-03-22 11:36:04 +01:00
cmf.c s390/cmf: Fix virtual vs physical address confusion 2026-09-22 12:21:04 +02:00
crw.c s390/cio: Remove outdated email address 2025-02-18 18:53:47 +01:00
css.c s390/cio: Remove cond_resched() calls 2026-08-05 15:16:54 +02:00
css.h driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
device.c s390/cio: Guard PMCW field accesses with dnv check 2026-09-17 06:59:41 +02:00
device.h s390/cio: remove pm support from ccw bus driver 2020-12-02 18:19:25 +01:00
device_fsm.c s390/cio: Guard PMCW field accesses with dnv check 2026-09-17 06:59:41 +02:00
device_id.c s390: Convert MACHINE_IS_[LPAR|VM|KVM], etc, machine_is_[lpar|vm|kvm]() 2025-03-04 17:18:07 +01:00
device_ops.c s390/cio: Fix NULL pointer dereference in ccw_device_get_util_str() 2026-09-23 16:43:32 +02:00
device_pgid.c s390/cio: use new address translation helpers 2024-03-13 09:23:47 +01:00
device_status.c s390/cio: Use scnprintf() instead of sprintf() 2025-10-21 10:17:30 +02:00
eadm_sch.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
eadm_sch.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fcx.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
idset.c bitmap: introduce generic optimized bitmap_size() 2024-04-01 10:49:28 +01:00
idset.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
io_sch.h s390/cio: remove pm support from ccw bus driver 2020-12-02 18:19:25 +01:00
ioasm.c s390/cio/ioasm: Fix __xsch() condition code handling 2025-09-29 13:52:08 +02:00
ioasm.h s390: assume diag308 set always works 2018-04-10 07:38:59 +02:00
isc.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
itcw.c s390/drivers: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
Makefile s390/cio: Enable CONTEXT_ANALYSIS 2026-08-11 16:42:18 +02:00
orb.h s390/cio: use bitwise types to allow for type checking 2024-03-13 09:23:46 +01:00
qdio.h s390/qdio: Move memory alloc/pointer arithmetic for slib and sl into one place 2025-01-03 11:00:53 +01:00
qdio_debug.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qdio_debug.h s390/qdio: cleanly split alloc and establish 2020-04-06 13:13:50 +02:00
qdio_main.c s390/irq/idle: Use stcke instead of stckf for time stamps 2026-06-15 16:33:40 +02:00
qdio_setup.c s390/qdio: Move memory alloc/pointer arithmetic for slib and sl into one place 2025-01-03 11:00:53 +01:00
qdio_thinint.c s390/irq/idle: Use stcke instead of stckf for time stamps 2026-06-15 16:33:40 +02:00
scm.c s390/cio: Restore GFP_DMA for CHSC allocation 2026-05-11 16:27:25 +02:00
trace.c s390/cio: Remove tracing for rchp instruction 2019-05-08 15:01:22 +02:00
trace.h s390/drivers: Replace S390_lowcore by get_lowcore() 2024-06-18 17:01:33 +02:00
vfio_ccw_async.c s390/vfio_ccw: Ensure index for read/write regions are within range 2026-07-30 19:50:24 +02:00
vfio_ccw_chp.c s390/vfio_ccw: Implement a crw lock 2026-07-30 19:50:48 +02:00
vfio_ccw_cp.c s390/vfio_ccw: Selectively expand io_mutex 2026-07-30 19:50:43 +02:00
vfio_ccw_cp.h s390/vfio_ccw: Ensure first IDAW remains constant 2026-07-30 19:50:15 +02:00
vfio_ccw_drv.c s390 updates for 7.3 merge window 2026-08-23 10:26:44 -07:00
vfio_ccw_fsm.c s390/cio: Guard PMCW field accesses with dnv check 2026-09-17 06:59:41 +02:00
vfio_ccw_ops.c s390/vfio_ccw: Implement a crw lock 2026-07-30 19:50:48 +02:00
vfio_ccw_private.h s390 updates for 7.3 merge window 2026-08-23 10:26:44 -07:00
vfio_ccw_trace.c vfio-ccw: Add trace for CRW event 2020-06-03 11:28:19 +02:00
vfio_ccw_trace.h vfio-ccw: Add trace for CRW event 2020-06-03 11:28:19 +02:00