Kernel Bench

Kernel News and How To

This is a demo of a dual-core SH7776 running SMP T-Kernel and doing video processing. This was shown at TRONSHOW 2010 in Tokyo, Japan from 9 Dec – 11 Dec 2009.

Duration : 0:0:37

Read the rest of this entry »

Technorati Tags: , , , , , , , , , ,

Watch in HD Fullscreen :)

Back again with yet another linux exploit. For time purposes I’m only demonstrating it on RHEL 5.4, but if you look on my twitter you can see screenshots of it working on every distro mentioned in the video. It’ll work on everything else too, I just don’t have the VMs installed. Every version of Linux I can get my hands on is vulnerable.

Initially the title of this video stated the exploit was SMP-only. That’s not the case — some single-processor systems with PREEMPT enabled are also capable of winning the race, leading to compromise.

Mitigation:
Make sure you have mmap_min_addr enabled on your machines and that it can’t be bypassed. To test if mmap_min_addr can be bypassed or is disabled or not present on your machine, download enlightenment and run ./run_null_exploits.sh You don’t have to choose any particular exploit — it will attempt to mmap at NULL by any means possible and report the success or failure. Unlike with sock_ops there is no workaround for this vulnerability — so it’s time to bite the bullet and upgrade to a kernel that protects against this specific class of bugs in general. Workarounds have never been a long-term solution.

This exploit was written within an hour on October 22nd 2009.

Duration : 0:7:28

Read the rest of this entry »

Technorati Tags: , , , ,

I am compiling a Linux kernel that will run well on most modern computers, but it should also run on old computers with AMD K6-II CPU. I set CONFIG_MPENTIUMII, CONFIG_X86_GENERIC and CONFIG_SMP to y. Will it run on the following CPU’s?

AMD K6-II
Pentium III 866
Pentium III 1GHz
VIA C3 1GHz
AMD Athlon 1800
AMD Athlon XP 2400
Intel Celeron 1.7GHz
Intel Pentium 4 1.8GHz
Intel Atom N280
AMD Turion 64

I can’t test all these CPU’s because I don’t have motherboards for all.

Your kernel will most likely work, but I would reconsider. In this case, I wouldn’t Compile in anything lower than the AMD Athlons. Unless you’re absolutely certain this kernel is going to get used on old Pentium-class systems, I wouldn’t bother to compile them in. Save the kernel space for something else.

If you do, however, it should work fine.

Ubuntu Studio on 9.04 is unreliable, I’ve delayed tutorials because I’ve been having all sorts of problems trying to get Ubuntu Studio on 9.04 to behave.. I am reverting to 8.04 cause it’s LTS, and I read that SMP support was not included in 8.10.. Also 9.04 is dog slow and nothing seems to help..

Here is a URL that explains what people are experiencing:

http://ubuntuforums.org/showthread.php?t=1145880

—–The Following Text is Older—–

Well this is just the tip of the Ubuntu Studio Ice Berg for me,
but I got ZynAddSubFx working on my laptop then was compelled
to get Ubuntu Studio installed once I found out it had it, and it had
Jack integration. I had Compiled Zyn, beforehand, it was integral to me finding
a way to get Ubuntu Studio installed. Fortunately, anyone with an working install of
Ubuntu can upgrade to Ubuntu Studio with a simple apt-get line:

sudo apt-get update && sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video linux-rt

(note, I found out the hard way that you need to create a group called “audio”, if you don’t have one already, and you need to add everyone who will be using jack to that group. Also what you need to do is add some lines to
/etc/security/limits.conf , mainly

@audio – rtprio 95

There is a article here that talks about what this means and why it has to be done.. It doesn’t come into play until you execute a program. So it’s probably not a good thing to add root to that group, because what it does is give the audio software uninterrupted access to resources. There is also a way to force the CPU to allow audio software to lock memory within a range, I don’t know if it is per program or all programs together. Also if you really want to force priority of the audio process, there is an article at ALSA (below) on what to do under thread priorities.. This, as it says in the article, can’t be done in a script unless you are really good at regular expressions to extract the soft irq process id’s and the IRQ’s id to give them high priority, the whole purpose of this I think is to give the realtime kernel’s clock interrupt priority over hardware interrupts, which means that you can guarantee audio processes accurate timing, but I’m just guessing..)

