Skip to content
Snippets Groups Projects
  1. Mar 28, 2022
    • Jeff Moyer's avatar
      bump libaio version · 1b18bfaf
      Jeff Moyer authored
      - Fix padding in vector and sockaddr structures on 32 bit (Brett Holman)
      - Add a test case for missed poll events (Eric Biggers)
      - Add loongarch support (Yehui Ren)
      - man page cleanup and fixes (Guillem Jover)
      - assorted test harness fixess (Guillem Jover, Jeff Moyer)
      libaio-0.3.113
      1b18bfaf
  2. Mar 25, 2022
  3. Sep 29, 2021
  4. Jul 20, 2021
  5. Feb 15, 2021
    • Lee Duncan's avatar
      Fix test issue with gcc-11 · 696a5e64
      Lee Duncan authored
      
      Test 3.t exercises io_submit() with invalid addresses,
      and one test attempted to pass in "-1" as an invalid
      pointer. But gcc-11 realizes you cannot take an offset
      from an invalid pointer, making it impossible to
      compile or run this test:
      
      > sh# make CC=gcc-11 partcheck
      > make[1]: Entering directory '/alt/public_software/libaio/src'
      > make[1]: Nothing to be done for 'all'.
      > make[1]: Leaving directory '/alt/public_software/libaio/src'
      > make[1]: Entering directory '/alt/public_software/libaio/harness'
      > gcc-11 -Wall -Werror -I../src -g -O2 -DTEST_NAME=\"cases/2.t\" -o cases/2.p main.c ../src/libaio.a -lpthread
      > gcc-11 -Wall -Werror -I../src -g -O2 -DTEST_NAME=\"cases/3.t\" -o cases/3.p main.c ../src/libaio.a -lpthread
      > In file included from main.c:24:
      > cases/3.t: In function ‘test_main’:
      > cases/3.t:18:19: error: ‘attempt_io_submit’ accessing 8 bytes in a region of size 0 [-Werror=stringop-overflow=]
      >    18 |         status |= attempt_io_submit( io_ctx, 1, (void *)-1, -EFAULT);
      >       |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      > cases/3.t:18:19: note: referencing argument 3 of type ‘struct iocb **’
      > In file included from cases/3.t:5,
      >                  from main.c:24:
      > cases/aio_setup.h:15:5: note: in a call to function ‘attempt_io_submit’
      >    15 | int attempt_io_submit(io_context_t ctx, long nr, struct iocb *ios[], int expect)
      >       |     ^~~~~~~~~~~~~~~~~
      > cc1: all warnings being treated as errors
      > make[1]: *** [Makefile:19: cases/3.p] Error 1
      > make[1]: Leaving directory '/alt/public_software/libaio/harness'
      > make: *** [Makefile:23: partcheck] Error 2
      
      The fix is to tell gcc to relax it's stringop overflow
      testing for this one test.
      
      Changes since v1:
      * First version just skipped the test in question
      
      Signed-off-by: default avatarLee Duncan <leeman.duncan@gmail.com>
      Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
      696a5e64
  6. Aug 22, 2019
  7. Aug 14, 2019
    • Guillem Jover's avatar
      harness: Fix PROT_WRITE mmap check · 711c0381
      Guillem Jover authored
      
      This partially reverts commit d7f50654.
      
      The actual problem in the original code was that read() was being used
      to assert whether the buffer was readable, but the kernel was instead
      reading from the file descriptor and then writing into the buffer, so
      no EFAULT was being generated (on architectures that do so).
      
      We needed to use a write() so that the kernel would read from the
      buffer.
      
      Signed-off-by: default avatarGuillem Jover <guillem@hadrons.org>
      Signed-off-by: default avatarJeff Moyer <jmoyer@redhat.com>
      711c0381
  8. Aug 13, 2019
  9. Jul 29, 2019
  10. Oct 22, 2018
Loading