News for hackers. Stuff that matters.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by bonzini on Saturday November 17, 2018 @02:10PM (#18476879)
This was known. https://lwn.net/Articles/765837/ reports 21% performance impact and the plan was to handle STIBP as an opt-in security feature. I am not sure why that was not furthered in the patches that have actually been committed to Linux, as I did not follow them closely.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by rwmj on Saturday November 17, 2018 @03:59PM (#18477372)
Apparently the way to turn this and other mitigations off is the following mouthful:

    pti=off spectre_v2=off l1tf=off nospec_store_bypass_disable no_stf_barrier
Would it make sense to have a single flag to "run insecure but fast" that we can use on pure development machines, test servers and the like? My Intel development server only runs code I choose.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by pixl97 on Saturday November 17, 2018 @04:57PM (#18477589)
Hey boss, I don't understand why the code works in devel but fails in production?
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by CyberShadow on Saturday November 17, 2018 @09:01PM (#18478492)
You're implying (with unnecessary snark) that:

1. Development machines should be configured identically to production machines. (Do you install a GUI and development tools on your production servers?) Occasional differences in behavior between development/production are par for the course, and is why staging environments are commonly used.

2. The mitigations affect the execution result of code likely to be developed/executed at a typical software shop. AFAIU the attacks are timing-based, and won't affect valid code that's not specifically looking to exploit them.

Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by manquer on Sunday November 18, 2018 @12:28PM (#18481472)
try convincing a corp sec dept in large org to sign off on disabling anywhere.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by chrisseaton on Sunday November 18, 2018 @09:29PM (#18483792)
Not everyone has ‘production’. A mathematician running experiments only locally, for example.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by JadeNB on Sunday November 18, 2018 @10:30AM (#18480765)
Surely that objection applies to being able to turn off mitigation at all, not to whether the invocation that does so is short or (as currently) long?
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by quickben on Saturday November 17, 2018 @10:25PM (#18478723)
:p yes, there will be some of that around.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by CyberShadow on Saturday November 17, 2018 @10:51PM (#18478792)
What's an example of typical application code that will behave differently with the mitigations on or off?
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by rdtsc on Sunday November 18, 2018 @08:50AM (#18480358)
> What's an example of typical application code that will behave differently with the mitigations on or off?

Pretty much any application where there is limited execution time budget. If it takes too long it's considered broken, unusable, undesirable etc. Any realtime-ish stuff.

Ad bidding, video processing, audio processing / messaging, industrial control systems, robotics, general signal processing, logging systems that will now be overwhelmed and drop messages, databases that will experience timeouts and retries, scientific computations that will now take weeks more to run and potentially screw up other projects.

But hey it's a great time for Intel. Hey, psst, over here, I got a faster later gen CPU for you, for an easy price of $999.99 to bring you performance back to where it was last week.

Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by b1r6 on Sunday November 18, 2018 @07:48AM (#18480114)
Certainly the speed of it's execution. That could be difference enough to be concerning when shifting from dev to prod.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by mulle_nat on Sunday November 18, 2018 @10:48AM (#18480870)
I don't think you can turn off all mitigations, since the retpoline (https://stackoverflow.com/questions/48089426/what-is-a-retpo...) stuff is generated by the compiler. You'd probably need to recompile the kernel. How much retpoline is responsible for the performance hit, I don't know.

Also the kernel flags, don't block intel microcode "improvements". You have to do this with:

  sudo apt-mark hold intel-microcode
and look for what's currently installed.

Mitigation isn't a fix, it's a bandaid.

Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by int0x80 on Sunday November 18, 2018 @05:22AM (#18479674)
It makes sense (to me) and it has been discussed. I don't know what was the conclusion though.
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by crustycoder on Saturday November 17, 2018 @07:05PM (#18478106)
This alphabetti spaghetti of boot flags is getting ridiculous, there seems to be no central list anywhere, just random snippets across the web. Why is there not a Linus rant when you really need one? :-(
Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by rwmj on Sunday November 18, 2018 @05:13AM (#18479649)
To be fair there is a list, although as you say the flags themselves are pretty random. Of course they can't be easily changed because that would break everyone's boot environment.

https://github.com/torvalds/linux/blob/master/Documentation/...

Re:Bisected: The Unfortunate Reason Linux 4.20 Is Running Sl... by opsroller on Sunday November 18, 2018 @03:12PM (#18482276)
lsmod

modinfo ${somemodule}

man lsmod man modinfo

This is elementary level linux, you should know this.