9pfs: limit xattr size in xattrcreate
commit3b79ef2cf48805dc693a8b0c82e05e0abeaa64f8
authorGreg Kurz <groug@kaod.org>
Tue, 1 Nov 2016 11:00:40 +0000 (1 12:00 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 1 Nov 2016 11:03:02 +0000 (1 12:03 +0100)
tree9c45ece6eeec3315250fd1e11bfc00d790c53956
parent7e55d65c56a03dcd2c5d7c49d37c5a74b55d4bd6
9pfs: limit xattr size in xattrcreate

We shouldn't allow guests to create extended attribute with arbitrary sizes.
On linux hosts, the limit is XATTR_SIZE_MAX. Let's use it.

Signed-off-by: Greg Kurz <groug@kaod.org>
hw/9pfs/9p.c
hw/9pfs/trace-events