linux/drivers/s390/net
Julian Ruess 915e34d5ad s390/ism: add release function for struct device
According to device_release() in /drivers/base/core.c,
a device without a release function is a broken device
and must be fixed.

The current code directly frees the device after calling device_add()
without waiting for other kernel parts to release their references.
Thus, a reference could still be held to a struct device,
e.g., by sysfs, leading to potential use-after-free
issues if a proper release function is not set.

Fixes: 8c81ba2034 ("net/smc: De-tangle ism and smc device initialization")
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: Julian Ruess <julianr@linux.ibm.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250214120137.563409-1-wintera@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-02-17 16:40:07 -08:00
..
Kconfig s390/ism: ism driver implies smc protocol 2023-11-17 00:31:00 +00:00
Makefile
ctcm_dbug.c s390/ctcm: Convert sprintf/snprintf to scnprintf 2023-06-23 11:55:55 +02:00
ctcm_dbug.h
ctcm_fsms.c s390/ctcm: use new address translation helpers 2024-03-13 09:23:48 +01:00
ctcm_fsms.h
ctcm_main.c net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
ctcm_main.h s390/ctcm: Convert sprintf/snprintf to scnprintf 2023-06-23 11:55:55 +02:00
ctcm_mpc.c s390/ctcm: use new address translation helpers 2024-03-13 09:23:48 +01:00
ctcm_mpc.h
ctcm_sysfs.c s390/ctcm: Convert sprintf/snprintf to scnprintf 2023-06-23 11:55:55 +02:00
fsm.c Normalise "name (ad@dr)" MODULE_AUTHORs to "name <ad@dr>" 2024-03-06 13:07:39 -08:00
fsm.h
ism.h net/smc: manage system EID in SMC stack instead of ISM driver 2023-12-26 20:24:33 +00:00
ism_drv.c s390/ism: add release function for struct device 2025-02-17 16:40:07 -08:00
lcs.c s390/lcs: add missing MODULE_DESCRIPTION() macro 2024-06-27 14:37:04 -07:00
lcs.h s390/lcs: Convert sprintf to scnprintf 2023-06-23 11:55:54 +02:00
netiucv.c s390/netiucv: Switch over to sysfs_emit() 2024-10-25 16:03:26 +02:00
qeth_core.h inet: introduce dst_rtable() helper 2024-04-30 18:32:38 -07:00
qeth_core_main.c s390/qeth: move netif_napi_add_tx() and napi_enable() from under BH 2025-02-13 08:39:57 -08:00
qeth_core_mpc.c
qeth_core_mpc.h
qeth_core_sys.c
qeth_ethtool.c net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07:00
qeth_l2.h
qeth_l2_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-02 10:12:51 +01:00
qeth_l2_sys.c
qeth_l3.h
qeth_l3_main.c s390/qeth: Fix potential loss of L3-IP@ in case of network issues 2024-02-08 12:10:09 +01:00
qeth_l3_sys.c s390/qeth: Fix vipa deletion 2023-07-05 10:47:45 +01:00
smsgiucv.c
smsgiucv.h
smsgiucv_app.c s390/smsgiucv_app: Make use of iucv_alloc_device() 2024-05-14 20:21:03 +02:00