Page MenuHomeFreeBSD

WIP: riscv: Implement per-thread kernel stack canaries
Changes PlannedPublic

Authored by 0mp on Tue, Sep 29, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 19, 11:28 AM
Unknown Object (File)
Sun, Oct 18, 7:46 PM
Unknown Object (File)
Thu, Oct 15, 4:02 PM
Unknown Object (File)
Thu, Oct 15, 11:23 AM
Unknown Object (File)
Wed, Oct 14, 8:12 AM
Unknown Object (File)
Tue, Oct 13, 12:17 PM
Unknown Object (File)
Tue, Oct 13, 8:35 AM
Unknown Object (File)
Sun, Oct 11, 12:42 PM
Subscribers

Details

Reviewers
bnovkov

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77517
Build 74400: arc lint + arc unit

Event Timeline

0mp requested review of this revision.Tue, Sep 29, 3:51 PM
0mp planned changes to this revision.Wed, Sep 30, 8:59 AM

Currently, the system hangs during boot right after the following messages:

Booting [/boot/kernel/kernel]...             
Using DTB provided by EFI at 0x13de53000.    
Kernel args: (null)                          
Loading splash ok                            
Loading shutdown splash ok

You can add options EARLY_PRINTF=sbi to get earlier debugging output.

sys/riscv/riscv/swtch.S
231

I believe this is what you need; tp holds the per-CPU / 'thread' pointer. gp is entirely different.

282