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

Apple reportedly releasing new ‘Sales Coach’ app soon – 9to5Mac
Apple reportedly releasing new ‘Sales Coach’ app soon – 9to5Mac
News
Best gaming headset deal: Logitech G435 hits .99
Best gaming headset deal: Logitech G435 hits $39.99
News
China’s Zeekr and Lynk & Co chase 1 million annual sales target after merger · TechNode
China’s Zeekr and Lynk & Co chase 1 million annual sales target after merger · TechNode
Computing
5 New Android Phones That Still Have Removable Batteries In 2026 – BGR
5 New Android Phones That Still Have Removable Batteries In 2026 – BGR
News

You Might also Like

China’s Zeekr and Lynk & Co chase 1 million annual sales target after merger · TechNode
Computing

China’s Zeekr and Lynk & Co chase 1 million annual sales target after merger · TechNode

2 Min Read
F2FS Delivers “Several Key Performance Optimizations” With Linux 7.0
Computing

F2FS Delivers “Several Key Performance Optimizations” With Linux 7.0

1 Min Read
World’s first Humanoid Robot Games open in Beijing · TechNode
Computing

World’s first Humanoid Robot Games open in Beijing · TechNode

1 Min Read
How to Merge Pinterest Boards
Computing

How to Merge Pinterest Boards

3 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?