There is some information in the log:
grep -I. Tainted
Specific code can be seen through proc:
Cat /proc/sys/kernel/tainted
The meaning of the numbers:
Tainted:
Non-zero if the kernel has been tainted. Numeric values, which
Can be ORed together:
1-a module with A NON-GPL license have been loaded, this includes modules with no license. Set by Modutils >= 2.4.9 and Module-init-tools.
2-a module was, loaded by Insmod-f.set by Modutils >= 2.4.9 and Module-init-tools.
4-unsafe SMP PROCESSORS:SMP with CPUs not designed for SMP.
8-A module was forcibly unloaded from the system by RMMOD-F.
16-A Hardware Machine Check error occurred on the system.
32-a Bad page is discovered on the system.
64-the user have asked that the system is marked "tainted". This could is because they is running software that directly modifies the hardware, or for other reasons.
128-the system has died.
256-the ACPI DSDT have been overridden with one supplied by the user instead of using the one provided by the hardware.
512-a kernel warning has occurred.
1024-a module from Drivers/staging is loaded.
2048-the system is working around a severe firmware bug.
4096-an Out-of-tree module has been loaded.
8192-an unsigned module has been loaded in a kernel supporting module signature.
16384-a soft lockup have previously occurred on the system.
32768-the kernel has been live patched.
Linux kernel Tainted