Module Name: src
Committed By: maxv
Date: Thu Apr 5 14:11:20 UTC 2018
Modified Files:
src/sys/arch/x86/x86: dbregs.c
Log Message:
Fix the check, should be >=.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/x86/dbregs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x86/x86/dbregs.c
diff -u src/sys/arch/x86/x86/dbregs.c:1.6 src/sys/arch/x86/x86/dbregs.c:1.7
--- src/sys/arch/x86/x86/dbregs.c:1.6 Thu Feb 23 12:01:12 2017
+++ src/sys/arch/x86/x86/dbregs.c Thu Apr 5 14:11:20 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: dbregs.c,v 1.6 2017/02/23 12:01:12 martin Exp $ */
+/* $NetBSD: dbregs.c,v 1.7 2018/04/05 14:11:20 maxv Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -188,7 +188,7 @@ x86_dbregs_validate(const struct dbreg *
/* Check that DR0-DR3 contain user-space address */
for (i = 0; i < X86_DBREGS; i++)
- if (regs->dr[i] > (vaddr_t)VM_MAXUSER_ADDRESS)
+ if (regs->dr[i] >= (vaddr_t)VM_MAXUSER_ADDRESS)
return EINVAL;
/*