By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Scoped User Access In Linux 6.19 To Reduce Speculation Barriers & Its Performance Hit
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Scoped User Access In Linux 6.19 To Reduce Speculation Barriers & Its Performance Hit
Computing

Scoped User Access In Linux 6.19 To Reduce Speculation Barriers & Its Performance Hit

News Room
Last updated: 2025/12/03 at 6:41 AM
News Room Published 3 December 2025
Share
Scoped User Access In Linux 6.19 To Reduce Speculation Barriers & Its Performance Hit
SHARE

Merged yesterday to the Linux 6.19 Git codebase was the “core/uaccess” pull that introduces new scoped user-mode access with auto-cleanup functionality. This can reduce the number of speculation barriers encountered when needing to access user-mode memory and thereby avoiding some of the performance penalties incurred by speculation barriers.

Intel Fellow Thomas Gleixner pursued this scoped user access functionality for the Linux kernel in an effort to avoid the need for some speculation barriers to cut-down on the performance overhead in the kernel’s hot code paths.

Gleixner explained in the core/uaccess pull request of this new kernel functionality:

“Scoped user mode access with auto cleanup

Access to user mode memory can be required in hot code paths, but if it has to be done with user controlled pointers, the access is shielded with a speculation barrier, so that the CPU cannot speculate around the address range check. Those speculation barriers impact performance quite significantly. This can be avoided by “masking” the provided pointer so it is guaranteed to be in the valid user memory access range and otherwise to point to a guaranteed unpopulated address space. This has to be done without branches so it creates an address dependency for the access, which the CPU cannot speculate ahead.

This results in repeating and error prone programming patterns:

      if (can_do_masked_user_access())
            from = masked_user_read_access_begin((from));
      else if (!user_read_access_begin(from, sizeof(*from)))
            return -EFAULT;
      unsafe_get_user(val, from, Efault);
      user_read_access_end();
      return 0;
      Efault:
            user_read_access_end();
            return -EFAULT;

which can be replaced with scopes and automatic cleanup:

      scoped_user_read_access(from, Efault)
            unsafe_get_user(val, from, Efault);
      return 0;
Efault:
      return -EFAULT;”

The kernel’s x86 futex and select code are among the users adapted to using scoped user access as part of this merge.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article Best Dyson deal: Save 0.99 on the Dyson Supersonic Nural Best Dyson deal: Save $150.99 on the Dyson Supersonic Nural
Next Article A Fentanyl Vaccine Is About to Get Its First Major Test A Fentanyl Vaccine Is About to Get Its First Major Test
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Starting January, CBN scraps cash deposit limits
Starting January, CBN scraps cash deposit limits
Computing
Hack The Box debuts HTB AI Range to test AI and human cyber defense side by side –  News
Hack The Box debuts HTB AI Range to test AI and human cyber defense side by side – News
News
Live updates: The Hill's AI in America Summit
Live updates: The Hill's AI in America Summit
News
SQE1 vs SQE2: A Breakdown of the Format, Questions, and Skills Tested
SQE1 vs SQE2: A Breakdown of the Format, Questions, and Skills Tested
Gadget

You Might also Like

Starting January, CBN scraps cash deposit limits
Computing

Starting January, CBN scraps cash deposit limits

4 Min Read
Samsung Raises Foldable Ante With Galaxy Z TriFold
Computing

Samsung Raises Foldable Ante With Galaxy Z TriFold

0 Min Read
The TechBeat: Think Like an AI PM (12/3/2025) | HackerNoon
Computing

The TechBeat: Think Like an AI PM (12/3/2025) | HackerNoon

7 Min Read
Discover the AI Tools Fueling the Next Cybercrime Wave — Watch the Webinar
Computing

Discover the AI Tools Fueling the Next Cybercrime Wave — Watch the Webinar

4 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?