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: Linux Lands Fix For Its “Subtly Wrong” Page Fault Handling Code For The Past 5 Years
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 > Linux Lands Fix For Its “Subtly Wrong” Page Fault Handling Code For The Past 5 Years
Computing

Linux Lands Fix For Its “Subtly Wrong” Page Fault Handling Code For The Past 5 Years

News Room
Last updated: 2026/01/23 at 8:21 AM
News Room Published 23 January 2026
Share
Linux Lands Fix For Its “Subtly Wrong” Page Fault Handling Code For The Past 5 Years
SHARE

Merged today for the Linux 6.19 Git kernel and then in turn for back-porting to prior Linux kernel series is making the x86 page fault handling code disable interrupts properly. Since 2020 it turns out the handling was subtly wrong but now corrected by Intel.

Cedric Xing of Intel tracked down the issue and fix to the page fault handling code for properly disabling interrupts. Cedric explained in the now-merged patch:

“There’s a big comment in the x86 do_page_fault() about our interrupt disabling code:

* User address page fault handling might have reenabled
* interrupts. Fixing up all potential exit points of
* do_user_addr_fault() and its leaf functions is just not
* doable w/o creating an unholy mess or turning the code
* upside down.

but it turns out that comment is subtly wrong, and the code as a result is also wrong.

Because it’s certainly true that we may have re-enabled interrupts when handling user page faults. And it’s most certainly true that we don’t want to bother fixing up all the cases.

But what isn’t true is that it’s limited to user address page faults.

The confusion stems from the fact that we have logic here that depends on the address range of the access, but other code then depends on the _context_ the access was done in. The two are not related, even though both of them are about user-vs-kernel.

In other words, both user and kernel addresses can cause interrupts to have been enabled (eg when __bad_area_nosemaphore() gets called for user accesses to kernel addresses). As a result we should make sure to disable interrupts again regardless of the address range before returning to the low-level fault handling code.

The __bad_area_nosemaphore() code actually did disable interrupts again after enabling them, just not consistently. Ironically, as noted in the original comment, fixing up all the cases is just not worth it, when the simple solution is to just do it unconditionally in one single place.

So remove the incomplete case that unsuccessfully tried to do what the comment said was “not doable” in commit ca4c6a9858c2 (“x86/traps: Make interrupt enable/disable symmetric in C code”), and just make it do the simple and straightforward thing.”

The problematic code had been around going back to the Linux 5.8 merge window in 2020.

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 gaming monitor deal: LG UltraGear 34-inch OLED gaming monitor is nearly half off Best gaming monitor deal: LG UltraGear 34-inch OLED gaming monitor is nearly half off
Next Article TikTok seals deal forming new joint American venture with major investors TikTok seals deal forming new joint American venture with major investors
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

This 1TB Dual USB Drive Might Replace Your Cloud Storage and It’s on Sale for 36% Off
This 1TB Dual USB Drive Might Replace Your Cloud Storage and It’s on Sale for 36% Off
News
I Added CISA KEV to Vulnerability Prioritization and Coverage Jumped +413% | HackerNoon
I Added CISA KEV to Vulnerability Prioritization and Coverage Jumped +413% | HackerNoon
Computing
Best robot vacuum deal: Save 0 on roborock Qrevo CurvX
Best robot vacuum deal: Save $550 on roborock Qrevo CurvX
News
Here’s the new size of iPhone 18 Pro’s Dynamic Island, per leaker – 9to5Mac
Here’s the new size of iPhone 18 Pro’s Dynamic Island, per leaker – 9to5Mac
News

You Might also Like

I Added CISA KEV to Vulnerability Prioritization and Coverage Jumped +413% | HackerNoon
Computing

I Added CISA KEV to Vulnerability Prioritization and Coverage Jumped +413% | HackerNoon

8 Min Read
AMD Ryzen AI Software 1.7 Released For Improved Performance On NPUs, New Model Support
Computing

AMD Ryzen AI Software 1.7 Released For Improved Performance On NPUs, New Model Support

1 Min Read
Exploring Quantum Machine Learning for Time Series Stock Prediction | HackerNoon
Computing

Exploring Quantum Machine Learning for Time Series Stock Prediction | HackerNoon

28 Min Read
GNU Guix 1.5 Released With RISC-V Support, Experimental x86_64 GNU Hurd Kernel
Computing

GNU Guix 1.5 Released With RISC-V Support, Experimental x86_64 GNU Hurd Kernel

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