The following steps will cause CentOS Linux 8 server panics during booting.
- Edit /etc/selinux/config
- Modify SELINUX from the default enforcing to disabled
- Reboot OS without kernel parameter “selinux=0”
- Following panic info will come
To resolve this error, update kernel to kernel-4.18.0-180.el8 or above
Use this workaround: append selinux=0 in kernel command line.
selinux_inode_alloc_security has been deleted firstly from security_hook_heads, so security_inode_alloc directly returns 0, which means the value of pointer inode->i_security equalling to NULL which causes the kernel panic.