You are not logged in.

#1 2019-04-20 08:26:37

Martin
Member
From: Stockholm, Sweden
Registered: 2015-10-01
Posts: 324
Website

How Spectre and Meltdown work

I read this article yesterday and thought it may be of interest to at least some of you.

/Martin


"Problems worthy of attack
prove their worth by hitting back."
Piet Hein

Offline

#2 2019-04-26 15:09:01

r00t
Member
From: Canada
Registered: 2019-04-18
Posts: 43

Re: How Spectre and Meltdown work

And here is a script to check for them

#!/bin/bash
## script to display and save infos about meltdown, spectre and a few others

check_v(){
>| Vcheck.txt
printf "\033[1;31mMeltdown\033[0m\n" >> Vcheck.txt
cat    /sys/devices/system/cpu/vulnerabilities/meltdown >> Vcheck.txt  
printf "\033[1;31mspectre_v1\033[0m\n" >> Vcheck.txt
cat    /sys/devices/system/cpu/vulnerabilities/spectre_v1 >> Vcheck.txt 
printf "\033[1;31mspectre_v2\033[0m\n" >> Vcheck.txt
cat    /sys/devices/system/cpu/vulnerabilities/spectre_v2 >> Vcheck.txt 
printf "\033[1;31mspec_store_bypass\033[0m\n" >> Vcheck.txt
cat    /sys/devices/system/cpu/vulnerabilities/spec_store_bypass >> Vcheck.txt 
printf "\033[1;31ml1tf\033[0m\n" >> Vcheck.txt
cat    /sys/devices/system/cpu/vulnerabilities/l1tf >> Vcheck.txt 
}

check_v

cat Vcheck.txt

Last edited by r00t (2019-04-26 16:11:16)


The distance between insanity, or genus is measured only by success .

Offline

#3 2019-04-26 15:18:57

linux_user
Member
Registered: 2016-11-04
Posts: 338

Re: How Spectre and Meltdown work

^Source?


"Blind faith to authority is the greatest enemy of truth."

Offline

#4 2019-04-26 16:05:26

r00t
Member
From: Canada
Registered: 2019-04-18
Posts: 43

Re: How Spectre and Meltdown work

i made that, if thats what your asking


The distance between insanity, or genus is measured only by success .

Offline

#5 2019-04-26 16:31:59

linux_user
Member
Registered: 2016-11-04
Posts: 338

Re: How Spectre and Meltdown work

Oh yes, that's exactly what I meant. smile Anyway, that's a great post!


"Blind faith to authority is the greatest enemy of truth."

Offline

#6 2019-04-26 16:40:52

r00t
Member
From: Canada
Registered: 2019-04-18
Posts: 43

Re: How Spectre and Meltdown work

smile ty


The distance between insanity, or genus is measured only by success .

Offline

#7 2019-04-27 07:22:44

ohnonot
...again
Registered: 2015-09-29
Posts: 3,741
Website

Re: How Spectre and Meltdown work

r00t wrote:

And here is a script to check for them
...

FTFY big_smile

#!/bin/sh
## script to display and save infos about meltdown, spectre and a few others

red() {
    printf "\033[1;31m%s\033[0m\n" "$@"
}
red Meltdown
cat    /sys/devices/system/cpu/vulnerabilities/meltdown
red spectre_v1
cat    /sys/devices/system/cpu/vulnerabilities/spectre_v1
red spectre_v2
cat    /sys/devices/system/cpu/vulnerabilities/spectre_v2
red spec_store_bypass
cat    /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
red l1tf
cat    /sys/devices/system/cpu/vulnerabilities/l1tf

now to understand the output...
i also seem to remember that that's only part of the story, a full check should do more.
https://github.com/speed47/spectre-meltdown-checker

Last edited by ohnonot (2019-04-27 07:25:51)

Offline

#8 2019-04-27 14:52:52

r00t
Member
From: Canada
Registered: 2019-04-18
Posts: 43

Re: How Spectre and Meltdown work

it's true, this is not really checking, just asking ...

this is not really related but security related yes ... and maybe worth a read if you use apparmour
poking-holes-in-apparmor

Last edited by r00t (2019-04-27 14:59:02)


The distance between insanity, or genus is measured only by success .

Offline

Board footer

Powered by FluxBB