]> git.baikalelectronics.ru Git - kernel.git/commit
acct: stop using get_seconds()
authorArnd Bergmann <arnd@arndb.de>
Thu, 24 Oct 2019 14:34:25 +0000 (16:34 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:31 +0000 (18:07 +0100)
commit0402859b9f27a81291ca79e146896a38f6141302
tree26caf2d720c009f5f68b7f4db5e0079602b9e65c
parenta0a655eb65a6c1c197094c9f713bc54c4685233b
acct: stop using get_seconds()

In 'struct acct', 'struct acct_v3', and 'struct taskstats' we have
a 32-bit 'ac_btime' field containing an absolute time value, which
will overflow in year 2106.

There are two possible ways to deal with it:

a) let it overflow and have user space code deal with reconstructing
   the data based on the current time, or
b) truncate the times based on the range of the u32 type.

Neither of them solves the actual problem. Pick the second
one to best document what the issue is, and have someone
fix it in a future version.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/uapi/linux/acct.h
include/uapi/linux/taskstats.h
kernel/acct.c
kernel/tsacct.c