Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2015 10:04:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 201327] [patch] avoid KVA fragment in memguard when using MG_GUARD_AROUND option
Message-ID:  <bug-201327-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201327

            Bug ID: 201327
           Summary: [patch] avoid KVA fragment in memguard when using
                    MG_GUARD_AROUND option
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: luke.tw@gmail.com
          Keywords: patch

Created attachment 158323
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158323&action=edit
memguard_cursor patch

With MG_GUARD_AROUND option, memguard increases memguard_cursor with one more
PAGE_SIZE.
This results in one PAGE_SIZE fragment in KVA. 

* before patch
   old memguard_cursor: 0xfffffe0000400000
   memeguard:allocate 0x3000
   next memguard_curor: 0xfffffe0000404000

* after patch
   old memguard_cursor: 0xfffffe0000400000
   memeguard:allocate 0x3000
   next memguard_curor: 0xfffffe0000403000

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201327-8>