Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-24 Thread Marcin Juszkiewicz
W dniu 19.05.2022 o 05:15, Hellosway Here via devel pisze: Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel command line arguments. Some of them are a matter of kernel configuration options. Which is bett

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-23 Thread Demi Marie Obenour
On 5/23/22 14:50, Steve Grubb wrote: > Hello, > > On Wednesday, May 18, 2022 11:15:16 PM EDT Hellosway Here via devel wrote: >> Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 >> pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel >> command line arguments. Th

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-23 Thread Glorious Hellosway via devel
This thread was accidentally reposted, please reply to this one https://lists.fedorahosted.org/archives/list/devel@lists.fedoraproject.org/thread/YJ4HKHMLBGCSXZ3S3NSTSARTJNAG7NXC/ . I think it would be useful is there was a centralized CLI and GUI intyerface for these, but it doesn't exist yet.

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-23 Thread Steve Grubb
Hello, On Wednesday, May 18, 2022 11:15:16 PM EDT Hellosway Here via devel wrote: > Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 > pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel > command line arguments. This can help prevent local exploits by making i

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-22 Thread Demi Marie Obenour
On 5/22/22 01:58, Glorious Hellosway via devel wrote: > That will create a very big performance hit, and disabling SMT will half the > amount of threads. On the new CPUs with E and P cores, this can significantly > decrease performance. Speculative execution mitigations are table stakes if you w

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-22 Thread Simon Farnsworth via devel
On Saturday, 21 May 2022 19:31:59 BST Glorious Hellosway via devel wrote: > For `slab_nomerge`, it can lead to very slight increase of kernel memory. > `init_on_alloc=1` has a almost no performance impact, it is under 1% and is > usually within standard error, but there is bug with zfs that can mak

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-21 Thread Glorious Hellosway via devel
That will create a very big performance hit, and disabling SMT will half the amount of threads. On the new CPUs with E and P cores, this can significantly decrease performance. ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-21 Thread Demi Marie Obenour
On 5/18/22 23:15, Hellosway Here via devel wrote: > Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on > randomize_kstack_offset=on vsyscall=none ` as default kernel command line > arguments. This can help prevent local exploits by making it harder to > exploit the kern

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-21 Thread Glorious Hellosway via devel
For `slab_nomerge`, it can lead to very slight increase of kernel memory. `init_on_alloc=1` has a almost no performance impact, it is under 1% and is usually within standard error, but there is bug with zfs that can make zfs slower. `init_on_free=1` can be measured and is around 7-20% under cert

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-20 Thread stan via devel
On Fri, 20 May 2022 13:26:14 +0100 Simon Farnsworth via devel wrote: > On Thursday, 19 May 2022 04:15:16 BST Hellosway Here via devel wrote: > > Add `slab_nomerge init_on_alloc=1 init_on_free=1 > > page_alloc.shuffle=1 pti=on randomize_kstack_offset=on > > vsyscall=none ` as default kernel comman

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-20 Thread Simon Farnsworth via devel
On Thursday, 19 May 2022 04:15:16 BST Hellosway Here via devel wrote: > Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on > randomize_kstack_offset=on vsyscall=none ` as default kernel command line > arguments. This can help prevent local exploits by making it harder to >

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-19 Thread Glorious Hellosway via devel
Sorry, for the spam, but I realized I accidentally added `pti=on` into the list of arguments that do not impact performance. `pit=on` can significantly impact performance, by up to 30% in some cases. ___ devel mailing list -- devel@lists.fedoraproject.

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-19 Thread Glorious Hellosway via devel
I thought vsyscalls were obsolete, but leaving them, enabled doesn't really impact security too much. Regarding performance, `page_alloc.shuffle=1` can increase performance, and `slab_nomerge init_on_alloc=1 init_on_free=1 pti=on randomize_kstack_offset=on` do not have a very noticeable performa

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-19 Thread Florian Weimer
* Hellosway Here via devel: > Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 > pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel > command line arguments. This can help prevent local exploits by making > it harder to exploit the kernel. I do not think there

Re: Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-19 Thread Miroslav Lichvar
On Thu, May 19, 2022 at 03:15:16AM -, Hellosway Here via devel wrote: > Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on > randomize_kstack_offset=on vsyscall=none ` as default kernel command line > arguments. This can help prevent local exploits by making it harde

Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-18 Thread Hellosway Here via devel
Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel command line arguments. This can help prevent local exploits by making it harder to exploit the kernel. I do not think there will be any breakage, I have been

Fedora 37: Add kernel parameters that help prevent local exploits

2022-05-18 Thread Hellosway Here via devel
Add `slab_nomerge init_on_alloc=1 init_on_free=1 page_alloc.shuffle=1 pti=on randomize_kstack_offset=on vsyscall=none ` as default kernel command line arguments. This can help prevent local exploits by making it harder to exploit the kernel. I do not think there will be any breakage, I have been