[Y2038] [PATCH v2 6/6] utimes: Make utimes y2038 safe

2017-07-30 Thread Deepa Dinamani
struct timespec is not y2038 safe on 32 bit machines. Replace timespec with y2038 safe struct timespec64. Note that the patch only changes the internals without modifying the syscall interfaces. This will be part of a separate series. Signed-off-by: Deepa Dinamani ---

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

2017-07-30 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 v2 5/6] ipc: shm: Make shmid_kernel timestamps y2038 safe

2017-07-30 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 interfaces

[Y2038] [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe

2017-07-30 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 interfaces

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

2017-07-30 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 v2 1/6] ipc: Make sys_semtimedop() y2038 safe

2017-07-30 Thread Deepa Dinamani
struct timespec is not y2038 safe on 32 bit machines. Replace timespec with y2038 safe struct timespec64. Note that the patch only changes the internals without modifying the syscall interface. This will be part of a separate series. Signed-off-by: Deepa Dinamani ---

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

2017-07-30 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 v1: * Addressed audit review comments Deepa Dinamani (6): ipc: Make sys_semtimedop() y2038 safe ipc: mqueue: Replace timespec