)]}'
{
  "commit": "fb0a387dcdcd21aab1b09ee7fd80b7c979bdbbfd",
  "tree": "dcb12c5fce8f7ccb8b183936ea71a29aba3f3846",
  "parents": [
    "c40ce3c9ea97425a12d7e44031a98fe50add6fc1"
  ],
  "author": {
    "name": "Eric Sandeen",
    "email": "sandeen@redhat.com",
    "time": "Wed Sep 16 14:45:10 2009 -0400"
  },
  "committer": {
    "name": "Theodore Ts\u0027o",
    "email": "tytso@mit.edu",
    "time": "Wed Sep 16 14:45:10 2009 -0400"
  },
  "message": "ext4: limit block allocations for indirect-block files to \u003c 2^32\n\nToday, the ext4 allocator will happily allocate blocks past\n2^32 for indirect-block files, which results in the block\nnumbers getting truncated, and corruption ensues.\n\nThis patch limits such allocations to \u003c 2^32, and adds\nBUG_ONs if we do get blocks larger than that.\n\nThis should address RH Bug 519471, ext4 bitmap allocator \nmust limit blocks to \u003c 2^32\n\n* ext4_find_goal() is modified to choose a goal \u003c UINT_MAX,\n  so that our starting point is in an acceptable range.\n\n* ext4_xattr_block_set() is modified such that the goal block\n  is \u003c UINT_MAX, as above.\n\n* ext4_mb_regular_allocator() is modified so that the group\n  search does not continue into groups which are too high\n\n* ext4_mb_use_preallocated() has a check that we don\u0027t use\n  preallocated space which is too far out\n\n* ext4_alloc_blocks() and ext4_xattr_block_set() add some BUG_ONs\n\nNo attempt has been made to limit inode locations to \u003c 2^32,\nso we may wind up with blocks far from their inodes.  Doing\nthis much already will lead to some odd ENOSPC issues when the\n\"lower 32\" gets full, and further restricting inodes could\nmake that even weirder.\n\nFor high inodes, choosing a goal of the original, % UINT_MAX,\nmay be a bit odd, but then we\u0027re in an odd situation anyway,\nand I don\u0027t know of a better heuristic.\n\nSigned-off-by: Eric Sandeen \u003csandeen@redhat.com\u003e\nSigned-off-by: \"Theodore Ts\u0027o\" \u003ctytso@mit.edu\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4dc64ed58d264103191515f074a1aeef6b8e194e",
      "old_mode": 33188,
      "old_path": "fs/ext4/ext4.h",
      "new_id": "2a0f75d55fad54aa4a082d49e7962a80df8f10ea",
      "new_mode": 33188,
      "new_path": "fs/ext4/ext4.h"
    },
    {
      "type": "modify",
      "old_id": "d04c8428bde2e50d76543066e6a71a1fb6837f1f",
      "old_mode": 33188,
      "old_path": "fs/ext4/inode.c",
      "new_id": "5a8979259c9a91d55438fa28eff2505fb019a820",
      "new_mode": 33188,
      "new_path": "fs/ext4/inode.c"
    },
    {
      "type": "modify",
      "old_id": "d23056d375b33feaab2e62c06543b53185d98a70",
      "old_mode": 33188,
      "old_path": "fs/ext4/mballoc.c",
      "new_id": "e9c61896d6055a7817190bfe748903fa808cf959",
      "new_mode": 33188,
      "new_path": "fs/ext4/mballoc.c"
    },
    {
      "type": "modify",
      "old_id": "af95dd8ba54b4b619cdf1da4dd741015d52bdb8b",
      "old_mode": 33188,
      "old_path": "fs/ext4/super.c",
      "new_id": "a6b1ab7347287e120abd4c3fe4a8de79a284e40c",
      "new_mode": 33188,
      "new_path": "fs/ext4/super.c"
    },
    {
      "type": "modify",
      "old_id": "62b31c24699418235b98bbc164257db346202bdd",
      "old_mode": 33188,
      "old_path": "fs/ext4/xattr.c",
      "new_id": "fed5b01d7a8daa38cae14572ff7f43f3a1860077",
      "new_mode": 33188,
      "new_path": "fs/ext4/xattr.c"
    }
  ]
}
