On 6 Jul 2023, at 18:53, John F Carr wrote: > The hang is caused by the sysctl call in tests/sys/kern/kern_copyin.c. The > function below hangs when called in a 32 bit ARM process running in a chroot > environment on a 64 bit ARM system. I will write up a bug report. > > static int > get_vm_layout(struct kinfo_vm_layout *kvm) > { > size_t len; > int mib[4]; > > mib[0] = CTL_KERN; > mib[1] = KERN_PROC; > mib[2] = KERN_PROC_VM_LAYOUT; > mib[3] = getpid(); > len = sizeof(*kvm); > > return (sysctl(mib, nitems(mib), kvm, &len, NULL, 0)); > }
Thanks for isolating this. Let me know when you have the bug number. I just tested a fix (the compat code drops the reference on the current address space an extra time, probably freeing it). Mike