Kernel configuration and release lifecycle
Quick answer
The running kernel release, distribution release and installed kernel packages identify different parts of a Linux system. A version string alone cannot prove a feature or security-fix status.
Installing a kernel package does not change the running kernel until the system actually boots into it. Distribution maintainers may backport fixes, so compare package advisories and build identity rather than relying only on the upstream version number.
Prepare the practice environment
Run python3 lab-fixtures/kernel/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Run each snippet in a separate Bash process, not your interactive shell. Only private files are used; optional examples require an authorized snapshot VM. Do not write kernel attributes, load modules, or change boot settings. Supplied records are fictional; read only the selected non-sensitive live fields. Review the lab guide.
Prerequisites
Review: Procfs, sysfs and sysctl.
How it works
Kernel configuration selects built-in features (often CONFIG_FOO=y), modules (m) and disabled options. Not every option supports all three states. Distribution kernels may patch upstream releases and backport fixes; compare vendor advisories and package revision rather than guessing from uname. uname -r describes the running kernel, which may differ from an installed but not booted kernel. Containers share the running kernel and can have unrelated userspace package inventories. A managed upgrade requires compatibility review, tested backups, a known-good boot choice, a maintenance window and post-boot checks. Secure Boot and module-signing policies can affect boot or driver availability. Build, boot and rollback practice belongs in a disposable VM, never this container.
Try the examples
test -n "$(uname -r)" && printf 'running release reported\n'The value is variable; no installed package is inferred.
Expected stdout:
running release reportedgrep -E '^CONFIG_BM_|^# CONFIG_BM_' kernel.config.sampleThe invented option names demonstrate notation only; they are not real Kconfig options.
Expected stdout:
CONFIG_BM_CORE=yCONFIG_BM_DRIVER=m# CONFIG_BM_DEBUG is not setFictional package inventory illustrates an installed but not yet running candidate; no reboot is performed.
Expected stdout:
running differs from installed candidate; verify after bootCommon mistakes
Do not infer vulnerability status from uname alone or remove the only known-good kernel. Never reboot a host for this lab.
Practice
Interpret each fictional config option, compare the running and installed candidates, and write a VM-only verification and rollback checklist.
Related references
Study: uname. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Kernel configuration and release lifecycle — Knowledge Check
Apply kernel concepts to read-only observations and synthetic models.
What does uname -r report?
What does a tristate m conventionally indicate?
Why can a vendor kernel have a fix despite an older base version?
What should be retained before a kernel upgrade?