)]}'
{
  "commit": "8af00205445eb901f17ca5b632d976065187538e",
  "tree": "576645b778e5911f500ee5952877c5cb67c1483d",
  "parents": [
    "e3fdc535f25b471e55ac3c8b9f0b504957015bbe"
  ],
  "author": {
    "name": "Daniel P. Berrange",
    "email": "berrange@redhat.com",
    "time": "Tue Oct 01 12:28:17 2013 +0100"
  },
  "committer": {
    "name": "Michael Tokarev",
    "email": "mjt@tls.msk.ru",
    "time": "Sat Oct 05 13:05:28 2013 +0400"
  },
  "message": "hw/9pfs: Fix errno value for xattr functions\n\nIf there is no operation driver for the xattr type the\nfunctions return \u0027-1\u0027 and set errno to \u0027-EOPNOTSUPP\u0027.\nWhen the calling code sets \u0027ret \u003d -errno\u0027 this turns\ninto a large positive number.\n\nIn Linux 3.11, the kernel has switched to using 9p\nversion 9p2000.L, instead of 9p2000.u, which enables\nsupport for xattr operations. This on its own is harmless,\nbut for another change which makes it request the xattr\nwith a name \u0027security.capability\u0027.\n\nThe result is that the guest sees a succesful return\nof 95 bytes of data, instead of a failure with errno\nset to 95. Since the kernel expects a maximum of 20\nbytes for an xattr return this gets translated to the\nunexpected errno ERANGE.\n\nThis all means that when running a binary off a 9p fs\nin 3.11 kernels you get a fun result of:\n\n  # ./date\n  sh: ./date: Numerical result out of range\n\nThe only workaround is to pass \u0027version\u003d9p2000.u\u0027 when\nmounting the 9p fs in the guest, to disable all use of\nxattrs.\n\nSigned-off-by: Daniel P. Berrange \u003cberrange@redhat.com\u003e\nReviewed-by: Aneesh Kumar K.V \u003caneesh.kumar@linux.vnet.ibm.com\u003e\nSigned-off-by: Michael Tokarev \u003cmjt@tls.msk.ru\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "90ae565c1914b897b651faf6358f507ebccab154",
      "old_mode": 33188,
      "old_path": "hw/9pfs/virtio-9p-xattr.c",
      "new_id": "3fae557a84ff8dc2f55cca9cc10a4655924e1f4b",
      "new_mode": 33188,
      "new_path": "hw/9pfs/virtio-9p-xattr.c"
    }
  ]
}
