Bringing down your AIX system to its knees

Here is a bug that is present in AIX kernels(?)  right from version 5.1 to latest(?) 6.1 and it allows an unprivileged user to execute commands that use high CPU and can’t be killed (kill -9) even by a root user.

Following is easiest way to reproduce the bug.

  1. Do cat > /tmp/file and let the command run (i.e. don’t input EOF character).
  2. Next do rm /tmp/file
  3. Next find the PID of the command execute in step 1, using ps -ef command or in any other way.
  4. Next execute the following command cat >> /proc/<PID>/fd/1 (replace PID with that found in step 3). And cat gets hung with high CPU usage.
  5. You can execute as many cat >> /proc/<PID>/fd/1 commands as you want (from another terminal).

Now even root can’t kill any of the cat commands (except for the one in step 1) and all of them continue using high amount of CPU indefinitely or until cat in step 1 exists. An obvious bug with the kernel.

StumbleUpon It!

Related posts:

  1. Key mappings on Acer Aspire 4520 under Linux
  2. Tata Indicom Plug2surf under GNU/Linux

Tags: , , , , ,

Posted by slash_blog

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply