Index: sys/compat/linux/linux.h =================================================================== --- sys/compat/linux/linux.h +++ sys/compat/linux/linux.h @@ -113,6 +113,7 @@ /* sigaltstack */ #define LINUX_SS_ONSTACK 1 #define LINUX_SS_DISABLE 2 +#define LINUX_SS_AUTODISARM 0x80000000 int linux_to_bsd_sigaltstack(int lsa); int bsd_to_linux_sigaltstack(int bsa); Index: sys/compat/linux/linux.c =================================================================== --- sys/compat/linux/linux.c +++ sys/compat/linux/linux.c @@ -188,6 +188,12 @@ if (lsa & LINUX_SS_DISABLE) bsa |= SS_DISABLE; + if (lsa & LINUX_SS_AUTODISARM) { + /* + * XXX: We should be returning EINVAL instead. + */ + linux_msg(curthread, "unsupported SS_AUTODISARM"); + } /* * Linux ignores SS_ONSTACK flag for ss * parameter while FreeBSD prohibits it.