From nobody Fri Jul 07 00:42:05 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qxvjq6lc1z4l3n9; Fri, 7 Jul 2023 00:42:07 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qxvjq6MXHz3Hkx; Fri, 7 Jul 2023 00:42:07 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.17.1/8.17.1) with ESMTP id 3670g6eH021980; Thu, 6 Jul 2023 19:42:06 -0500 (CDT) (envelope-from mike@karels.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karels.net; s=mail2; t=1688690527; bh=61wEowanF51+RnSs16nLMbAirIQg26IdIj3VkQhvi00=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BRvJM6XfxzmUETf4WUNWsNuONzOAhzMDgxI9MHSylkIxDhgiRQDX8rvF5TmIPY9fr gfoGlqRihm2Yllv7mg6KwB7o84d5lCa1hkjgXzENiyokRZvqZHNE5tXJEOjTaO/4wY mUofQco7ppxnrJhviE4/fhsXeOIKux7GhTnfGrMYlIB+vabUgoxkFeEsrYkhQQb7P5 eiAV+qF9EHECTsrAdd2oVfG+aTgz22WPTXHeKwIz9TBxlr6Zl/TxcWNfMz9UULnDlo 9gBWQ5J27Sd+3NjDygIBfioNQKPo9CsGm6ZW00z5nLmH2S5p4LBSzMzUIGPdD5VTOo MgCs1G6zUaD8g== Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id 5564KV5fp2TaVQAAs/W3XQ (envelope-from ); Thu, 06 Jul 2023 19:42:06 -0500 From: Mike Karels To: John F Carr Cc: Mark Millard , Current FreeBSD , freebsd-arm Subject: Re: For snapshot builds: armv7 chroot on aarch64 has kyua test -k /usr/tests/Kyuafile sys/kern/kern_copyin hung up [in getpid?], unkillable, prevents reboot Date: Thu, 06 Jul 2023 19:42:05 -0500 X-Mailer: MailMate (1.14r5964) Message-ID: <3404EA26-BFDD-4B87-830B-62CB6E91C0BD@karels.net> In-Reply-To: References: <7A41DED4-876F-4270-A980-549A4832B39A.ref@yahoo.com> <7A41DED4-876F-4270-A980-549A4832B39A@yahoo.com> List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Qxvjq6MXHz3Hkx X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.16.0.0/14, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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 repor= t. > > static int > get_vm_layout(struct kinfo_vm_layout *kvm) > { > size_t len; > int mib[4]; > > mib[0] =3D CTL_KERN; > mib[1] =3D KERN_PROC; > mib[2] =3D KERN_PROC_VM_LAYOUT; > mib[3] =3D getpid(); > len =3D 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