I had previously made a mistake in loading the kernel's .config file. I have now managed to compile the kernel with the options for KASAN set. However, booting this kernel results in an instant reboot after displaying the message "Loading initial ramdisk...". I will try to compile another kernel using CONFIG_KASAN_OUTLINE this time and see if I have better luck.