[PATCH gnupg v10] Disable CPU speculation-related misfeatures
    Werner Koch 
    wk at gnupg.org
       
    Wed Jul  9 16:49:28 CEST 2025
    
    
  
On Tue,  8 Jul 2025 21:38, Guido Trentalancia said:
> +void sigbus_handler(int signo)
> +{
> +  if (signo == SIGBUS)
> +    {
> +      log_info ("Warning: Level 1 Data Cache flushing requires the \"nosmt\" boot parameter.\n");
You can't use stdio function in asignal handler!  You should also use
sigaction for better portability.  Prooer use of signals in a GnuPG
component is by using the nPth signal features.
>  void
>  early_system_init (void)
[...]
> +      log_info ("Warning: cannot catch the SIGBUS signal.\n");
Not in early_system_init.  The logging system has not been setupat this
point.
Shalom-Salam,
   Werner
-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 247 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-devel/attachments/20250709/a9f0ed47/attachment.sig>
    
    
More information about the Gnupg-devel
mailing list