[Bug 198500] [gjournal] sysctl kern.geom.journal.cache.limit 32 bit integer overflow
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 7 19:18:46 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198500
--- Comment #5 from commit-hook at 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/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
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.limit
sysctl variable.
PR: 198500
Submitted by: Dr. Andreas Longwitz <longwitz at incore.de>
Reported by: Eugene Grosbein
Discussed with: kib
MFC after: 1 week
Changes:
head/sys/geom/journal/g_journal.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-geom
mailing list