/srv/irclogs.ubuntu.com/2018/02/17/#ubuntu-kernel.txt

irgendwer4711how to compile a meltdown/spectre secure kernel? I took config of 4.4.0-112-generic and compiled myself. this kernel is not like the stock kernel 4.4.0-112-generic. why?11:57
smesowhat you mean by "not like"?11:58
smesoare you sure you got the right sources and the right config files?12:00
irgendwer4711I took the latest source12:00
smesohow?12:00
irgendwer4711apt get: 4.4.0.112.118 12:00
tomreyn$ apt get: 4.4.0.112.118 12:01
tomreynE: Invalid operation get:12:01
tomreyni doubt that's the command oyu ran12:01
irgendwer4711funny12:01
irgendwer4711linux-source_4.4.0.112.118_all.deb12:02
tomreynthat's the file name of a package. did you create this yourself, did you download it (where)? what did you do with it? what happened and what did you expect to happen instead?12:04
tomreynwithout more context, it will be impossible to assist you12:04
irgendwer4711its a ubuntu package12:04
irgendwer4711its the stock kernel sources für Ubuntu lts 16.0412:06
smesoI'll assume that you installer it via `apt-get install linux-source`, then what did you do?12:06
smesos/installer/installed/12:06
Nafalloperhaps https://help.ubuntu.com/community/Kernel/Compile will help12:07
Nafallonot sure if that's updated, but otherwise check out the kernel-team's pages on help and the wiki.12:07
irgendwer4711smeso: compiled it with stock config config-4.4.0-112-generic12:08
tomreynhttps://packages.ubuntu.com/xenial/linux-source is a meta package, does not contain kernel sources12:08
smesoirgendwer4711: we need details12:09
=== himcesjf_ is now known as him-cesjf
irgendwer4711which details? you dont know how to compile a kernel???12:09
smesoI do, but apparently you don't12:09
smesowe need details to understand what you missed12:10
irgendwer4711sure I do.12:10
smesoOK12:10
smesoso what's the problem?12:10
irgendwer4711the spectre/meltdown protection is missing12:10
smeso*if* that's true it means that you did something wrong12:11
irgendwer4711only Page Table Isolation  is active12:11
irgendwer4711I did this: /spectre-meltdown-checker.sh --kernel /usr/src/linux-source-4.4.0/linux-source-4.4.0/arch/x86/boot/bzImage --config /usr/src/linux-source-4.4.0/linux-source-4.4.0/.config --map /usr/src/linux-source-4.4.0/linux-source-4.4.0/System.map12:12
smesoI doubt that can have PTI on a 4.4.012:13
Nafallohttps://wiki.ubuntu.com/SecurityTeam/KnowledgeBase/SpectreAndMeltdown ← updated information about this, updated last Friday12:13
irgendwer4711so I should have protection for all 3 variants....12:14
smesono12:15
smeso(assuming that you are on x86_64)12:16
irgendwer4711you didnt read the status table?12:16
Nafalloall mitigations haven't landed upstreams yet, have they? we still need new microcode updates.12:17
irgendwer4711I have an amd cpu12:17
smesoirgendwer4711: Did you?12:17
Nafallobut I believe what can be done for the kernel has been done :-)12:17
smesoso why you care about meltdown?12:17
irgendwer4711I summed it up12:17
irgendwer4711and I told, that PTI is active12:18
smesoand you are wrong again12:18
smesothere is no PTI in 4.4.012:18
smesoKAISER != PTI12:19
irgendwer4711* Kernel supports Page Table Isolation (PTI):  YES12:19
smesoI give up12:19
irgendwer4711read the table!12:20
irgendwer47114.4   M=Y12:20
smeso4.4 has KAISER, which is a (not so good) mitigation for metldown12:21
smesoPTI is only on newer kernels12:21
irgendwer4711smeso: nevermind, I have an AMD CPU12:22
irgendwer4711my model is not vulnerable12:22
irgendwer4711so now I need something against Spectre 1 and 212:23
smesofor 2 you have to wait a working microcode update12:23
smeso1 should be there already12:24
irgendwer4711script said for stock kernel: Kernel is compiled with IBRS/IBPB support12:25
Nafalloirgendwer4711: read the USN for your kernel listed on the link I sent you. especially the bottom part :-)12:29
irgendwer4711which part?12:30
Nafalloirgendwer4711: the one that mentions IBRS/IBPB waiting for microcode...12:31
irgendwer4711I know that part.12:32
irgendwer4711I cant check this yet, because I am running a different kernel.12:33
irgendwer4711BUT my compiled kernel is missing "Kernel is compiled with IBRS/IBPB support" and the stock one has support!12:34
=== mamarley is now known as Guest11558
=== mamarley_ is now known as mamarley

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!