Page MenuHomeVyOS Platform

Missing validation for the memory hugepage-count option
Closed, ResolvedPublic

Description

Now we can configure as many hugepages as we want. Even if we don't have free memory for this.

vyos@vyos# set system option kernel memory hugepage-size 2M hugepage-count 4096
[edit]
vyos@vyos# commit
[edit]
vyos@vyos# free -hm
               total        used        free      shared  buff/cache   available
Mem:           7.8Gi       4.6Gi       3.0Gi       1.8Mi       390Mi       3.2Gi
Swap:             0B          0B          0B

This changes apply only after reboot and lead to a kernel panic.

Need to ferify this parameter

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

natali-rs1985 changed the task status from Open to Confirmed.
natali-rs1985 triaged this task as Normal priority.
dmbaturin renamed this task from system_option: Add validation for memory hugepage-count to Missing validation for the memory hugepage-count option.Nov 13 2025, 12:16 AM