Skip to contentSkip to conversation

more sampling fun 2

PATCH Konrad Rzeszutek Wilk 6 participants 13 messages Feb 24, 2020 – Feb 26, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

This patch:
* enables administrator to configure the mitigation off when desired using either mitigations=off or srbds=off.
* exports vulnerability status via sysfs

I think you also need a Documentation patch, that is a new file in Documentation/x86/srbds.rst
and changes in Documentation/admin-guide/kernel-parameters.txt

to document the srbds=..

#1 lore raw
Quoted 11 lines · speck for Konrad Rzeszutek Wilk
Quoted 4 lines

This patch:
* enables administrator to configure the mitigation off when desired using either mitigations=off or srbds=off.
* exports vulnerability status via sysfs

I think you also need a Documentation patch, that is a new file in Documentation/x86/srbds.rst
and changes in Documentation/admin-guide/kernel-parameters.txt

to document the srbds=..

That "srbds" string better be something more human-readable like

"srb_sampling="

or so.

Thx.

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
-- 
#2 lore raw
Quoted 11 lines · speck for Borislav Petkov
Quoted 10 lines · speck for Konrad Rzeszutek Wilk
Quoted 4 lines

This patch:
* enables administrator to configure the mitigation off when desired using either mitigations=off or srbds=off.
* exports vulnerability status via sysfs

I think you also need a Documentation patch, that is a new file in Documentation/x86/srbds.rst
and changes in Documentation/admin-guide/kernel-parameters.txt

Quoted 5 lines
Quoted 1 line

to document the srbds=..

That "srbds" string better be something more human-readable like

"srb_sampling="

The implementation uses srbds_mitigation=.. (the commit comment now updated to reflect this)

I've been holding on getting the finished white paper to be sure both documents are are in sync.

--mark

Quoted 11 lines

or so.

Thx.

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
-- 
#3 lore raw
Quoted 2 lines · speck for mark gross

The implementation uses srbds_mitigation=.. (the commit comment now updated to reflect this)

Certainly not with "mitigation" in the name. All those switches control mitigations so there's no need to tautologically have it in the name too.

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
-- 
#4 lore raw
Quoted 7 lines · speck for Borislav Petkov
Quoted 2 lines · speck for mark gross

The implementation uses srbds_mitigation=.. (the commit comment now updated to reflect this)

Certainly not with "mitigation" in the name. All those switches control mitigations so there's no need to tautologically have it in the name too.

Why not just srbds= ? That's what Intel calls it, and it would be consistent with some of the other options like mds= and l1tf=.

Signature · 1 line
Josh
#5 lore raw
Quoted 2 lines · speck for Josh Poimboeuf

Why not just srbds= ? That's what Intel calls it, and it would be consistent with some of the other options like mds= and l1tf=.

For the same reason we did "spec_store_bypass_disable=" and not "ssbd=". Although former is a bit longish for my taste, it doesn't make you go look it up as "ssbd" does. And with "mds" and "l1tf" we dropped the ball again. :-\

Over time, they would all become a letters jumble which we all would have to go look up.

So I think at least *trying* to make them a bit more understandable/parseable for humans, would be beneficial in the long run.

So, for example, when I see "srb_sampling=off" at least I know, oh, ok, it disables sampling of that SRB thing. "srbds" tells me exactly nothing and the potential for flipping those letters' position is high.

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
-- 
#6 lore raw
Quoted 12 lines · speck for Borislav Petkov
Quoted 2 lines · speck for Josh Poimboeuf

Why not just srbds= ? That's what Intel calls it, and it would be consistent with some of the other options like mds= and l1tf=.

For the same reason we did "spec_store_bypass_disable=" and not "ssbd=". Although former is a bit longish for my taste, it doesn't make you go look it up as "ssbd" does. And with "mds" and "l1tf" we dropped the ball again. :-\

Over time, they would all become a letters jumble which we all would have to go look up.

Quoted 7 lines

So I think at least *trying* to make them a bit more understandable/parseable for humans, would be beneficial in the long run.

So, for example, when I see "srb_sampling=off" at least I know, oh, ok, it disables sampling of that SRB thing. "srbds" tells me exactly nothing and the potential for flipping those letters' position is high.

Well, I see it the opposite way. Those jumbles of letters do actually mean something. I still call them "MDS", "L1TF", "SSBD". If you google for "l1tf" or "mds vulnerability" they show up. I'd expect to call this one "SRBDS" a year from now. I find "srb_sampling" to be confusing and hard to remember because it renames something that already has an industry standard name.

Signature · 1 line
Josh
#7 lore raw
Quoted 2 lines · speck for Josh Poimboeuf

Well, I see it the opposite way. Those jumbles of letters do actually mean something. I still call them "MDS", "L1TF", "SSBD". If you google

BTW as a sidenote -- I think you actually nicely demonstrated all the confusion coming from all these crazy acronyms.

While MDS and L1TF are the names of the actual vulnerability, SSBD is acronym for the mitigation.

