Kernel panic - not syncing: Attempted to kill init! Pid: 1,comm: init Tained: G I------------- 2.6.32-358.el6.x86_64 #1 Call Trace: [] ? panic+0xa0/0x16f [] ? do_exit+0x862/0x870 [] ? fput+0x25/0

Kernel panic - not syncing: Attempted to kill init!
Pid: 1,comm: init Tained: G        I-------------    2.6.32-358.el6.x86_64 #1
Call Trace:
 [<fffffff8150cfc8>] ? panic+0xa0/0x16f
 [<fffffff81073ae2>] ? do_exit+0x862/0x870
 [<fffffff81182885>] ? fput+0x25/0x30
 [<fffffff81073b48>] ? do_group_exit+0x58/0xd0
 [<fffffff81073bd7>] ? sys_exit_group+0x17/0x20
 [<fffffff8100b072>] ? system_call_fastpath+0x16/0x1b
panic occurred, switching back to text console

The Solution

This was caused by a typo in /etc/selinux/config

Make sure it is set correctly, for example I had it as so (I put disabled in the wrong spot by accident):

It's amazing how a bad SELinux config can crash your system and cause it not to boot.

Notice below that "SELINUXTYPE=disabled", that's wrong and was the problem.

Bad Config Example (don't use it!):

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=disabled

Good Config Example (use it because selinux causes issues):

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted


Tags:

kernel, syncing, init, pid, comm, tained, _, xa, do_exit, fput, fffffff, cfc, ae, do_group_exit, xd, bd, sys_exit_group, system_call_fastpath, switching, text, console, typo, etc, selinux, config, correctly, disabled, quot, selinuxtype, controls, enforcing, enforced, permissive, warnings, targeted, processes, mls, multi,

Latest Articles

  • Bad Power Supply Issue Story Diagnosing Troubleshooting
  • Getting started with AI (Artificial Intelligence) in Linux / Ubuntu using by deploying LLM (Language Learing Models) using Ollama LLMA
  • microk8s kubernetes how to install OpenEBS
  • Flash LSI MegaRAID 2208 to IT mode in Linux Mint/Debian/Ubuntu
  • LSI MegaRAID in Linux Ubuntu / Centos Tutorial Setup Guide megacli
  • Convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/413. convert-im6.q16: no images defined `pts-time.jpg' @ error/convert.c/ConvertImageCommand/3258. solution ImageMagick P
  • Apache PHP sending expires header solution cannot use cache with CDN
  • How to install virt-manager in Mint 22/Ubuntu 22
  • Infiniband Guide
  • python mysql install error: /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found mysql_config --version
  • FreePBX 17 How To Add a Trunk
  • Docker Container Onboot Policy - How to make sure a container is always running
  • FreePBX 17 How To Add Phones / Extensions and Register
  • Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes. solution
  • Cisco How To Use a Third Party SIP Phone (eg. Avaya, 3CX)
  • Cisco Unified Communication Manager (CUCM) - How To Add Phones
  • pptp / pptpd not working in DD-WRT iptables / router
  • systemd-journald high memory usage solution
  • How to Install FreePBX 17 in Linux Debian Ubuntu Mint Guide
  • How To Install Cisco's CUCM (Cisco Unified Communication Manager) 12 Guide