]> git.baikalelectronics.ru Git - kernel.git/commit
entry: Unbreak single step reporting behaviour
authorYuxuan Shui <yshuiv7@gmail.com>
Sat, 23 Jan 2021 11:21:32 +0000 (03:21 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 28 Jan 2021 12:46:55 +0000 (13:46 +0100)
commitca70110267a93606d45d4ab78746ade7d595caae
tree8a02e112eeeac0d0953f2a070f452979c9eaa66c
parentc8d4b05b0e0f99dcae6bb046585e664df3f0b86b
entry: Unbreak single step reporting behaviour

The move of TIF_SYSCALL_EMU to SYSCALL_WORK_SYSCALL_EMU broke single step
reporting. The original code reported the single step when TIF_SINGLESTEP
was set and TIF_SYSCALL_EMU was not set. The SYSCALL_WORK conversion got
the logic wrong and now the reporting only happens when both bits are set.

Restore the original behaviour.

[ tglx: Massaged changelog and dropped the pointless double negation ]

Fixes: 1f638c105acb ("ptrace: Migrate TIF_SYSCALL_EMU to use SYSCALL_WORK flag")
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Link: https://lore.kernel.org/r/877do3gaq9.fsf@m5Zedd9JOGzJrf0
kernel/entry/common.c