[Bug tapsets/26152] _struct_compat_timex_u() function doesn't work on rhel8

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 29 15:39:32 GMT 2020


https://sourceware.org/bugzilla/show_bug.cgi?id=26152

--- Comment #1 from William Cohen <wcohen at redhat dot com> ---
git bisect showed that the problem occurs due to:


commit 4ab42baafca69953229422923ec0721abebb570f
Author: Frank Ch. Eigler <fche@redhat.com>
Date:   Wed Dec 11 15:28:46 2019 -0500

    tapset: _struct_compat_timex_u() support after renaming to old_timex32

    Kernel commit 4d5f007eedb74d (v5.1+) renames the old compat_timex
    structure to old_timex32.


The CONFIG_COMPAT_32BIT_TIME was added to kernels before struct old_timex32.
CONFIG_COMPAT_32BIT_TIME available in 4.18 kenels, but old_timex32 wasn't added
to kernels until:

Author: Arnd Bergmann <arnd@arndb.de>  2019-01-02 07:28:47
Committer: Arnd Bergmann <arnd@arndb.de>  2019-02-06 18:13:27
Parent: 805089c2f77047d81f47ddc227435d606ceb180e (syscalls: remove obsolete
__IGNORE_ macros)
Child:  2c620ff93d9fbd5d644760d4c21d389078ec1080 (time: Add struct
__kernel_timex)
Branches: master, remotes/origin/master, wcohen/gcc9
Follows: v5.0-rc2
Precedes: v5.1-rc1

    time: make adjtime compat handling available for 32 bit

    We want to reuse the compat_timex handling on 32-bit architectures the
    same way we are using the compat handling for timespec when moving to
    64-bit time_t.

    Move all definitions related to compat_timex out of the compat code
    into the normal timekeeping code, along with a rename to old_timex32,
    corresponding to the timespec/timeval structures, and make it controlled
    by CONFIG_COMPAT_32BIT_TIME, which 32-bit architectures will then select.

    Signed-off-by: Arnd Bergmann <arnd@arndb.de>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list