From: Li Qiang <liqiang...@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