Skip to content
Snippets Groups Projects
  1. May 30, 2019
  2. May 24, 2019
  3. May 23, 2019
    • Jens Axboe's avatar
      tools/io_uring: sync with liburing · 004d564f
      Jens Axboe authored
      
      Various fixes and changes have been applied to liburing since we
      copied some select bits to the kernel testing/examples part, sync
      up with liburing to get those changes.
      
      Most notable is the change that split the CQE reading into the peek
      and seen event, instead of being just a single function. Also fixes
      an unsigned wrap issue in io_uring_submit(), leak of 'fd' in setup
      if we fail, and various other little issues.
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      004d564f
    • Jens Axboe's avatar
      tools/io_uring: fix Makefile for pthread library link · 486f0692
      Jens Axboe authored
      
      Currently fails with:
      
      io_uring-bench.o: In function `main':
      /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:560: undefined reference to `pthread_create'
      /home/axboe/git/linux-block/tools/io_uring/io_uring-bench.c:588: undefined reference to `pthread_join'
      collect2: error: ld returned 1 exit status
      Makefile:11: recipe for target 'io_uring-bench' failed
      make: *** [io_uring-bench] Error 1
      
      Move -lpthread to the end.
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      486f0692
  4. May 21, 2019
  5. May 19, 2019
  6. May 17, 2019
  7. May 16, 2019
    • David Ahern's avatar
      selftests: pmtu.sh: Remove quotes around commands in setup_xfrm · 9a6c8bf9
      David Ahern authored
      
      The first command in setup_xfrm is failing resulting in the test getting
      skipped:
      
      + ip netns exec ns-B ip -6 xfrm state add src fd00:1::a dst fd00:1::b spi 0x1000 proto esp aead 'rfc4106(gcm(aes))' 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode tunnel
      + out=RTNETLINK answers: Function not implemented
      ...
        xfrm6 not supported
      TEST: vti6: PMTU exceptions                                         [SKIP]
        xfrm4 not supported
      TEST: vti4: PMTU exceptions                                         [SKIP]
      ...
      
      The setup command started failing when the run_cmd option was added.
      Removing the quotes fixes the problem:
      ...
      TEST: vti6: PMTU exceptions                                         [ OK ]
      TEST: vti4: PMTU exceptions                                         [ OK ]
      ...
      
      Fixes: 56490b62 ("selftests: Add debugging options to pmtu.sh")
      Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9a6c8bf9
    • Andrii Nakryiko's avatar
      libbpf: move logging helpers into libbpf_internal.h · d72386fe
      Andrii Nakryiko authored
      
      libbpf_util.h header was recently exposed as public as a dependency of
      xsk.h. In addition to memory barriers, it contained logging helpers,
      which are not supposed to be exposed. This patch moves those into
      libbpf_internal.h, which is kept as an internal header.
      
      Cc: Stanislav Fomichev <sdf@google.com>
      Cc: Daniel Borkmann <daniel@iogearbox.net>
      Fixes: 7080da89 ("libbpf: add libbpf_util.h to header install.")
      Signed-off-by: default avatarAndrii Nakryiko <andriin@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      d72386fe
    • Yonghong Song's avatar
      tools/bpftool: move set_max_rlimit() before __bpf_object__open_xattr() · ac4e0e05
      Yonghong Song authored
      
      For a host which has a lower rlimit for max locked memory (e.g., 64KB),
      the following error occurs in one of our production systems:
        # /usr/sbin/bpftool prog load /paragon/pods/52877437/home/mark.o \
          /sys/fs/bpf/paragon_mark_21 type cgroup/skb \
          map idx 0 pinned /sys/fs/bpf/paragon_map_21
        libbpf: Error in bpf_object__probe_name():Operation not permitted(1).
          Couldn't load basic 'r0 = 0' BPF program.
        Error: failed to open object file
      
      The reason is due to low locked memory during bpf_object__probe_name()
      which probes whether program name is supported in kernel or not
      during __bpf_object__open_xattr().
      
      bpftool program load already tries to relax mlock rlimit before
      bpf_object__load(). Let us move set_max_rlimit() before
      __bpf_object__open_xattr(), which fixed the issue here.
      
      Fixes: 47eff617 ("bpf, libbpf: introduce bpf_object__probe_caps to test BPF capabilities")
      Signed-off-by: default avatarYonghong Song <yhs@fb.com>
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      ac4e0e05
Loading