XSA-398 Followup
cover XSA-398 Followup
Andrew Cooper (2):
x86/CET: Remove XEN_SHSTK's dependency on EXPERT
Changelog: Add __ro_after_init and CET
CHANGELOG.md | 6 ++++++ xen/arch/x86/Kconfig | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/2 x86/CET: Remove XEN_SHSTK's dependency on EXPERT
CET-SS hardware is now available from multiple vendors, and the feature has downstream users. Enable it by default.
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/Kconfig +2 -2
@@ -117,8 +117,8 @@ config HVM If unsure, say Y. config XEN_SHSTK - bool "Supervisor Shadow Stacks (EXPERT)" - depends on HAS_AS_CET_SS && EXPERT + bool "Supervisor Shadow Stacks" + depends on HAS_AS_CET_SS default y ---help--- Control-flow Enforcement Technology (CET) is a set of features in
Signature · 1 line
2.11.0
Re: [PATCH 1/2] x86/CET: Remove XEN_SHSTK's dependency on EXPERT
xen/arch/x86/Kconfig config HVM · line 121
Quoted 10 lines · Andrew Cooper
xen/arch/x86/Kconfig +2
-2@@ -117,8 +117,8 @@ config HVM If unsure, say Y. config XEN_SHSTK - bool "Supervisor Shadow Stacks (EXPERT)" - depends on HAS_AS_CET_SS && EXPERT + bool "Supervisor Shadow Stacks" + depends on HAS_AS_CET_SS
We'll need to settle on whether to use your or Jürgen's variant. As said there I'm in favor of his, but wouldn't mind this alternative one.
Jan
Re: [PATCH 1/2] x86/CET: Remove XEN_SHSTK's dependency on EXPERT
In reply to Andrew CooperQuoted 4 lines · Andrew Cooper
CET-SS hardware is now available from multiple vendors, and the feature has downstream users. Enable it by default.
Signed-off-by Andrew Cooper <[email protected]>
CET-IBT is already available out of EXPERT, so also having CET-SS seems natural.
Thanks, Roger.
PATCH 2/2 Changelog: Add __ro_after_init and CET
In reply to Andrew Cooper---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+)
CHANGELOG.md +6 -0
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD +### Added + - __ro_after_init support on x86, for marking data as immutable after boot. + - Support for Xen using x86 Control Flow Enforcement technology for its own + protection. Both Shadow Stacks (ROP protection) and Indirect Branch + Tracking (COP/JOP protection). + ### Removed / support downgraded - dropped support for the (x86-only) "vesa-mtrr" and "vesa-remap" command line options
Signature · 1 line
2.11.0
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 10
Quoted 8 lines · Andrew Cooper
CHANGELOG.md +2
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD +### Added + - __ro_after_init support on x86, for marking data as immutable after boot.
I'm not sure something like this (being an implementation detail) belongs here.
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 13
Quoted 3 lines
CHANGELOG.md +3
-0+ - Support for Xen using x86 Control Flow Enforcement technology for its own + protection. Both Shadow Stacks (ROP protection) and Indirect Branch + Tracking (COP/JOP protection).
This, of course, does.
Jan
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
Quoted 11 lines · Jan Beulich
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 10
Quoted 8 lines · Andrew Cooper
CHANGELOG.md +2
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD +### Added + - __ro_after_init support on x86, for marking data as immutable after boot.I'm not sure something like this (being an implementation detail) belongs here.
Having things immutable after boot is not an implementation detail. It is an important security hardening property, and deserves to be here.
~Andrew
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Jan Beulich
Quoted 6 lines · Andrew Cooper
CHANGELOG.md +0
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD
Quoted 7 lines
Quoted 4 lines
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 10
Quoted 2 lines
CHANGELOG.md +2
-0+### Added + - __ro_after_init support on x86, for marking data as immutable after boot.I'm not sure something like this (being an implementation detail) belongs here.
Having things immutable after boot is not an implementation detail. It is an important security hardening property, and deserves to be here.
The release/couuminity manager will collate the changelog and pick which entries it finds worth adding to the release notes. I think it's fine having this here as it might also serve for developers to be aware of the feature and use it.
Thanks, Roger.
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
In reply to Andrew CooperQuoted 8 lines · Andrew Cooper
Quoted 7 lines · Jan Beulich
Quoted 6 lines · Andrew Cooper
CHANGELOG.md +0
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD
Quoted 7 lines
Quoted 4 lines
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 10
Quoted 2 lines
CHANGELOG.md +2
-0+### Added + - __ro_after_init support on x86, for marking data as immutable after boot.I'm not sure something like this (being an implementation detail) belongs here.
Having things immutable after boot is not an implementation detail. It is an important security hardening property, and deserves to be here.
Well. Are you suggesting that we repeat this statement for every release where at least one variable was converted to use __ro_after_init? The mere introduction of the new section has no hardening effect at all; every use of it is a single small step.
Jan
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
In reply to Andrew CooperQuoted 1 line · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>
Thanks.
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
In reply to Andrew CooperHi Andrew,
Quoted 14 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>--- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+)CHANGELOG.md +0
-0
CHANGELOG.md The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · line 10
Quoted 5 lines
CHANGELOG.md +2
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBD +### Added + - __ro_after_init support on x86, for marking data as immutable after boot.
This is also supported by Arm (see commit ace403022358 "xen/arm: Support properly __ro_after_init on Arm").
Cheers,
Quoted 7 lines
CHANGELOG.md +4
-0+ - Support for Xen using x86 Control Flow Enforcement technology for its own + protection. Both Shadow Stacks (ROP protection) and Indirect Branch + Tracking (COP/JOP protection). + ### Removed / support downgraded - dropped support for the (x86-only) "vesa-mtrr" and "vesa-remap" command line options
Signature · 1 line
Julien Grall
Re: [PATCH 2/2] Changelog: Add __ro_after_init and CET
Quoted 12 lines · Julien Grall
Hi Andrew,
Quoted 9 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
---
CHANGELOG.md | 6 ++++++1 file changed, 6 insertions(+)
Quoted 15 lines
Quoted 9 lines
CHANGELOG.md +0
-1@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstable UNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=staging) - TBDQuoted 3 lines
+### Added
+ -__ro_after_initsupport on x86, for marking data as immutable after boot.This is also supported by Arm (see commit
ace403022358"xen/arm:
Support properly__ro_after_initon Arm").
Yes, I know. Check the date on this email.
~Andrew
RE: [PATCH 2/2] Changelog: Add __ro_after_init and CET
Hi Both,
Quoted 31 lines
-----Original Message-----
Subject: Re: [PATCH 2/2] Changelog: Add__ro_after_initand CETQuoted 12 lines · Julien Grall
Hi Andrew,
Quoted 9 lines · Andrew Cooper
Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
---
CHANGELOG.md | 6 ++++++1 file changed, 6 insertions(+)Quoted 8 lines
CHANGELOG.md The format is based on [Keep a · line 8
Quoted 8 lines
CHANGELOG.md +0
-0@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [unstableUNRELEASED](https://xenbits.xen.org/gitweb/?p=xen.git;a=shortlog;h=stagin
g)Quoted 5 lines
Quoted 4 lines
CHANGELOG.md +0
-1- TBD+### Added
+ -__ro_after_initsupport on x86, for marking data as immutable after boot.
Quoted 4 lines
Quoted 2 lines
This is also supported by Arm (see commit
ace403022358"xen/arm:
Support properly__ro_after_initon Arm").Yes, I know. Check the date on this email.
Thanks Julien very much for pointing this out :) I will correct this to "- __ro_after_init support, for marking data as immutable after boot." in v3 when I respin the series, since Jan also provided some comments about patch #3 and I guess Andrew won't mind if I do the respin (?).
Kind regards,
Henry
Quoted 2 lines
~Andrew