All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@arm.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: andrii_anisov@epam.com, George.Dunlap@eu.citrix.com,
	Ian.Jackson@eu.citrix.com, George.Dunlap@citrix.com,
	dfaggioli@suse.com, jbeulich@suse.com, xen-devel@lists.xen.org
Subject: Re: [PATCH v7 12/12] xen: clarify the security-support status of Kconfig options on ARM
Date: Wed, 25 Jul 2018 10:50:55 +0100	[thread overview]
Message-ID: <56067f51-6e39-6a06-399a-64918603532f@arm.com> (raw)
In-Reply-To: <187f86ee-e6b6-db7f-196d-28550aeebb54@citrix.com>



On 25/07/18 09:59, Andrew Cooper wrote:
> On 25/07/2018 09:46, Julien Grall wrote:
>>
>>
>> On 24/07/18 23:31, Stefano Stabellini wrote:
>>> On Mon, 23 Jul 2018, Julien Grall wrote:
>>>> Hi,
>>>>
>>>> On 07/07/18 00:14, Stefano Stabellini wrote:
>>>>> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
>>>>> CC: George.Dunlap@eu.citrix.com
>>>>> CC: Ian.Jackson@eu.citrix.com
>>>>> CC: jbeulich@suse.com
>>>>> CC: andrew.cooper3@citrix.com
>>>>> ---
>>>>>     SUPPORT.md | 10 ++++++++++
>>>>>     1 file changed, 10 insertions(+)
>>>>>
>>>>> diff --git a/SUPPORT.md b/SUPPORT.md
>>>>> index e3e49e2..151a63d 100644
>>>>> --- a/SUPPORT.md
>>>>> +++ b/SUPPORT.md
>>>>> @@ -22,6 +22,16 @@ EXPERT and DEBUG Kconfig options are not security
>>>>> supported. Other
>>>>>     Kconfig options are supported, if the related features are
>>>>> marked as
>>>>>     supported in this document.
>>>>>     +On ARM, a wider range of Kconfig configurations is available to
>>>>> enable
>>>>> +very small lines of code counts in the hypervisor. Not all possible
>>>>> +combinations of kconfig options are security supported. Instead, a
>>>>> few
>>>>
>>>> NIT: s/kconfig/Kconfig/
>>>>
>>>>> +pre-canned configurations have been added to xen/arch/arm/configs:
>>>>> they
>>>>> +are security suppored. Configurations derived from the pre-canned
>>>>> files
>>>>
>>>> s/suppored/supported/
>>>
>>> I'll fix
>>>
>>>
>>>>> +by adding non-listed options with their default values, or by
>>>>> enabling
>>>>> +any of the platform options under "Platform Support" (and their
>>>>> +dependent options) are security supported, unless stated
>>>>> +otherwise.
>>>>
>>>> I am not entirely sure to understand the implications the paragraph.
>>>
>>> It is meant to say:
>>>
>>> 1) xen/arch/arm/configs config files are security supported
>>> 2) default values of any kconfig options are security supported
>>> 3) if an option is marked as not security supported in SUPPORT.md, then
>>>      it is not security supported, no matter the default value
>>> 4) everything else is not security supported
>>>    Should I try to clarify it? I guess I should make clear that a .config
>>> with an unsupported option is unsupported as a whole. I can add:
>>>
>>>    "A configuration with one or more unsupported options, is not
>>>    unsupported."
>>>
>>>
>>>> For instance, if I choose arm64_defconfig, memaccess will be enabled by
>>>> default but any use of it is not security supported. What will be
>>>> the state of
>>>> the security support for that .config?
>>>
>>> Yes, memaccess will default to enable. However, SUPPORT.md says it is
>>> not security supported, hence, the result is that the .config is not
>>> security supported, according to (3).
>>
>> We really don't want that. That arm64_defconfig is the default config
>> for Xen. Anyone using it will not be security supported.
>>
>> Distros will likely use the default config as it enables everything.
>> If I were a package maintainer, I would expect at minimum to security
>> support the .config. This does not mean that using a specific feature
>> will be supported.
> 
> Anything you can select in menuconfig without passing
> XEN_CONFIG_EXPERT=y is security supported.  Anything hidden behind
> XEN_CONFIG_EXPERT is security supported in its default configuration.

Could you clarify what you mean by security supported here? For 
instance, "livepatch" is selectable on Arm with XEN_CONFIG_EXPERT=y but 
it is marked as "experimental" in SUPPORT.MD.

Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-07-25  9:50 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06 23:12 [PATCH v7 00/12] arm: more kconfig configurability and small default configs Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 01/12] arm: remove the ARM HDLCD driver Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 02/12] arm: make it possible to disable HAS_GICV3 Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 03/12] arm: rename HAS_GICV3 to GICV3 Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 04/12] Make MEM_ACCESS configurable Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 05/12] make it possible to enable/disable UART drivers Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 06/12] arm: make it possible to disable the SMMU driver Stefano Stabellini
2018-07-06 23:13 ` [PATCH v7 07/12] arm: add a tiny kconfig configuration Stefano Stabellini
2018-07-23 11:17   ` Julien Grall
2018-07-06 23:13 ` [PATCH v7 08/12] arm: add ALL, QEMU, Rcar3 and MPSoC configs Stefano Stabellini
2018-07-23 11:24   ` Julien Grall
2018-07-24 22:08     ` Stefano Stabellini
2018-07-24 13:27   ` Andrii Anisov
2018-07-26 22:46     ` Stefano Stabellini
2018-07-27 10:30       ` Andrii Anisov
2018-07-27 11:20         ` Julien Grall
2018-07-27 11:21         ` Andrii Anisov
2018-07-27 11:27           ` Julien Grall
2018-07-27 11:34             ` Andrii Anisov
2018-07-27 11:39               ` Julien Grall
2018-07-27 17:11         ` Stefano Stabellini
2018-07-27 18:23           ` Andrii Anisov
2018-07-27 21:35             ` Stefano Stabellini
2018-07-27 22:09               ` Julien Grall
2018-07-27 23:30                 ` Stefano Stabellini
2018-07-30 10:34                   ` Julien Grall
2018-07-30 17:39                     ` Stefano Stabellini
2018-07-30 16:11               ` Andrii Anisov
2018-07-06 23:14 ` [PATCH v7 09/12] xen: add per-platform defaults for NR_CPUS Stefano Stabellini
2018-07-23 11:26   ` Julien Grall
2018-07-06 23:14 ` [PATCH v7 10/12] xen: add cloc target Stefano Stabellini
2018-07-06 23:14 ` [PATCH v7 11/12] xen: specify support for EXPERT and DEBUG Kconfig options Stefano Stabellini
2018-07-16 12:50   ` Jan Beulich
2018-07-06 23:14 ` [PATCH v7 12/12] xen: clarify the security-support status of Kconfig options on ARM Stefano Stabellini
2018-07-23 11:37   ` Julien Grall
2018-07-24 22:31     ` Stefano Stabellini
2018-07-25  8:46       ` Julien Grall
2018-07-25  8:59         ` Andrew Cooper
2018-07-25  9:50           ` Julien Grall [this message]
2018-07-25 11:09             ` George Dunlap
2018-07-26  0:40               ` Stefano Stabellini
2018-07-25  9:11         ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56067f51-6e39-6a06-399a-64918603532f@arm.com \
    --to=julien.grall@arm.com \
    --cc=George.Dunlap@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=andrii_anisov@epam.com \
    --cc=dfaggioli@suse.com \
    --cc=jbeulich@suse.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.