Hi James,
On 21 August 2017 at 20:12, Baolin Wang <baolin.w...@linaro.org> wrote:
> Hi David and James,
>
> On 9 August 2017 at 16:28, David Howells <dhowe...@redhat.com> wrote:
>> The rxrpc patch isn't part of the security/keys subsystem. I'll push it
>> to the
Hi David and James,
On 9 August 2017 at 16:28, David Howells wrote:
> The rxrpc patch isn't part of the security/keys subsystem. I'll push it
> to the network tree. The other two I'll push to James.
Could you apply this patch serials if there are no other comments?
Hi Arnd,
On 9 August 2017 at 16:44, Arnd Bergmann <a...@arndb.de> wrote:
> On Wed, Aug 9, 2017 at 4:51 AM, Baolin Wang <baolin.w...@linaro.org> wrote:
>> Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on
>> 32 bits system, this patchset tries to f
On 9 August 2017 at 16:28, David Howells wrote:
> The rxrpc patch isn't part of the security/keys subsystem. I'll push it
> to the network tree. The other two I'll push to James.
Thanks David.
--
Baolin.wang
Best Regards
user will get one 'u64' type timeout value by issuing proc_keys_show()
function.
Signed-off-by: Baolin Wang <baolin.w...@linaro.org>
---
include/linux/key.h |7 ---
security/keys/gc.c | 20 ++--
security/keys/internal.h |8
securit
Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on
32 bits system, this patchset tries to fix this issues for security/keys
subsystem and net/rxrpc subsystem which is connected with security/keys
subsystem.
Baolin Wang (3):
security: keys: Replace time_t/timespec
should use the 'TIME64_MAX' macro to initialize the 'time64_t'
type variable.
Signed-off-by: Baolin Wang <baolin.w...@linaro.org>
---
include/linux/key-type.h |2 +-
security/keys/key.c |8
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/key-ty
two helper functions to help convert 'u32' to 'time64_t'
type.
This patch also uses ktime_get_real_seconds() to get current time instead
of get_seconds() which is not year 2038 safe on 32bits system.
Signed-off-by: Baolin Wang <baolin.w...@linaro.org>
---
include/keys/rxrpc-type
On 12 June 2015 at 21:16, Thomas Gleixner t...@linutronix.de wrote:
On Fri, 12 Jun 2015, Baolin Wang wrote:
Sigh. Again threading of the series failed. Some patches are, the
whole series is not. Can you please get your tools straight?
You neither managed to cc me on the security patch
()/
timer_settime() callbacks in struct posix_clock_operations are not
year 2038 safe on 32bit systems, and it need convert to year 2038
safe callbacks which use struct timespec64 or struct itimerspec64.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
drivers/ptp/ptp_clock.c | 22
.
Changes since V1:
- Split some patch into small patch.
- Add some default function for new 64bit methods for syscall function.
- Move do_sys_settimeofday() function to head file.
- Modify the EXPORT_SYMPOL issue.
- Add new 64bit methods in cputime_nsecs.h file.
---
Baolin Wang (24):
time: Introduce
/itimerspec64 type.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
drivers/ptp/ptp_clock.c | 26 --
include/linux/posix-clock.h | 10 +-
kernel/time/posix-clock.c | 20 ++--
3 files changed, 23 insertions(+), 33 deletions(-)
diff
type for
posix_clock_operations
and k_clock structure.
Baolin Wang (25):
time:Introduce struct itimerspec64
timekeeping:Introduce the current_kernel_time64()
hrtimer:Introduce hrtimer_get_res64()
security: Introduce security_settime64()
time:Introduce the do_sys_settimeofday64()
posix
/itimerspec64 type.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
drivers/ptp/ptp_clock.c | 26 --
include/linux/posix-clock.h | 10 +-
kernel/time/posix-clock.c | 20 ++--
3 files changed, 23 insertions(+), 33 deletions(-)
diff
in timekeeping.h file. That
is ready for 2038 when get the current time.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
include/linux/timekeeping.h | 10 +-
kernel/time/timekeeping.c |6 +++---
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/include/linux/timekeeping.h
This patch changes to the new methods with timespec64/itimerspec64
type of k_clock structure, and converts the timespec/itimerspec type to
timespec64/itimerspec64 typein alarmtimer.c file.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
kernel/time/alarmtimer.c | 43
This patch converts to the 64bit methods for k_clock callback
function, that converts the timespec type to timespec64 type and
converts the itimerspec type to itimerspec64 type.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
drivers/char/mmtimer.c | 36
.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
include/linux/timekeeping.h |4 +-
kernel/time/posix-timers.c | 102 +++
kernel/time/timekeeping.h |2 +-
3 files changed, 57 insertions(+), 51 deletions(-)
diff --git a/include/linux
/itimerspec64 type.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
drivers/ptp/ptp_clock.c | 26 --
include/linux/posix-clock.h | 10 +-
kernel/time/posix-clock.c | 20 ++--
3 files changed, 23 insertions(+), 33 deletions(-)
diff
This patch introduces the 'struct itimerspec64' for 64bit to replace itimerspec,
and also introduces the conversion methods: itimerspec64_to_itimerspec() and
itimerspec_to_itimerspec64(), that makes itimerspec to ready for 2038 year.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
include
by
hrtimer_get_res64() function
with timespec64 type, and it is convenient to delete the old hrtimer_get_res()
function
in hrtimer.h file.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
include/linux/hrtimer.h | 12 +++-
kernel/time/hrtimer.c | 10 +-
2 files changed
for the framework
functions.
Next step will migrate all the k_clock users to use the new methods with
timespec64 type
nd itimerspec64 type, and it contains the files of posix-timers.c, mmtimer.c,
alarmtimer.c,
posix-clock.c and posix-cpu-timers.c.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
for 2038 issue. The cputime_to_timespec/timespec_to_cputime
functions
are moved to include/linux/cputime.h file for removing conveniently.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
arch/powerpc/include/asm/cputime.h|6 +++---
arch/s390/include/asm/cputime.h |8
All of the k_clock users have been converted to the new methods. This patch
removes the older methods with timepsec/itimerspec type. As a result, the
k_clock
structure is ready for the year 2038.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
include/linux/posix-timers.h |9
This patch changes to the new methods of k_clock structure with timespec64
type, converts the timespec/itimerspec type to timespec64/itimerspec64 type
for the callback function in posix-cpu-timers.c file.
Signed-off-by: Baolin Wang baolin.w...@linaro.org
---
kernel/time/posix-cpu-timers.c | 83
type for
posix_clock_operations
and k_clock structure.
Also introduces some new functions with timespec64/itimerspec64 type, like
current_kernel_time64(),
hrtimer_get_res64(), cputime_to_timespec64() and timespec64_to_cputime().
Baolin Wang (11):
linux/time64.h:Introduce the 'struct itimerspec64
26 matches
Mail list logo