C++ Logo

sg14

Advanced search

Re: Memory Safety and Page Protected Memory

From: Jens Maurer <jens.maurer_at_[hidden]>
Date: Wed, 28 Feb 2024 01:00:48 +0100
On 28/02/2024 00.46, Ben Craig via SG14 wrote:
> It has been done before. AppVerifier on Windows has options that allow you to isolate pages with guard pages.
>
> https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/gflags-and-pageheap <https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/gflags-and-pageheap>

I've also used a tool using this approach on some Unix-lookalike
two decades ago or so. I can't remember the name.

Jens



> On Tue, Feb 27, 2024, 6:20 PM Robin Rowe via SG14 <sg14_at_[hidden] <mailto:sg14_at_[hidden]>> wrote:
>
> https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/press-release-technical-report/ <https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/press-release-technical-report/>
>
> Memory safety concerns seem focused on the undefined behavior of
> pointers on buffer overruns and out-of-bounds memory accesses. However,
> not all memory is equally unsafe. Unintended access to memory that
> contains a password or an exec() command is much more valuable to
> hackers. Hacking of passwords is of particular concern for financial
> systems.
>
> C/C++ programs use stack, heap or static memory to hold data. Any of
> these can be overrun. I am experimenting with code to add a fourth
> category, page memory. That is, allocation creates a memory region that
> cannot be overrun into or out of because it is an isolated protected
> page in memory. The default behavior for an overrun is a segfault.
>
> Is this a good or bad idea? Been done before? Thoughts?
>
> Robin Rowe
> Beverly Hills, California
> *Chairman ISO WG21 SG14 C++ Banking and Financial Systems Subcommittee
> _______________________________________________
> SG14 mailing list
> SG14_at_[hidden] <mailto:SG14_at_[hidden]>
> https://lists.isocpp.org/mailman/listinfo.cgi/sg14 <https://lists.isocpp.org/mailman/listinfo.cgi/sg14>
>
>
> _______________________________________________
> SG14 mailing list
> SG14_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg14

Received on 2024-02-28 00:01:03