http://tapas.affenbande.org/wordpress/?page_id=73

http://www.alsa-project.org/main/index.php/Low_latency_howto#PAM

I got that from this website:
http://www.ubustu.com/globe/2007/05/23/add-ubuntu-studio-to-an-existing-ubuntu-install/

It still works too!! This video is proof.. I also am going to upload a video with the 16-bit stereo
audio, 160kbps mpeg 2 audio, about 33 minutes of me tinkering with ZynAddSubFx, but a separate session where I was recording directly to Audacity. A key part to getting this all to work is using the real-time kernel that Ubuntu Studio uses. Without that, this whole thing would be as unresponsive as an Internet connection going halfway around the world (laggy).. As you can tell from the video there is zero lag. I’m able to play the computer like it was a real synthesizer, It (the synth simulator) crashes a few times but not a big deal if you are merely using it for audio production or to twiddle around with. Definitely not something for live performance unless your confident. Zyn is not bug free (actually, no application ever is), but maybe this video will up the ante and encourage more developers to contribute to improving it’s integrity.

BTW in the Audacity session, it didn’t crash during the whole session. I think it crashes more when firefox is running (probably has something to do with the competition for CPU cycles). If this computer was a dual core, I doubt it have any time finding cycles, as one CPU tends to handle all the OS stuff, leaving the other free to devote itself to an application in dire need. A Quad would be nice for the same reason. ! cpu for the OS and 3 for apps.

Anyhow, enjoy, I sure did.. This was the most fun I’ve had since I got access to a Roland audio workstation once when I was 16. BTW, The synth patch I made in the video is the first I’ve screwed around with this synth. All I’ve done before was just play with the voices and add reverb and chorus effects to the synth output. It’s truly amazing and fun to play..

And now that I know how to work Jack, it will be fun to see if I can do things like multitrack recording to the hard drive, and custom arranging synth patches for midi song files. Imagine all the ABBA Midi song files I could improve with this program.. Ha!

Duration : 0:18:44

Read the rest of this entry »

Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Ubuntu Studio on 9.04 is unreliable, I’ve delayed tutorials because I’ve been having all sorts of problems trying to get Ubuntu Studio on 9.04 to behave.. I am reverting to 8.04 cause it’s LTS, and I read that SMP support was not included in 8.10.. Also 9.04 is dog slow and nothing seems to help..

Here is a URL that explains what people are experiencing:

http://ubuntuforums.org/showthread.php?t=1145880

—–The Following Text is Older—–

Well this is just the tip of the Ubuntu Studio Ice Berg for me,
but I got ZynAddSubFx working on my laptop then was compelled
to get Ubuntu Studio installed once I found out it had it, and it had
Jack integration. I had Compiled Zyn, beforehand, it was integral to me finding
a way to get Ubuntu Studio installed. Fortunately, anyone with an working install of
Ubuntu can upgrade to Ubuntu Studio with a simple apt-get line:

sudo apt-get update && sudo apt-get install ubuntustudio-desktop ubuntustudio-audio ubuntustudio-audio-plugins ubuntustudio-graphics ubuntustudio-video linux-rt

(note, I found out the hard way that you need to create a group called “audio”, if you don’t have one already, and you need to add everyone who will be using jack to that group. Also what you need to do is add some lines to
/etc/security/limits.conf , mainly

@audio – rtprio 95

There is a article here that talks about what this means and why it has to be done.. It doesn’t come into play until you execute a program. So it’s probably not a good thing to add root to that group, because what it does is give the audio software uninterrupted access to resources. There is also a way to force the CPU to allow audio software to lock memory within a range, I don’t know if it is per program or all programs together. Also if you really want to force priority of the audio process, there is an article at ALSA (below) on what to do under thread priorities.. This, as it says in the article, can’t be done in a script unless you are really good at regular expressions to extract the soft irq process id’s and the IRQ’s id to give them high priority, the whole purpose of this I think is to give the realtime kernel’s clock interrupt priority over hardware interrupts, which means that you can guarantee audio processes accurate timing, but I’m just guessing..)

http://tapas.affenbande.org/wordpress/?page_id=73

http://www.alsa-project.org/main/index.php/Low_latency_howto#PAM

