Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2024 16:52:55 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Current <current@freebsd.org>, bnovkov@FreeBSD.org
Subject:   Multiple issues with current (kldload failures, missing CTF stuff, pty issues, ...)
Message-ID:  <09ef22679b76cb2dbeace8e78bf9f80e@Leidinger.net>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_14c9a787fb6275db952b576fe533277e
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed

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.

I tried the workaround to load the modules from the loader, which works, 
but then I can't login remotely as ssh fails to allocate a pty. By 
loading modules via the loader, I can see messages about missing CTF 
info when the nvidia modules (from ports = not yet rebuild = in 
/boot/modules/...ko instead of /boot/kernel/...ko) try to get 
initialised... and it looks like they are failing to get initialised 
because of this missing CTF stuff (I'm back to the previous boot env to 
be able to login remotely and send mails, I don't have a copy of the 
failure message at hand).

I assume the missing CTF stuff is due to the CTF based pretty printing 
(https://cgit.freebsd.org/src/commit/?id=c21bc6f3c2425de74141bfee07b609bf65b5a6b3). 
Is this supposed to fail to load modules which are compiled without CTF 
data? Shouldn't this work gracefully (e.g. spit out a warning that 
pretty printing is not available for module X and have the module 
working)?

Next steps:
  - try a world without retpoline (bind_now and ccache active)
  - try a kernel without CTF (bind now, ccache, retpoline active)
  - try a world without bind_now, retpoline, CTF, CPUFLAGS, COPTFLAGS

If anyone has an idea how to debug this in some other way...

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_14c9a787fb6275db952b576fe533277e
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmYG4+sACgkQEg2wmwP4
2IZ9Aw//XUOLP9lAu3PuQEHkvcRr/lz+AZsLxxaWNWlBDEXexLnIMRe0Yc0N0J2l
wQwtLUKSBkxHFLYb6zvb4fnnt5ydKiUo1P/BRhf3UtNFw2hiuX7/9uEf+QRTpsmF
MHnqsHkg1gRFOrH2D/iVPwmsllnlMWe7D7AP57Cck2ZCmFc/PX+d4B8nMlRTTjOJ
phEsfY7izcQTX4jymrx+OhKV2wLXExLKDeuzRRKYuGY1hUp3HmA28EMduClndqVB
64xVoqWwgW4XlzFpRFLoAOOOw02ZFmKcEVBBNNUfbogT6mxOWWp7lpOMj/dtaatl
hE0dS5i4sDU8U5atFFK6agnyEC46osCUNtu51l8mv41qKzq+8fg8HaDZllUnpkyt
ffh4BLYPY1MKms6mla+6pOG5pVlF+IZZMH3cimCCkc2ub+pmlLQtRJ7ewp8aDyx1
aWlEREB2k5XxcRbQFPbOhPcxq52P8oIUTnj+8mbOLnZbDSDHaZyZowg/nYYjnXc+
Xnu/YwCSvvFzZ9zj6KbsaGDXqPcGOCq51vNP7wxneQO1QxiOHBVwvCCiZKDHtvfT
1YvfT7d+5OREkeolJH4mHMrMOgzJ/dezV8TCDPI2IADWTBluxzjU+3tf35APDJNx
nKfDZZ/0f9TMrQm9FQqR6IkjL6tH0szMM8cXV/H5dSQvuBOKR28=
=x0qD
-----END PGP SIGNATURE-----

--=_14c9a787fb6275db952b576fe533277e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09ef22679b76cb2dbeace8e78bf9f80e>