Skip to content

TLS support, both single/multi- user mode; TLS managed by FreeBSD Kernel#34

Open
tupipa wants to merge 2 commits intojtcriswell:masterfrom
tupipa:master
Open

TLS support, both single/multi- user mode; TLS managed by FreeBSD Kernel#34
tupipa wants to merge 2 commits intojtcriswell:masterfrom
tupipa:master

Conversation

@tupipa
Copy link
Copy Markdown

@tupipa tupipa commented Dec 10, 2018

Enable FS/FSBASE and related kernel structure save/restore during context switching (cpu_switch_sva) and system call handling (sva_syscall), as well as other places operating those structures or registers.

A clearer patch for kernel can be viewed online: tupipa/sva_freebsd90@09a82b2

Known issues:

  • [Solved 12/11/2018] only support single user mode. Multi-user mode would boot but some applications (such as cat) would crash with 'Segmentation fault' and root will be forced out immediately after logging in.

  • multi-threading library (pthread) not supported. Applications creating new thread will get error: "SVA: Error! Kernel performing unauthorized fork()!"

@tupipa tupipa changed the title TLS support * for single user mode only * TLS support, both single/multi- user mode; TLS managed by FreeBSD Kernel Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant