News for hackers. Stuff that matters.
Re:Firefox engineers discover a Windows Defender bug that ca... by Diggsey on Wednesday April 05, 2023 @03:55PM (#35459588)
Well, also Firefox is making an excessive number of calls to that slow system call compared to other browsers (Chrome, Edge).
Re:Firefox engineers discover a Windows Defender bug that ca... by sfink on Wednesday April 05, 2023 @04:41PM (#35460085)
My understanding is that until recently (January), V8 (inside Chrome & Edge) made a similar number of calls. The main use is making it so that JIT-generated code is not writable while it is executing. It's an important security measure. V8 switched to a more recent mechanism (memory protection keys) that have been gradually getting support from the various OSes. But IIUC, they switched off the mprotect/VirtualProtect calls unconditionally, and added in the protection key stuff only where supported, which suggests that they left some configurations without any protection at all. SpiderMonkey (in Firefox) has not yet switched to the cheaper mechanism.

I may have some of the details wrong.

https://source.chromium.org/chromium/_/chromium/v8/v8.git/+/...

Re:Firefox engineers discover a Windows Defender bug that ca... by nagisa on Wednesday April 05, 2023 @06:51PM (#35461560)
pkeys are hardware-specific as far as I am aware, and at least last time I tried them didn't work on hardware as recent as zen 1.
Re:Firefox engineers discover a Windows Defender bug that ca... by zokier on Wednesday April 05, 2023 @05:45PM (#35460808)
Well, it was fast system call until MS added AV hook to it.
Re:Firefox engineers discover a Windows Defender bug that ca... by Diggsey on Wednesday April 05, 2023 @09:11PM (#35462787)
My comment was only intended to add missing information to the TLDR (since this fact is important in the linked thread) not to say that Firefox is at fault.

Now that you raised it however, even if the system call used to be fast, Firefox is making an extremely high number of calls to that sytem call, and there's always going to be some overhead to that. There are almost certainly ways that Firefox could reduce the number of calls it needs to make.

Re:Firefox engineers discover a Windows Defender bug that ca... by gcp on Thursday April 06, 2023 @02:16AM (#35464814)
What determines "excessive"? In this case it's for a security feature that Chrome lacks(!).