All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/3] 9pfs: fix xattr related issues
@ 2016-10-13 10:09 Li Qiang
  2016-10-13 11:58 ` Greg Kurz
  0 siblings, 1 reply; 5+ messages in thread
From: Li Qiang @ 2016-10-13 10:09 UTC (permalink / raw)
  To: groug, qemu-devel; +Cc: Li Qiang

From: Li Qiang <liqiang6-s@360.cn>

The current xattr implementation in 9pfs has several issues.

-The 'copied_len' in V9fsXattr is used both for accounting bytes and to tag the xattr fid.
-The 'len/copied_len' field in V9fsXattr has a wrong type.
-The read/write dispatch function of xattr uses unsafe computations.

This patchset solves these issues.

Li Qiang (3):
  9pfs: add xattrwalk_fid field in V9fsXattr struct
  9pfs: convert 'len/copied_len' field in V9fsXattr to the type of
    uint64_t
  9pfs: fix integer overflow issue in xattr read/write

 hw/9pfs/9p.c | 39 ++++++++++++++++-----------------------
 hw/9pfs/9p.h |  5 +++--
 2 files changed, 19 insertions(+), 25 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-13 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13 10:09 [Qemu-devel] [PATCH v3 0/3] 9pfs: fix xattr related issues Li Qiang
2016-10-13 11:58 ` Greg Kurz
2016-10-13 12:10   ` Li Qiang
2016-10-13 12:19     ` Greg Kurz
2016-10-13 12:33       ` Li Qiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.