Bug #1249
closedcondition statement in wrapper/uaccess.h
0%
Description
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0))
#define VERIFY_READ 0
#define VERIFY_WRITE 1
#define lttng_access_ok(type, addr, size) access_ok(addr, size)
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) /
#define lttng_access_ok(type, addr, size) access_ok(type, addr, size)
#endif / LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0) */
Should the first condition statement be "less than"?
On kernel 4.18, access_ok only takes two parameters but the second lttng_access_ok definition is invoked.
Updated by Mathieu Desnoyers over 4 years ago
I double-checked, and vanilla v4.18 and v4.18.20 kernels access_ok() take 3 arguments, as expected by LTTng-modules.
Based on bug #1250 I suspect you are building against a CentOS 8.1 4.18 kernel. Am I correct ?
Note that RHEL and CentOS kernels integrate significant modifications from mainline kernels, and we need to track those distribution-specific changes very closely.
We need to identify the exact range of versions which include this change in the RHEL kernels so we can use the LTTNG_RHEL_KERNEL_RANGE() macro accordingly.
Updated by Michael Jeanson over 4 years ago
- Project changed from LTTng to LTTng-modules
Updated by Xintian Wu over 4 years ago
Here is the system info:
cat /proc/version
Linux version 4.18.0-147.5.1.el8_1.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC)) #1 SMP Wed Feb 5 02:00:39 UTC 2020
This is the latest CentOS 8.1 baseOS kernel.
Based on what you described, I think we can close this bug and maybe create a new combined bug for compilation under CentOS 8.1.
Updated by Mathieu Desnoyers over 4 years ago
- Status changed from New to Invalid