)]}'
{
  "commit": "b07b65846ba33a4deba03eb6e39043c8bc70903b",
  "tree": "9d9179213690fc7e67aee1e2c602c30a574719f7",
  "parents": [
    "fd466e068e5adef5922b76f24374c96ba01faaa2"
  ],
  "author": {
    "name": "Kees Cook",
    "email": "keescook@chromium.org",
    "time": "Tue Apr 04 21:35:22 2017 -0700"
  },
  "committer": {
    "name": "Kees Cook",
    "email": "keescook@chromium.org",
    "time": "Thu Jun 22 16:21:41 2017 -0700"
  },
  "message": "randstruct: Whitelist UNIXCB cast\n\nThis is another false positive in bad cast detection:\n\nnet/unix/af_unix.c: In function ‘unix_skb_scm_eq’:\nnet/unix/af_unix.c:1621:31: note: found mismatched rhs struct pointer types: ‘struct unix_skb_parms’ and ‘char’\n\n  const struct unix_skb_parms *u \u003d \u0026UNIXCB(skb);\n                               ^\n\nUNIXCB is:\n\n\t#define UNIXCB(skb)     (*(struct unix_skb_parms *)\u0026((skb)-\u003ecb))\n\nAnd -\u003ecb is:\n\n\tchar                    cb[48] __aligned(8);\n\nThis is a rather crazy cast, but appears to be safe in the face of\nrandomization, so whitelist it in the plugin.\n\nCc: Hannes Frederic Sowa \u003channes@stressinduktion.org\u003e\nCc: David S. Miller \u003cdavem@davemloft.net\u003e\nSigned-off-by: Kees Cook \u003ckeescook@chromium.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dc0df3765a8fef37f6420570eaf467a045ac210d",
      "old_mode": 33188,
      "old_path": "scripts/gcc-plugins/randomize_layout_plugin.c",
      "new_id": "2e710bf29699924ab40fa9566b48292f119a365b",
      "new_mode": 33188,
      "new_path": "scripts/gcc-plugins/randomize_layout_plugin.c"
    }
  ]
}
