diff options
author | Andy Lutomirski <[email protected]> | 2020-09-02 15:25:51 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2020-09-04 15:09:29 +0200 |
commit | d5c678aed5eddb944b8e7ce451b107b39245962d (patch) | |
tree | 1e470f1ce30ebd18f5175b586722e4cb18ca4ee0 /fs/btrfs/file.c | |
parent | 662a0221893a3d58aa72719671844264306f6e4b (diff) |
x86/debug: Allow a single level of #DB recursion
Trying to clear DR7 around a #DB from usermode malfunctions if the tasks
schedules when delivering SIGTRAP.
Rather than trying to define a special no-recursion region, just allow a
single level of recursion. The same mechanism is used for NMI, and it
hasn't caused any problems yet.
Fixes: 9f58fdde95c9 ("x86/db: Split out dr6/7 handling")
Reported-by: Kyle Huey <[email protected]>
Debugged-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Andy Lutomirski <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Tested-by: Daniel Thompson <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/8b9bd05f187231df008d48cf818a6a311cbd5c98.1597882384.git.luto@kernel.org
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs/btrfs/file.c')
0 files changed, 0 insertions, 0 deletions