Skip to content

virtiofsd: fix some accessing NULL pointer problem

Haotian Li qemu-devel virtio-fs 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 1 replySuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools/virtiofsd/buffer.c: check whether buf is NULL in fuse_bufvec_advance functools/virtiofsd/buffer.c+4 -01 reply
2/3virtiofsd: check whether lo_map_reserve returns NULL in, main functools/virtiofsd/passthrough_ll.c+11 -11 reply
3/3virtiofsd: check whether strdup lo.source return NULL in main functools/virtiofsd/passthrough_ll.c+4 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDr. David Alan Gilbert
1/3R-b
2/3R-b
3/3R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] virtiofsd: fix some accessing NULL pointer problem

Hi,
We find some potential NULL pointer bugs on tools/virtiofsd.
Three patches are made to fix them

Haotian Li (3):
tools/virtiofsd/buffer.c: check whether buf is NULL in
fuse_bufvec_advance func
virtiofsd: check whether lo_map_reserve returns NULL in main func
virtiofsd: check whether strdup lo.source return NULL in main func.

 tools/virtiofsd/buffer.c         |  4 ++++
 tools/virtiofsd/passthrough_ll.c | 16 +++++++++++++++-
 2 files changed, 19 insertions(+), 1 deletion(-)