)]}'
{
  "commit": "75690493591fe283e4c92a3ba7c4420e9858abdb",
  "tree": "6a9e05748db7f109e8106e93b9d3bf2824398bf9",
  "parents": [
    "d07cec9c238ae8fc6c1a9f3f5d30a2f8ec6cdc71"
  ],
  "author": {
    "name": "Zhihao Cheng",
    "email": "chengzhihao1@huawei.com",
    "time": "Sat Sep 23 11:28:59 2023 +0800"
  },
  "committer": {
    "name": "Richard Weinberger",
    "email": "richard@nod.at",
    "time": "Sat Oct 28 23:19:08 2023 +0200"
  },
  "message": "ubifs: ubifs_link: Fix wrong name len calculating when UBIFS is encrypted\n\nThe length of dentry name is calculated after the raw name is encrypted,\nexcept for ubifs_link(), which could make the size of dir underflow.\nHere is a reproducer:\n\n touch $TMP/file\n mkdir $TMP/dir\n stat $TMP/dir\n for i in $(seq 1 8)\n do\n   ln $TMP/file $TMP/dir/$i\n   unlink $TMP/dir/$i\n done\n stat $TMP/dir\n\nThe size of dir will be underflow(-96).\n\nFix it by calculating dentry name\u0027s length after the name is encrypted.\n\nFixes: f4f61d2cc6d8 (\"ubifs: Implement encrypted filenames\")\nReported-by: Roland Ruckerbauer \u003croland.ruckerbauer@robart.cc\u003e\nLink: https://lore.kernel.org/linux-mtd/1638777819.2925845.1695222544742.JavaMail.zimbra@robart.cc/T/#u\nSigned-off-by: Zhihao Cheng \u003cchengzhihao1@huawei.com\u003e\nSigned-off-by: Richard Weinberger \u003crichard@nod.at\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2f48c58d47cdd02b18fbd6cd7b2439a34c42c89e",
      "old_mode": 33188,
      "old_path": "fs/ubifs/dir.c",
      "new_id": "5dc1ac4d826def7c2f8de2c7c395a5e3cb9b657f",
      "new_mode": 33188,
      "new_path": "fs/ubifs/dir.c"
    }
  ]
}
