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

Mirumi the furry companion robot is now available on Kickstarter
Mirumi the furry companion robot is now available on Kickstarter
News
System Initiative Unveils Expansion with Real-Time Multi-Cloud Discovery and Automation
System Initiative Unveils Expansion with Real-Time Multi-Cloud Discovery and Automation
News
AES-GCM Optimizations Land In Linux 6.19 – Benefiting AMD Zen 3, AVX-512 CPUs Too
AES-GCM Optimizations Land In Linux 6.19 – Benefiting AMD Zen 3, AVX-512 CPUs Too
Computing
Do Defrosting Trays Work? More Importantly, Are They Safe?
Do Defrosting Trays Work? More Importantly, Are They Safe?
News

You Might also Like

AES-GCM Optimizations Land In Linux 6.19 – Benefiting AMD Zen 3, AVX-512 CPUs Too
Computing

AES-GCM Optimizations Land In Linux 6.19 – Benefiting AMD Zen 3, AVX-512 CPUs Too

2 Min Read
Document, Delegate, Dominate: Systemizing Your Filipino Web Dev Business for Growth | HackerNoon
Computing

Document, Delegate, Dominate: Systemizing Your Filipino Web Dev Business for Growth | HackerNoon

8 Min Read
Sound Open Firmware 2.14 Released With Intel Wildcat Lake & Nova Lake Support
Computing

Sound Open Firmware 2.14 Released With Intel Wildcat Lake & Nova Lake Support

1 Min Read
Study Connects Doppler-Domain Sparsity to OTFS Performance Edge | HackerNoon
Computing

Study Connects Doppler-Domain Sparsity to OTFS Performance Edge | HackerNoon

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