Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config/kernel: enforce kernel max version, with escape hatch #15986

Closed
wants to merge 2 commits into from

Commits on Sep 19, 2024

  1. config/kernel: enforce maximum kernel version, with escape hatch

    META lists the maximum kernel version we consider to be fully supported.
    However, we don't enforce this.
    
    Sometimes we ship experimental patches for a newer kernel than we're
    ready to support or, less often, we compile just fine against a newer
    kernel. Invariably, something doesn't quite work properly, and it's
    difficult for users to understand that they're actually running against
    a kernel that we're not yet ready to support.
    
    This commit tries to improve this situation. First, it simply enforces
    Linux-Maximum, by having configure bail out if you try to compile
    against a newer version that.
    
    Then, it adds the --enable-linux-experimental switch to configure. When
    supplied, this disables enforcing the maximum version, allowing the user
    to attempt to build against a kernel with version higher than
    Linux-Maximum.
    
    Finally, if the switch is supplied _and_ configure is run against a
    higher kernel version, it shows a big warning message when configure
    finishes, and defines HAVE_LINUX_EXPERIMENTAL for the build. This allows
    us to add code to modify runtime behaviour as well.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    5b76ac7 View commit details
    Browse the repository at this point in the history
  2. linux: log a scary warning when used with an experimental kernel

    Since the person using the kernel may not be the person who built it,
    show a warning at module load too, in case they aren't aware that it
    might be weird.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    4623240 View commit details
    Browse the repository at this point in the history