Project

General

Profile

Actions

Bug #4079

open

standardize small stack frame sizes in ZFS code

Added by Christopher Siden almost 8 years ago. Updated almost 8 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.

Actions #1

Updated by Rich Lowe almost 8 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.

Actions

Also available in: Atom PDF