Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Mar 2015 17:37:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 198500] [gjournal] sysctl kern.geom.journal.cache.limit 32 bit integer overflow
Message-ID:  <bug-198500-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 198500
           Summary: [gjournal] sysctl kern.geom.journal.cache.limit 32 bit
                    integer overflow
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: eugen@grosbein.net

sysctl kern.geom.journal.cache.limit shows negative value for FreeBSD/amd64
system having over 4GB RAM. That's due to:

1) the limit being u_int instead of u_long like vm.kmem_size (the limit is 1/2
of vm.kmem_size by default for amd64);
2) sysctl handler g_journal_cache_limit_sysctl() using signed int instead of
long.

-- 
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-198500-8>