{"$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json",
 "version": "2.1.0",
 "runs": [{"tool": {"driver": {"name": "GNU C23",
                               "fullName": "GNU C23 (GCC) version 16.1.1 20260703 (Red Hat 16.1.1-4) (x86_64-redhat-linux)",
                               "version": "16.1.1 20260703 (Red Hat 16.1.1-4)",
                               "informationUri": "https://gcc.gnu.org/gcc-16/",
                               "rules": [{"id": "-Wanalyzer-null-dereference",
                                          "helpUri": "https://gcc.gnu.org/onlinedocs/gcc-16.1.0/gcc/Static-Analyzer-Options.html#index-Wanalyzer-null-dereference"}]}},
           "taxonomies": [{"name": "CWE",
                           "version": "4.7",
                           "organization": "MITRE",
                           "shortDescription": {"text": "The MITRE Common Weakness Enumeration"},
                           "taxa": [{"id": "476",
                                     "helpUri": "https://cwe.mitre.org/data/definitions/476.html"}]}],
           "invocations": [{"arguments": ["/usr/libexec/gcc/x86_64-redhat-linux/16/cc1",
                                          "-quiet",
                                          "-I",
                                          "include/",
                                          "-D",
                                          "_GNU_SOURCE",
                                          "-D",
                                          "_LARGEFILE_SOURCE",
                                          "-D",
                                          "_FILE_OFFSET_BITS=64",
                                          "-D",
                                          "LIBURING_INTERNAL",
                                          "-include",
                                          "../config-host.h",
                                          "setup.c",
                                          "-quiet",
                                          "-dumpbase",
                                          "setup.c",
                                          "-dumpbase-ext",
                                          ".c",
                                          "-m64",
                                          "-mtune=generic",
                                          "-march=x86-64",
                                          "-mtls-dialect=gnu2",
                                          "-O2",
                                          "-O2",
                                          "-Wno-unused-parameter",
                                          "-Wno-unknown-pragmas",
                                          "-flto=auto",
                                          "-fstack-protector-strong",
                                          "-fcf-protection=full",
                                          "-flto=auto",
                                          "-ffat-lto-objects",
                                          "-fexceptions",
                                          "-fstack-protector-strong",
                                          "-fasynchronous-unwind-tables",
                                          "-fstack-clash-protection",
                                          "-fcf-protection=full",
                                          "-fno-omit-frame-pointer",
                                          "-fanalyzer",
                                          "-fdiagnostics-path-format=separate-events",
                                          "-fno-diagnostics-show-caret",
                                          "-fno-lto",
                                          "-fanalyzer-assume-nothrow",
                                          "-fdiagnostics-text-art-charset=none",
                                          "-fdiagnostics-set-output=sarif:file=/builddir/gcc-results/508-hLcM.sarif",
                                          "-o",
                                          "/tmp/ccIHd5DI.s"],
                            "workingDirectory": {"uri": "/builddir/build/BUILD/liburing-2.13-build/liburing-2.13/src"},
                            "startTimeUtc": "2026-08-03T18:01:33Z",
                            "executionSuccessful": true,
                            "toolExecutionNotifications": [],
                            "endTimeUtc": "2026-08-03T18:01:34Z"}],
           "originalUriBaseIds": {"PWD": {"uri": "file:///builddir/build/BUILD/liburing-2.13-build/liburing-2.13/src/"}},
           "artifacts": [{"location": {"uri": "setup.c",
                                       "uriBaseId": "PWD"},
                          "sourceLanguage": "c",
                          "contents": {"text": "/* SPDX-License-Identifier: MIT */\n#define _DEFAULT_SOURCE\n\n#include \"lib.h\"\n#include \"syscall.h\"\n#include \"liburing.h\"\n#include \"int_flags.h\"\n#include \"setup.h\"\n#include \"liburing/io_uring.h\"\n#include <stdio.h>\n\n#define KERN_MAX_ENTRIES\t32768\n#define KERN_MAX_CQ_ENTRIES\t(2 * KERN_MAX_ENTRIES)\n\nstatic inline int __fls(int x)\n{\n\tif (!x)\n\t\treturn 0;\n\treturn 8 * sizeof(x) - __builtin_clz(x);\n}\n\nstatic unsigned roundup_pow2(unsigned depth)\n{\n\treturn 1U << __fls(depth - 1);\n}\n\nstatic int get_sq_cq_entries(unsigned entries, struct io_uring_params *p,\n\t\t\t     unsigned *sq, unsigned *cq)\n{\n\tunsigned cq_entries;\n\n\tif (!entries)\n\t\treturn -EINVAL;\n\tif (entries > KERN_MAX_ENTRIES) {\n\t\tif (!(p->flags & IORING_SETUP_CLAMP))\n\t\t\treturn -EINVAL;\n\t\tentries = KERN_MAX_ENTRIES;\n\t}\n\n\tentries = roundup_pow2(entries);\n\tif (p->flags & IORING_SETUP_CQSIZE) {\n\t\tif (!p->cq_entries)\n\t\t\treturn -EINVAL;\n\t\tcq_entries = p->cq_entries;\n\t\tif (cq_entries > KERN_MAX_CQ_ENTRIES) {\n\t\t\tif (!(p->flags & IORING_SETUP_CLAMP))\n\t\t\t\treturn -EINVAL;\n\t\t\tcq_entries = KERN_MAX_CQ_ENTRIES;\n\t\t}\n\t\tcq_entries = roundup_pow2(cq_entries);\n\t\tif (cq_entries < entries)\n\t\t\treturn -EINVAL;\n\t} else {\n\t\tcq_entries = 2 * entries;\n\t}\n\n\t*sq = entries;\n\t*cq = cq_entries;\n\treturn 0;\n}\n\nvoid io_uring_unmap_rings(struct io_uring_sq *sq, struct io_uring_cq *cq)\n{\n\tif (sq->ring_sz)\n\t\t__sys_munmap(sq->ring_ptr, sq->ring_sz);\n\tif (cq->ring_ptr && cq->ring_sz && cq->ring_ptr != sq->ring_ptr)\n\t\t__sys_munmap(cq->ring_ptr, cq->ring_sz);\n}\n\nvoid io_uring_setup_ring_pointers(struct io_uring_params *p,\n\t\t\t\t  struct io_uring_sq *sq,\n\t\t\t\t  struct io_uring_cq *cq)\n{\n\tsq->khead = sq->ring_ptr + p->sq_off.head;\n\tsq->ktail = sq->ring_ptr + p->sq_off.tail;\n\tsq->kring_mask = sq->ring_ptr + p->sq_off.ring_mask;\n\tsq->kring_entries = sq->ring_ptr + p->sq_off.ring_entries;\n\tsq->kflags = sq->ring_ptr + p->sq_off.flags;\n\tsq->kdropped = sq->ring_ptr + p->sq_off.dropped;\n\tif (!(p->flags & IORING_SETUP_NO_SQARRAY))\n\t\tsq->array = sq->ring_ptr + p->sq_off.array;\n\n\tcq->khead = cq->ring_ptr + p->cq_off.head;\n\tcq->ktail = cq->ring_ptr + p->cq_off.tail;\n\tcq->kring_mask = cq->ring_ptr + p->cq_off.ring_mask;\n\tcq->kring_entries = cq->ring_ptr + p->cq_off.ring_entries;\n\tcq->koverflow = cq->ring_ptr + p->cq_off.overflow;\n\tcq->cqes = cq->ring_ptr + p->cq_off.cqes;\n\tif (p->cq_off.flags)\n\t\tcq->kflags = cq->ring_ptr + p->cq_off.flags;\n\n\tsq->ring_mask = *sq->kring_mask;\n\tsq->ring_entries = *sq->kring_entries;\n\tcq->ring_mask = *cq->kring_mask;\n\tcq->ring_entries = *cq->kring_entries;\n}\n\nstatic size_t params_sqes_size(const struct io_uring_params *p, unsigned sqes)\n{\n\tsqes <<= io_uring_sqe_shift_from_flags(p->flags);\n\treturn sqes * sizeof(struct io_uring_sqe);\n}\n\nstatic size_t params_cq_size(const struct io_uring_params *p, unsigned cqes)\n{\n\tcqes <<= io_uring_cqe_shift_from_flags(p->flags);\n\treturn cqes * sizeof(struct io_uring_cqe);\n}\n\nint io_uring_mmap(int fd, struct io_uring_params *p, struct io_uring_sq *sq,\n\t\t  struct io_uring_cq *cq)\n{\n\tint ret;\n\n\tsq->ring_sz = p->sq_off.array + p->sq_entries * sizeof(unsigned);\n\tcq->ring_sz = p->cq_off.cqes + params_cq_size(p, p->cq_entries);\n\n\tif (p->features & IORING_FEAT_SINGLE_MMAP) {\n\t\tif (cq->ring_sz > sq->ring_sz)\n\t\t\tsq->ring_sz = cq->ring_sz;\n\t\tcq->ring_sz = sq->ring_sz;\n\t}\n\tsq->ring_ptr = __sys_mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE,\n\t\t\t\t  MAP_SHARED | MAP_POPULATE, fd,\n\t\t\t\t  IORING_OFF_SQ_RING);\n\tif (IS_ERR(sq->ring_ptr))\n\t\treturn PTR_ERR(sq->ring_ptr);\n\n\tif (p->features & IORING_FEAT_SINGLE_MMAP) {\n\t\tcq->ring_ptr = sq->ring_ptr;\n\t} else {\n\t\tcq->ring_ptr = __sys_mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE,\n\t\t\t\t\t  MAP_SHARED | MAP_POPULATE, fd,\n\t\t\t\t\t  IORING_OFF_CQ_RING);\n\t\tif (IS_ERR(cq->ring_ptr)) {\n\t\t\tret = PTR_ERR(cq->ring_ptr);\n\t\t\tcq->ring_ptr = NULL;\n\t\t\tgoto err;\n\t\t}\n\t}\n\n\tsq->sqes = __sys_mmap(0, params_sqes_size(p, p->sq_entries),\n\t\t\t      PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE,\n\t\t\t      fd, IORING_OFF_SQES);\n\tif (IS_ERR(sq->sqes)) {\n\t\tret = PTR_ERR(sq->sqes);\nerr:\n\t\tio_uring_unmap_rings(sq, cq);\n\t\treturn ret;\n\t}\n\n\tio_uring_setup_ring_pointers(p, sq, cq);\n\treturn 0;\n}\n\n/*\n * For users that want to specify sq_thread_cpu or sq_thread_idle, this\n * interface is a convenient helper for mmap()ing the rings.\n * Returns -errno on error, or zero on success.  On success, 'ring'\n * contains the necessary information to read/write to the rings.\n */\n__cold int io_uring_queue_mmap(int fd, struct io_uring_params *p,\n\t\t\t       struct io_uring *ring)\n{\n\tmemset(ring, 0, sizeof(*ring));\n\treturn io_uring_mmap(fd, p, &ring->sq, &ring->cq);\n}\n\nstatic size_t io_uring_sqes_size(const struct io_uring *ring)\n{\n\treturn (ring->sq.ring_entries << io_uring_sqe_shift(ring)) *\n\t       sizeof(struct io_uring_sqe);\n}\n\n/*\n * Ensure that the mmap'ed rings aren't available to a child after a fork(2).\n * This uses madvise(..., MADV_DONTFORK) on the mmap'ed ranges.\n */\n__cold int io_uring_ring_dontfork(struct io_uring *ring)\n{\n\tsize_t len;\n\tint ret;\n\n\tif (!ring->sq.ring_ptr || !ring->sq.sqes || !ring->cq.ring_ptr)\n\t\treturn -EINVAL;\n\n\tlen = io_uring_sqes_size(ring);\n\tret = __sys_madvise(ring->sq.sqes, len, MADV_DONTFORK);\n\tif (ret < 0)\n\t\treturn ret;\n\n\tlen = ring->sq.ring_sz;\n\tret = __sys_madvise(ring->sq.ring_ptr, len, MADV_DONTFORK);\n\tif (ret < 0)\n\t\treturn ret;\n\n\tif (ring->cq.ring_ptr != ring->sq.ring_ptr) {\n\t\tlen = ring->cq.ring_sz;\n\t\tret = __sys_madvise(ring->cq.ring_ptr, len, MADV_DONTFORK);\n\t\tif (ret < 0)\n\t\t\treturn ret;\n\t}\n\n\treturn 0;\n}\n\n/* FIXME */\nstatic size_t huge_page_size = 2 * 1024 * 1024;\n\n#define KRING_SIZE\t64\n\n/*\n * Returns negative for error, or number of bytes used in the buffer on success\n */\nstatic int io_uring_alloc_huge(unsigned entries, struct io_uring_params *p,\n\t\t\t       struct io_uring_sq *sq, struct io_uring_cq *cq,\n\t\t\t       void *buf, size_t buf_size)\n{\n\tunsigned long page_size = get_page_size();\n\tunsigned sq_entries, cq_entries;\n\tsize_t sqes_size = 0, ring_mem, sqes_mem;\n\tunsigned long mem_used = 0;\n\tvoid *ptr;\n\tint ret;\n\n\tret = get_sq_cq_entries(entries, p, &sq_entries, &cq_entries);\n\tif (ret)\n\t\treturn ret;\n\n\tring_mem = KRING_SIZE;\n\n\tsqes_mem = params_sqes_size(p, sq_entries);\n\tif (!(p->flags & IORING_SETUP_NO_SQARRAY))\n\t\tsqes_mem += sq_entries * sizeof(unsigned);\n\tsqes_mem = (sqes_mem + page_size - 1) & ~(page_size - 1);\n\n\tring_mem += sqes_mem + params_cq_size(p, cq_entries);\n\tmem_used = ring_mem;\n\tmem_used = (mem_used + page_size - 1) & ~(page_size - 1);\n\n\t/*\n\t * A maxed-out number of CQ entries with IORING_SETUP_CQE32 fills a 2MB\n\t * huge page by itself, so the SQ entries won't fit in the same huge\n\t * page. For SQEs, that shouldn't be possible given KERN_MAX_ENTRIES,\n\t * but check that too to future-proof (e.g. against different huge page\n\t * sizes). Bail out early so we don't overrun.\n\t */\n\tif (!buf && (sqes_mem > huge_page_size || ring_mem > huge_page_size))\n\t\treturn -ENOMEM;\n\n\tif (buf) {\n\t\tif (mem_used > buf_size)\n\t\t\treturn -ENOMEM;\n\t\tptr = buf;\n\t} else {\n\t\tint map_hugetlb = 0;\n\t\tif (sqes_mem <= page_size)\n\t\t\tbuf_size = page_size;\n\t\telse {\n\t\t\tbuf_size = huge_page_size;\n\t\t\tmap_hugetlb = MAP_HUGETLB;\n\t\t}\n\t\tsqes_size = buf_size;\n\t\tptr = __sys_mmap(NULL, sqes_size, PROT_READ|PROT_WRITE,\n\t\t\t\t\tMAP_SHARED|MAP_ANONYMOUS|map_hugetlb,\n\t\t\t\t\t-1, 0);\n\t\tif (IS_ERR(ptr))\n\t\t\treturn PTR_ERR(ptr);\n\t}\n\n\tsq->sqes = ptr;\n\tif (mem_used <= buf_size) {\n\t\tsq->ring_ptr = (void *) sq->sqes + sqes_mem;\n\t\t/* clear ring sizes, we have just one mmap() to undo */\n\t\tcq->ring_sz = 0;\n\t\tsq->ring_sz = 0;\n\t} else {\n\t\tint map_hugetlb = 0;\n\t\tif (ring_mem <= page_size)\n\t\t\tbuf_size = page_size;\n\t\telse {\n\t\t\tbuf_size = huge_page_size;\n\t\t\tmap_hugetlb = MAP_HUGETLB;\n\t\t}\n\t\tptr = __sys_mmap(NULL, buf_size, PROT_READ|PROT_WRITE,\n\t\t\t\t\tMAP_SHARED|MAP_ANONYMOUS|map_hugetlb,\n\t\t\t\t\t-1, 0);\n\t\tif (IS_ERR(ptr)) {\n\t\t\tif (sqes_size)\n\t\t\t\t__sys_munmap(sq->sqes, sqes_size);\n\t\t\treturn PTR_ERR(ptr);\n\t\t}\n\t\tsq->ring_ptr = ptr;\n\t\tsq->ring_sz = buf_size;\n\t\tcq->ring_sz = 0;\n\t}\n\n\tcq->ring_ptr = (void *) sq->ring_ptr;\n\tp->sq_off.user_addr = (unsigned long) sq->sqes;\n\tp->cq_off.user_addr = (unsigned long) sq->ring_ptr;\n\treturn (int) mem_used;\n}\n\nint __io_uring_queue_init_params(unsigned entries, struct io_uring *ring,\n\t\t\t\t struct io_uring_params *p, void *buf,\n\t\t\t\t size_t buf_size)\n{\n\tint fd, ret = 0;\n\tunsigned *sq_array;\n\tunsigned sq_entries, index;\n\n\tmemset(ring, 0, sizeof(*ring));\n\n\t/*\n\t * The kernel does this check already, but checking it here allows us\n\t * to avoid handling it below.\n\t */\n\tif (p->flags & IORING_SETUP_REGISTERED_FD_ONLY\n\t    && !(p->flags & IORING_SETUP_NO_MMAP))\n\t\treturn -EINVAL;\n\n\tif (p->flags & IORING_SETUP_NO_MMAP) {\n\t\tret = io_uring_alloc_huge(entries, p, &ring->sq, &ring->cq,\n\t\t\t\t\t\tbuf, buf_size);\n\t\tif (ret < 0)\n\t\t\treturn ret;\n\t\tif (buf)\n\t\t\tring->int_flags |= INT_FLAG_APP_MEM;\n\t}\n\n\tfd = __sys_io_uring_setup(entries, p);\n\tif (fd < 0) {\n\t\tif ((p->flags & IORING_SETUP_NO_MMAP) &&\n\t\t    !(ring->int_flags & INT_FLAG_APP_MEM)) {\n\t\t\t__sys_munmap(ring->sq.sqes, ret);\n\t\t\tio_uring_unmap_rings(&ring->sq, &ring->cq);\n\t\t}\n\t\treturn fd;\n\t}\n\n\tif (!(p->flags & IORING_SETUP_NO_MMAP)) {\n\t\tret = io_uring_queue_mmap(fd, p, ring);\n\t\tif (ret) {\n\t\t\t__sys_close(fd);\n\t\t\treturn ret;\n\t\t}\n\t} else {\n\t\tio_uring_setup_ring_pointers(p, &ring->sq, &ring->cq);\n\t}\n\n\t/*\n\t * Directly map SQ slots to SQEs\n\t */\n\tsq_entries = ring->sq.ring_entries;\n\n\tif (!(p->flags & IORING_SETUP_NO_SQARRAY)) {\n\t\tsq_array = ring->sq.array;\n\t\tfor (index = 0; index < sq_entries; index++)\n\t\t\tsq_array[index] = index;\n\t}\n\tring->features = p->features;\n\tring->flags = p->flags;\n\tring->enter_ring_fd = fd;\n\tif (p->flags & IORING_SETUP_REGISTERED_FD_ONLY) {\n\t\tring->ring_fd = -1;\n\t\tring->int_flags |= INT_FLAG_REG_RING | INT_FLAG_REG_REG_RING;\n\t} else {\n\t\tring->ring_fd = fd;\n\t}\n\t/*\n\t * IOPOLL always needs to enter, except if SQPOLL is set as well.\n\t * Use an internal flag to check for this.\n\t */\n\tif ((ring->flags & (IORING_SETUP_IOPOLL|IORING_SETUP_SQPOLL)) ==\n\t\t\tIORING_SETUP_IOPOLL)\n\t\tring->int_flags |= INT_FLAG_CQ_ENTER;\n\n\treturn ret;\n}\n\nstatic int io_uring_queue_init_try_nosqarr(unsigned entries, struct io_uring *ring,\n\t\t\t\t\t   struct io_uring_params *p, void *buf,\n\t\t\t\t\t   size_t buf_size)\n{\n\tunsigned flags = p->flags;\n\tint ret;\n\n\tp->flags |= IORING_SETUP_NO_SQARRAY;\n\tret = __io_uring_queue_init_params(entries, ring, p, buf, buf_size);\n\n\t/* don't fallback if explicitly asked for NOSQARRAY */\n\tif (ret != -EINVAL || (flags & IORING_SETUP_NO_SQARRAY))\n\t\treturn ret;\n\n\tp->flags = flags;\n\treturn __io_uring_queue_init_params(entries, ring, p, buf, buf_size);\n}\n\n/*\n * Like io_uring_queue_init_params(), except it allows the application to pass\n * in a pre-allocated memory range that is used for the shared data between\n * the kernel and the application. This includes the sqes array, and the two\n * rings. The memory must be contiguous, the use case here is that the app\n * allocates a huge page and passes it in.\n *\n * Returns the number of bytes used in the buffer, the app can then reuse\n * the buffer with the returned offset to put more rings in the same huge\n * page. Returns -ENOMEM if there's not enough room left in the buffer to\n * host the ring.\n */\nint io_uring_queue_init_mem(unsigned entries, struct io_uring *ring,\n\t\t\t    struct io_uring_params *p,\n\t\t\t    void *buf, size_t buf_size)\n{\n\t/* should already be set... */\n\tp->flags |= IORING_SETUP_NO_MMAP;\n\treturn io_uring_queue_init_try_nosqarr(entries, ring, p, buf, buf_size);\n}\n\nint io_uring_queue_init_params(unsigned entries, struct io_uring *ring,\n\t\t\t       struct io_uring_params *p)\n{\n\tint ret;\n\n\tret = io_uring_queue_init_try_nosqarr(entries, ring, p, NULL, 0);\n\treturn ret >= 0 ? 0 : ret;\n}\n\n/*\n * Returns -errno on error, or zero on success. On success, 'ring'\n * contains the necessary information to read/write to the rings.\n */\n__cold int io_uring_queue_init(unsigned entries, struct io_uring *ring,\n\t\t\t       unsigned flags)\n{\n\tstruct io_uring_params p;\n\n\tmemset(&p, 0, sizeof(p));\n\tp.flags = flags;\n\n\treturn io_uring_queue_init_params(entries, ring, &p);\n}\n\n__cold void io_uring_queue_exit(struct io_uring *ring)\n{\n\tstruct io_uring_sq *sq = &ring->sq;\n\tstruct io_uring_cq *cq = &ring->cq;\n\n\tif (!(ring->int_flags & INT_FLAG_APP_MEM)) {\n\t\t__sys_munmap(sq->sqes, io_uring_sqes_size(ring));\n\t\tio_uring_unmap_rings(sq, cq);\n\t}\n\n\t/*\n\t * Not strictly required, but frees up the slot we used now rather\n\t * than at process exit time.\n\t */\n\tif (ring->int_flags & INT_FLAG_REG_RING)\n\t\tio_uring_unregister_ring_fd(ring);\n\tif (ring->ring_fd != -1)\n\t\t__sys_close(ring->ring_fd);\n}\n\n__cold struct io_uring_probe *io_uring_get_probe_ring(struct io_uring *ring)\n{\n\tstruct io_uring_probe *probe;\n\tsize_t len;\n\tint r;\n\n\tlen = sizeof(*probe) + 256 * sizeof(struct io_uring_probe_op);\n\tprobe = malloc(len);\n\tif (!probe)\n\t\treturn NULL;\n\tmemset(probe, 0, len);\n\n\tr = io_uring_register_probe(ring, probe, 256);\n\tif (r >= 0)\n\t\treturn probe;\n\n\tfree(probe);\n\treturn NULL;\n}\n\n__cold struct io_uring_probe *io_uring_get_probe(void)\n{\n\tstruct io_uring ring;\n\tstruct io_uring_probe *probe;\n\tint r;\n\n\tr = io_uring_queue_init(2, &ring, 0);\n\tif (r < 0)\n\t\treturn NULL;\n\n\tprobe = io_uring_get_probe_ring(&ring);\n\tio_uring_queue_exit(&ring);\n\treturn probe;\n}\n\n__cold void io_uring_free_probe(struct io_uring_probe *probe)\n{\n\tfree(probe);\n}\n\nstatic size_t rings_size(struct io_uring_params *p, unsigned entries,\n\t\t\t unsigned cq_entries, long page_size)\n{\n\tsize_t pages, sq_size, cq_size;\n\n\t/*\n\t * CQ ring size is number of pages that we need for the\n\t * struct io_uring_cqe entries, which may be 16b (default) or\n\t * 32b if the ring is setup with IORING_SETUP_CQE32. We also need\n\t * room for the head/tail parts.\n\t */\n\tcq_size = params_cq_size(p, cq_entries);\n\tcq_size += KRING_SIZE;\n\tcq_size = (cq_size + page_size - 1) & ~(page_size - 1);\n\tpages = (size_t) cq_size / page_size;\n\n\tsq_size = params_sqes_size(p, entries);\n\tsq_size = (sq_size + page_size - 1) & ~(page_size - 1);\n\tpages += sq_size / page_size;\n\treturn pages * page_size;\n}\n\nssize_t io_uring_memory_size_params(unsigned entries, struct io_uring_params *p)\n{\n\tunsigned sq, cq;\n\tlong page_size;\n\tssize_t ret;\n\n\tif (!entries)\n\t\treturn -EINVAL;\n\tif (entries > KERN_MAX_ENTRIES) {\n\t\tif (!(p->flags & IORING_SETUP_CLAMP))\n\t\t\treturn -EINVAL;\n\t\tentries = KERN_MAX_ENTRIES;\n\t}\n\n\tret = get_sq_cq_entries(entries, p, &sq, &cq);\n\tif (ret)\n\t\treturn ret;\n\n\tpage_size = get_page_size();\n\treturn rings_size(p, sq, cq, page_size);\n}\n\nssize_t io_uring_memory_size(unsigned entries, unsigned ring_flags)\n{\n\tstruct io_uring_params p = { .flags = ring_flags, };\n\n\treturn io_uring_memory_size_params(entries, &p);\n}\n\n/*\n * Return the required ulimit -l memlock memory required for a given ring\n * setup, in bytes. May return -errno on error. On newer (5.12+) kernels,\n * io_uring no longer requires any memlock memory, and hence this function\n * will return 0 for that case. On older (5.11 and prior) kernels, this will\n * return the required memory so that the caller can ensure that enough space\n * is available before setting up a ring with the specified parameters.\n */\n__cold ssize_t io_uring_mlock_size_params(unsigned entries,\n\t\t\t\t\t  struct io_uring_params *p)\n{\n\tstruct io_uring_params lp;\n\tstruct io_uring ring;\n\tssize_t ret;\n\n\tmemset(&lp, 0, sizeof(lp));\n\n\t/*\n\t * We only really use this inited ring to see if the kernel is newer\n\t * or not. Newer kernels don't require memlocked memory. If we fail,\n\t * it's most likely because it's an older kernel and we have no\n\t * available memlock space. Just continue on, lp.features will still\n\t * be zeroed at this point and we'll do the right thing.\n\t */\n\tret = io_uring_queue_init_params(entries, &ring, &lp);\n\tif (!ret)\n\t\tio_uring_queue_exit(&ring);\n\n\t/*\n\t * Native workers imply using cgroup memory accounting, and hence no\n\t * memlock memory is needed for the ring allocations.\n\t */\n\tif (lp.features & IORING_FEAT_NATIVE_WORKERS)\n\t\treturn 0;\n\n\treturn io_uring_memory_size_params(entries, p);\n}\n\n/*\n * Return required ulimit -l memory space for a given ring setup. See\n * @io_uring_mlock_size_params().\n */\n__cold ssize_t io_uring_mlock_size(unsigned entries, unsigned flags)\n{\n\tstruct io_uring_params p;\n\n\tmemset(&p, 0, sizeof(p));\n\tp.flags = flags;\n\treturn io_uring_mlock_size_params(entries, &p);\n}\n\n#if defined(__hppa__)\nstatic struct io_uring_buf_ring *br_setup(struct io_uring *ring,\n\t\t\t\t\t  unsigned int nentries, int bgid,\n\t\t\t\t\t  unsigned int flags, int *err)\n{\n\tstruct io_uring_buf_ring *br;\n\tstruct io_uring_buf_reg reg;\n\tsize_t ring_size;\n\toff_t off;\n\tint lret;\n\n\tmemset(&reg, 0, sizeof(reg));\n\treg.ring_entries = nentries;\n\treg.bgid = bgid;\n\treg.flags = IOU_PBUF_RING_MMAP;\n\n\t*err = 0;\n\tlret = io_uring_register_buf_ring(ring, &reg, flags);\n\tif (lret) {\n\t\t*err = lret;\n\t\treturn NULL;\n\t}\n\n\toff = IORING_OFF_PBUF_RING | (unsigned long long) bgid << IORING_OFF_PBUF_SHIFT;\n\tring_size = nentries * sizeof(struct io_uring_buf);\n\tbr = __sys_mmap(NULL, ring_size, PROT_READ | PROT_WRITE,\n\t\t\tMAP_SHARED | MAP_POPULATE, ring->ring_fd, off);\n\tif (IS_ERR(br)) {\n\t\t*err = PTR_ERR(br);\n\t\tio_uring_unregister_buf_ring(ring, bgid);\n\t\treturn NULL;\n\t}\n\n\treturn br;\n}\n#else\nstatic struct io_uring_buf_ring *br_setup(struct io_uring *ring,\n\t\t\t\t\t  unsigned int nentries, int bgid,\n\t\t\t\t\t  unsigned int flags, int *err)\n{\n\tstruct io_uring_buf_ring *br;\n\tstruct io_uring_buf_reg reg;\n\tsize_t ring_size;\n\tint lret;\n\n\tmemset(&reg, 0, sizeof(reg));\n\tring_size = nentries * sizeof(struct io_uring_buf);\n\tbr = __sys_mmap(NULL, ring_size, PROT_READ | PROT_WRITE,\n\t\t\tMAP_ANONYMOUS | MAP_PRIVATE, -1, 0);\n\tif (IS_ERR(br)) {\n\t\t*err = PTR_ERR(br);\n\t\treturn NULL;\n\t}\n\n\treg.ring_addr = (unsigned long) (uintptr_t) br;\n\treg.ring_entries = nentries;\n\treg.bgid = bgid;\n\n\t*err = 0;\n\tlret = io_uring_register_buf_ring(ring, &reg, flags);\n\tif (lret) {\n\t\t__sys_munmap(br, ring_size);\n\t\t*err = lret;\n\t\tbr = NULL;\n\t}\n\n\treturn br;\n}\n#endif\n\nstruct io_uring_buf_ring *io_uring_setup_buf_ring(struct io_uring *ring,\n\t\t\t\t\t\t  unsigned int nentries,\n\t\t\t\t\t\t  int bgid, unsigned int flags,\n\t\t\t\t\t\t  int *err)\n{\n\tstruct io_uring_buf_ring *br;\n\n\tbr = br_setup(ring, nentries, bgid, flags, err);\n\tif (br)\n\t\tio_uring_buf_ring_init(br);\n\n\treturn br;\n}\n\nint io_uring_free_buf_ring(struct io_uring *ring, struct io_uring_buf_ring *br,\n\t\t\t   unsigned int nentries, int bgid)\n{\n\tint ret;\n\n\tret = io_uring_unregister_buf_ring(ring, bgid);\n\tif (ret)\n\t\treturn ret;\n\n\t__sys_munmap(br, nentries * sizeof(struct io_uring_buf));\n\treturn 0;\n}\n"},
                          "roles": ["analysisTarget",
                                    "tracedFile"]},
                         {"location": {"uri": "arch/x86/../syscall-defs.h",
                                       "uriBaseId": "PWD"},
                          "sourceLanguage": "c",
                          "contents": {"text": "/* SPDX-License-Identifier: MIT */\n\n#ifndef LIBURING_ARCH_SYSCALL_DEFS_H\n#define LIBURING_ARCH_SYSCALL_DEFS_H\n\n#include <fcntl.h>\n\nstatic inline int __sys_open(const char *pathname, int flags, mode_t mode)\n{\n\t/*\n\t * Some architectures don't have __NR_open, but __NR_openat.\n\t */\n#ifdef __NR_open\n\treturn (int) __do_syscall3(__NR_open, pathname, flags, mode);\n#else\n\treturn (int) __do_syscall4(__NR_openat, AT_FDCWD, pathname, flags, mode);\n#endif\n}\n\nstatic inline ssize_t __sys_read(int fd, void *buffer, size_t size)\n{\n\treturn (ssize_t) __do_syscall3(__NR_read, fd, buffer, size);\n}\n\nstatic inline void *__sys_mmap(void *addr, size_t length, int prot, int flags,\n\t\t\t       int fd, off_t offset)\n{\n\tint nr;\n\n#if defined(__NR_mmap2)\n\tnr = __NR_mmap2;\n\toffset >>= 12;\n#else\n\tnr = __NR_mmap;\n#endif\n\treturn (void *) __do_syscall6(nr, addr, length, prot, flags, fd, offset);\n}\n\nstatic inline int __sys_munmap(void *addr, size_t length)\n{\n\treturn (int) __do_syscall2(__NR_munmap, addr, length);\n}\n\nstatic inline int __sys_madvise(void *addr, size_t length, int advice)\n{\n\treturn (int) __do_syscall3(__NR_madvise, addr, length, advice);\n}\n\nstatic inline int __sys_getrlimit(int resource, struct rlimit *rlim)\n{\n\treturn (int) __do_syscall2(__NR_getrlimit, resource, rlim);\n}\n\nstatic inline int __sys_setrlimit(int resource, const struct rlimit *rlim)\n{\n\treturn (int) __do_syscall2(__NR_setrlimit, resource, rlim);\n}\n\nstatic inline int __sys_close(int fd)\n{\n\treturn (int) __do_syscall1(__NR_close, fd);\n}\n\nstatic inline int __sys_io_uring_register(unsigned int fd, unsigned int opcode,\n\t\t\t\t\t  const void *arg, unsigned int nr_args)\n{\n\treturn (int) __do_syscall4(__NR_io_uring_register, fd, opcode, arg,\n\t\t\t\t   nr_args);\n}\n\nstatic inline int __sys_io_uring_setup(unsigned int entries,\n\t\t\t\t       struct io_uring_params *p)\n{\n\treturn (int) __do_syscall2(__NR_io_uring_setup, entries, p);\n}\n\nstatic inline int __sys_io_uring_enter2(unsigned int fd, unsigned int to_submit,\n\t\t\t\t\tunsigned int min_complete,\n\t\t\t\t\tunsigned int flags, void *arg,\n\t\t\t\t\tsize_t sz)\n{\n\treturn (int) __do_syscall6(__NR_io_uring_enter, fd, to_submit,\n\t\t\t\t   min_complete, flags, arg, sz);\n}\n\nstatic inline int __sys_io_uring_enter(unsigned int fd, unsigned int to_submit,\n\t\t\t\t       unsigned int min_complete,\n\t\t\t\t       unsigned int flags, sigset_t *sig)\n{\n\treturn __sys_io_uring_enter2(fd, to_submit, min_complete, flags, sig,\n\t\t\t\t     _NSIG / 8);\n}\n\n#endif\n"},
                          "roles": ["tracedFile"]},
                         {"location": {"uri": "syscall.h",
                                       "uriBaseId": "PWD"},
                          "sourceLanguage": "c"}],
           "results": [{"ruleId": "-Wanalyzer-null-dereference",
                        "taxa": [{"id": "476",
                                  "toolComponent": {"name": "cwe"}}],
                        "properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                       "gcc/analyzer/saved_diagnostic/ploc": {"enode": 842},
                                       "gcc/analyzer/saved_diagnostic/var": "_24",
                                       "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                       "gcc/analyzer/saved_diagnostic/state": "null",
                                       "gcc/analyzer/saved_diagnostic/idx": 2,
                                       "gcc/analyzer/saved_diagnostic/duplicates": [{"properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                                                                                    "gcc/analyzer/saved_diagnostic/ploc": {"enode": 831},
                                                                                                    "gcc/analyzer/saved_diagnostic/var": "_24",
                                                                                                    "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                                                                                    "gcc/analyzer/saved_diagnostic/state": "null",
                                                                                                    "gcc/analyzer/saved_diagnostic/idx": 1,
                                                                                                    "gcc/analyzer/pending_diagnostic/kind": "null_deref"}},
                                                                                    {"properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                                                                                    "gcc/analyzer/saved_diagnostic/ploc": {"enode": 818},
                                                                                                    "gcc/analyzer/saved_diagnostic/var": "_24",
                                                                                                    "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                                                                                    "gcc/analyzer/saved_diagnostic/state": "null",
                                                                                                    "gcc/analyzer/saved_diagnostic/idx": 0,
                                                                                                    "gcc/analyzer/pending_diagnostic/kind": "null_deref"}},
                                                                                    {"properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                                                                                    "gcc/analyzer/saved_diagnostic/ploc": {"enode": 1753},
                                                                                                    "gcc/analyzer/saved_diagnostic/var": "_24",
                                                                                                    "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                                                                                    "gcc/analyzer/saved_diagnostic/state": "null",
                                                                                                    "gcc/analyzer/saved_diagnostic/idx": 3,
                                                                                                    "gcc/analyzer/pending_diagnostic/kind": "null_deref"}},
                                                                                    {"properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                                                                                    "gcc/analyzer/saved_diagnostic/ploc": {"enode": 1766},
                                                                                                    "gcc/analyzer/saved_diagnostic/var": "_24",
                                                                                                    "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                                                                                    "gcc/analyzer/saved_diagnostic/state": "null",
                                                                                                    "gcc/analyzer/saved_diagnostic/idx": 4,
                                                                                                    "gcc/analyzer/pending_diagnostic/kind": "null_deref"}},
                                                                                    {"properties": {"gcc/analyzer/saved_diagnostic/sm": "malloc",
                                                                                                    "gcc/analyzer/saved_diagnostic/ploc": {"enode": 1777},
                                                                                                    "gcc/analyzer/saved_diagnostic/var": "_24",
                                                                                                    "gcc/analyzer/saved_diagnostic/sval": "(unsigned int *)0B",
                                                                                                    "gcc/analyzer/saved_diagnostic/state": "null",
                                                                                                    "gcc/analyzer/saved_diagnostic/idx": 5,
                                                                                                    "gcc/analyzer/pending_diagnostic/kind": "null_deref"}}],
                                       "gcc/analyzer/pending_diagnostic/kind": "null_deref"},
                        "level": "warning",
                        "message": {"text": "dereference of NULL ‘sq_array’"},
                        "locations": [{"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                 "uriBaseId": "PWD"},
                                                            "region": {"startLine": 359,
                                                                       "startColumn": 25,
                                                                       "endColumn": 48},
                                                            "contextRegion": {"startLine": 359,
                                                                              "snippet": {"text": "\t\t\tsq_array[index] = index;\n"}}},
                                       "logicalLocations": [{"index": 0,
                                                             "fullyQualifiedName": "__io_uring_queue_init_params"}]}],
                        "codeFlows": [{"threadFlows": [{"id": "main",
                                                        "locations": [{"properties": {"gcc/analyzer/checker_event/emission_id": "(1)",
                                                                                      "gcc/analyzer/checker_event/kind": "function_entry"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 597,
                                                                                                                    "startColumn": 16,
                                                                                                                    "endColumn": 35},
                                                                                                         "contextRegion": {"startLine": 597,
                                                                                                                           "snippet": {"text": "__cold ssize_t io_uring_mlock_size(unsigned entries, unsigned flags)\n"}}},
                                                                                    "logicalLocations": [{"index": 1,
                                                                                                          "fullyQualifiedName": "io_uring_mlock_size"}],
                                                                                    "message": {"text": "entry to ‘io_uring_mlock_size’"}},
                                                                       "kinds": ["enter",
                                                                                 "function"],
                                                                       "nestingLevel": 1,
                                                                       "executionOrder": 1},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(2)",
                                                                                      "gcc/analyzer/checker_event/kind": "call",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 59,
                                                                                                                                 "dst_id": 60}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 603,
                                                                                                                    "startColumn": 16,
                                                                                                                    "endColumn": 55},
                                                                                                         "contextRegion": {"startLine": 603,
                                                                                                                           "snippet": {"text": "\treturn io_uring_mlock_size_params(entries, &p);\n"}}},
                                                                                    "logicalLocations": [{"index": 1,
                                                                                                          "fullyQualifiedName": "io_uring_mlock_size"}],
                                                                                    "message": {"text": "calling ‘io_uring_mlock_size_params’ from ‘io_uring_mlock_size’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 1,
                                                                       "executionOrder": 2},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(3)",
                                                                                      "gcc/analyzer/checker_event/kind": "function_entry"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 563,
                                                                                                                    "startColumn": 16,
                                                                                                                    "endColumn": 42},
                                                                                                         "contextRegion": {"startLine": 563,
                                                                                                                           "snippet": {"text": "__cold ssize_t io_uring_mlock_size_params(unsigned entries,\n"}}},
                                                                                    "logicalLocations": [{"index": 2,
                                                                                                          "fullyQualifiedName": "io_uring_mlock_size_params"}],
                                                                                    "message": {"text": "entry to ‘io_uring_mlock_size_params’"}},
                                                                       "kinds": ["enter",
                                                                                 "function"],
                                                                       "nestingLevel": 2,
                                                                       "executionOrder": 3},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(4)",
                                                                                      "gcc/analyzer/checker_event/kind": "inlined_call"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 579,
                                                                                                                    "startColumn": 15,
                                                                                                                    "endColumn": 16},
                                                                                                         "contextRegion": {"startLine": 579,
                                                                                                                           "snippet": {"text": "\tret = io_uring_queue_init_params(entries, &ring, &lp);\n"}}},
                                                                                    "logicalLocations": [{"index": 2,
                                                                                                          "fullyQualifiedName": "io_uring_mlock_size_params"}],
                                                                                    "message": {"text": "inlined call to ‘io_uring_queue_init_params’ from ‘io_uring_mlock_size_params’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 2,
                                                                       "executionOrder": 4},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(5)",
                                                                                      "gcc/analyzer/checker_event/kind": "call",
                                                                                      "gcc/analyzer/checker_event/original_fndecl": {"index": 2,
                                                                                                                                     "fullyQualifiedName": "io_uring_mlock_size_params"},
                                                                                      "gcc/analyzer/checker_event/original_depth": 2,
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 66,
                                                                                                                                 "dst_id": 67}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 425,
                                                                                                                    "startColumn": 15,
                                                                                                                    "endColumn": 73},
                                                                                                         "contextRegion": {"startLine": 425,
                                                                                                                           "snippet": {"text": "\tret = io_uring_queue_init_try_nosqarr(entries, ring, p, NULL, 0);\n"}}},
                                                                                    "logicalLocations": [{"index": 3,
                                                                                                          "fullyQualifiedName": "io_uring_queue_init_params"}],
                                                                                    "message": {"text": "calling ‘io_uring_queue_init_try_nosqarr’ from ‘io_uring_mlock_size_params’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 3,
                                                                       "executionOrder": 5},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(6)",
                                                                                      "gcc/analyzer/checker_event/kind": "function_entry"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 381,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 43},
                                                                                                         "contextRegion": {"startLine": 381,
                                                                                                                           "snippet": {"text": "static int io_uring_queue_init_try_nosqarr(unsigned entries, struct io_uring *ring,\n"}}},
                                                                                    "logicalLocations": [{"index": 4,
                                                                                                          "fullyQualifiedName": "io_uring_queue_init_try_nosqarr"}],
                                                                                    "message": {"text": "entry to ‘io_uring_queue_init_try_nosqarr’"}},
                                                                       "kinds": ["enter",
                                                                                 "function"],
                                                                       "nestingLevel": 3,
                                                                       "executionOrder": 6},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(7)",
                                                                                      "gcc/analyzer/checker_event/kind": "call",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 250,
                                                                                                                                 "dst_id": 251}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 389,
                                                                                                                    "startColumn": 15,
                                                                                                                    "endColumn": 76},
                                                                                                         "contextRegion": {"startLine": 389,
                                                                                                                           "snippet": {"text": "\tret = __io_uring_queue_init_params(entries, ring, p, buf, buf_size);\n"}}},
                                                                                    "logicalLocations": [{"index": 4,
                                                                                                          "fullyQualifiedName": "io_uring_queue_init_try_nosqarr"}],
                                                                                    "message": {"text": "calling ‘__io_uring_queue_init_params’ from ‘io_uring_queue_init_try_nosqarr’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 3,
                                                                       "executionOrder": 7},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(8)",
                                                                                      "gcc/analyzer/checker_event/kind": "function_entry"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 304,
                                                                                                                    "startColumn": 5,
                                                                                                                    "endColumn": 33},
                                                                                                         "contextRegion": {"startLine": 304,
                                                                                                                           "snippet": {"text": "int __io_uring_queue_init_params(unsigned entries, struct io_uring *ring,\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "entry to ‘__io_uring_queue_init_params’"}},
                                                                       "kinds": ["enter",
                                                                                 "function"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 8},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(9)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 268,
                                                                                                                                 "dst_id": 272}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 318,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 318,
                                                                                                                           "snippet": {"text": "\tif (p->flags & IORING_SETUP_REGISTERED_FD_ONLY\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 9},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(10)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 268,
                                                                                                                                 "dst_id": 272}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 322,
                                                                                                                    "startColumn": 13,
                                                                                                                    "endColumn": 25},
                                                                                                         "contextRegion": {"startLine": 322,
                                                                                                                           "snippet": {"text": "\tif (p->flags & IORING_SETUP_NO_MMAP) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 10},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(11)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 275,
                                                                                                                                 "dst_id": 276}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 322,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 322,
                                                                                                                           "snippet": {"text": "\tif (p->flags & IORING_SETUP_NO_MMAP) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 11},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(12)",
                                                                                      "gcc/analyzer/checker_event/kind": "inlined_call"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 331,
                                                                                                                    "startColumn": 14,
                                                                                                                    "endColumn": 15},
                                                                                                         "contextRegion": {"startLine": 331,
                                                                                                                           "snippet": {"text": "\tfd = __sys_io_uring_setup(entries, p);\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "inlined call to ‘__sys_io_uring_setup’ from ‘__io_uring_queue_init_params’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 12},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(13)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/checker_event/original_fndecl": {"index": 0,
                                                                                                                                     "fullyQualifiedName": "__io_uring_queue_init_params"},
                                                                                      "gcc/analyzer/checker_event/original_depth": 4,
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 275,
                                                                                                                                 "dst_id": 276}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "arch/x86/../syscall-defs.h",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 74,
                                                                                                                    "startColumn": 22,
                                                                                                                    "endColumn": 23},
                                                                                                         "contextRegion": {"startLine": 74,
                                                                                                                           "snippet": {"text": "\treturn (int) __do_syscall2(__NR_io_uring_setup, entries, p);\n"}}},
                                                                                    "logicalLocations": [{"index": 5,
                                                                                                          "fullyQualifiedName": "__sys_io_uring_setup"}],
                                                                                    "message": {"text": "...to here"},
                                                                                    "id": 0,
                                                                                    "relationships": [{"target": 1,
                                                                                                       "kinds": ["isIncludedBy"]}]},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 13},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(14)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 293,
                                                                                                                                 "dst_id": 309}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 332,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 332,
                                                                                                                           "snippet": {"text": "\tif (fd < 0) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 14},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(15)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 293,
                                                                                                                                 "dst_id": 309}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 341,
                                                                                                                    "startColumn": 15,
                                                                                                                    "endColumn": 23},
                                                                                                         "contextRegion": {"startLine": 341,
                                                                                                                           "snippet": {"text": "\tif (!(p->flags & IORING_SETUP_NO_MMAP)) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 15},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(16)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 311,
                                                                                                                                 "dst_id": 317}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 341,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 341,
                                                                                                                           "snippet": {"text": "\tif (!(p->flags & IORING_SETUP_NO_MMAP)) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 16},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(17)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 311,
                                                                                                                                 "dst_id": 317}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 348,
                                                                                                                    "startColumn": 17,
                                                                                                                    "endColumn": 70},
                                                                                                         "contextRegion": {"startLine": 348,
                                                                                                                           "snippet": {"text": "\t\tio_uring_setup_ring_pointers(p, &ring->sq, &ring->cq);\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 17},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(18)",
                                                                                      "gcc/analyzer/checker_event/kind": "call",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 319,
                                                                                                                                 "dst_id": 320}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 348,
                                                                                                                    "startColumn": 17,
                                                                                                                    "endColumn": 70},
                                                                                                         "contextRegion": {"startLine": 348,
                                                                                                                           "snippet": {"text": "\t\tio_uring_setup_ring_pointers(p, &ring->sq, &ring->cq);\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "calling ‘io_uring_setup_ring_pointers’ from ‘__io_uring_queue_init_params’"}},
                                                                       "kinds": ["call",
                                                                                 "function"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 18},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(19)",
                                                                                      "gcc/analyzer/checker_event/kind": "function_entry"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 70,
                                                                                                                    "startColumn": 6,
                                                                                                                    "endColumn": 34},
                                                                                                         "contextRegion": {"startLine": 70,
                                                                                                                           "snippet": {"text": "void io_uring_setup_ring_pointers(struct io_uring_params *p,\n"}}},
                                                                                    "logicalLocations": [{"index": 6,
                                                                                                          "fullyQualifiedName": "io_uring_setup_ring_pointers"}],
                                                                                    "message": {"text": "entry to ‘io_uring_setup_ring_pointers’"}},
                                                                       "kinds": ["enter",
                                                                                 "function"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 19},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(20)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 683,
                                                                                                                                 "dst_id": 689}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 80,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 80,
                                                                                                                           "snippet": {"text": "\tif (!(p->flags & IORING_SETUP_NO_SQARRAY))\n"}}},
                                                                                    "logicalLocations": [{"index": 6,
                                                                                                          "fullyQualifiedName": "io_uring_setup_ring_pointers"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 20},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(21)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 683,
                                                                                                                                 "dst_id": 689}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 83,
                                                                                                                    "startColumn": 21,
                                                                                                                    "endColumn": 33},
                                                                                                         "contextRegion": {"startLine": 83,
                                                                                                                           "snippet": {"text": "\tcq->khead = cq->ring_ptr + p->cq_off.head;\n"}}},
                                                                                    "logicalLocations": [{"index": 6,
                                                                                                          "fullyQualifiedName": "io_uring_setup_ring_pointers"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 21},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(22)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 717,
                                                                                                                                 "dst_id": 722}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 89,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 89,
                                                                                                                           "snippet": {"text": "\tif (p->cq_off.flags)\n"}}},
                                                                                    "logicalLocations": [{"index": 6,
                                                                                                          "fullyQualifiedName": "io_uring_setup_ring_pointers"}],
                                                                                    "message": {"text": "following ‘false’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 22},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(23)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 717,
                                                                                                                                 "dst_id": 722}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 92,
                                                                                                                    "startColumn": 26,
                                                                                                                    "endColumn": 40},
                                                                                                         "contextRegion": {"startLine": 92,
                                                                                                                           "snippet": {"text": "\tsq->ring_mask = *sq->kring_mask;\n"}}},
                                                                                    "logicalLocations": [{"index": 6,
                                                                                                          "fullyQualifiedName": "io_uring_setup_ring_pointers"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "false"],
                                                                       "nestingLevel": 5,
                                                                       "executionOrder": 23},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(24)",
                                                                                      "gcc/analyzer/checker_event/kind": "return"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 348,
                                                                                                                    "startColumn": 17,
                                                                                                                    "endColumn": 70},
                                                                                                         "contextRegion": {"startLine": 348,
                                                                                                                           "snippet": {"text": "\t\tio_uring_setup_ring_pointers(p, &ring->sq, &ring->cq);\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "returning to ‘__io_uring_queue_init_params’ from ‘io_uring_setup_ring_pointers’"}},
                                                                       "kinds": ["return",
                                                                                 "function"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 24},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(25)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 326,
                                                                                                                                 "dst_id": 327}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 356,
                                                                                                                    "startColumn": 12,
                                                                                                                    "endColumn": 13},
                                                                                                         "contextRegion": {"startLine": 356,
                                                                                                                           "snippet": {"text": "\tif (!(p->flags & IORING_SETUP_NO_SQARRAY)) {\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘true’ branch..."}},
                                                                       "kinds": ["branch",
                                                                                 "true"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 25},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(26)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 326,
                                                                                                                                 "dst_id": 327}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 357,
                                                                                                                    "startColumn": 17,
                                                                                                                    "endColumn": 42},
                                                                                                         "contextRegion": {"startLine": 357,
                                                                                                                           "snippet": {"text": "\t\tsq_array = ring->sq.array;\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "true"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 26},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(27)",
                                                                                      "gcc/analyzer/checker_event/kind": "state_change"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 357,
                                                                                                                    "startColumn": 17,
                                                                                                                    "endColumn": 42},
                                                                                                         "contextRegion": {"startLine": 357,
                                                                                                                           "snippet": {"text": "\t\tsq_array = ring->sq.array;\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "‘sq_array’ is NULL"}},
                                                                       "kinds": ["release",
                                                                                 "memory"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 27},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(28)",
                                                                                      "gcc/analyzer/checker_event/kind": "start_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 337,
                                                                                                                                 "dst_id": 338}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 358,
                                                                                                                    "startColumn": 33,
                                                                                                                    "endColumn": 51},
                                                                                                         "contextRegion": {"startLine": 358,
                                                                                                                           "snippet": {"text": "\t\tfor (index = 0; index < sq_entries; index++)\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "following ‘true’ branch (when ‘index < sq_entries’)..."}},
                                                                       "kinds": ["branch",
                                                                                 "true"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 28},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(29)",
                                                                                      "gcc/analyzer/checker_event/kind": "end_cfg_edge",
                                                                                      "gcc/analyzer/superedge_event/superedge": {"src_id": 337,
                                                                                                                                 "dst_id": 338}},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 359,
                                                                                                                    "startColumn": 33,
                                                                                                                    "endColumn": 34},
                                                                                                         "contextRegion": {"startLine": 359,
                                                                                                                           "snippet": {"text": "\t\t\tsq_array[index] = index;\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "...to here"}},
                                                                       "kinds": ["branch",
                                                                                 "true"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 29},
                                                                      {"properties": {"gcc/analyzer/checker_event/emission_id": "(30)",
                                                                                      "gcc/analyzer/checker_event/kind": "warning"},
                                                                       "location": {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                                                              "uriBaseId": "PWD"},
                                                                                                         "region": {"startLine": 359,
                                                                                                                    "startColumn": 25,
                                                                                                                    "endColumn": 48},
                                                                                                         "contextRegion": {"startLine": 359,
                                                                                                                           "snippet": {"text": "\t\t\tsq_array[index] = index;\n"}}},
                                                                                    "logicalLocations": [{"index": 0,
                                                                                                          "fullyQualifiedName": "__io_uring_queue_init_params"}],
                                                                                    "message": {"text": "dereference of NULL ‘sq_array + (long unsigned int)index * 4’"}},
                                                                       "kinds": ["danger"],
                                                                       "nestingLevel": 4,
                                                                       "executionOrder": 30}]}]}],
                        "relatedLocations": [{"physicalLocation": {"artifactLocation": {"uri": "syscall.h",
                                                                                        "uriBaseId": "PWD"},
                                                                   "region": {"startLine": 37},
                                                                   "contextRegion": {"startLine": 37,
                                                                                     "snippet": {"text": "#include \"arch/x86/syscall.h\"\n"}}},
                                              "relationships": [{"target": 0,
                                                                 "kinds": ["includes"]},
                                                                {"target": 2,
                                                                 "kinds": ["isIncludedBy"]}],
                                              "id": 1},
                                             {"physicalLocation": {"artifactLocation": {"uri": "setup.c",
                                                                                        "uriBaseId": "PWD"},
                                                                   "region": {"startLine": 5},
                                                                   "contextRegion": {"startLine": 5,
                                                                                     "snippet": {"text": "#include \"syscall.h\"\n"}}},
                                              "relationships": [{"target": 1,
                                                                 "kinds": ["includes"]}],
                                              "id": 2}]}],
           "logicalLocations": [{"name": "__io_uring_queue_init_params",
                                 "fullyQualifiedName": "__io_uring_queue_init_params",
                                 "decoratedName": "__io_uring_queue_init_params",
                                 "kind": "function",
                                 "index": 0},
                                {"name": "io_uring_mlock_size",
                                 "fullyQualifiedName": "io_uring_mlock_size",
                                 "decoratedName": "io_uring_mlock_size",
                                 "kind": "function",
                                 "index": 1},
                                {"name": "io_uring_mlock_size_params",
                                 "fullyQualifiedName": "io_uring_mlock_size_params",
                                 "decoratedName": "io_uring_mlock_size_params",
                                 "kind": "function",
                                 "index": 2},
                                {"name": "io_uring_queue_init_params",
                                 "fullyQualifiedName": "io_uring_queue_init_params",
                                 "decoratedName": "io_uring_queue_init_params",
                                 "kind": "function",
                                 "index": 3},
                                {"name": "io_uring_queue_init_try_nosqarr",
                                 "fullyQualifiedName": "io_uring_queue_init_try_nosqarr",
                                 "decoratedName": "io_uring_queue_init_try_nosqarr",
                                 "kind": "function",
                                 "index": 4},
                                {"name": "__sys_io_uring_setup",
                                 "fullyQualifiedName": "__sys_io_uring_setup",
                                 "decoratedName": "__sys_io_uring_setup",
                                 "kind": "function",
                                 "index": 5},
                                {"name": "io_uring_setup_ring_pointers",
                                 "fullyQualifiedName": "io_uring_setup_ring_pointers",
                                 "decoratedName": "io_uring_setup_ring_pointers",
                                 "kind": "function",
                                 "index": 6}]}]}
