Project

General

Profile

Actions

Bug #1249

closed

condition statement in wrapper/uaccess.h

Added by Xintian Wu about 4 years ago. Updated about 4 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/01/2020
Due date:
% Done:

0%

Estimated time:

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.

Actions

Also available in: Atom PDF