)]}'
{
  "commit": "ef12e72a01f3022c55e5a8e0fa1caebdc7efcfce",
  "tree": "54209e0731082ff7e2a36ede9b045d415132134e",
  "parents": [
    "8c3cac5e6a85f03602ffe09c44f14418699e31ec"
  ],
  "author": {
    "name": "J. Bruce Fields",
    "email": "bfields@redhat.com",
    "time": "Mon Feb 03 12:13:08 2014 -0500"
  },
  "committer": {
    "name": "Jeff Layton",
    "email": "jlayton@redhat.com",
    "time": "Mon Mar 31 08:24:42 2014 -0400"
  },
  "message": "locks: fix posix lock range overflow handling\n\nIn the 32-bit case fcntl assigns the 64-bit f_pos and i_size to a 32-bit\noff_t.\n\nThe existing range checks also seem to depend on signed arithmetic\nwrapping when it overflows.  In practice maybe that works, but we can be\nmore careful.  That also allows us to make a more reliable distinction\nbetween -EINVAL and -EOVERFLOW.\n\nNote that in the 32-bit case SEEK_CUR or SEEK_END might allow the caller\nto set a lock with starting point no longer representable as a 32-bit\nvalue.  We could return -EOVERFLOW in such cases, but the locks code is\ncapable of handling such ranges, so we choose to be lenient here.  The\nonly problem is that subsequent GETLK calls on such a lock will fail\nwith EOVERFLOW.\n\nWhile we\u0027re here, do some cleanup including consolidating code for the\nflock and flock64 cases.\n\nSigned-off-by: J. Bruce Fields \u003cbfields@fieldses.org\u003e\nSigned-off-by: Jeff Layton \u003cjlayton@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dd309333afc924480587625da9aed4cf6f9ea80b",
      "old_mode": 33188,
      "old_path": "fs/locks.c",
      "new_id": "b49e853a9c7b7c2d40105d83a392d114473de4e0",
      "new_mode": 33188,
      "new_path": "fs/locks.c"
    },
    {
      "type": "modify",
      "old_id": "95e46c8e05f90db319b2828eb53aa93bdca0629d",
      "old_mode": 33188,
      "old_path": "include/uapi/asm-generic/fcntl.h",
      "new_id": "36025f77c6ed2ab2cafc2fa2e11a3b919ad38ecc",
      "new_mode": 33188,
      "new_path": "include/uapi/asm-generic/fcntl.h"
    }
  ]
}
