Thread (3 messages) 3 messages, 2 authors, 2017-10-19

[PATCH] tomoyo: fix timestamping for y2038

From: arnd@arndb.de (Arnd Bergmann)
Date: 2017-10-19 12:29:19
Also in: lkml

On Thu, Oct 19, 2017 at 1:29 PM, Tetsuo Handa
[off-list ref] wrote:
Arnd Bergmann wrote:
quoted
Tomoyo uses an open-coded version of time_to_tm() to create a timestamp
from the current time as read by get_seconds(). This will overflow and
give wrong results on 32-bit systems in 2038.
Thank you.

Please fold below diff into your patch, for year calculation is wrong.
Done, thanks for spotting this!
Acked-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thanks!

     Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help