Project

General

Profile

Bug #4079

standardize small stack frame sizes in ZFS code

Added by Christopher Siden over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2013-08-26
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Some of the functions in ZFS uses very large stack frames. This makes it hard to port them to Linux (8k stacks) and introduces some risk for ia32 (12k stacks). We should investigate enforcing smaller stack frame sizes and what existing code uses larger stack frames.

#1

Updated by Rich Lowe over 7 years ago

The trivial way to do this is to add -_gcc=-Wframe-larger-than=<X> for whatever X to the uts Makefiles (or just the ZFS makefiles, if you'd insist, but I happen to know that 99% of the kernel is clean, for reasonable values of X), and then fix what comes up.

Also available in: Atom PDF