Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Aug 2017 19:18:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-geom@FreeBSD.org
Subject:   [Bug 198500] [gjournal] sysctl kern.geom.journal.cache.limit 32 bit integer overflow
Message-ID:  <bug-198500-14739-x0bLhEavqw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-198500-14739@https.bugs.freebsd.org/bugzilla/>
References:  <bug-198500-14739@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #5 from commit-hook@freebsd.org ---
A commit references this bug:

Author: mckusick
Date: Mon Aug  7 19:18:28 UTC 2017
New revision: 322178
URL: https://svnweb.freebsd.org/changeset/base/322178

Log:
  sysctl kern.geom.journal.cache.limit shows negative value for FreeBSD/amd=
64
  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
     half of vm.kmem_size by default for amd64);
  2) sysctl handler g_journal_cache_limit_sysctl() using u_int instead of
u_long.

  The fix is to replace u_int with u_long for the kern.geom.journal.cache.l=
imit
  sysctl variable.

  PR: 198500
  Submitted by: Dr. Andreas Longwitz <longwitz@incore.de>
  Reported by: Eugene Grosbein
  Discussed with: kib
  MFC after: 1 week

Changes:
  head/sys/geom/journal/g_journal.c

--=20
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-14739-x0bLhEavqw>