)]}'
{
  "commit": "71338aa7d050c86d8765cd36e46be514fb0ebbce",
  "tree": "96bacb805b939c490145b31b4e2fb9e5cea79c5d",
  "parents": [
    "229de618ba6ff36e382b908b7637fe56c25ae9f1"
  ],
  "author": {
    "name": "Dan Rosenberg",
    "email": "drosenberg@vsecurity.com",
    "time": "Mon May 23 12:17:35 2011 +0000"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Tue May 24 01:13:12 2011 -0400"
  },
  "message": "net: convert %p usage to %pK\n\nThe %pK format specifier is designed to hide exposed kernel pointers,\nspecifically via /proc interfaces.  Exposing these pointers provides an\neasy target for kernel write vulnerabilities, since they reveal the\nlocations of writable structures containing easily triggerable function\npointers.  The behavior of %pK depends on the kptr_restrict sysctl.\n\nIf kptr_restrict is set to 0, no deviation from the standard %p behavior\noccurs.  If kptr_restrict is set to 1, the default, if the current user\n(intended to be a reader via seq_printf(), etc.) does not have CAP_SYSLOG\n(currently in the LSM tree), kernel pointers using %pK are printed as 0\u0027s.\n If kptr_restrict is set to 2, kernel pointers using %pK are printed as\n0\u0027s regardless of privileges.  Replacing with 0\u0027s was chosen over the\ndefault \"(null)\", which cannot be parsed by userland %p, which expects\n\"(nil)\".\n\nThe supporting code for kptr_restrict and %pK are currently in the -mm\ntree.  This patch converts users of %p in net/ to %pK.  Cases of printing\npointers to the syslog are not covered, since this would eliminate useful\ninformation for postmortem debugging and the reading of the syslog is\nalready optionally protected by the dmesg_restrict sysctl.\n\nSigned-off-by: Dan Rosenberg \u003cdrosenberg@vsecurity.com\u003e\nCc: James Morris \u003cjmorris@namei.org\u003e\nCc: Eric Dumazet \u003ceric.dumazet@gmail.com\u003e\nCc: Thomas Graf \u003ctgraf@infradead.org\u003e\nCc: Eugene Teo \u003ceugeneteo@kernel.org\u003e\nCc: Kees Cook \u003ckees.cook@canonical.com\u003e\nCc: Ingo Molnar \u003cmingo@elte.hu\u003e\nCc: David S. Miller \u003cdavem@davemloft.net\u003e\nCc: Peter Zijlstra \u003ca.p.zijlstra@chello.nl\u003e\nCc: Eric Paris \u003ceparis@parisplace.org\u003e\nSigned-off-by: Andrew Morton \u003cakpm@linux-foundation.org\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f85da0779e5ee162015ae88aa00e48e2114aa5e3",
      "old_mode": 33188,
      "old_path": "net/atm/proc.c",
      "new_id": "be3afdefec5832bb8e3861f883eff27e07bfcad0",
      "new_mode": 33188,
      "new_path": "net/atm/proc.c"
    },
    {
      "type": "modify",
      "old_id": "cced806098a94ab81f76347c5bdc0ab0c23e28e3",
      "old_mode": 33188,
      "old_path": "net/can/bcm.c",
      "new_id": "184a6572b67e6be824ba1ef30b122d065269a262",
      "new_mode": 33188,
      "new_path": "net/can/bcm.c"
    },
    {
      "type": "modify",
      "old_id": "11e1780455f2aea349a8c163eecbb7f6bb43d1a6",
      "old_mode": 33188,
      "old_path": "net/ipv4/raw.c",
      "new_id": "c9893d43242e52c83580f4676f20793fd5bdf48b",
      "new_mode": 33188,
      "new_path": "net/ipv4/raw.c"
    },
    {
      "type": "modify",
      "old_id": "3c8d9b6f1ea4f05af6d8227672119e258ec7d8f5",
      "old_mode": 33188,
      "old_path": "net/ipv4/tcp_ipv4.c",
      "new_id": "a7d6671e33b8a6e46aba0b352ad083736d1b421b",
      "new_mode": 33188,
      "new_path": "net/ipv4/tcp_ipv4.c"
    },
    {
      "type": "modify",
      "old_id": "599374f65c7646473c1fa6781a9cf92ce6d90153",
      "old_mode": 33188,
      "old_path": "net/ipv4/udp.c",
      "new_id": "abca870d8ff69fe76a19bef7d9338d4f80fabaf0",
      "new_mode": 33188,
      "new_path": "net/ipv4/udp.c"
    },
    {
      "type": "modify",
      "old_id": "ae64984f81aa857ee1b361a9786a7524b989d3ef",
      "old_mode": 33188,
      "old_path": "net/ipv6/raw.c",
      "new_id": "cc7313b8f7eaee42ec5385f9fa9999f1227f01db",
      "new_mode": 33188,
      "new_path": "net/ipv6/raw.c"
    },
    {
      "type": "modify",
      "old_id": "868366470b4af1702b81dcfa03db815b33378d00",
      "old_mode": 33188,
      "old_path": "net/ipv6/tcp_ipv6.c",
      "new_id": "d1fd28711ba50e1ad8ac90a0c32df360ec911d70",
      "new_mode": 33188,
      "new_path": "net/ipv6/tcp_ipv6.c"
    },
    {
      "type": "modify",
      "old_id": "fc0c42a88e549edb441c62a1d13a32d0499154d6",
      "old_mode": 33188,
      "old_path": "net/ipv6/udp.c",
      "new_id": "41f8c9c08dbaf86051a16c5488b6c961f65278fc",
      "new_mode": 33188,
      "new_path": "net/ipv6/udp.c"
    },
    {
      "type": "modify",
      "old_id": "d62401c2568434e7f36aac8d5a5613a30ff26281",
      "old_mode": 33188,
      "old_path": "net/key/af_key.c",
      "new_id": "8f92cf8116ea6b0604961c8438b15acf21fcf6f1",
      "new_mode": 33188,
      "new_path": "net/key/af_key.c"
    },
    {
      "type": "modify",
      "old_id": "5fe4f3b04ed37e8d0cc46d456804aef6044c3150",
      "old_mode": 33188,
      "old_path": "net/netlink/af_netlink.c",
      "new_id": "6ef64adf7362a421240c28e5196407ce5729f1dd",
      "new_mode": 33188,
      "new_path": "net/netlink/af_netlink.c"
    },
    {
      "type": "modify",
      "old_id": "549527bca87a9a6b9bc323e19834aae5cf03d647",
      "old_mode": 33188,
      "old_path": "net/packet/af_packet.c",
      "new_id": "925f715686a5d0e57c657ee6af40b5792c085a6d",
      "new_mode": 33188,
      "new_path": "net/packet/af_packet.c"
    },
    {
      "type": "modify",
      "old_id": "8c5bfcef92cb1707d25fa209e9a461f2654b6939",
      "old_mode": 33188,
      "old_path": "net/phonet/socket.c",
      "new_id": "ab07711cf2f40e161cd0602678ce3b4555ab68b3",
      "new_mode": 33188,
      "new_path": "net/phonet/socket.c"
    },
    {
      "type": "modify",
      "old_id": "61aacfbbaa92f55829730687fdf0026d123301d1",
      "old_mode": 33188,
      "old_path": "net/sctp/proc.c",
      "new_id": "05a6ce2147147b4e4fbb9de92d7913d3877e4fb2",
      "new_mode": 33188,
      "new_path": "net/sctp/proc.c"
    },
    {
      "type": "modify",
      "old_id": "b1d75beb7e20e8e3155a84be37161871023396ac",
      "old_mode": 33188,
      "old_path": "net/unix/af_unix.c",
      "new_id": "0722a25a3a33e6717b5e305d1cf0550b3abb9bb1",
      "new_mode": 33188,
      "new_path": "net/unix/af_unix.c"
    }
  ]
}
