From 891f4d27369f54d4284545b884eeb8c610802ab0 Mon Sep 17 00:00:00 2001
From: Guillem Jover <guillem@hadrons.org>
Date: Wed, 21 Aug 2019 04:36:09 +0200
Subject: [PATCH libaio 0/3] Fix io_pgetevents() wrapper and test case

Hi!

This series completely fixes 22.t on all currently available Debian
architectures. I only managed to test a fixed kernel yesterday, the
fix for which I'm sending separately, and the libaio patch works fine
with that too.

I considered detecting whether we might be running in kernel compat
mode by using personality(2), or selecting a workaround variant via
an ifunc resolver to avoid somewwhat penalizing libaio users running
on broken kernels, but it didn't seem worth it, as IMO the proposed
patch should be considered just a temporary workaround until fixed
kernels are in wide-spread use.

BTW, while going over kernel and userland I noticed libaio might
perhaps need to grow wrappers for the new time32/time64 syscalls?

Thanks,
Guillem


Guillem Jover (3):
  harness: Print better error messages on error conditions in 22.t
  Fix io_pgetevents() syscall wrapper on 32-bit userland on 64-bit
    kernels
  harness: Skip the test if io_pgetevents() is not implemented

 harness/cases/22.t  | 19 +++++++++++++------
 src/io_pgetevents.c | 38 +++++++++++++++++++++++++++++++-------
 src/libaio.h        | 12 ++++++++++++
 3 files changed, 56 insertions(+), 13 deletions(-)

-- 
2.23.0

