Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115928923
D31209.id92315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
799 B
Referenced Files
None
Subscribers
None
D31209.id92315.diff
View Options
Index: sys/riscv/riscv/copyinout.S
===================================================================
--- sys/riscv/riscv/copyinout.S
+++ sys/riscv/riscv/copyinout.S
@@ -118,7 +118,7 @@
beqz a2, copyout_end /* If len == 0 then skip loop */
add a3, a1, a2
li a4, VM_MAXUSER_ADDRESS
- bgt a3, a4, copyio_fault_nopcb
+ bgeu a3, a4, copyio_fault_nopcb
copycommon
@@ -136,7 +136,7 @@
beqz a2, copyin_end /* If len == 0 then skip loop */
add a3, a0, a2
li a4, VM_MAXUSER_ADDRESS
- bgt a3, a4, copyio_fault_nopcb
+ bgeu a3, a4, copyio_fault_nopcb
copycommon
@@ -159,7 +159,7 @@
ENTER_USER_ACCESS(a7)
li a7, VM_MAXUSER_ADDRESS
-1: bgt a0, a7, copyio_fault
+1: bgeu a0, a7, copyio_fault
lb a4, 0(a0) /* Load from uaddr */
addi a0, a0, 1
sb a4, 0(a1) /* Store in kaddr */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 1:09 PM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17882024
Default Alt Text
D31209.id92315.diff (799 B)
Attached To
Mode
D31209: riscv: fix VM_MAXUSER_ADDRESS checks in asm routines
Attached
Detach File
Event Timeline
Log In to Comment