]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: fix adjtimex regression
authorArnd Bergmann <arnd@arndb.de>
Sat, 1 Feb 2020 21:20:52 +0000 (22:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Feb 2020 10:54:41 +0000 (11:54 +0100)
commit555150bba5a5d0231f88b298949dee8a5c5338d0
tree2937368670d0100cab97eff7656bb9ca4e439149
parent90dc992b702bc1b8c43e7fa75368c9c1b377cc75
sparc64: fix adjtimex regression

Anatoly Pugachev reported one of the y2038 patches to introduce
a fatal bug from a stupid typo:

[   96.384129] watchdog: BUG: soft lockup - CPU#8 stuck for 22s!
...
[   96.385624]  [0000000000652ca4] handle_mm_fault+0x84/0x320
[   96.385668]  [0000000000b6f2bc] do_sparc64_fault+0x43c/0x820
[   96.385720]  [0000000000407754] sparc64_realfault_common+0x10/0x20
[   96.385769]  [000000000042fa28] __do_sys_sparc_clock_adjtime+0x28/0x80
[   96.385819]  [00000000004307f0] sys_sparc_clock_adjtime+0x10/0x20
[   96.385866]  [0000000000406294] linux_sparc_syscall+0x34/0x44

Fix the code to dereference the correct pointer again.

Reported-by: Anatoly Pugachev <matorola@gmail.com>
Tested-by: Anatoly Pugachev <matorola@gmail.com>
Fixes: 17a6e453235d ("y2038: sparc: remove use of struct timex")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/sys_sparc_64.c