)]}'
{
  "commit": "e990be06acf2c6f667954c09c42701d88f683279",
  "tree": "c6c2d37f7abc85b1c1a42b1982b063012d9e1320",
  "parents": [
    "4b900641754c53dcf4e7ebf7bd6cc2e9779c6ff3"
  ],
  "author": {
    "name": "Eric Biggers",
    "email": "ebiggers@google.com",
    "time": "Mon Jul 23 10:54:58 2018 -0700"
  },
  "committer": {
    "name": "Greg Kroah-Hartman",
    "email": "gregkh@linuxfoundation.org",
    "time": "Fri Aug 17 21:03:49 2018 +0200"
  },
  "message": "crypto: ablkcipher - fix crash flushing dcache in error path\n\ncommit 318abdfbe708aaaa652c79fb500e9bd60521f9dc upstream.\n\nLike the skcipher_walk and blkcipher_walk cases:\n\nscatterwalk_done() is only meant to be called after a nonzero number of\nbytes have been processed, since scatterwalk_pagedone() will flush the\ndcache of the *previous* page.  But in the error case of\nablkcipher_walk_done(), e.g. if the input wasn\u0027t an integer number of\nblocks, scatterwalk_done() was actually called after advancing 0 bytes.\nThis caused a crash (\"BUG: unable to handle kernel paging request\")\nduring \u0027!PageSlab(page)\u0027 on architectures like arm and arm64 that define\nARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE, provided that the input was\npage-aligned as in that case walk-\u003eoffset \u003d\u003d 0.\n\nFix it by reorganizing ablkcipher_walk_done() to skip the\nscatterwalk_advance() and scatterwalk_done() if an error has occurred.\n\nReported-by: Liu Chao \u003cliuchao741@huawei.com\u003e\nFixes: bf06099db18a (\"crypto: skcipher - Add ablkcipher_walk interfaces\")\nCc: \u003cstable@vger.kernel.org\u003e # v2.6.35+\nSigned-off-by: Eric Biggers \u003cebiggers@google.com\u003e\nSigned-off-by: Herbert Xu \u003cherbert@gondor.apana.org.au\u003e\nSigned-off-by: Greg Kroah-Hartman \u003cgregkh@linuxfoundation.org\u003e\n\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d880a489715976fef528cfc7544956d1ce761b52",
      "old_mode": 33188,
      "old_path": "crypto/ablkcipher.c",
      "new_id": "4ee7c041bb82b7ea6e1133e03f5675479e0eb8a1",
      "new_mode": 33188,
      "new_path": "crypto/ablkcipher.c"
    }
  ]
}
