[Bug 272401] 32 bit sysctl KERN_PROC_VM_LAYOUT hangs unkillable on 64 bit ARM

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 07 Jul 2023 00:20:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272401

            Bug ID: 272401
           Summary: 32 bit sysctl KERN_PROC_VM_LAYOUT hangs unkillable on
                    64 bit ARM
           Product: Base System
           Version: CURRENT
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu
 Attachment #243288 text/plain
         mime type:

Created attachment 243288
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=243288&action=edit
sysctl hang test

Run the attached program compiled in a 32 bit chroot environment on 64 bit ARM.
 It hangs unkillable in sysctl.  It is so stuck that rebooting doesn't work
because the process won't die.

Tools are confused about whether the program is running or runnable.  The
program does not accumulate CPU time.

The program runs fine as a native 64 bit application.  Something in 32 to 64
bit translation must be broken.

Bug reported on mailing lists by Mark Millard.  The original hang was in the
kern_copyin test, but sysctl was to blame.

-- 
You are receiving this mail because:
You are the assignee for the bug.