[Y2038] [PATCH v3 4/6] ipc: sem: Make sem_array timestamps y2038 safe

2017-08-02 Thread Deepa Dinamani
time_t is not y2038 safe. Replace all uses of time_t by y2038 safe time64_t. Similarly, replace the calls to get_seconds() with y2038 safe ktime_get_real_seconds(). Note that this preserves fast access on 64 bit systems, but 32 bit systems need sequence counters. The syscall interface themselves

[Y2038] [PATCH v3 2/6] ipc: mqueue: Replace timespec with timespec64

2017-08-02 Thread Deepa Dinamani
struct timespec is not y2038 safe. Replace all uses of timespec by y2038 safe struct timespec64. Even though timespec is used here to represent timeouts, replace these with timespec64 so that it facilitates in verification by creating a y2038 safe kernel image that is free of timespec. The

[Y2038] [PATCH v3 0/6] Make ipc y2038 safe

2017-08-02 Thread Deepa Dinamani
The series aims to transition internal workings of ipc subsystem to use y2038-safe types and apis. The series is based on Al Viro's #work.ipc branch. Changes since v2: * Removed extra typecasts Changes since v1: * Addressed audit review comments Deepa Dinamani (6): ipc: Make sys_semtimedop()