)]}'
{
  "commit": "51f299dd94bb1e28d03eefbc4fe0b9282f9ee2fa",
  "tree": "c4caf118661ec22af9844f6cd26ee80cbcdfca26",
  "parents": [
    "951b7966959fde507e1718627b37795f40b704f4"
  ],
  "author": {
    "name": "Rasmus Villemoes",
    "email": "linux@rasmusvillemoes.dk",
    "time": "Mon Nov 13 00:15:04 2017 +0100"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Tue Nov 14 16:38:45 2017 +0900"
  },
  "message": "net: core: improve sanity checking in __dev_alloc_name\n\n__dev_alloc_name is called from the public (and exported)\ndev_alloc_name(), so we don\u0027t have a guarantee that strlen(name) is at\nmost IFNAMSIZ. If somebody manages to get __dev_alloc_name called with a\n% char beyond the 31st character, we\u0027d be making a snprintf() call that\nwill very easily crash the kernel (using an appropriate %p extension,\nwe\u0027ll likely dereference some completely bogus pointer).\n\nIn the normal case where strlen() is sane, we don\u0027t even save anything\nby limiting to IFNAMSIZ, so just use strchr().\n\nSigned-off-by: Rasmus Villemoes \u003clinux@rasmusvillemoes.dk\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "658337bf33e437773ef81359746068043481b579",
      "old_mode": 33188,
      "old_path": "net/core/dev.c",
      "new_id": "1a5d31fdea273ad5a454a73a3b009b6a97151b9f",
      "new_mode": 33188,
      "new_path": "net/core/dev.c"
    }
  ]
}
