From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucxb-0002X5-35 for qemu-devel@nongnu.org; Thu, 13 Oct 2016 06:10:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bucxW-0005gG-RP for qemu-devel@nongnu.org; Thu, 13 Oct 2016 06:09:57 -0400 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]:35350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bucxW-0005ft-M0 for qemu-devel@nongnu.org; Thu, 13 Oct 2016 06:09:54 -0400 Received: by mail-oi0-x241.google.com with SMTP id d132so5197292oib.2 for ; Thu, 13 Oct 2016 03:09:54 -0700 (PDT) Message-ID: <57ff5d71.4a3c9d0a.90936.6097@mx.google.com> From: Li Qiang Date: Thu, 13 Oct 2016 03:09:40 -0700 Subject: [Qemu-devel] [PATCH v3 0/3] 9pfs: fix xattr related issues List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: groug@kaod.org, qemu-devel@nongnu.org Cc: Li Qiang From: Li Qiang 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