Skip to content

Only look for old Linux kernel versions on Linux.#2031

Open
petterreinholdtsen wants to merge 1 commit intouxlfoundation:masterfrom
petterreinholdtsen:hurd-no-linux-version
Open

Only look for old Linux kernel versions on Linux.#2031
petterreinholdtsen wants to merge 1 commit intouxlfoundation:masterfrom
petterreinholdtsen:hurd-no-linux-version

Conversation

@petterreinholdtsen
Copy link
Copy Markdown
Contributor

@petterreinholdtsen petterreinholdtsen commented Mar 31, 2026

Description

This do not work well on GNU Hurd, where the kernel version is 0.9.

This get test_malloc_compliance working on GNU Hurd.

This fix is related to #2027.

Type of change

Choose one or multiple, leave empty if none of the other choices apply

Add a respective label(s) to PR if you have permissions

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • [ x tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • updated in # - add PR number
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

@petterreinholdtsen petterreinholdtsen force-pushed the hurd-no-linux-version branch 3 times, most recently from 02035fe to a06d35e Compare April 3, 2026 07:02
This do not work well on GNU Hurd, where the kernel version is 0.9.

This get test_malloc_compliance working on GNU Hurd.

This fix is related to uxlfoundation#2027.
@petterreinholdtsen
Copy link
Copy Markdown
Contributor Author

petterreinholdtsen commented Apr 7, 2026 via email

@petterreinholdtsen petterreinholdtsen changed the title Stop trying to parse GNU Hurd kernel version as a Linux kernel version. Only look for old Linux kernel versions on Linux. Apr 7, 2026
@Alexandr-Konovalov
Copy link
Copy Markdown
Contributor

[Alexandr-Konovalov]
Logic in the legacy is "size must be non-zero, except for VmPeak and really old Linux". And what is your assumption? Why you think is it reasonable to drop this check in every case?
My assumtion was that this was a check that was intended for Linux only. I read from your message that only the latter part was for Linux only, and have changed the commit to better reflect what I suspect is the change you recommend.

Your current version assumes that Hurd may not have VmPeak in /proc/*/status. Is it another API go get that info?

@petterreinholdtsen
Copy link
Copy Markdown
Contributor Author

petterreinholdtsen commented Apr 8, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants