Re: Bug#762404: glibc: FTBFS[kfreebsd] tst-execstack fails; expected behaviour
tags 762404 + patch
thanks
Hi,
> Encountered regressions that don't match expected failures (debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc):
> tst-execstack-needed.out, Error 1
> tst-execstack.out, Error 1
> tst-execstack-prog.out, Error 1
I decided to simply add those to the list of expected failures, since:
> Similar to SElinux enforcement of allow_execstack=0 - something the
> test program checks for and knows how to handle [...] I suggest the test
> could be fixed for any version of kfreebsd by checking the appropriate
> sysctl.
In short, I tried to implement this, but kfreebsd's stack protector
seems to trigger a SIGSEGV in the process rather than whatever SElinux
does. It also wouldn't fix the tst-execstack-needed and -prog tests.
Patch attached!
Thanks,
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
--- debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc.orig 2014-09-12 21:50:56.000000000 +0000
+++ debian/testsuite-checking/expected-results-i586-kfreebsd-gnu-libc 2014-09-27 00:54:07.869807173 +0000
@@ -20,6 +20,11 @@
tst-timer4.out, Error 1
tst-timer5.out, Error 1
tst-waitid.out, Error 1
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
#
# needs newer kernel - see #716746
#
--- debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc.orig 2014-09-12 21:50:56.000000000 +0000
+++ debian/testsuite-checking/expected-results-x86_64-kfreebsd-gnu-libc 2014-09-27 00:40:54.945854744 +0000
@@ -22,6 +22,13 @@
tst-waitid.out, Error 1
tst-writev.out, Error 1
#
+# will expectedly SIGSEGV on kfreebsd 10.0 and later, due to having
+# nxstack=1 by default (bug #762404)
+#
+tst-execstack-needed.out, Error 1
+tst-execstack.out, Error 1
+tst-execstack-prog.out, Error 1
+#
# needs newer kernel - see #716746
#
tst-cpuclock1.out, Error 1
Reply to: