Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36190

Intel TSX-NI can cause a significant regression when TAA mitigation is needed

    XMLWordPrintable

Details

    • Bug
    • Status: In Testing (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8
    • 10.11, 11.4, 11.8
    • Intel processors with the rtm (TSX-NI) instruction set extensions, running anything else than Microsoft Windows, compiled with a recent enough GCC or clang
    • Q3/2025 Maintenance

    Description

      alessandro.vetere provided some performance testing results from a system where a transaction asynchronous abort (TAA) mitigation was enabled.

      It would seem to be necessary to disable the use of hardware memory transactions on affected systems, at least in the function buf_page_optimistic_fix() but possibly across the board. A straightforward change on Linux would be to revise the detection function bool transactional_lock_enabled() so that it would avoid setting have_transactional_memory=true if the file /sys/devices/system/cpu/vulnerabilities/tsx_async_abort is readable and contains anything else than the string Not affected.

      Attachments

        Issue Links

          Activity

            People

              alessandro.vetere Alessandro Vetere
              marko Marko Mäkelä
              Alessandro Vetere Alessandro Vetere
              Steve Shaw Steve Shaw
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.