Bug 261965 - t_dtrace_contrib:tst_emptystack_d: Fails due to W^X and ASLR: Fail: incorrect exit status: 1, expected: 0
Summary: t_dtrace_contrib:tst_emptystack_d: Fails due to W^X and ASLR: Fail: incorrect...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: tests (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Many People
Assignee: Mark Johnston
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2022-02-15 09:09 UTC by Amit
Modified: 2022-03-15 16:52 UTC (History)
4 users (show)

See Also:
koobs: mfc-stable13?
koobs: mfc-stable12?


Attachments
[261965]test results t_dtrace_contrib:tst_emptystack_d (14.61 KB, text/plain)
2022-02-16 18:28 UTC, Amit
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit 2022-02-15 09:09:36 UTC
kern.elf64.allow_wx: 0
kern.elf64.sigfastblock: 1
kern.elf64.aslr.stack_gap: 3
kern.elf64.aslr.honor_sbrk: 0
kern.elf64.aslr.pie_enable: 1
kern.elf64.aslr.enable: 1
kern.elf64.pie_base: 16912384
kern.elf64.nxstack: 1
kern.elf64.fallback_brand: -1

file /usr/bin/find
/usr/bin/find: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0 (1400051), FreeBSD-style, stripped


/usr/tests/cddl/usr.sbin/dtrace/common/pid # kyua test -k ./Kyuafile t_dtrace_contrib:tst_emptystack_d
t_dtrace_contrib:tst_emptystack_d  ->  failed: atf-check failed; see the output of the test for details  [6.901s]

Results file id is usr_tests_cddl_usr.sbin_dtrace_common_pid.20220216-080150-620136
Results saved to /root/.kyua/store/results.usr_tests_cddl_usr.sbin_dtrace_common_pid.20220216-080150-620136.db

0/1 passed (1 failed)



<html>
<head>
  <title>Test case: t_dtrace_contrib:tst_emptystack_d</title>
  <link rel="stylesheet" type="text/css" href="report.css" />
</head>

<body>

<h1>Test case: t_dtrace_contrib:tst_emptystack_d</h1>

<ul>
  <li>Test program: /usr/tests/cddl/usr.sbin/dtrace/common/pid/t_dtrace_contrib</li>
  <li>Result: failed: atf-check failed; see the output of the test for details</li>
  <li>Start time: 2022-02-16T08:01:50.897925Z</li>
  <li>End time: 2022-02-16T08:01:57.799123Z</li>
  <li>Duration: 6.901s</li>
  <li><a href="context.html">Execution context</a></li>
</ul>

<h2>Metadata</h2>

<ul>
  <li><tt>allowed_architectures = </tt></li>
  <li><tt>allowed_platforms = </tt></li>
  <li><tt>description = DTrace test common/pid/tst.emptystack.d</tt></li>
  <li><tt>has_cleanup = false</tt></li>
  <li><tt>is_exclusive = false</tt></li>
  <li><tt>required_configs = </tt></li>
  <li><tt>required_disk_space = 0</tt></li>
  <li><tt>required_files = </tt></li>
  <li><tt>required_memory = 0</tt></li>
  <li><tt>required_programs = </tt></li>
  <li><tt>required_user = </tt></li>
  <li><tt>timeout = 300</tt></li>
</ul>

<h2>Standard output</h2>

<pre>Executing command [ /usr/tests/cddl/usr.sbin/dtrace/common/pid/../../dtest /usr/tests/cddl/usr.sbin/dtrace/common/pid/tst.emptystack.d ]
</pre>

<h2>Standard error</h2>

<pre>Fail: incorrect exit status: 1, expected: 0
stdout:

stderr:
test tst.emptystack.d failed: test output mismatch
test stdout:
--

--

</pre>

</body>
</html>
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2022-02-16 16:09:12 UTC
Please try https://reviews.freebsd.org/D34304 .
Comment 2 Amit 2022-02-16 18:28:28 UTC
Created attachment 231875 [details]
[261965]test results t_dtrace_contrib:tst_emptystack_d
Comment 3 Amit 2022-02-16 18:36:08 UTC
Tested with the patch -> https://reviews.freebsd.org/D34304 .

Ran 51 times in a loot, PASSED all

attached results
Comment 5 Mark Johnston freebsd_committer freebsd_triage 2022-03-15 16:52:25 UTC
Fixed in stable/13: https://cgit.freebsd.org/src/commit/?id=c04e4ff6168a419de1d11a7b4335d9874370b60c

Thanks for testing.