I got that from this website:
http://www.ubustu.com/globe/2007/05/23/add-ubuntu-studio-to-an-existing-ubuntu-install/

It still works too!! This video is proof.. I also am going to upload a video with the 16-bit stereo
audio, 160kbps mpeg 2 audio, about 33 minutes of me tinkering with ZynAddSubFx, but a separate session where I was recording directly to Audacity. A key part to getting this all to work is using the real-time kernel that Ubuntu Studio uses. Without that, this whole thing would be as unresponsive as an Internet connection going halfway around the world (laggy).. As you can tell from the video there is zero lag. I’m able to play the computer like it was a real synthesizer, It (the synth simulator) crashes a few times but not a big deal if you are merely using it for audio production or to twiddle around with. Definitely not something for live performance unless your confident. Zyn is not bug free (actually, no application ever is), but maybe this video will up the ante and encourage more developers to contribute to improving it’s integrity.

BTW in the Audacity session, it didn’t crash during the whole session. I think it crashes more when firefox is running (probably has something to do with the competition for CPU cycles). If this computer was a dual core, I doubt it have any time finding cycles, as one CPU tends to handle all the OS stuff, leaving the other free to devote itself to an application in dire need. A Quad would be nice for the same reason. ! cpu for the OS and 3 for apps.

Anyhow, enjoy, I sure did.. This was the most fun I’ve had since I got access to a Roland audio workstation once when I was 16. BTW, The synth patch I made in the video is the first I’ve screwed around with this synth. All I’ve done before was just play with the voices and add reverb and chorus effects to the synth output. It’s truly amazing and fun to play..

And now that I know how to work Jack, it will be fun to see if I can do things like multitrack recording to the hard drive, and custom arranging synth patches for midi song files. Imagine all the ABBA Midi song files I could improve with this program.. Ha!

Duration : 0:18:44

Read the rest of this entry »

Technorati Tags: , , , , , , ,

The ability of a Linux programmer to insert user-programmed ‘modules’ into a running kernel opens up The possibility of exploring processor behavior in real time, in whatever ways a user can imagine, unencumbered by CPU privilege-level restrictions of a multitasking environment. As an example, we show how this technique can let us watch the ‘live’ occurrence of interrupt activities being dispatched among multiple CPUs on an x86 SMP Linux platform.

Duration : 0:49:12

Read the rest of this entry »

Technorati Tags: , ,

The ability of a Linux programmer to insert user-programmed ‘modules’ into a running kernel opens up The possibility of exploring processor behavior in real time, in whatever ways a user can imagine, unencumbered by CPU privilege-level restrictions of a multitasking environment. As an example, we show how this technique can let us watch the ‘live’ occurrence of interrupt activities being dispatched among multiple CPUs on an x86 SMP Linux platform.

Duration : 0:49:12

Read the rest of this entry »

Technorati Tags: , ,

This behavior began after recompiling the default Xandros kernel with SMP support. No other changes were made to the kernel.

Duration : 0:0:13

Read the rest of this entry »

Technorati Tags: , , ,

This behavior began after recompiling the default Xandros kernel with SMP support. No other changes were made to the kernel.

Duration : 0:0:13

Read the rest of this entry »

Technorati Tags: , , ,

Ok, so i have tried over and over again trying to install linux on my pc, but it always stops in the boot process, i have gone through all the Linux distributions and none of them would work out, it always says something about the kernel, i am settling with fedora core right now,(I mean i wont try to install anything else)
***This is the screen i am stuck in right now

<0>Kernel panic – not syncing: Attempted to kill init!
<1>BUG: unable to handle kernel paging request at virtual address ffffd370 printing eip:
*pde = 00004067
0ops: 0003 [#10]
SMP
last sysfs file:
Modules linked in:
CPU: 0
EIP: **some number Not tainted VLI
………Stack ****A WHOLE BUNCH OF NUMBERS
Call Trace:
[<c041416a>] disable_local_APIC+0×5/0×29
The hdd is very new, barely bought it two days ago, so i doubt that is the problem

Explained: "kernel panic – not syncing – attempted to kill init
http://www.linuxquestions.org/questions/linux-software-2/explained-kernel-panic-not-syncing-attempted-to-kill-init-353920/

FedoraForum.org > Fedora Support > Installation Help
http://forums.fedoraforum.org/archive/index.php/f-6.html