Signature · 2 lines
Jiri Kosina
SUSE Labs
#8 lore raw
Quoted 10 lines · speck for Jiri Kosina
Quoted 2 lines · speck for Josh Poimboeuf

Well, I see it the opposite way. Those jumbles of letters do actually mean something. I still call them "MDS", "L1TF", "SSBD". If you google

BTW as a sidenote -- I think you actually nicely demonstrated all the confusion coming from all these crazy acronyms.

While MDS and L1TF are the names of the actual vulnerability, SSBD is acronym for the mitigation.

Right - we should have just called it "ssb=", to match the Intel acronym, instead of creating our own.

Signature · 1 line
Josh
#9 lore raw
In reply to Josh Poimboeuf
Quoted 3 lines · speck for Josh Poimboeuf

Well, I see it the opposite way. Those jumbles of letters do actually mean something. I still call them "MDS", "L1TF", "SSBD". If you google for "l1tf" or "mds vulnerability" they show up.

If I gurgle "spec store bypass" it gets me straight to the wikipedia page:

"Speculative Store Bypass (SSB) (CVE-2018-3639) is the name... "

Quoted 3 lines

I'd expect to call this one "SRBDS" a year from now. I find "srb_sampling" to be confusing and hard to remember because it renames something that already has an industry standard name.

srb_sampling *is* srbds - just more readable.

We are not giving any new names to the vulns - we're simply making our command line options more readable so that when you have to type them, you either have to remember "srbds" - in that order - or "srb sampling".

Latter is easier for me.

And yes, spec_store_bypass_disable= should've been spec_store_bypass=<switches...>

Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg
-- 
#10 lore raw
Quoted 11 lines · speck for Borislav Petkov
Quoted 3 lines

I'd expect to call this one "SRBDS" a year from now. I find "srb_sampling" to be confusing and hard to remember because it renames something that already has an industry standard name.

srb_sampling *is* srbds - just more readable.

We are not giving any new names to the vulns - we're simply making our command line options more readable so that when you have to type them, you either have to remember "srbds" - in that order - or "srb sampling".

Latter is easier for me.

But you're leaving out the "data" portion of the acronym/name.

Either call it "srbds" or "special_register_buffer_data_sampling" -- but *please* don't give it a new name. It will just create more confusion.

If you can't remember what srbds stands for, that's why we have documentation and search engines.

Signature · 1 line
Josh
#11 lore raw
Quoted 13 lines · speck for Josh Poimboeuf
Quoted 11 lines · speck for Borislav Petkov
Quoted 3 lines

I'd expect to call this one "SRBDS" a year from now. I find "srb_sampling" to be confusing and hard to remember because it renames something that already has an industry standard name.

srb_sampling *is* srbds - just more readable.

We are not giving any new names to the vulns - we're simply making our command line options more readable so that when you have to type them, you either have to remember "srbds" - in that order - or "srb sampling".

Latter is easier for me.

Quoted 7 lines

But you're leaving out the "data" portion of the acronym/name.

Either call it "srbds" or "special_register_buffer_data_sampling" -- but *please* don't give it a new name. It will just create more confusion.

If you can't remember what srbds stands for, that's why we have documentation and search engines.

Our command line options for this mess are inconsistent already, but for most of them we have actual acronyms used, so lets just go with srbds.

Having a half correct, but more elaborate one does not really help. If at all you want to come up with a snarky one like:

super_random_but_data_stolen = [hell_no, shrug, nsa]

Thanks,

tglx

#12 lore raw
Quoted 16 lines · speck for Thomas Gleixner
Quoted 15 lines · speck for Josh Poimboeuf
Quoted 11 lines · speck for Borislav Petkov
Quoted 3 lines

I'd expect to call this one "SRBDS" a year from now. I find "srb_sampling" to be confusing and hard to remember because it renames something that already has an industry standard name.

srb_sampling *is* srbds - just more readable.

We are not giving any new names to the vulns - we're simply making our command line options more readable so that when you have to type them, you either have to remember "srbds" - in that order - or "srb sampling".

Latter is easier for me.

But you're leaving out the "data" portion of the acronym/name.

Quoted 8 lines
Quoted 5 lines

Either call it "srbds" or "special_register_buffer_data_sampling" -- but *please* don't give it a new name. It will just create more confusion.

If you can't remember what srbds stands for, that's why we have documentation and search engines.

Our command line options for this mess are inconsistent already, but for most of them we have actual acronyms used, so lets just go with srbds.

Sounds like shruberryds. I wonder if Google will autocorrect 'srbds' to shrubbery or shrubs.

Quoted 5 lines

Having a half correct, but more elaborate one does not really help. If at all you want to come up with a snarky one like:

super_random_but_data_stolen = [hell_no, shrug, nsa]

Nah,

the_knights_of_ni=?

:-)

How about

rng_secure=on,off

Since that is all folks will care about.

And
mitigation=off will tweak it to off too.

Quoted 5 lines

Thanks,

tglx