« Previous | Next » 

Revision c7e587b7

IDc7e587b73ebac05943df78f5f37d80d32ff47d3d

Added by Aneesh Kumar K.V almost 11 years ago

hw/9pfs: Fix segfault with 9p2000.u

When guest tries to chmod a block or char device file over 9pfs,
the qemu process segfaults. With 9p2000.u protocol we use wstat to
change mode bits and client don't send extension information for
chmod. We need to check for size field to check whether extension
info is present or not.

Reported-by: Michael Tokarev <>
Acked-by: Michael Tokarev <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Aneesh Kumar K.V <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences