gcc spectre stuff for netbsd-8

2018-03-12 Thread maya
- Also, modules! - Run the new testcases from GCC testsuite which were added with this feature Maybe: - Figure out what I just did to the documentation? Patch: http://netbsd.org/~maya/netbsd8-gcc-spectre-20180312 (Originally from opensuse's gcc patch, and comparing a lot to gcc-HEAD where

Re: gcc spectre stuff for netbsd-8

2018-03-12 Thread maya
sorry for being terse, I'm not very knowledgeable about GCC/x86 but applied it to our copy of GCC. what it should be adding Add -mindirect-branch-register to force indirect branch via register. This is implemented by disabling patterns of indirect branch via memory, similar to TARGET_X32.

Re: gcc spectre stuff for netbsd-8

2018-03-12 Thread maya
Additionally, why skipping -current entirely: - GCC 7.3 already has an official backport, and we might update to this. - I'm not good at compilers p.s. for people who desperately want -current patches, we can still use GCC 5.5 on current with HAVE_GCC=5.

Re: sysctl_doeproc() race

2018-03-12 Thread Kamil Rytarowski
On 11.03.2018 19:20, Kamil Rytarowski wrote: > On 11.03.2018 18:23, Robert Elz wrote: >> Date:Sun, 11 Mar 2018 16:02:57 +0100 >> From:Kamil Rytarowski >> Message-ID: <10b0efe2-35bb-d1e8-ed28-587f643bd...@gmx.com> >> >> | We already use markers so I