summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_exec.h
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2014-02-21 07:53:53 +0000
committermaxv <maxv@NetBSD.org>2014-02-21 07:53:53 +0000
commitd91ba50b1f2201f6aece5635388d036fdcd2b58b (patch)
treeca42f6492c658263510e0dd53a3feca5b772e243 /sys/compat/linux/common/linux_exec.h
parent2c728e7209ae0e0fe3fcf7b24c2a60499f85e66c (diff)
Increase LINUX32_ELF_AUX_ENTRIES to avoid overrun in linux32/. Also,
add comments and KASSERTs to make sure people don't forget to increase XX_AUX_ENTRIES's when adding vectors. Reported by martin@ (CV), with suggestions from chs@. ok martin@ chs@
Diffstat (limited to 'sys/compat/linux/common/linux_exec.h')
-rw-r--r--sys/compat/linux/common/linux_exec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/common/linux_exec.h b/sys/compat/linux/common/linux_exec.h
index ac6018a8856..56a816ff136 100644
--- a/sys/compat/linux/common/linux_exec.h
+++ b/sys/compat/linux/common/linux_exec.h
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec.h,v 1.50 2014/02/09 16:41:42 chs Exp $ */
+/* $NetBSD: linux_exec.h,v 1.51 2014/02/21 07:53:53 maxv Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -82,6 +82,7 @@
#define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data)
#ifndef LINUX_MACHDEP_ELF_COPYARGS
+/* Counted from linux_exec_elf32.c */
#define LINUX_ELF_AUX_ENTRIES 14
#endif