From owner-freebsd-current@freebsd.org Thu Apr 23 10:30:21 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 149052B0D70 for ; Thu, 23 Apr 2020 10:30:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 497D8X5FpSz4nhZ for ; Thu, 23 Apr 2020 10:30:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id B41092B0D6F; Thu, 23 Apr 2020 10:30:20 +0000 (UTC) Delivered-To: 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 B3D6E2B0D6E for ; Thu, 23 Apr 2020 10:30:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 497D8W4NYWz4nhX for ; Thu, 23 Apr 2020 10:30:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id 03NAUBkm044444 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 23 Apr 2020 13:30:14 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua 03NAUBkm044444 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id 03NAUBS4044442; Thu, 23 Apr 2020 13:30:11 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 23 Apr 2020 13:30:11 +0300 From: Konstantin Belousov To: Alexander Leidinger Cc: current@freebsd.org Subject: Re: nfslockd kernel module fails to load Message-ID: <20200423103011.GH2522@kib.kiev.ua> References: <20200423080809.Horde.Bo3hS63ATAG-0MzxdGgLyhI@webmail.leidinger.net> <20200423061908.GE2522@kib.kiev.ua> <20200423083008.Horde.pIybBPGLYf5eoV_K5M6O6w7@webmail.leidinger.net> <20200423070412.GF2522@kib.kiev.ua> <20200423094602.Horde.CSyNCDCsORIorqv2R743XCg@webmail.leidinger.net> <20200423092248.GG2522@kib.kiev.ua> <20200423115330.Horde.NW6XdOo4LdF1H7Djzj2V_JM@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200423115330.Horde.NW6XdOo4LdF1H7Djzj2V_JM@webmail.leidinger.net> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on tom.home X-Rspamd-Queue-Id: 497D8W4NYWz4nhX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.00)[ip: (-2.99), ipnet: 2001:470::/32(-4.65), asn: 6939(-3.60), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 23 Apr 2020 10:30:21 -0000 On Thu, Apr 23, 2020 at 11:53:30AM +0200, Alexander Leidinger wrote: > Quoting Konstantin Belousov (from Thu, 23 Apr 2020 > 12:22:48 +0300): > > > On Thu, Apr 23, 2020 at 09:46:02AM +0200, Alexander Leidinger wrote: > > > > > > Quoting Konstantin Belousov (from Thu, 23 Apr 2020 > > > 10:04:12 +0300): > > > > > > MODULE_DEPEND() handles symbol namespaces. > > > > > > Since when is this the case (rough figure would be enough if someone knows > > > it without looking it up)? > > > > It is definitely so from the 5.x times, but I highly suspect that this was > > Thanks for the info. > > > the feature of 'new' modules from the beginning. > > I do not remember this behavior in 3.0. I remember cases where a module > didn't had a dependency and manually loading the dependency before was > enough. Memories alter over time, so I may be wrong... > I wouldn't be surprised if this behavior was introduced more in the > timeframe around amd64 or the reworking of module loading a while after > amd64 (may this is what you refer to as "new modules"). No, it predates amd64 for many years. There were 'lkm' modules, and dfr then implemented 'kld' modules, I think around 1998, mostly confirmed by svn log for link_elf.c. Namespace restriction for symbol lookup for dependencies only was in kld from the start.