OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 2:45 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: I cannot get Stack Smash Protector working
PostPosted: Fri Aug 12, 2022 8:31 am 
Offline

Joined: Sat May 14, 2022 4:50 am
Posts: 2
Dear OSdevers,

I implemented SSP as the wiki instructed but failed to get it working. On release build, the stack overflow regress did not trigger the SSP. However, on the debug build, my whole regression test fails due to stack overflows! Why!?

I am learning RISC-V with OSdev. The OS is written in C++ using clang-devel from FreeBSD.


Top
 Profile  
 
 Post subject: Re: I cannot get Stack Smash Protector working
PostPosted: Sun Aug 14, 2022 11:57 pm 
Offline

Joined: Fri Aug 12, 2022 4:46 am
Posts: 3
Location: Christchurch, New Zealand
Can you post some code? Including the code for the SSP and for the test.

How do your release and debug builds differ?

_________________
And when he came back to, he was flat on his back on the beach in the freezing sand, and it was raining out of a low sky, and the tide was way out.


Top
 Profile  
 
 Post subject: Re: I cannot get Stack Smash Protector working
PostPosted: Tue Aug 16, 2022 8:11 am 
Offline

Joined: Sat May 14, 2022 4:50 am
Posts: 2
I found the bug. It was a function from dlmalloc.

My kernel uses dlmalloc for dynamic memory.


Top
 Profile  
 
 Post subject: Re: I cannot get Stack Smash Protector working
PostPosted: Tue Aug 16, 2022 2:23 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Are you saying that dlmalloc() has a bug? I find this surprising. Can you explain what was the problem with dlmalloc?

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Majestic-12 [Bot], MichaelPetch and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group