[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 5/7] x86/livepatch: Fail the build if duplicate symbols exist



On 23.10.2019 15:58, Andrew Cooper wrote:
> --- a/xen/common/Kconfig
> +++ b/xen/common/Kconfig
> @@ -361,9 +361,23 @@ config FAST_SYMBOL_LOOKUP
>  
>         If unsure, say Y.
>  
> +config ENFORCE_UNIQUE_SYMBOLS
> +     bool "Enforce unique symbols" if LIVEPATCH
> +     default y if LIVEPATCH

Instead of two identical "if", why not "depends on LIVEPATCH"?

> +     ---help---
> +       Multiple symbols with the same name aren't generally a problem
> +       unless Live patching is to be used.
> +
> +       Livepatch loading involves resolving relocations against symbol
> +       names, and attempting to a duplicate symbol in a livepatch will
> +       result in incorrect livepatch application.
> +
> +       This option should be used to ensure that a build of Xen can have a
> +       livepatch build and apply correctly.
> +
>  config SUPPRESS_DUPLICATE_SYMBOL_WARNINGS
> -     bool "Suppress duplicate symbol warnings" if !LIVEPATCH
> -     default y if !LIVEPATCH
> +     bool "Suppress duplicate symbol warnings" if !ENFORCE_UNIQUE_SYMBOLS
> +     default y if !ENFORCE_UNIQUE_SYMBOLS

Similarly here then. With this changed, or with a proper reason
supplied
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.