)]}'
{
  "commit": "a3d71f256c8a8b5d51ea0dfd09cd85ce3a09d9e1",
  "tree": "451f3bb582edfa75300f5b8a35c51f5867b471ad",
  "parents": [
    "6992effe5344ceba1c53fd1a062df57e820b27cd"
  ],
  "author": {
    "name": "Mauro Carvalho Chehab",
    "email": "mchehab+samsung@kernel.org",
    "time": "Tue May 15 15:23:16 2018 -0400"
  },
  "committer": {
    "name": "Mauro Carvalho Chehab",
    "email": "mchehab+samsung@kernel.org",
    "time": "Mon May 28 16:11:17 2018 -0400"
  },
  "message": "media: cec-pin-error-inj: avoid a false-positive Spectre detection\n\nThe current logic makes Smatch to false-detect a Spectre variant 1\nvulnerability. The problem is that it initializes an u32 indirectly\nfrom user space input.\n\nAfter trying to write a fixup, after a while I realized that, in\npractice, this shouldn\u0027t be a problem, as an u32 is initialized\nfrom u8, but it took some time to discover it.\n\nSo, do some code cleanup to make it clearer for both humans\nand machines about the valid range for \"op\".\n\nFix this warning:\n\tdrivers/media/cec/cec-pin-error-inj.c:170 cec_pin_error_inj_parse_line() warn: potential spectre issue \u0027pin-\u003eerror_inj_args\u0027\n\nSigned-off-by: Mauro Carvalho Chehab \u003cmchehab+samsung@kernel.org\u003e\nSigned-off-by: Hans Verkuil \u003chans.verkuil@cisco.com\u003e\nSigned-off-by: Mauro Carvalho Chehab \u003cmchehab+samsung@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7132a2758bd31178683eb0e62b3203e4f92dce19",
      "old_mode": 33188,
      "old_path": "drivers/media/cec/cec-pin-error-inj.c",
      "new_id": "c0088d3b8e3d9594febe98bfaf00506586e6bb53",
      "new_mode": 33188,
      "new_path": "drivers/media/cec/cec-pin-error-inj.c"
    }
  ]
}
