The following steps will cause CentOS Linux 8 server panics during booting.

  1. Edit /etc/selinux/config
  2. Modify SELINUX from the default enforcing to disabled
  3. Reboot OS without kernel parameter “selinux=0”
  4. Following panic info will come

Copy to Clipboard

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.