<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>296116</bug_id>
          
          <creation_ts>2026-06-17 17:17:26 +0000</creation_ts>
          <short_desc>/usr/src/tests/sys/kern/aslr.c:112: failed to find /sbin/ping text segment</short_desc>
          <delta_ts>2026-07-07 21:01:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Base System</product>
          <component>tests</component>
          <version>16.0-CURRENT</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Many People</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Enji Cooper">ngie</reporter>
          <assigned_to name="Dag-Erling Smørgrav">des</assigned_to>
          <cc>des</cc>
    
    <cc>emaste</cc>
    
    <cc>markj</cc>
          

      

      

      <flag name="mfc-stable15"
          id="99773"
          type_id="13"
          status="+"
          setter="des"
    />
    <flag name="mfc-stable14"
          id="99774"
          type_id="11"
          status="+"
          setter="des"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1429648</commentid>
    <comment_count>0</comment_count>
    <who name="Enji Cooper">ngie</who>
    <bug_when>2026-06-17 17:17:26 +0000</bug_when>
    <thetext>This seems to be a regression of https://cgit.freebsd.org/src/commit/?id=ebb0ea9f4f599be267641e630ea48279e4f531d1 (this is happening on other branches as well, like stable/15).

From https://ci.freebsd.org/job/FreeBSD-main-amd64-test/28808/testReport/ :

/usr/src/tests/sys/kern/aslr.c:112: failed to find /sbin/ping text segment
Standard Output
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.102 ms
Standard Error
Test case metadata
------------------

allowed_architectures is empty
allowed_platforms is empty
description is empty
execenv is empty
execenv_jail_params is empty
has_cleanup = false
is_exclusive = false
required_configs = unprivileged_user
required_disk_space = 0
required_files is empty
required_kmods is empty
required_memory = 0
required_programs is empty
required_user = root
timeout = 300

Timing information
------------------

Start time: 2026-06-17T12:17:29.307384Z
End time:   2026-06-17T12:17:29.815743Z
Duration:   0.508s

Original stderr
---------------

&lt;EMPTY&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429649</commentid>
    <comment_count>1</comment_count>
    <who name="Enji Cooper">ngie</who>
    <bug_when>2026-06-17 17:18:51 +0000</bug_when>
    <thetext>Ah, I missed that the test was added in that commit. Ok, that all makes sense...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429650</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Johnston">markj</who>
    <bug_when>2026-06-17 17:20:53 +0000</bug_when>
    <thetext>This is a race in the test, the child hasn&apos;t execve()ed the new image at the time that the parent looks for the base address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1429876</commentid>
    <comment_count>3</comment_count>
    <who name="Enji Cooper">ngie</who>
    <bug_when>2026-06-18 21:39:19 +0000</bug_when>
    <thetext>(In reply to Mark Johnston from comment #2)

Thank you Mark for picking this up -- let me know if I can help in the review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430395</commentid>
    <comment_count>4</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-06-22 13:27:15 +0000</bug_when>
    <thetext>A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=080a4087014e1d19136cc77028019d98b5c69e1e

commit 080a4087014e1d19136cc77028019d98b5c69e1e
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-22 13:23:31 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-06-22 13:23:48 +0000

    tests: Fix race condition in aslr_setuid

    Use a cloexec pipe to block the parent until the child is ready.

    While here, redirect the output from ping to /dev/null, and mark the
    test as requiring the inet feature since we ping the IPv4 loopback.

    PR:             296116
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57734

 tests/sys/kern/Makefile |  1 +
 tests/sys/kern/aslr.c   | 16 +++++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430593</commentid>
    <comment_count>5</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-06-23 15:21:48 +0000</bug_when>
    <thetext>A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=86950cf9ffe89b7978fca019019692b3ea492044

commit 86950cf9ffe89b7978fca019019692b3ea492044
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-23 15:20:26 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-06-23 15:20:38 +0000

    tests: Fix race condition in aslr_setuid, take 2

    Instead of a cloexec pipe, ingest ping&apos;s stdout and block until it has
    printed its initial summary, then close the pipe and return to the main
    test loop.  Run ping in quiet mode so it won&apos;t mind that stdout is gone.

    PR:             296116
    MFC after:      1 week
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57763

 tests/sys/kern/aslr.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1432557</commentid>
    <comment_count>6</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-03 19:29:48 +0000</bug_when>
    <thetext>A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=81cf9a0ca765b48a430da61c221be17c4d0f753a

commit 81cf9a0ca765b48a430da61c221be17c4d0f753a
Author:     Mark Johnston &lt;markj@FreeBSD.org&gt;
AuthorDate: 2026-07-03 19:28:22 +0000
Commit:     Mark Johnston &lt;markj@FreeBSD.org&gt;
CommitDate: 2026-07-03 19:28:30 +0000

    tests/aslr: Fix spurious test failures

    /sbin/ping and /sbin/ping6 are hard-linked, and the vmmap sysctl handler
    doesn&apos;t know which name was used to launch the process.

    PR:             296116
    MFC after:      3 days
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)

 tests/sys/kern/aslr.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433088</commentid>
    <comment_count>7</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:57:57 +0000</bug_when>
    <thetext>A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=4336554f94cf11c106a3fb5d2b77fdcfb9ab571e

