]> git.baikalelectronics.ru Git - 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)
committerRich Felker <dalias@libc.org>
Mon, 27 Jul 2020 20:12:49 +0000 (16:12 -0400)
commit454e66f3734d7b65ab24ebb6c165772f3c13f51a
tree737d62bc56ae7957ca702c6db4092de575f6a7de
parent760dcc69232f6b243da94fe990b27146015e9032
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: 0a1193eb054679d7 ("sh: Add a few missing irqflags tracing markers.")
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/kernel/entry-common.S