)]}'
{
  "commit": "445019bbca5d86f05b6ec383a6c0f4de3af555fe",
  "tree": "b40688924e13c7c8f790e6fa694311a66b9eb395",
  "parents": [
    "032a6762957f8389b651864df6e5592649f0163c"
  ],
  "author": {
    "name": "Bui Quang Minh",
    "email": "minhquangbui99@gmail.com",
    "time": "Sun Jun 13 21:34:39 2021 +0700"
  },
  "committer": {
    "name": "Lee Jones",
    "email": "joneslee@google.com",
    "time": "Wed Jan 26 09:16:43 2022 +0000"
  },
  "message": "UPSTREAM: bpf: Fix integer overflow in argument calculation for bpf_map_area_alloc\n\ncommit 7dd5d437c258bbf4cc15b35229e5208b87b8b4e0 upstream.\n\nIn 32-bit architecture, the result of sizeof() is a 32-bit integer so\nthe expression becomes the multiplication between 2 32-bit integer which\ncan potentially leads to integer overflow. As a result,\nbpf_map_area_alloc() allocates less memory than needed.\n\nFix this by casting 1 operand to u64.\n\nFixes: 0d2c4f964050 (\"bpf: Eliminate rlimit-based memory accounting for sockmap and sockhash maps\")\nFixes: 99c51064fb06 (\"devmap: Use bpf_map_area_alloc() for allocating hash buckets\")\nFixes: 546ac1ffb70d (\"bpf: add devmap, a map for storing net device references\")\nSigned-off-by: Bui Quang Minh \u003cminhquangbui99@gmail.com\u003e\nSigned-off-by: Alexei Starovoitov \u003cast@kernel.org\u003e\nLink: https://lore.kernel.org/bpf/20210613143440.71975-1-minhquangbui99@gmail.com\nSigned-off-by: Connor O\u0027Brien \u003cconnoro@google.com\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\nSigned-off-by: Lee Jones \u003clee.jones@linaro.org\u003e\nChange-Id: I9ce1991224a87eb39acf1da4923534e22380fc42\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b5be9659ab590303a3f5945f85207b37adef8147",
      "old_mode": 33188,
      "old_path": "kernel/bpf/devmap.c",
      "new_id": "01149821ded91a2995b58a6656edb6f05916102e",
      "new_mode": 33188,
      "new_path": "kernel/bpf/devmap.c"
    },
    {
      "type": "modify",
      "old_id": "ddc899e83313afd8937b167cffeed1292c5ec315",
      "old_mode": 33188,
      "old_path": "net/core/sock_map.c",
      "new_id": "4ea5bc65848f29f3b9417e9d75244b264dcb8cda",
      "new_mode": 33188,
      "new_path": "net/core/sock_map.c"
    }
  ]
}
