mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
Kernel: Remove bogus TODO in coredump generation
When dumping the memory contents of a process, we should not page in things from inodes that were not already paged in.
This commit is contained in:
parent
f2c3a41a8f
commit
e1779b064a
1 changed files with 0 additions and 2 deletions
|
@ -186,8 +186,6 @@ ErrorOr<void> Coredump::write_regions()
|
|||
if (page)
|
||||
return UserOrKernelBuffer::for_user_buffer(reinterpret_cast<uint8_t*>((region->vaddr().as_ptr() + (i * PAGE_SIZE))), PAGE_SIZE);
|
||||
// If the current page is not backed by a physical page, we zero it in the coredump file.
|
||||
// TODO: Do we want to include the contents of pages that have not been faulted-in in the coredump?
|
||||
// (A page may not be backed by a physical page because it has never been faulted in when the process ran).
|
||||
return UserOrKernelBuffer::for_kernel_buffer(zero_buffer);
|
||||
}();
|
||||
TRY(m_description->write(src_buffer.value(), PAGE_SIZE));
|
||||
|
|
Loading…
Add table
Reference in a new issue