]> 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)
commit004dff5815522252b3c2d43612fc67b34f04e776
tree737d62bc56ae7957ca702c6db4092de575f6a7de
parent37f6d7fb0c4ca43c7956355a92a50fb093551baf
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