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)
committerRich Felker <dalias@libc.org>
Mon, 27 Jul 2020 20:12:49 +0000 (16:12 -0400)
commit04a8a3d0a73f51c7c2da84f494db7ec1df230e69
tree737d62bc56ae7957ca702c6db4092de575f6a7de
parentc7bcbc8ab9cb20536b8f50c62a48cebda965fdba
sh: Fix validation of system call number

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>
arch/sh/kernel/entry-common.S