)]}'
{
  "commit": "ec938cf6bd74a44a16f652c5804772d352831f81",
  "tree": "3aeda472c6e9d736d42a86f3ffbee30bac1a2fad",
  "parents": [
    "d64c482471b59b96cca09305b8914b599abdf59b"
  ],
  "author": {
    "name": "Jens Axboe",
    "email": "axboe@kernel.dk",
    "time": "Thu Dec 18 15:21:28 2025 -0700"
  },
  "committer": {
    "name": "Jens Axboe",
    "email": "axboe@kernel.dk",
    "time": "Fri Apr 03 16:18:56 2026 -0600"
  },
  "message": "af_unix: don\u0027t post cmsg for SO_INQ unless explicitly asked for\n\ncommit 4d1442979e4a53b9457ce1e373e187e1511ff688 upstream.\n\nA previous commit added SO_INQ support for AF_UNIX (SOCK_STREAM), but it\nposts a SCM_INQ cmsg even if just msg-\u003emsg_get_inq is set. This is\nincorrect, as -\u003emsg_get_inq is just the caller asking for the remainder\nto be passed back in msg-\u003emsg_inq, it has nothing to do with cmsg. The\noriginal commit states that this is done to make sockets\nio_uring-friendly\", but it\u0027s actually incorrect as io_uring doesn\u0027t use\ncmsg headers internally at all, and it\u0027s actively wrong as this means\nthat cmsg\u0027s are always posted if someone does recvmsg via io_uring.\n\nFix that up by only posting a cmsg if u-\u003erecvmsg_inq is set.\n\nAdditionally, mirror how TCP handles inquiry handling in that it should\nonly be done for a successful return. This makes the logic for the two\nidentical.\n\nCc: stable@vger.kernel.org\nFixes: df30285b3670 (\"af_unix: Introduce SO_INQ.\")\nReported-by: Julian Orth \u003cju.orth@gmail.com\u003e\nLink: https://github.com/axboe/liburing/issues/1509\nSigned-off-by: Jens Axboe \u003caxboe@kernel.dk\u003e\nReviewed-by: Willem de Bruijn \u003cwillemb@google.com\u003e\nLink: https://patch.msgid.link/07adc0c2-2c3b-4d08-8af1-1c466a40b6a8@kernel.dk\nSigned-off-by: Paolo Abeni \u003cpabeni@redhat.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0f288a80e0acd7da14f8bdfef614c3e9e7dcc7ac",
      "old_mode": 33188,
      "old_path": "net/unix/af_unix.c",
      "new_id": "c2da29558c2b28ced2e23b30fe06be71d2574690",
      "new_mode": 33188,
      "new_path": "net/unix/af_unix.c"
    }
  ]
}
