[Differential] [Commented On] D3094: Fix ARMv8 KSTACK_PAGES issue
wma_semihalf.com (Wojciech Macek)
phabric-noreply at FreeBSD.org
Wed Jul 15 09:26:59 UTC 2015
wma_semihalf.com added inline comments.
INLINE COMMENTS
sys/arm64/include/param.h:98 Hm... isn't the argument about error vulnerability good enough? I'm pretty sure that sooner or later, when someone creates new file which uses KSTACK_PAGES he looks where is defined and includes <machine/param.h> forgetting about prior including of "opt_kstack_pages.h" (*). In that case the default value will be used regardless of the one set up in KERNCONF. The compiler won't show even slightest indication of an error and the bug will appear in the most unpredictable place.
I remember how much time took to find this bug, because errors it caused were at the first look completely unrelated to anything. If we really want to have armv8 the tier1 architecture, I'd like to remove this piece of code because is dangerous.
(*) All armv8 machdep files are the perfect example of that situation. The code was copied from armv7 (where I think that KSTACK_PAGES doesn't work either, but no one ever tried to change the default) and the bug propagated.
REPOSITORY
rS FreeBSD src repository
REVISION DETAIL
https://reviews.freebsd.org/D3094
EMAIL PREFERENCES
https://reviews.freebsd.org/settings/panel/emailpreferences/
To: wma_semihalf.com, emaste, zbb, andrew
Cc: imp, andrew, freebsd-arm-list, emaste
More information about the freebsd-arm
mailing list