From nobody Sun Mar 31 14:31:43 2024 X-Original-To: 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 4V6xS6167Fz5G8vb for ; Sun, 31 Mar 2024 14:32:22 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V6xS46dp8z4dG9; Sun, 31 Mar 2024 14:32:20 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b="Rn/2TWYk"; dmarc=pass (policy=quarantine) header.from=leidinger.net; spf=pass (mx1.freebsd.org: domain of Alexander@Leidinger.net designates 2a00:1828:2000:313::1:5 as permitted sender) smtp.mailfrom=Alexander@Leidinger.net 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1711895521; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=z6wIK1zzHR1IyzTEGC774D23BtMnnx38nJ9P1YF0tuI=; b=Rn/2TWYkNIIUwqs6c4B7RZDLRiAydTY57AjGdgMbWnXm07F81INAXjB04fnNOJlFINb33N wrdwuKf2TqjRGt1sw36dwmHSWOQBi+JoF9aO4Ug0McJEGCWjHmPwCUMKaE/lkJeXGCoJeI tGpaF7J9+taATXqJSu/qp+UJBZVg3un7OlB5Uls8tUy4Q2mok452yYrofksXZ6wHDV7tq6 vJrjl0pyNJA7NUKh9PrIKXf4lVSjU36YGN81oObzha0nLGba7H7Q7YhGeJMlk+fJJ6nwgG 4clVQnPhdEB+Bts+9eLhE28lf36z8sDD39Hn8rIBPx0sAaHMX1rOg324fRZz/g== Date: Sun, 31 Mar 2024 16:31:43 +0200 From: Alexander Leidinger To: Alexander Leidinger Cc: Mark Johnston , Current , bnovkov@freebsd.org Subject: Re: Multiple issues with current (kldload failures, missing CTF stuff, pty issues, ...) In-Reply-To: References: <09ef22679b76cb2dbeace8e78bf9f80e@Leidinger.net> Message-ID: <888637ab03455a459342ba611c09b627@Leidinger.net> Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_c5498fd2cfe61cab96a94b8b1455a9d5"; micalg=pgp-sha256 X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.06 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.960]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; HAS_ORG_HEADER(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_ATTACHMENT(0.00)[] X-Rspamd-Queue-Id: 4V6xS46dp8z4dG9 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_c5498fd2cfe61cab96a94b8b1455a9d5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Am 2024-03-29 18:21, schrieb Alexander Leidinger: > Am 2024-03-29 18:13, schrieb Mark Johnston: >> On Fri, Mar 29, 2024 at 04:52:55PM +0100, Alexander Leidinger wrote: >>> Hi, >>> >>> sources from 2024-03-11 work. Sources from 2024-03-25 and today don't >>> work >>> (see below for the issue). As the monthly stabilisation pass didn't >>> find >>> obvious issues, it is something related to my setup: >>> - not a generic kernel >>> - very modular kernel (as much as possible as a module) >>> - bind_now (a build without fails too, tested with clean /usr/obj) >>> - ccache (a build without fails too, tested with clean /usr/obj) >>> - kernel retpoline (build without in progress) >>> - userland retpoline (build without in progress) >>> - kernel build with WITH_CTF / DDB_CTF (next one to test if it isn't >>> retpoline) >>> - -fno-builtin >>> - CPUFLAGS=native (except for stuff in /usr/src/sys/boot) >>> - malloc production >>> - COPTFLAGS= -O2 -pipe >>> >>> The issue is, that kernel modules load OK from loader, but once it >>> starts >>> init any module fails to load (e.g. via autodetection of hardware or >>> rc.conf >>> kld_list) with the message that the kernel and module versions are >>> out of >>> sync and the module refuses to load. >> >> What is the exact revision you're running? There were some unrelated >> changes to the kernel linker around the same time. > > The working src is from 2024-03-11-094351 (GMT+0100). > The failing src was fetched after Glebs stabilization week message (and > todays src before the sound stuff still fails). > > Retpoline wasn't the cause, next test is the CTF stuff in the kernel... A rather obscure problem was causing this. The "last" BE had canmount set to "on" instead of "noauto". No idea how this happened, but this resulted in the "last" BE to be mounted on "zfs mount -a" on top of the current BE. This means that all modules loaded after the zfs rc script has run was loading old kernel modules and the error message of kernel version mismatch was correct. I fiund the issue while bisecting the tree and suddenly the error message went away but the new issue of missing dev entries popped up (/dev was mounted correctly on the booting dataset, but the last BE was mounted on top of it and /dev went empty...). It looks to me like bectl was doing this (from "zpool history")... 2024-03-11.14:16:31 zpool set bootfs=rpool/ROOT/2024-03-11-094351 rpool 2024-03-11.14:16:31 zfs set canmount=noauto rpool/ROOT/2024-01-18-092730 2024-03-11.14:16:31 zfs set canmount=noauto rpool/ROOT/2024-02-10-144617 2024-03-11.14:16:32 zfs set canmount=noauto rpool/ROOT/2024-02-11-212006 2024-03-11.14:16:32 zfs set canmount=noauto rpool/ROOT/2024-02-16-082836 2024-03-11.14:16:32 zfs set canmount=noauto rpool/ROOT/2024-02-24-140211 2024-03-11.14:16:32 zfs set canmount=noauto rpool/ROOT/2024-02-24-140211_ok 2024-03-11.14:16:33 zfs set canmount=on rpool/ROOT/2024-03-11-094351 2024-03-11.14:16:33 zfs promote rpool/ROOT/2024-03-11-094351 2024-03-11.14:17:03 zfs destroy -r rpool/ROOT/2024-02-24-140211_ok I surely didn't do the "zfs set canmount=..." for those by hand. Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_c5498fd2cfe61cab96a94b8b1455a9d5 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=833 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmYJc9wACgkQEg2wmwP4 2IZdmw/8CWcO//WcKt5rf77I6y5H8Rv7XA42z0cBott1qx2YoPRHTlhox7iIeCPb YWkz81b7asLceCjh5T2GWwDmIVObyiiXsdfr2YHD+kvDxUzSRRGSk+37phcEU9Zs 8o3tt3KYscG8lY6fyn/icMmkTgc+jqYWvhMxKVf3JlyDgrUkER+z4AcOER7hFBOg DIKkOuzaFzgEuscIqVNgUtVdkRDcKixSGOd3XFO+mhrZ8hjb4O5PsMpJlqVXXu9J f54IG5PwBW1qx5NcLwAYWKw08Y40Mo3CDJHJu/LXFbOu5wXY3S03+sRyq3h5a1d2 HvW7iV+HN9uTdAjZvEYchAvT4t5Yug46Cz1+BGcHm3tRKSSMZKnsfzIAN8GtWuLd kBcBnPAQKeJGzAMd/kwWZ47gQgIc53nQeSuvgwYaMSMm6nwRZEjA7b67XLwzle2J uYOl7aKzBzFZp+5hozBvsu2XGhuUIIEMp2zBGqgUZKStL3SM2cd9FENLI7Lsd77G P/Iq/f0WToYADSJtyNhmbul5VVZYWxGzOC5C3Q5S7rCsh2Zzky6avXX0ZUOQ2pkC K8ZVijeNJVX+kPsQTE6VdkTzsN/n6sIkVNw44JMfP3QqSSGvkxYLVRojnfd6OgPw AJ7HDzRIWJqFNRqQouCpaTqhzaL1bGwfm6gaCMU1IiEEEMaPQ10= =O/PC -----END PGP SIGNATURE----- --=_c5498fd2cfe61cab96a94b8b1455a9d5--