Perform checking for out of bounds enum values

configname: CONFIG_UBSAN_ENUM

Linux Kernel Configuration
└─>Kernel hacking
└─>Generic Kernel Debugging Instruments
└─>Undefined behaviour sanity checker
└─>Perform checking for out of bounds enum values
In linux kernel since version 5.2 (release Date: 2019-07-07)  
This option enables -fsanitize=enum which checks for values being loaded
into an enum that are outside the range of given values for the given enum.

depends
CONFIG_UBSAN
CONFIG_cc-option