Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/76a66ec56582
branches:  netbsd-6
changeset: 777131:76a66ec56582
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Feb 05 06:01:05 2017 +0000

description:
Apply patch (requested by maxv in ticket #1431):
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 d574a07843dc -r 76a66ec56582 sys/arch/amd64/amd64/copy.S
--- a/sys/arch/amd64/amd64/copy.S       Sun Feb 05 05:53:27 2017 +0000
+++ b/sys/arch/amd64/amd64/copy.S       Sun Feb 05 06:01:05 2017 +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.14.1 2017/02/05 06:01:05 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