)]}'
{
  "commit": "6c2754c28f2388a276fe21edde826f2113c8f60e",
  "tree": "cfb966a1bbe36f10a7f55d0e38d34dfb275b9992",
  "parents": [
    "ab34c02afeafd047a831e6fe2a4dd875ce86bee0"
  ],
  "author": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Sat Oct 23 08:14:12 2010 -0700"
  },
  "committer": {
    "name": "Linus Torvalds",
    "email": "torvalds@linux-foundation.org",
    "time": "Sat Oct 23 08:14:12 2010 -0700"
  },
  "message": "Revert \"tty: Add a new file /proc/tty/consoles\"\n\nThis reverts commit f4a3e0bceb57466c31757f25e4e0ed108d1299ec.  Jiri\nSladby points out that the tty structure we\u0027re using may already be\ngone, and Al Viro doesn\u0027t hold back in complaining about the random\nloading of \u0027filp-\u003eprivate_data\u0027 which doesn\u0027t have to be a pointer at\nall, nor does checking the magic field for TTY_MAGIC prove anything.\n\nBelated review by Al:\n\n \"a) global variable depending on stdin of the last opener? Affecting\n     output of read(2)? Really?\n\n  b) iterator is broken; list should be locked in -\u003estart(), unlocked in\n     -\u003estop() and *NOT* unlocked/relocked in -\u003enext()\n\n  c) -\u003eshow() ought to do nothing in case of -\u003edevice \u003d\u003d NULL, instead\n     of skipping those in -\u003enext()/-\u003estart()\n\n  d) regardless of the merits of the bright idea about asterisk at that\n     line in output *and* regardless of (a), the implementation is not\n     only atrociously ugly, it\u0027s actually very likely to be a roothole.\n     Verifying that Cthulhu knows what number happens to be address of a\n     tty_struct by blindly dereferencing memory at that address...\n     Ouch.\n\n  Please revert that crap.\"\n\nAnd Christoph pipes in and NAK\u0027s the approach of walking fd tables etc\ntoo.  So it\u0027s pretty unanimous.\n\nNoticed-by: Jri Slaby \u003cjslaby@suse.cz\u003e\nRequested-by: Al Viro \u003cviro@zeniv.linux.org.uk\u003e\nCc: Greg Kroah-Hartman \u003cgregkh@suse.de\u003e\nCc: Werner Fink \u003cwerner@suse.de\u003e\nCc: Alan Cox \u003calan@lxorguk.ukuu.org.uk\u003e\nCc: Christoph Hellwig \u003chch@infradead.org\u003e\nSigned-off-by: Linus Torvalds \u003ctorvalds@linux-foundation.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "98223a67694026a97d2ccfceb89850250f9f7afe",
      "old_mode": 33188,
      "old_path": "Documentation/filesystems/proc.txt",
      "new_id": "a6aca87408830b12aa0302dad05da5fa79244617",
      "new_mode": 33188,
      "new_path": "Documentation/filesystems/proc.txt"
    },
    {
      "type": "modify",
      "old_id": "dc44f94022f1d59d97aace13031a4f9e1030de2e",
      "old_mode": 33188,
      "old_path": "fs/proc/proc_tty.c",
      "new_id": "83adcc86943742ef58bf22b4fb16a986a560450e",
      "new_mode": 33188,
      "new_path": "fs/proc/proc_tty.c"
    }
  ]
}
