]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
sh: Fix validation of system call number
authorMichael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Wed, 22 Jul 2020 23:13:19 +0000 (01:13 +0200)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:28:27 +0000 (16:28 -0300)
commite1d3a4500db9e2162a9a8d19b6ea56fce86510e4
tree114cf1b99e020496cf1311260b22cc4b16d52460
parent57e9584ad0ea25e04a6ff983dafa97f37c7beb7b
sh: Fix validation of system call number

BugLink: https://bugs.launchpad.net/bugs/1891063
[ Upstream commit 04a8a3d0a73f51c7c2da84f494db7ec1df230e69 ]

The slow path for traced system call entries accessed a wrong memory
location to get the number of the maximum allowed system call number.
Renumber the numbered "local" label for the correct location to avoid
collisions with actual local labels.

Signed-off-by: Michael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fixes: f3a8308864f920d2 ("sh: Add a few missing irqflags tracing markers.")
Signed-off-by: Rich Felker <dalias@libc.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/sh/kernel/entry-common.S