W^X policy violation affects Windows drivers compiled in VS 2013 and previous
codeinsecurity.wordpress.com
W^X policy violation affects Windows drivers compiled in VS 2013 and previous
1–10 of 30 posts
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#2https://www.reddit.com/r/netsec/comments/3jlipz/wx_policy_vi...
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#3Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#4At the root, this issue is probably an oversight. Understanding why things are discardable and pageable is interesting though.
Memory is pageable because live memory is precious. Your multi-tasking OS that supports paging can dynamically load and unload pages of memory to a backing store, say, disk. This means that if the sum of the memory being used by all tasks is greater than the physical memory available on your computer, your computer can still work.
Ah, but let's consider a few facts. Data is stored in memory, but so is code. Can all the code in your system be paged to disk? There is some code in your kernel called the page fault handler. This code is responsible for identifying when the region of memory being accessed is not present, and can talk to the backing store to bring that memory back in. What happens if the page fault handler is, itself, paged out? What happens when the page fault handler needs to run?
So, now some code needs to be pinned into memory. It can not be paged out, or the system might stop working. Transitively, this property affects other pieces of code on the system following control and data dependencies between that code and the page fault handler. This can include device drivers that third parties write.
Some kernels say, all kernel memory is nonpageable, deal with it. Not Windows. In an attempt to make more memory available, it allows device drivers to mark code and data in the driver as both INIT and PAGEABLE. There are two contracts that you, the driver author, must live under when you do this. You must agree not to access anything in INIT after your DriverEntry (main) has returned, and, you must not attempt to run code in a PAGEABLE segment when the system cannot take a page fault. Many kernel mode components can easily fit code into these two contracts, so some good citizens do this.
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#5At least you "felt fuzzy" doing free work for a multi billion dollar company. They didn't even give him proper responses or acknowledge the fix.
would you say the same thing if the subject was ubuntu/linux?
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#6ugh. At the root, this issue is probably an oversight. Understanding why things are discardable and pageable is interesting though. Memory is pageable because live memory is precious. Your multi-tasking OS that supports paging can dynamically load and unload pages of memory to a backing store, say, disk. This means that if the sum of the memory being used by all tasks is greater than the physical memory available on…
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#7At least you "felt fuzzy" doing free work for a multi billion dollar company. They didn't even give him proper responses or acknowledge the fix.
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#8At least you "felt fuzzy" doing free work for a multi billion dollar company. They didn't even give him proper responses or acknowledge the fix.
I'm not sure I understand the logic here, so just because microsoft is a multi billion dollar company people shouldn't be inspecting their code to find security holes? would you say the same thing if the subject was ubuntu/linux?
It's fine to feel good for helping fellow users or yourself though.
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#9At least you "felt fuzzy" doing free work for a multi billion dollar company. They didn't even give him proper responses or acknowledge the fix.
Re: W^X policy violation affects Windows drivers compiled in VS 2013 and previous
#10At least you "felt fuzzy" doing free work for a multi billion dollar company. They didn't even give him proper responses or acknowledge the fix.
Someone always tries to make this comment when a security vulnerability comes up, and it's just as silly every time. If Microsoft asked him to investigate this, then paid him nothing then sure, you can call it "free work". But really, it's just that the author was interested in this one particular thing and decided to investigate it as a hobby and sent his findings in. The company shouldn't be expected to pay for it,…
They didn't even give him proper responses.