Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump stack in a thread-safe way. #503

Open
todo bot opened this issue Oct 7, 2019 · 0 comments
Open

Dump stack in a thread-safe way. #503

todo bot opened this issue Oct 7, 2019 · 0 comments
Assignees
Labels
project-kernel Related to the kernel safety Something is unsound, could be unsafe todo 🗒️ Created by the todo bot

Comments

@todo
Copy link

todo bot commented Oct 7, 2019

dump_stack should allow reading the stack in a thread-safe way through the use of volatile reads. This would allow having a totally safe dump_stack function that can be used at will.


// TODO: Dump stack in a thread-safe way.
// BODY: dump_stack should allow reading the stack in a
// BODY: thread-safe way through the use of volatile reads. This
// BODY: would allow having a totally safe dump_stack function
// BODY: that can be used at will.
crate::stack::dump_stack(&crate::stack::StackDumpSource::new(register.esp, register.ebp, register.eip), elf_and_st)
},
_ => crate::stack::KernelStack::dump_current_stack(elf_and_st)
}
// Display the infamous "Blue Screen Of Death"


This issue was generated by todo based on a TODO comment in a2961e8 when #501 was merged. cc @roblabla.
@todo todo bot added the todo 🗒️ Created by the todo bot label Oct 7, 2019
@todo todo bot assigned roblabla Oct 7, 2019
@roblabla roblabla added project-kernel Related to the kernel safety Something is unsound, could be unsafe labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project-kernel Related to the kernel safety Something is unsound, could be unsafe todo 🗒️ Created by the todo bot
Projects
None yet
Development

No branches or pull requests

1 participant