Page MenuHomeFreeBSD

kldxref: Be more conservative about what we reject.
ClosedPublic

Authored by imp on Jan 18 2024, 9:48 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 29, 10:53 AM
Unknown Object (File)
Sat, Jun 29, 12:42 AM
Unknown Object (File)
May 5 2024, 6:44 AM
Unknown Object (File)
Apr 27 2024, 11:41 AM
Unknown Object (File)
Apr 27 2024, 11:41 AM
Unknown Object (File)
Apr 27 2024, 11:41 AM
Unknown Object (File)
Apr 27 2024, 10:34 AM
Unknown Object (File)
Apr 27 2024, 10:28 AM
Subscribers

Details

Summary

kldxref anything that's a .ko. This will skip the kernel, but we don't
need to kldxref the kernel itself.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jan 18 2024, 9:48 PM
imp created this revision.

This will skip the kernel, but we don't need to kldxref the kernel itself.

Are we sure about that? Is there any harm in doing dot != NULL && ... instead and preserving the historic behaviour of processing the kernel?

Also the manpage needs updating to remove the documentation regarding two dots

Hmm, we certainly have processed the kernel to date. I think it's quite possible we don't need to do the kernel though as we will never try to load a kernel as a dependency.

Perhaps do it as two changes, and only MFC the fix, not dropping the kernel?

I'll update the man pages..

But we've not been doing the kernel for months now and there's been no harm from that (the harm is from foo.bar.ko being ignored).

In D43507#991894, @imp wrote:

I'll update the man pages..

But we've not been doing the kernel for months now and there's been no harm from that (the harm is from foo.bar.ko being ignored).

But we do still do the kernel?

In D43507#991894, @imp wrote:

I'll update the man pages..

But we've not been doing the kernel for months now and there's been no harm from that (the harm is from foo.bar.ko being ignored).

But we do still do the kernel?

Ah, yes, we are. I thought we'd only done one . but we do 0 or 1 dot.

So I can add kernel to the allowed list, but it should be only kernel. Though this is at best a heuristic and wouldn't work if you changed the default name of 'kernel'...

But I just updated with a fix to not skip files w/o a dot in them.

commit message also tweaked, but git arc doesn't update that automatically.

This revision is now accepted and ready to land.Jan 19 2024, 1:43 AM