)]}'
{
  "commit": "ed35bbe7d06e6505401eff3f3c7a36bd1f167a17",
  "tree": "7cec0908c18c0cab79ee160f5013aeebef60535f",
  "parents": [
    "ce94927fa4173fcc1eca27bdc65a140064c8f1e6"
  ],
  "author": {
    "name": "John Johansen",
    "email": "john.johansen@canonical.com",
    "time": "Thu Oct 29 16:53:12 2026 -0700"
  },
  "committer": {
    "name": "John Johansen",
    "email": "john.johansen@canonical.com",
    "time": "Thu Oct 29 17:02:50 2026 -0700"
  },
  "message": "apparmor: fix uninitialized variable warning in aa_inherit_files\n\nFix the following warning\n\nAll warnings (new ones prefixed by \u003e\u003e):\n\n\u003e\u003e security/apparmor/file.c:737:53: warning: variable \u0027file\u0027 is uninitialized when used here [-Wuninitialized]\n     737 |                 int error \u003d aa_file_perm(OP_INHERIT, cred, label, file,\n         |                                                                   ^~~~\n   security/apparmor/file.c:724:36: note: initialize the variable \u0027file\u0027 to silence this warning\n     724 |         struct file *devnull \u003d NULL, *file;\n         |                                           ^\n         |                                            \u003d NULL\n   1 warning generated.\n\nvim +/file +737 security/apparmor/file.c\n\n   719\n   720\t/* based on selinux\u0027s flush_unauthorized_files */\n   721\tvoid aa_inherit_files(const struct cred *cred, struct files_struct *files)\n   722\t{\n   723\t\tstruct aa_label *label \u003d aa_get_newest_cred_label(cred);\n   724\t\tstruct file *devnull \u003d NULL, *file;\n   725\t\tbool devnull_tried \u003d false;\n   726\t\tunsigned int n \u003d 0;\n   727\n   728\t\trevalidate_tty(cred, label);\n   729\n   730\t\t/*\n   731\t\t * Revalidate access to inherited open files. Each file is\n   732\t\t * revalidated holding only a reference to it, with no locks\n   733\t\t * held, as revalidation may sleep (e.g. unix socket mediation\n   734\t\t * dropping path refs, or allocating path buffers).\n   735\t\t */\n   736\t\twhile ((n \u003d iterate_fd(files, n, get_next_file, \u0026file)) !\u003d 0) {\n \u003e 737\t\t\tint error \u003d aa_file_perm(OP_INHERIT, cred, label, file,\n\nReported-by: kernel test robot \u003clkp@intel.com\u003e\nCloses: https://lore.kernel.org/oe-kbuild-all/202610292346.ehqNujiE-lkp@intel.com/\nFixes: a913281f60015 (\"apparmor: don\u0027t revalidate inherited files under files-\u003efile_lock\")\nSigned-off-by: John Johansen \u003cjohn.johansen@canonical.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b52781e05a5a1b1f912147171c2e8a1b79eafafd",
      "old_mode": 33188,
      "old_path": "security/apparmor/file.c",
      "new_id": "baca370ddfc02fa1357ff09d9f011e87cd9ab0bb",
      "new_mode": 33188,
      "new_path": "security/apparmor/file.c"
    }
  ]
}
