Re: [PATCH gnupg v10] Disable CPU speculation-related misfeatures
Werner Koch via Gnupg-devel <[email protected]> Wed, 09 Jul 2025 16:49:28 +0200
| Newsgroups | gmane.comp.encryption.gpg.devel |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
openpgp-digital-signature.asc
(application/pgp-signature, 247 B)
-----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCaG6BeA0cd2tAZ251cGcu b3JnAAoJEBnMHJ4IWxB6x9EA/04rgd12u3+t9AW3gG/srRCzACdH+C6YiSGA0fwV 9DTMAP9gIIFol5CFtvjevABGw/zmxTR8M30M8qr99SkY2HDuBw== =Dwvg -----END PGP SIGNATURE-----