zfs/config
Brian Behlendorf 9af7aa53eb Set stack frame limit
For all module/library functions ensure so stack frame exceeds 1024
bytes.  Ideally this should be set lower to say 512 bytes but there
are still numerous functions which exceed even this limit.  For now
this is set to 1024 to ensure we catch the worst offenders.

Additionally, set the limit for ztest to 1024 bytes since the idea
here is to catch stack issues in user space before we find them by
overrunning a kernel stack.  This should also be reduced to 512
bytes as soon as all the trouble makes are fixed.

Finally, add -fstack-check to gcc build options when --enable-debug
is specified at configure time.  This ensures that each page on the
stack will be touched and we will generate a segfault on stack
overflow.

Over time we can gradually fix the following functions:

536 zfs:dsl_deadlist_regenerate
536 zfs:dsl_load_sets
536 zfs:zil_parse
544 zfs:zfs_ioc_recv
552 zfs:dsl_deadlist_insert_bpobj
552 zfs:vdev_dtl_sync
584 zfs:copy_create_perms
608 zfs:ddt_class_contains
608 zfs:ddt_prefetch
608 zfs:__dprintf
616 zfs:ddt_lookup
648 zfs:dsl_scan_ddt
696 zfs:dsl_deadlist_merge
736 zfs:ddt_zap_walk
744 zfs:dsl_prop_get_all_impl
872 zfs:dnode_evict_dbufs
2010-06-29 10:08:48 -07:00
..
Makefile.am Use old autoconf stratagy 2008-12-15 16:27:22 -08:00
Rules.am Add support for 'make -s' silent builds 2010-03-26 15:41:41 -07:00
config.awk Allow zfs_config.h to be included by dependant packages (updated) 2010-03-22 16:42:18 -07:00
kernel-bdev-block-device-operations.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-bdev-logical-size.m4 Linux 2.6.31 logical block size compatibility. 2009-11-12 12:49:01 -08:00
kernel-bio-empty-barrier.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-bio-end-io-t-args.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-bio-rw-syncio.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-end-request.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-fetch-request.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-requeue-request.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-rq-bytes.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-rq-pos.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-rq-sectors.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-fmode-t.m4 Add a check for the fmode_t type. 2009-12-23 14:42:32 -08:00
kernel-get-disk-ro.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-invalidate-bdev-args.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-open-bdev-exclusive.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-rq-for-each_segment.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-rq-is_sync.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel.m4 Add top level SPL include path which is needed for *-devel builds 2010-04-22 09:55:07 -07:00
rpm.am Distro friendly build system / packaging improvements. 2009-07-01 10:53:05 -07:00
user-arch.m4 Move user-arch.m4 change from linux-libspl to zfs-branch. 2010-05-18 12:26:48 -07:00
user-ioctl.m4 Properly detect and set HAVE_GPL_ONLY_SYMBOLS based on license 2009-02-03 09:59:54 -08:00
user-libblkid.m4 Additional build system update for libefi library. 2009-10-14 15:47:41 -07:00
user-libshare.m4 Moving addition configure checks to m4 macros 2008-12-15 16:46:34 -08:00
user-libuuid.m4 Fix error message to reference the new libuuid package. 2010-05-20 10:00:03 -07:00
user-zlib.m4 Update build system for libblkid integration 2009-10-15 16:25:18 -07:00
user.m4 Update build system for libblkid integration 2009-10-15 16:25:18 -07:00
zfs-build.m4 Set stack frame limit 2010-06-29 10:08:48 -07:00
zfs-meta.m4 Configure checks for kernel build options incompatible with the license 2010-03-08 10:27:42 -08:00