[Y2038] [PATCH 2/2] security: keys: migrate struct key_preparsed_payload and time_t variables

2015-12-15 Thread Aya Mahfouz
: Arnd Bergmann Signed-off-by: Aya Mahfouz --- include/linux/key-type.h | 2 +- security/keys/gc.c | 12 ++-- security/keys/key.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/linux/key-type.h b/include/linux/key-type.h index 7463355..2c844ae

[Y2038] [PATCH 1/2] security: keys: migrate structs key and keyring_search_context

2015-12-15 Thread Aya Mahfouz
Signed-off-by: Aya Mahfouz --- include/linux/key.h | 6 +++--- security/keys/gc.c | 8 security/keys/internal.h | 8 security/keys/key.c | 16 +--- security/keys/keyring.c | 16 security/keys/permission.c | 3

[Y2038] [PATCH 0/2] security: keys: migrate time_t and timespec to time64_t

2015-12-15 Thread Aya Mahfouz
independent. This is for the sake of readability and to avoid the introduction of new warnings while building the kernel. Aya Mahfouz (2): security: keys: migrate structs key and keyring_search_context security: keys: migrate struct key_preparsed_payload and time_t variables include/linux

Re: [Y2038] [PATCH] security: keys: convert uses of time_t to time64_t

2015-11-28 Thread Aya Mahfouz
On Fri, Nov 27, 2015 at 09:35:22PM +0100, Arnd Bergmann wrote: > On Friday 27 November 2015 18:55:43 Aya Mahfouz wrote: > > > > > > My first idea would be to split the key_preparsed_payload changes from > > > the struct key changes. Have you tried that? What pr

Re: [Y2038] [PATCH] security: keys: convert uses of time_t to time64_t

2015-11-27 Thread Aya Mahfouz
On Fri, Nov 27, 2015 at 04:22:24PM +0100, Arnd Bergmann wrote: > On Friday 27 November 2015 16:42:54 Aya Mahfouz wrote: > > On Wed, Nov 18, 2015 at 04:35:58PM +0100, Arnd Bergmann wrote: > > > On Wednesday 18 November 2015 17:33:38 Aya Mahfouz wrote: > > > >

Re: [Y2038] [PATCH] security: keys: convert uses of time_t to time64_t

2015-11-27 Thread Aya Mahfouz
On Wed, Nov 18, 2015 at 04:35:58PM +0100, Arnd Bergmann wrote: > On Wednesday 18 November 2015 17:33:38 Aya Mahfouz wrote: > > > > --- > > > > Changelog: > > > > v1: The changes were originally made by Arnd Bergmann in > > > > relation to time_t

Re: [Y2038] [PATCH] security: keys: convert uses of time_t to time64_t

2015-11-18 Thread Aya Mahfouz
On Wed, Nov 18, 2015 at 03:10:30PM +0100, Arnd Bergmann wrote: > On Tuesday 17 November 2015 23:20:28 Aya Mahfouz wrote: > > Changes all the uses of time_t for the structs key > > and key_preparsed_payload to time64_t. This also > > involves the functions that use them in se

Re: [Y2038] [PATCH] net: dns_resolver: convert time_t to time64_t

2015-11-17 Thread Aya Mahfouz
On Tue, Nov 17, 2015 at 11:18:36PM +0100, Arnd Bergmann wrote: > On Tuesday 17 November 2015 22:56:48 Aya Mahfouz wrote: > > Changes the defintion of the pointer _expiry from time_t to > > time64_t. This is to handle the Y2038 problem where time_t > > will overflow in 203

[Y2038] [PATCH] security: keys: convert uses of time_t to time64_t

2015-11-17 Thread Aya Mahfouz
LONG_MAX and TIME_T_MAX were replaced by S64_MAX. Signed-off-by: Arnd Bergmann Signed-off-by: Aya Mahfouz --- Changelog: v1: The changes were originally made by Arnd Bergmann in relation to time_t. I've broken down a patch sent to me into two independent patches. include/linux/key-t

[Y2038] [PATCH] net: dns_resolver: convert time_t to time64_t

2015-11-17 Thread Aya Mahfouz
Changes the defintion of the pointer _expiry from time_t to time64_t. This is to handle the Y2038 problem where time_t will overflow in 2038. The change is safe because the kernel subsystems that call dns_query pass NULL. Signed-off-by: Arnd Bergmann Signed-off-by: Aya Mahfouz --- Changelog: v1