• Mark Rutland's avatar
    arm64: fix rodata=full · 2e8cff0a
    Mark Rutland authored
    On arm64, "rodata=full" has been suppored (but not documented) since
    commit:
    
      c55191e9 ("arm64: mm: apply r/o permissions of VM areas to its linear alias as well")
    
    As it's necessary to determine the rodata configuration early during
    boot, arm64 has an early_param() handler for this, whereas init/main.c
    has a __setup() handler which is run later.
    
    Unfortunately, this split meant that since commit:
    
      f9a40b08 ("init/main.c: return 1 from handled __setup() functions")
    
    ... passing "rodata=full" would result in a spurious warning from the
    __setup() handler (though RO permissions would be configured
    appropriately).
    
    Further, "rodata=full" has been broken since commit:
    
      0d6ea3ac ("lib/kstrtox.c: add "false"/"true" support to kstrtobool()")
    
    ... which caused strtobool() to parse "full" as false (in addition to
    many other values not documented for the "rodata=" kernel parameter.
    
    This patch fixes this breakage by:
    
    * Moving the core parameter parser to an __ear...
    2e8cff0a
kernel-parameters.txt 245 KB