Re: [linus:master] [x86/bugs] a3af84b0fa: stress-ng.seccomp.ops_per_sec 95.7% regression

From: Pawan Gupta

Date: Mon Nov 30 2026 - 02:23:51 EST


On Fri, Nov 13, 2026 at 12:09:28AM +0800, Chengfeng Lin wrote:
> Hi Dave, Pawan,
>
> Following up on the Redis result, libMicro 0.4.3 [1] provides a smaller
> reproducer: single-threaded loopback TCP. In an unmodified
> parent / a3af84b0fa00 / parent comparison, native time/op increased
> 29.84% for 1 byte and 28.76% for 4 KiB. Each condition had nine
> unprofiled runs per boot; the TCP baselines differed by less than 0.10%.
> The pipe control was essentially unchanged.

Thanks for the smaller reproducer, it was helpful in narrowing it down to a
TA-RET mitigation in microcode for CVE-2023-38575 (INTEL-SA-00982) [1].
This microcode mitigation may disable alternate predictions for RET after
IBPB is invoked.

On server parts there is a knob available to keep RET alternate predictions
enabled. On supported CPUs this can be done by setting bit 0 of
IA32_PBOPT_OPT_CTRL as described in [2]. Also, these alternate predictions
are re-enabled after the core enters C6 state (even on CPUs that don't
support the knob).

I have shared your report with HW folks, and hopefully in near future we
will have a microcode update that avoids disabling RET alternate
predictions.

Thanks,
Pawan

[1] Intel® Processor Return Predictions Advisory
https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00982.html
[2] CPUID Enumeration and Architectural MSRs
https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/cpuid-enumeration-and-architectural-msrs.html