lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 3 Oct 2018 20:26:22 +0300
From:   Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To:     Thomas Tai <thomas.tai@...cle.com>, linux-kernel@...r.kernel.org,
        Christoph Hellwig <hch@....de>
Cc:     Tyler Baicar <tbaicar@...eaurora.org>
Subject: Re: [PATCH v1] ras: Use consistent types for UUIDs

On Fri, Jul 13, 2018 at 04:10:27PM +0300, Andy Shevchenko wrote:
> The commit
> 
>   297b64c74385 ("ras: acpi / apei: generate trace event for unrecognized CPER section")
> 
> brought inconsistency in UUID types which are used across the RAS subsystem.
> 
> Fix this by moving to use guid_t everywhere.

Any comments on this?

> 
> Cc: Tyler Baicar <tbaicar@...eaurora.org>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
>  drivers/ras/ras.c       | 2 +-
>  include/ras/ras_event.h | 8 ++++----
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c
> index 3f38907320dc..95540ea8dd9d 100644
> --- a/drivers/ras/ras.c
> +++ b/drivers/ras/ras.c
> @@ -14,7 +14,7 @@
>  #define TRACE_INCLUDE_PATH ../../include/ras
>  #include <ras/ras_event.h>
>  
> -void log_non_standard_event(const uuid_le *sec_type, const uuid_le *fru_id,
> +void log_non_standard_event(const guid_t *sec_type, const guid_t *fru_id,
>  			    const char *fru_text, const u8 sev, const u8 *err,
>  			    const u32 len)
>  {
> diff --git a/include/ras/ras_event.h b/include/ras/ras_event.h
> index a0794632fd01..36c5c5e38c1d 100644
> --- a/include/ras/ras_event.h
> +++ b/include/ras/ras_event.h
> @@ -27,7 +27,7 @@
>  TRACE_EVENT(extlog_mem_event,
>  	TP_PROTO(struct cper_sec_mem_err *mem,
>  		 u32 err_seq,
> -		 const uuid_le *fru_id,
> +		 const guid_t *fru_id,
>  		 const char *fru_text,
>  		 u8 sev),
>  
> @@ -39,7 +39,7 @@ TRACE_EVENT(extlog_mem_event,
>  		__field(u8, sev)
>  		__field(u64, pa)
>  		__field(u8, pa_mask_lsb)
> -		__field_struct(uuid_le, fru_id)
> +		__field_struct(guid_t, fru_id)
>  		__string(fru_text, fru_text)
>  		__field_struct(struct cper_mem_err_compact, data)
>  	),
> @@ -218,8 +218,8 @@ TRACE_EVENT(arm_event,
>   */
>  TRACE_EVENT(non_standard_event,
>  
> -	TP_PROTO(const uuid_le *sec_type,
> -		 const uuid_le *fru_id,
> +	TP_PROTO(const guid_t *sec_type,
> +		 const guid_t *fru_id,
>  		 const char *fru_text,
>  		 const u8 sev,
>  		 const u8 *err,
> -- 
> 2.18.0
> 

-- 
With Best Regards,
Andy Shevchenko


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