)]}'
{
  "commit": "12fa15e89aa016b6586f9b2311f25744f70df1be",
  "tree": "e22938cd2a3c7ea5c2ca5477246549bb239fefd7",
  "parents": [
    "b987dcfecb4f2c8de887fc3960288c8dd6cf9042"
  ],
  "author": {
    "name": "Ilya Maximets",
    "email": "i.maximets@samsung.com",
    "time": "Tue Jul 23 15:08:10 2019 +0300"
  },
  "committer": {
    "name": "Andrii Nakryiko",
    "email": "andrii.nakryiko@gmail.com",
    "time": "Mon Jul 29 16:32:58 2019 -0700"
  },
  "message": "libbpf: fix using uninitialized ioctl results\n\n\u0027channels.max_combined\u0027 initialized only on ioctl success and\nerrno is only valid on ioctl failure.\n\nThe code doesn\u0027t produce any runtime issues, but makes memory\nsanitizers angry:\n\n Conditional jump or move depends on uninitialised value(s)\n    at 0x55C056F: xsk_get_max_queues (xsk.c:336)\n    by 0x55C05B2: xsk_create_bpf_maps (xsk.c:354)\n    by 0x55C089F: xsk_setup_xdp_prog (xsk.c:447)\n    by 0x55C0E57: xsk_socket__create (xsk.c:601)\n  Uninitialised value was created by a stack allocation\n    at 0x55C04CD: xsk_get_max_queues (xsk.c:318)\n\nAdditionally fixed warning on uninitialized bytes in ioctl arguments:\n\n Syscall param ioctl(SIOCETHTOOL) points to uninitialised byte(s)\n    at 0x648D45B: ioctl (in /usr/lib64/libc-2.28.so)\n    by 0x55C0546: xsk_get_max_queues (xsk.c:330)\n    by 0x55C05B2: xsk_create_bpf_maps (xsk.c:354)\n    by 0x55C089F: xsk_setup_xdp_prog (xsk.c:447)\n    by 0x55C0E57: xsk_socket__create (xsk.c:601)\n  Address 0x1ffefff378 is on thread 1\u0027s stack\n  in frame #1, created by xsk_get_max_queues (xsk.c:318)\n  Uninitialised value was created by a stack allocation\n    at 0x55C04CD: xsk_get_max_queues (xsk.c:318)\n\nCC: Magnus Karlsson \u003cmagnus.karlsson@intel.com\u003e\nFixes: 1cad07884239 (\"libbpf: add support for using AF_XDP sockets\")\nSigned-off-by: Ilya Maximets \u003ci.maximets@samsung.com\u003e\nAcked-by: Andrii Nakryiko \u003candriin@fb.com\u003e\nSigned-off-by: Alexei Starovoitov \u003cast@kernel.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5007b5d4fd2c51186a554fb03893dcabd7bef381",
      "old_mode": 33188,
      "old_path": "src/xsk.c",
      "new_id": "e02025bbe36ddb69621461e4e0cfaa8ed1f66a14",
      "new_mode": 33188,
      "new_path": "src/xsk.c"
    }
  ]
}
