In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Move jumplabelinit() before parseearlyparam()
When enabling both CONFIGMEMALLOCPROFILING=y and CONFIGMEMALLOCPROFILINGENABLEDBYDEFAULT=y, then diabling memory profiling by adding the boot parameter 'sysctl.vm.memprofiling=0' will cause the kernel failed to boot.
After analysis, this is because jumplabelinit() must be called before parseearlyparam(), the early param handlers may modify static keys by staticbranchenable/disable().
Fix this by moving jumplabelinit() to before parseearlyparam(). The solution is similar to other architectures.