Bug 270759 - [modules] kldload ktls_ocf on FreeBSD/arm64 13.2: link_elf: symbol sysctl___kern_ipc_tls_stats undefined
Summary: [modules] kldload ktls_ocf on FreeBSD/arm64 13.2: link_elf: symbol sysctl___k...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.2-RELEASE
Hardware: arm64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-11 09:10 UTC by ruben
Modified: 2023-04-21 20:46 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ruben 2023-04-11 09:10:25 UTC
I’m trying out the new kTLS support in FreeBSD. On amd64 I can load the kernel module, but on arm64 it fails with

kldload ktls_ocf
kldload: can't load ktls_ocf: No such file or directory

And dmesg shows

link_elf: symbol sysctl___kern_ipc_tls_stats undefined
Comment 1 John Baldwin freebsd_committer freebsd_triage 2023-04-17 16:40:50 UTC
Commit f9322ff6efa508df8368e31e3c4880cff11b0e23 which adds KERN_TLS to GENERIC on arm64 hasn't been merged to stable/13.  You can likely just add KERN_TLS and rebuild your kernel and have it work.  Probably that commit should be MFC'd to stable/13.
Comment 2 ruben 2023-04-18 09:26:18 UTC
Thanks, I was under the impression that with exception of certain hardware related differences both amd64/arm64 kernels would have the same options. I’ll compile a custom kernel for now and wait to see the option to be added in e.g. 13.3
Comment 3 Ed Maste freebsd_committer freebsd_triage 2023-04-18 12:57:59 UTC
> I was under the impression that with exception of certain hardware related
> differences both amd64/arm64 kernels would have the same options.

In general they should. I'll take a look at this one.
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-04-21 20:46:25 UTC
A commit in branch stable/13 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=bf5c45448720e20208d3e8f2b563e5234c28159a

commit bf5c45448720e20208d3e8f2b563e5234c28159a
Author:     Allan Jude <allanjude@FreeBSD.org>
AuthorDate: 2021-01-28 20:48:37 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2023-04-21 13:46:35 +0000

    Enable KERN_TLS by default in ARM64 GENERIC

    PR:             270759
    Sponsored-by:   Ampere Computing
    Submitted-by:   Klara, Inc.

    (cherry picked from commit f9322ff6efa508df8368e31e3c4880cff11b0e23)

 sys/arm64/conf/GENERIC | 1 +
 1 file changed, 1 insertion(+)