commit 4336554f94cf11c106a3fb5d2b77fdcfb9ab571e
Author:     Mark Johnston &lt;markj@FreeBSD.org&gt;
AuthorDate: 2026-07-03 19:28:22 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:07:16 +0000

    tests/aslr: Fix spurious test failures

    /sbin/ping and /sbin/ping6 are hard-linked, and the vmmap sysctl handler
    doesn&apos;t know which name was used to launch the process.

    PR:             296116
    MFC after:      3 days
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)

    (cherry picked from commit 81cf9a0ca765b48a430da61c221be17c4d0f753a)

 tests/sys/kern/aslr.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433089</commentid>
    <comment_count>8</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:57:58 +0000</bug_when>
    <thetext>A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8adf49dac1a937c9a8dc6937d6d23af14df7597a

commit 8adf49dac1a937c9a8dc6937d6d23af14df7597a
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-22 13:23:31 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:06:55 +0000

    tests: Fix race condition in aslr_setuid

    Use a cloexec pipe to block the parent until the child is ready.

    While here, redirect the output from ping to /dev/null, and mark the
    test as requiring the inet feature since we ping the IPv4 loopback.

    PR:             296116
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57734

    (cherry picked from commit 080a4087014e1d19136cc77028019d98b5c69e1e)

    tests: Fix race condition in aslr_setuid, take 2

    Instead of a cloexec pipe, ingest ping&apos;s stdout and block until it has
    printed its initial summary, then close the pipe and return to the main
    test loop.  Run ping in quiet mode so it won&apos;t mind that stdout is gone.

    PR:             296116
    MFC after:      1 week
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57763

    (cherry picked from commit 86950cf9ffe89b7978fca019019692b3ea492044)

 tests/sys/kern/Makefile |  1 +
 tests/sys/kern/aslr.c   | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433090</commentid>
    <comment_count>9</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:57:59 +0000</bug_when>
    <thetext>A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8adf49dac1a937c9a8dc6937d6d23af14df7597a

commit 8adf49dac1a937c9a8dc6937d6d23af14df7597a
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-22 13:23:31 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:06:55 +0000

    tests: Fix race condition in aslr_setuid

    Use a cloexec pipe to block the parent until the child is ready.

    While here, redirect the output from ping to /dev/null, and mark the
    test as requiring the inet feature since we ping the IPv4 loopback.

    PR:             296116
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57734

    (cherry picked from commit 080a4087014e1d19136cc77028019d98b5c69e1e)

    tests: Fix race condition in aslr_setuid, take 2

    Instead of a cloexec pipe, ingest ping&apos;s stdout and block until it has
    printed its initial summary, then close the pipe and return to the main
    test loop.  Run ping in quiet mode so it won&apos;t mind that stdout is gone.

    PR:             296116
    MFC after:      1 week
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57763

    (cherry picked from commit 86950cf9ffe89b7978fca019019692b3ea492044)

 tests/sys/kern/Makefile |  1 +
 tests/sys/kern/aslr.c   | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433091</commentid>
    <comment_count>10</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:59:00 +0000</bug_when>
    <thetext>A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=19a4967946855bb3941382a1a1ccf3c7c1d5a1f3

