s390/stp: clock_delta should be signed
authorSven Schnelle <svens@linux.ibm.com>
Tue, 3 May 2022 07:58:33 +0000 (09:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:21 +0000 (10:23 +0200)
commitf19e2e1d8528c268c0ddfe41142c63730df79f9b
tree6c5e21d41aed8f54c362f53b650f21c6e24d73f1
parent42b2f5ddc2204db845cf1f78ae296194557df714
s390/stp: clock_delta should be signed

commit 5ace65ebb5ce9fe1cc8fdbdd97079fb566ef0ea4 upstream.

clock_delta is declared as unsigned long in various places. However,
the clock sync delta can be negative. This would add a huge positive
offset in clock_sync_global where clock_delta is added to clk.eitod
which is a 72 bit integer. Declare it as signed long to fix this.

Cc: stable@vger.kernel.org
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/cio.h
arch/s390/kernel/time.c
drivers/s390/cio/chsc.c