It's truly a shame and particularly easily felt on Arch where we don't have official SELinux support (which provides only little, compared to grsecurity, anyway).
I really hope this'll awaken some interest and attract some good competence to the KSPP, but I'm only vaguely optimistic. I also hope GrSec won't react as defensively if that were to happen but be interested to cooperate for a better future; However, they do have a revenue model to think of.
One might critize the paranoia of turning to hardening, performance and compatibility hurting patching (grsecurity wasn't that mainstream used after all). But, in a world where 0-days are sold to the highest bidder it's truly difficult to be secure on quick security fixing only. The kernel is so complex and the attack surface not insignificant. Surely, a lot of agencies and well funded adversaries do, right now, have stockpiled some as of yet publically unknown vulnerabilities granting them the potential to get in.
I really hope for a more security focused future for mainline Linux. Does anyone know of any good documentation on what is worth activating in a custom build of the mainline kernel right now? The KSPP doesn't have a lot of information out there unfortunately.
This has no direct impact on CopperheadOS since PaX and grsecurity were never ported to arm64. Android also uses device-specific LTS kernels derived from the SoC platform kernels for the relevant SoC generation rather than following mainline.
Here's the set of commits CopperheadOS currently adds to the April 5th Pixel / Pixel kernel:
The end of a full PaX port in CopperheadOS was the migration from arm to arm64. It does have PaX and grsecurity features via backports of KSPP work and code that we extracted / expanded from them ourselves. There's also the recent start of our own kernel hardening changes which is not much yet but it will expand over time. There's PAN emulation (UDEREF), HARDENED_USERCOPY and __ro_after_init from KSPP. There's our own minimal full slab / page sanitization (like PaX) and verification (beyond PaX, since our performance needs aren't as strict). There's also our marginally useful kernel implementation of _FORTIFY_SOURCE=1 for both buffer reads/writes, improvements to kmem_cache_free sanity checks (improving upon what PaX does) and there are random heap canaries (starting with a 0 byte) for the slub allocator which also provide basic double-free detection.
There are major PaX features that are still needed like RAP and SIZE_OVERFLOW, but since PaX doesn't offer support for arm64 anyway, we aren't directly losing anything from the patches becoming private. The loss will be lack of access to their future innovations and research along with potentially future support for arm64. It's bad news, but nothing surprising and there's zero short-term impact. Lots of long-term impact, but we were expecting this and it's far from a crisis.
8 comments
It's truly a shame and particularly easily felt on Arch where we don't have official SELinux support (which provides only little, compared to grsecurity, anyway).
I really hope this'll awaken some interest and attract some good competence to the KSPP, but I'm only vaguely optimistic. I also hope GrSec won't react as defensively if that were to happen but be interested to cooperate for a better future; However, they do have a revenue model to think of.
One might critize the paranoia of turning to hardening, performance and compatibility hurting patching (grsecurity wasn't that mainstream used after all). But, in a world where 0-days are sold to the highest bidder it's truly difficult to be secure on quick security fixing only. The kernel is so complex and the attack surface not insignificant. Surely, a lot of agencies and well funded adversaries do, right now, have stockpiled some as of yet publically unknown vulnerabilities granting them the potential to get in.
I really hope for a more security focused future for mainline Linux. Does anyone know of any good documentation on what is worth activating in a custom build of the mainline kernel right now? The KSPP doesn't have a lot of information out there unfortunately.
Where can one turn to follow the KSPP's work?
Can someone ELI5 what effect this has on flatpak as its build with selinux which seams to be dependent on this.
/u/strncat
So no more PaX in COS either, eh?
This has no direct impact on CopperheadOS since PaX and grsecurity were never ported to arm64. Android also uses device-specific LTS kernels derived from the SoC platform kernels for the relevant SoC generation rather than following mainline.
Here's the set of commits CopperheadOS currently adds to the April 5th Pixel / Pixel kernel:
https://gist.githubusercontent.com/thestinger/566238d5bfaea30fc7358d2224058dd7/raw/93a73e649b00dfb00b5115c2289844aeb4629730/gistfile1.txt
Neat, thanks for the response. Are y'all contributing back to KSPP?
The end of a full PaX port in CopperheadOS was the migration from arm to arm64. It does have PaX and grsecurity features via backports of KSPP work and code that we extracted / expanded from them ourselves. There's also the recent start of our own kernel hardening changes which is not much yet but it will expand over time. There's PAN emulation (UDEREF), HARDENED_USERCOPY and __ro_after_init from KSPP. There's our own minimal full slab / page sanitization (like PaX) and verification (beyond PaX, since our performance needs aren't as strict). There's also our marginally useful kernel implementation of
_FORTIFY_SOURCE=1for both buffer reads/writes, improvements tokmem_cache_freesanity checks (improving upon what PaX does) and there are random heap canaries (starting with a 0 byte) for the slub allocator which also provide basic double-free detection.There are major PaX features that are still needed like RAP and SIZE_OVERFLOW, but since PaX doesn't offer support for arm64 anyway, we aren't directly losing anything from the patches becoming private. The loss will be lack of access to their future innovations and research along with potentially future support for arm64. It's bad news, but nothing surprising and there's zero short-term impact. Lots of long-term impact, but we were expecting this and it's far from a crisis.