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 6.17 Looks To Address An Old & Obscure Kernel Limitation From 1993
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 6.17 Looks To Address An Old & Obscure Kernel Limitation From 1993
Computing

Linux 6.17 Looks To Address An Old & Obscure Kernel Limitation From 1993

News Room
Last updated: 2025/07/26 at 8:24 PM
News Room Published 26 July 2025
Share
SHARE

Assuming no objections are raised by Linus Torvalds, an early pull request has been submitted for the upcoming Linux 6.17 merge window to address an obscure kernel limitation that has been in place going back all the way to 1993 during the Linux v0.99 kernel days.

A Linux engineer working at Alibaba recently reported on a script-generated Assembly file that when built by the GCC compiler and running as an ELF file it would fail to run on Linux AArch64/ARM64 if using the standard 4K page size. But if using the modern 64K page size for ARM64 this ELF file would work just fine. An “exec format error” would happen when using a 4K page kernel size on ARM64 with this particular binary.

The Alibaba engineer noted that within one of the load ELF functions in the kernel was a check to see if the size was greater than ELF_MIN_ALIGN / PAGE_SIZE and bail out if that is the case, which it was given the number of program headers in this particular ELF file. But it wasn’t clear why this check was in place and if removing the check it could work fine on a 4K kernel.

The code change

Longtime Linux developer Kees Cook dug through the old pre-Git code to try to figure it out. He explained:

“Looking through https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git (which doesn’t have linked history, so you have to examine explicit “pre git” tags), I see:

4779b38bcb96 (“[PATCH] Linux-0.99.13 (September 19, 1993)”) Which says “ELF binary support it a notable change.” Here, the PAGE_SIZE
check does not exist. When ELF interp support was added in 9e11983a5a3e (“Import 0.99.15f”), we see the check appear, and I can
find no rationale.

And with 6a8d38945cf4 (“binfmt_elf: Hoist ELF program header loading to a function”), the PAGE_SIZE check is _added_ for non-interp loads.

It seems the 64K count limit is sufficient? (If the goal was to avoid large memory allocations happening from userspace, we’re way past PAGE_SIZE these days between IPC, BPF, etc.) Does this work for you?”

So now for Linux 6.17 is a patch to drop the 4K limitation of the program header size.

“We have assembly code generated by a script. GCC successfully compiles it. However, the kernel cannot load it on an ARM64 platform with a 4K page size. In contrast, the same ELF file loads correctly on the same platform with a 64K page size.

The root cause is the Linux kernel’s ELF_MIN_ALIGN limitation on the program headers of ELF files. The ELF file contains 78 program headers (the script inserts many holes when generating the assembly code). On ARM64 with a 4K page size, the ELF_MIN_ALLIGN enforces a maximum of 74 program headers, causing the ELF file to fail. However, with a 64K page size, the ELF_MIN_ALIGN is relaxed to over 1,184 program headers, allowing the file to run correctly.

Cook kindly identified that this limitation was introduced in Linux-0.99.15f without an explanation for its purpose.

The ELF specification does not impose such a restriction on program headers. Removing the ELF_MIN_ALIGN limitation on program headers to align with the ELF spec. After removing ELF_MIN_ALIGN limitation, 64K size limitation still exist which should be sufficient.”

That patch was sent in as part of the execve changes for Linux 6.17. Assuming no issues discovered from Linus Torvalds himself, this fix should be merged once the Linux 6.17 merge window opens… Which will be as soon as Monday assuming Linux 6.16 goes as planned on Sunday.

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 Apple Store in Michigan Permanently Closing Next Month
Next Article Moment hero vigilante rams shoplifter’s shopping cart in Walmart car park
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

I try mind-boggling 4mm thin folding Samsung phone – with perk missing on iPhone
News
18 months. 12,000 questions. A whole lot of anxiety. What I learned from reading students’ ChatGPT logs
News
Best VPN for iPhone 2025: Enhance Your Privacy on the Go
News
Uber Tests Matching Female Riders With Female Drivers for Added Safety
News

You Might also Like

Computing

16 Free UX Research Portfolio Templates for Designers |

22 Min Read
Computing

The HackerNoon Newsletter: For Your Next Blog Post: Start Writing via HackerNoon Blogging Templates (7/26/2025) | HackerNoon

2 Min Read
Computing

What Virtual Real Estate Prices Tell Us About Cryptocurrency Bubbles | HackerNoon

8 Min Read
Computing

Examining the Wealth Effect of Cryptocurrency Prices on Virtual Land Markets | HackerNoon

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?