Skip to content

libmultipath: check udev* func return value

lixiaokeng dm-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libmultipath: check uedv* return value in sysfs_get_host_pci_namelibmultipath/discovery.c+3 -01 reply
2/6libmultipath: check udev* return value in ccw_sysfs_pathinfolibmultipath/discovery.c+2 -01 reply
3/6libmultipath: check udev* return value in sysfs_get_tgt_nodenamelibmultipath/discovery.c+2 -20 replies
4/6libmultipath: check udev* return value in trigger_partitions_udev_changelibmultipath/configure.c+3 -10 replies
5/6libmultipath: check udev* renturn value in get_ctrl_blkdevlibmultipath/foreign/nvme.c+4 -11 reply
6/6libmultipath: check udev* return value in _find_path_by_syspathlibmultipath/foreign/nvme.c+3 -21 reply

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBenjamin Marzinski
SeriesR-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] libmultipath: check udev* func return value

Hi,
The udev* function may return NULL,and it will be
dereferenced in str* and sscanf func. For example, there is a coredump caused in add func, which show in be7a043(commit id) in upstream-queue. We check the return value to avoid dereference NULL.

repo: openSUSE/multipath-tools
repo link: https://github.com/openSUSE/multipath-tools
branch: upstream-queue

lixiaokeng (6):
libmultipath: check uedv* return value in sysfs_get_host_pci_name
libmultipath: check udev* return value in ccw_sysfs_pathinfo
libmultipath: check udev* return value in sysfs_get_tgt_nodename
libmultipath: check udev* return value in
trigger_partitions_udev_change
libmultipath: check udev* renturn value in get_ctrl_blkdev
libmultipath: check udev* return value in _find_path_by_syspath

 libmultipath/configure.c    |  4 +++-
 libmultipath/discovery.c    |  9 +++++++--
 libmultipath/foreign/nvme.c | 10 +++++++---
 3 files changed, 17 insertions(+), 6 deletions(-)