Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/arch/amd64/amd64 Apply patch (requested by maxv in ti...



details:   https://anonhg.NetBSD.org/src/rev/88f4ae4e9303
branches:  netbsd-7
changeset: 800095:88f4ae4e9303
user:      snj <snj%NetBSD.org@localhost>
date:      Sat Dec 24 04:07:25 2016 +0000

description:
Apply patch (requested by maxv in ticket #1278):
suword: Don't allow 4 bytes to overflow beyond the userland space.

diffstat:

 sys/arch/amd64/amd64/copy.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f881b7f35d3c -r 88f4ae4e9303 sys/arch/amd64/amd64/copy.S
--- a/sys/arch/amd64/amd64/copy.S       Fri Dec 23 08:18:44 2016 +0000
+++ b/sys/arch/amd64/amd64/copy.S       Sat Dec 24 04:07:25 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copy.S,v 1.18 2010/07/07 01:13:29 chs Exp $    */
+/*     $NetBSD: copy.S,v 1.18.34.1 2016/12/24 04:07:25 snj Exp $       */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -413,7 +413,7 @@
 
 ENTRY(suword)
        DEFERRED_SWITCH_CHECK
-       movq    $VM_MAXUSER_ADDRESS-4,%r11
+       movq    $VM_MAXUSER_ADDRESS-8,%r11
        cmpq    %r11,%rdi
        ja      _C_LABEL(fusuaddrfault)
 



Home | Main Index | Thread Index | Old Index