From owner-freebsd-current@freebsd.org Sat Aug 29 00:17:06 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CE8E43C6FE5 for ; Sat, 29 Aug 2020 00:17:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BdcTs6KDhz4dfc for ; Sat, 29 Aug 2020 00:17:05 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 7FD7F8D4A162 for ; Sat, 29 Aug 2020 00:16:58 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 26603E7085B for ; Sat, 29 Aug 2020 00:16:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id ixdUpEcC2jh3 for ; Sat, 29 Aug 2020 00:16:56 +0000 (UTC) Received: from [127.0.0.1] (unknown [IPv6:fde9:577b:c1a9:4902:8df8:1233:8000:50e0]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 3AB36E707C2 for ; Sat, 29 Aug 2020 00:16:56 +0000 (UTC) From: "Bjoern A. Zeeb" To: "FreeBSD Current" Subject: loading modules from loader | KLD file ... could not finalize loading Date: Sat, 29 Aug 2020 00:16:55 +0000 X-Mailer: MailMate (2.0BETAr6146) Message-ID: <28059D1A-5BC7-4045-8E46-69F297C6B49D@lists.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4BdcTs6KDhz4dfc X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.68 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[zabbadoz.net]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.963]; NEURAL_HAM_MEDIUM(-0.89)[-0.891]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.53)[-0.527]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Aug 2020 00:17:06 -0000 Hi, I’ve been seeing on both i386 and arm64 builds where I tested that loading modules from loader will then fail by the kernel link in certain situations. I’ve created an i386 example where I do load a few modules from loader to show what I think the problem is. You may notice in the example output below that it seems modules depending on other loaded modules which seem to fail; e.g., ipfw seems to load but ipfw_* not; pf.ko seems to load but pflog.ko not, netgraph.ko seems to load but ng_*.ko fail. Anyone any ideas how I manage this? Trying to load them from console later using kldload seems to have similar issues. I wonder if I am missing something essential in my custom kernel builds or if this is a regression in head? /bz Preloaded elf kernel "/boot/kernel/kernel" at 0x2da2000. Preloaded md_image "/base13-r364939" at 0x2daa650. Preloaded elf module "/boot/kernel/pf.ko" at 0x2daa6a0. Preloaded elf module "/boot/kernel/pflog.ko" at 0x2daaa58. Preloaded elf module "/boot/kernel/ipfw_nat.ko" at 0x2daadec. Preloaded elf module "/boot/kernel/ipfw.ko" at 0x2dab184. Preloaded elf module "/boot/kernel/libalias.ko" at 0x2dab540. Preloaded elf module "/boot/kernel/ipfw_nat64.ko" at 0x2dab900. Preloaded elf module "/boot/kernel/ipfw_nptv6.ko" at 0x2dabcc0. Preloaded elf module "/boot/kernel/ipfw_pmod.ko" at 0x2dac058. Preloaded elf module "/boot/kernel/mac_ntpd.ko" at 0x2dac3f0. Preloaded elf module "/boot/kernel/netgraph.ko" at 0x2dac760. Preloaded elf module "/boot/kernel/ng_ksocket.ko" at 0x2dacb20. Preloaded elf module "/boot/kernel/ng_l2tp.ko" at 0x2dace90. Preloaded elf module "/boot/kernel/ng_ppp.ko" at 0x2dad1fc. Preloaded elf module "/boot/kernel/ng_iface.ko" at 0x2dad568. Preloaded elf module "/boot/kernel/ng_tcpmss.ko" at 0x2dad928. Preloaded elf module "/boot/kernel/ng_socket.ko" at 0x2dadc70. Preloaded elf module "/boot/kernel/ng_tee.ko" at 0x2dae030. link_elf: symbol pf_rules_lock undefined KLD file pflog.ko - could not finalize loading link_elf: symbol LibAliasAddServer undefined KLD file ipfw_nat.ko - could not finalize loading link_elf: symbol layer3_chain undefined KLD file ipfw_nat64.ko - could not finalize loading link_elf: symbol layer3_chain undefined KLD file ipfw_nptv6.ko - could not finalize loading link_elf: symbol layer3_chain undefined KLD file ipfw_pmod.ko - could not finalize loading link_elf: symbol M_NETGRAPH undefined KLD file ng_ksocket.ko - could not finalize loading link_elf: symbol M_NETGRAPH_MSG undefined KLD file ng_l2tp.ko - could not finalize loading link_elf: symbol M_NETGRAPH_MSG undefined KLD file ng_ppp.ko - could not finalize loading link_elf: symbol M_NETGRAPH_MSG undefined KLD file ng_iface.ko - could not finalize loading link_elf: symbol M_NETGRAPH undefined KLD file ng_tcpmss.ko - could not finalize loading link_elf: symbol M_NETGRAPH_MSG undefined KLD file ng_socket.ko - could not finalize loading link_elf: symbol M_NETGRAPH undefined KLD file ng_tee.ko - could not finalize loading