]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
y2038: ipc: Use ktime_get_real_seconds consistently
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Apr 2018 13:19:44 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:48:00 +0000 (07:48 +0200)
commitf8356e461d29bc15540fbd8834ea082546fb674e
treeb613fcc04c042afa37390516ce7ac10cea816ebd
parent6705c48563c5e503f3e58715a0da71f4d8fd1c40
y2038: ipc: Use ktime_get_real_seconds consistently

[ Upstream commit 2a70b7879b84d471fd0e440f027bba310e0c1fb7 ]

In some places, we still used get_seconds() instead of
ktime_get_real_seconds(), and I'm changing the remaining ones now to
all use ktime_get_real_seconds() so we use the full available range for
timestamps instead of overflowing the 'unsigned long' return value in
year 2106 on 32-bit kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
ipc/msg.c
ipc/sem.c