On Fri, 6 Sep 2019 at 00:16, Eric Biggers wrote:
>
> On Thu, Sep 05, 2019 at 11:10:45AM +0800, Baolin Wang wrote:
> > From: Eric Biggers
> >
> > [Upstream commit 25a09ce79639a8775244808c17282c491cff89cf]
> >
> > Commit 0e5a610b5ca5 ("ppp: mppe: switch
Hi James,
On 21 August 2017 at 20:12, Baolin Wang wrote:
> 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 pus
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? Thanks.
--
Baolin.wang
Bes
Hi Arnd,
On 9 August 2017 at 16:44, Arnd Bergmann wrote:
> On Wed, Aug 9, 2017 at 4:51 AM, Baolin Wang wrote:
>> Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on
>> 32 bits system, this patchset tries to fix this issues
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
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
variable.
Especially in proc.c file, we have replaced 'unsigned long' and 'timespec'
type with 'u64' and 'time64_t' type to save the timeout value, which means
user will get one 'u64' type timeout value by issuing proc_keys_show()
function.
Signed-
em for 'struct key_preparsed_payload', moreover
we should use the 'TIME64_MAX' macro to initialize the 'time64_t'
type variable.
Signed-off-by: Baolin Wang
---
include/linux/key-type.h |2 +-
security/keys/key.c |8
2 files changed, 5 insertions(+),
to 'prep->expiry', then this patch
introduces 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: Bao
On 12 June 2015 at 21:16, Thomas Gleixner 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
---
drivers/ptp/ptp_clock.c | 22 +++---
include
.
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
---
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 --git a/drivers/ptp
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
---
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 --git a/drivers/ptp
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 itimers
.
Signed-off-by: Baolin Wang
---
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/timekeeping.h b/include/linux
/itimerspec64 type.
Signed-off-by: Baolin Wang
---
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 --git a/drivers/ptp
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
---
include/linux/time6
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
---
include/linux/posix
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
---
arch/powerpc/include/asm/cputime.h|6 +++---
arch/s390/include/asm/cputime.h |8
include/asm
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
---
include/linux/posix-timers.h |9 --
kernel/time/posix
olution 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
---
include/linux/hrtimer.h | 12 +++-
kernel/time/hrtimer.c | 10 +-
2 files changed, 16 insert
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
---
kernel/time/posix-cpu-timers.c | 83
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
---
drivers/char/mmtimer.c | 36 +---
1 file changed, 17
easily in timekeeping.h file. That
is ready for 2038 when get the current time.
Signed-off-by: Baolin Wang
---
include/linux/timekeeping.h | 10 +-
kernel/time/timekeeping.c |6 +++---
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/include/linux/timekeeping.h b/inc
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
---
kernel/time/alarmtimer.c | 43
27 matches
Mail list logo