]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
sparc: Fix syscall fallback bugs in VDSO.
authorDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 04:28:01 +0000 (21:28 -0700)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:55:47 +0000 (19:55 -0600)
commitf24828318d58d29287f3f5b86218f314185091d5
tree9f60534ee93997183a98b70cb54b7d343d994cd5
parent9799ae6b3f0575844f83bca0afdbf4ddbcdf696d
sparc: Fix syscall fallback bugs in VDSO.

BugLink: https://bugs.launchpad.net/bugs/1836654
[ Upstream commit 776ca1543b5fe673aaf1beb244fcc2429d378083 ]

First, the trap number for 32-bit syscalls is 0x10.

Also, only negate the return value when syscall error is indicated by
the carry bit being set.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/sparc/vdso/vclock_gettime.c