commit 19a4967946855bb3941382a1a1ccf3c7c1d5a1f3
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-22 13:23:31 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:07:55 +0000

    tests: Fix race condition in aslr_setuid

    Use a cloexec pipe to block the parent until the child is ready.

    While here, redirect the output from ping to /dev/null, and mark the
    test as requiring the inet feature since we ping the IPv4 loopback.

    PR:             296116
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57734

    (cherry picked from commit 080a4087014e1d19136cc77028019d98b5c69e1e)

    tests: Fix race condition in aslr_setuid, take 2

    Instead of a cloexec pipe, ingest ping&apos;s stdout and block until it has
    printed its initial summary, then close the pipe and return to the main
    test loop.  Run ping in quiet mode so it won&apos;t mind that stdout is gone.

    PR:             296116
    MFC after:      1 week
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57763

    (cherry picked from commit 86950cf9ffe89b7978fca019019692b3ea492044)

 tests/sys/kern/Makefile |  1 +
 tests/sys/kern/aslr.c   | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433092</commentid>
    <comment_count>11</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:59:01 +0000</bug_when>
    <thetext>A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=478d81e72eaae3276c4670e0054385b5e4e1f031

commit 478d81e72eaae3276c4670e0054385b5e4e1f031
Author:     Mark Johnston &lt;markj@FreeBSD.org&gt;
AuthorDate: 2026-07-03 19:28:22 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:08:03 +0000

    tests/aslr: Fix spurious test failures

    /sbin/ping and /sbin/ping6 are hard-linked, and the vmmap sysctl handler
    doesn&apos;t know which name was used to launch the process.

    PR:             296116
    MFC after:      3 days
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)

    (cherry picked from commit 81cf9a0ca765b48a430da61c221be17c4d0f753a)

 tests/sys/kern/aslr.c | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433093</commentid>
    <comment_count>12</comment_count>
    <who name="">commit-hook</who>
    <bug_when>2026-07-07 20:59:02 +0000</bug_when>
    <thetext>A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=19a4967946855bb3941382a1a1ccf3c7c1d5a1f3

commit 19a4967946855bb3941382a1a1ccf3c7c1d5a1f3
Author:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
AuthorDate: 2026-06-22 13:23:31 +0000
Commit:     Dag-Erling Smørgrav &lt;des@FreeBSD.org&gt;
CommitDate: 2026-07-07 07:07:55 +0000

    tests: Fix race condition in aslr_setuid

    Use a cloexec pipe to block the parent until the child is ready.

    While here, redirect the output from ping to /dev/null, and mark the
    test as requiring the inet feature since we ping the IPv4 loopback.

    PR:             296116
    MFC after:      1 week
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57734

    (cherry picked from commit 080a4087014e1d19136cc77028019d98b5c69e1e)

    tests: Fix race condition in aslr_setuid, take 2

    Instead of a cloexec pipe, ingest ping&apos;s stdout and block until it has
    printed its initial summary, then close the pipe and return to the main
    test loop.  Run ping in quiet mode so it won&apos;t mind that stdout is gone.

    PR:             296116
    MFC after:      1 week
    Fixes:          080a4087014e (&quot;tests: Fix race condition in aslr_setuid&quot;)
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D57763

    (cherry picked from commit 86950cf9ffe89b7978fca019019692b3ea492044)

 tests/sys/kern/Makefile |  1 +
 tests/sys/kern/aslr.c   | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>