On 3/31/22 05:38, Borislav Petkov wrote: >> +Code should be tested before submitting to the tip maintainers. Anything >> +other than minor changes should be built, booted and tested with the >> +following set of comprehensive (and heavyweight) set of kernel debugging >> +options enabled. >> + >> + CONFIG_X86_DEBUG_FPU=y >> + CONFIG_LOCK_STAT=y ... > It would be cool if there were a command I can run so that I can enable > all those. Example: > > $ grep CONFIG_VMLINUX_VALIDATION .config > $ ./scripts/config --enable CONFIG_VMLINUX_VALIDATION > $ grep CONFIG_VMLINUX_VALIDATION .config > CONFIG_VMLINUX_VALIDATION=y > $ make oldconfig > # > # configuration written to .config > # > $ grep CONFIG_VMLINUX_VALIDATION .config > $ > > Needs other options. > > Maybe you could create a .config snippet which we can merge > with scripts/kconfig/merge_config.sh... or maybe start from > arch/x86/configs/x86_64_defconfig, add all those and call it > > arch/x86/configs/x86_64_testconfig Well, after some digging around it turns out that we're not the first ones with this problem. Just throwing those options into: kernel/configs/x86_debug.config and doing: make x86_debug.config will magically do: Using .config as base Merging /home/davehans/linux.git/kernel/configs/x86_debug.config # # merged configuration written to .config (needs make) ... Who knew? I'll move the options and send another patch.