)]}'
{
  "commit": "f7a8b89bc067fa1cbcd3312539bc0d61810d3280",
  "tree": "af8492306561e63c683b9badc45e0fdfb6a3c672",
  "parents": [
    "e8a09b1d8a307c2a5da0f465755607dd7041ccc3"
  ],
  "author": {
    "name": "Guanglei Zhu",
    "email": "zhugl3@xiaopeng.com",
    "time": "Tue Nov 03 16:41:33 2026 +0800"
  },
  "committer": {
    "name": "Dmitry Torokhov",
    "email": "dmitry.torokhov@gmail.com",
    "time": "Wed Nov 04 15:52:50 2026 -0800"
  },
  "message": "Input: mt6779-keypad - check the reported row and column\n\nThe interrupt handler turns register bits into a matrix position\nand indexes the keycode array with it:\n\n\t\tkeypad-\u003ecalc_row_col(key, \u0026row, \u0026col);\n\n\t\tscancode \u003d MATRIX_SCAN_CODE(row, col, row_shift);\n\t\t...\n\t\tinput_report_key(keypad-\u003einput_dev, keycode[scancode], pressed);\n\nThe keycode array is sized after the rows and columns the device\ntree declared, but neither the probe nor the handler checks that a\nreported position actually fits those dimensions. A register glitch\nor a matrix smaller than the hardware\u0027s fixed layout indexes past\nthe array and reports whatever sits there as a key code.\n\nSkip positions outside the declared matrix.\n\nSigned-off-by: Guanglei Zhu \u003czhugl3@xiaopeng.com\u003e\nLink: https://patch.msgid.link/20261103084135.426629-6-zhugl3@xiaopeng.com\nSigned-off-by: Dmitry Torokhov \u003cdmitry.torokhov@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e5eb025c5e9937e02623e2e61c8dd012cbb97250",
      "old_mode": 33188,
      "old_path": "drivers/input/keyboard/mt6779-keypad.c",
      "new_id": "effd154f5bf96097acab86b2069e4516d52f0ccd",
      "new_mode": 33188,
      "new_path": "drivers/input/keyboard/mt6779-keypad.c"
    }
  ]
}
