From nobody Fri Jul 07 14:36:34 2023 X-Original-To: freebsd-current@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 4QyGF433G5z4lQyN for ; Fri, 7 Jul 2023 14:36:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QyGF40gjPz3v51 for ; Fri, 7 Jul 2023 14:36:55 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688740613; bh=kHnAULqklue3D74ivYbeyO2TRHab/BkCEWRlKHsuFFY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=dDIJwRD7/b2D3gfMyFPW1F1Dl32YRdxT+uxUwYtukpPMFe8f75Y/TtWo5CTRlPJQh1MAeKIxGu/wZD75ED6+HWIB1N3BWJGbmNJ+UWB+7R3o80n3JPLP1KbNN9ysdpug7sXppan848lGqTdYrvhHVC+4ukpgSTIpPet3bckHRPbTMo6glLtCaocw2DXScEIJBbiz6bABBak7vumkuhpbVVvmelAnC5YHPT9f7gvkJqojaPRof7G46b8AJF9RFOjQwu2P3DYbwhU+Es0j/kvlH4VAAKJ+rYuX73av1JDi/DzTrpl24WYnFx0GMmNIkPlPYcBkjZzuF1YCYSpMCHV5lw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688740613; bh=7t9YZs9fm9F3cJ9drHMblfBVYKM2WEsxd01SKivnj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ivlHVA2OSyeUBqddckD0Boh_l0kT2.9pPRuRgE8HveAdNbnSzxke66j D9.Sop8GSfY.3qs8mUIn0k2srAjA413KdxYhD62QhEXniBMlK0kthARzEIkf7_ipWNENKH6iKWzk MgM9uivq_ozb3gTDjPnU0PfKZ_Jyu6ucG2Lw2a_r4V7UowuEH2EpKpTAGi1kau4A12tSerqmGYbp dvoqkwtMvgbRr.srjP1o4HgrJmf.XYz1m2.9xUjnBsEsFndyD_1IQ8q5YVQ2J.uPTxnmXDpiQAXj Bi6lAdJqpCcMLEIQHOMF0WUKaTJmCrjboomBjupNu67h_XZ85fEOVb3WOSsrtgYW5.9v86WdjZnv pFMPXdQFyumH9YLdzMHsMV02UaMSX9pmTKfx0nGTpj.H65TN03qlD0Xb8ueGrlIc7O5k3OwRuGob E0ndABzUHKYf.P_0HPXM_2JL9Qtzh86xUg2CIJGoog0P_jTe3F_gcKKPfhptFN0NGXm.ltXaK.Or v_5kuVeWYxqKcYqBQoUmCN03neUBtwTXRL5uBYA7IbUFWn0V_NNO5AQseDMtyA8iu0.PmF3fO X-Sonic-MF: X-Sonic-ID: 3e6e7298-f27c-49a6-b5fe-15b9212f57d1 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Fri, 7 Jul 2023 14:36:53 +0000 Received: by hermes--production-bf1-5d96b4b9f-nmj82 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 70f1f869c89386288a65c27fa9c48c98; Fri, 07 Jul 2023 14:36:47 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) 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 From: Mark Millard In-Reply-To: <106875C8-76F9-4307-A495-D41EAE8F1C8B@karels.net> Date: Fri, 7 Jul 2023 07:36:34 -0700 Cc: John F Carr , Current FreeBSD , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <9EE9CFF2-378B-42D0-A171-9481286805C2@yahoo.com> References: <7A41DED4-876F-4270-A980-549A4832B39A.ref@yahoo.com> <7A41DED4-876F-4270-A980-549A4832B39A@yahoo.com> <3404EA26-BFDD-4B87-830B-62CB6E91C0BD@karels.net> <240A32EC-E255-4B04-83B3-0D57308B701B@mit.edu> <106875C8-76F9-4307-A495-D41EAE8F1C8B@karels.net> To: Mike Karels X-Mailer: Apple Mail (2.3731.600.7) X-Rspamd-Queue-Id: 4QyGF40gjPz3v51 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Jul 7, 2023, at 06:50, Mike Karels wrote: > On 7 Jul 2023, at 6:06, John F Carr wrote: >=20 >> On Jul 6, 2023, at 20:42, Mike Karels wrote: >>>=20 >>>=20 >>> 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). >>>=20 >>> Mike >=20 > The fix is in = https://cgit.freebsd.org/src/commit/?id=3Dbe30fd3ab2e8418a696e69f54a91a7e2= db5962de. >=20 >> The bug was introduced in January, 2022. It allows 32 bit binaries = to crash a 64 bit system when COMPAT_FREEBSD32 is on. Test coverage of = the buggy function (sysctl_kern_proc_vm_layout) was added at the same = time. >>=20 >> There should be routine runs of 32 bit test suites on 64 bit systems. = Although i386 and armv7 are tier 2 systems, the tier 1 COMPAT_FREEBSD32 = kernel code needs to be exercised. This bug was only discovered by = manually running tests in the right environment, 17 months after = automated testing could have discovered it. >=20 > That is not so simple currently, as the shared libraries for the > test environment are not part of 32-bit compatibility package. > The required bits could be extracted from the corresponding 32-bit > build, but that isn't easy to automate. Fortunately, I think that > very few of the tests exercise any 32-bit-specific code paths. One way that I demonstrated this problem on an aarch64 system that supports aarch32/armv7 in user space was via the use of an official snapshot armv7 image. In my case I: A) dd'd the image to USB3 media (after downloading it) B) mounted the ufs file system on the media to a mount point C) used a chroot into that mount point to run the: "kyua test -k /usr/tests/Kyuafile" (I happened to do all that as root.) There may be viable alternatives to dd'ing to allow an analogy to (B) for (C) to use. I've not experimented with using a jail instead of a chroot. One can also install an armv7 world into a local directory tree and then use chroot (or analogous). How far off is an analogous sort of procedure from being reasonable to automate? i386, of course, also has lib32 and independently testing that is a messier issue, including trying to use /usr/tests/Kyuafile based testing that avoids use of chroot (or analogous). I'm not claiming lib32 has as simple of a potential path to automated testing. I do not know if FreeBSD has powerpc64 hardware able to use a powerpc world directory tree analogously. Such hardware may be too old and otherwise problematical, making it not viable to automate testing. =3D=3D=3D Mark Millard marklmi at yahoo.com