<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Kernel on BAFM</title><link>https://christian.blog.pakiheim.de/tags/kernel/</link><description>Recent content in Kernel on BAFM</description><generator>Hugo -- 0.160.1</generator><language>en</language><lastBuildDate>Sat, 24 May 2008 17:14:56 +0000</lastBuildDate><atom:link href="https://christian.blog.pakiheim.de/tags/kernel/index.xml" rel="self" type="application/rss+xml"/><item><title>Rescuing a rebooting machine that's hanging</title><link>https://christian.blog.pakiheim.de/posts/2008-05-24_rescuing-a-rebooting-machine-that-s-hanging/</link><pubDate>Sat, 24 May 2008 17:14:56 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/?p=311</guid><description>&lt;p&gt;One of my co-worker approached me today with a weird problem. Yesterday he had a disk in a 900GiB array failing which he replaced. After that, he run a rebuild/verification, fsck&amp;rsquo;ed the file system and tried to mount the volume again.&lt;/p&gt;
&lt;p&gt;Apparently the mount produced a kernel oops (guess what, the 900GiB is running reiserfs), thus leaving the kernel tainted (or what do they call it ?). So he tried to reboot the box but it didn&amp;rsquo;t reboot. It started rebooting but then hung (as in not continuing the reboot). He tried to ssh back to the box, and it worked just fine.&lt;/p&gt;</description></item><item><title>git-lkml for stupid people (like me)</title><link>https://christian.blog.pakiheim.de/posts/2007-08-16_git-lkml-for-stupid-people-like-me/</link><pubDate>Thu, 16 Aug 2007 14:06:43 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/2007/08/16/git-lkml-for-stupid-people-like-me/</guid><description>&lt;p&gt;OK, as &lt;a href="http://www.steev.net/"&gt;Stephen&lt;/a&gt; recently asked why there is a double inclusion of in &lt;a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=kernel/sysctl.c;hb=HEAD"&gt;kernel/sysctl.c&lt;/a&gt; (and I asked Greg and Randy); I finally decided to write a patch to the LKML for possible inclusion.&lt;/p&gt;
&lt;p&gt;But, git ain&amp;rsquo;t easy for people like me (who are used to the easiness of say - subversion or even cvs). So here&amp;rsquo;s what I did (thanks to &lt;a href="http://blogs.gentoo.org/ferdy"&gt;Fernando&lt;/a&gt; for the help earlier today):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-2"&gt;&lt;a class="lnlinks" href="#hl-0-2"&gt;2&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-3"&gt;&lt;a class="lnlinks" href="#hl-0-3"&gt;3&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-4"&gt;&lt;a class="lnlinks" href="#hl-0-4"&gt;4&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-5"&gt;&lt;a class="lnlinks" href="#hl-0-5"&gt;5&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-6"&gt;&lt;a class="lnlinks" href="#hl-0-6"&gt;6&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-7"&gt;&lt;a class="lnlinks" href="#hl-0-7"&gt;7&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-8"&gt;&lt;a class="lnlinks" href="#hl-0-8"&gt;8&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-9"&gt;&lt;a class="lnlinks" href="#hl-0-9"&gt;9&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ vim kernel/sysctl.c
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// change something
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git checkout -b sysctl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// create a new branch from your changes, based upon the master repository
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git commit -a -s
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// commit the changes to your newly created branch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git format-patch master..sysctl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// Enter a subject and then a separate description
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// and you should have a new file in the current working directory starting like 0001-*.patch
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Now you should have a mailable patch, ready to be sent upstream that looks like this:&lt;/p&gt;</description></item><item><title>git-lkml for stupid people (like me)</title><link>https://christian.blog.pakiheim.de/posts/2007-08-16_git-lkml-for-stupid-people-like-me/</link><pubDate>Thu, 16 Aug 2007 14:06:43 +0000</pubDate><guid isPermaLink="false">http://blog.barfoo.org/2007/08/16/git-lkml-for-stupid-people-like-me/</guid><description>&lt;p&gt;OK, as &lt;a href="http://www.steev.net/"&gt;Stephen&lt;/a&gt; recently asked why there is a double inclusion of in &lt;a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=kernel/sysctl.c;hb=HEAD"&gt;kernel/sysctl.c&lt;/a&gt; (and I asked Greg and Randy); I finally decided to write a patch to the LKML for possible inclusion.&lt;/p&gt;
&lt;p&gt;But, git ain&amp;rsquo;t easy for people like me (who are used to the easiness of say - subversion or even cvs). So here&amp;rsquo;s what I did (thanks to &lt;a href="http://blogs.gentoo.org/ferdy"&gt;Fernando&lt;/a&gt; for the help earlier today):&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt;1&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-2"&gt;&lt;a class="lnlinks" href="#hl-0-2"&gt;2&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-3"&gt;&lt;a class="lnlinks" href="#hl-0-3"&gt;3&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-4"&gt;&lt;a class="lnlinks" href="#hl-0-4"&gt;4&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-5"&gt;&lt;a class="lnlinks" href="#hl-0-5"&gt;5&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-6"&gt;&lt;a class="lnlinks" href="#hl-0-6"&gt;6&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-7"&gt;&lt;a class="lnlinks" href="#hl-0-7"&gt;7&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-8"&gt;&lt;a class="lnlinks" href="#hl-0-8"&gt;8&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-9"&gt;&lt;a class="lnlinks" href="#hl-0-9"&gt;9&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ vim kernel/sysctl.c
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// change something
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git checkout -b sysctl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// create a new branch from your changes, based upon the master repository
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git commit -a -s
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// commit the changes to your newly created branch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ git format-patch master..sysctl
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// Enter a subject and then a separate description
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;// and you should have a new file in the current working directory starting like 0001-*.patch
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Now you should have a mailable patch, ready to be sent upstream that looks like this:&lt;/p&gt;</description></item><item><title>hardened-sources-2-6-18</title><link>https://christian.blog.pakiheim.de/posts/2006-11-10_hardened-sources-2-6-18/</link><pubDate>Fri, 10 Nov 2006 23:56:45 +0000</pubDate><guid isPermaLink="false">http://blogs.barfoo.org/phreak/?p=91</guid><description>&lt;p&gt;Today (OK, it&amp;rsquo;s yesterday now, it&amp;rsquo;s again after 12:00) I had a little fun with pappy (Alexander Gabert) preparing 2.6.18 for prime time &amp;#x1f600;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;div class="chroma"&gt;
&lt;table class="lntable"&gt;&lt;tr&gt;&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code&gt;&lt;span class="lnt" id="hl-0-1"&gt;&lt;a class="lnlinks" href="#hl-0-1"&gt; 1&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-2"&gt;&lt;a class="lnlinks" href="#hl-0-2"&gt; 2&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-3"&gt;&lt;a class="lnlinks" href="#hl-0-3"&gt; 3&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-4"&gt;&lt;a class="lnlinks" href="#hl-0-4"&gt; 4&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-5"&gt;&lt;a class="lnlinks" href="#hl-0-5"&gt; 5&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-6"&gt;&lt;a class="lnlinks" href="#hl-0-6"&gt; 6&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-7"&gt;&lt;a class="lnlinks" href="#hl-0-7"&gt; 7&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-8"&gt;&lt;a class="lnlinks" href="#hl-0-8"&gt; 8&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-9"&gt;&lt;a class="lnlinks" href="#hl-0-9"&gt; 9&lt;/a&gt;
&lt;/span&gt;&lt;span class="lnt" id="hl-0-10"&gt;&lt;a class="lnlinks" href="#hl-0-10"&gt;10&lt;/a&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class="lntd"&gt;
&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ ls -AGg 2.6.18
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 1593 Jan 25 23:25 1500_cvs-2007-1000.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 797 Jan 25 23:25 4000_deprecate-sk98lin.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 32192 Jan 25 23:25 4105_dm-bbr.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 125781 Jan 25 23:25 4300_squashfs-3.1.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 5710 Jan 25 23:25 4405_alpha-sysctl-uac.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 864955 Jan 25 23:25 4450_grsec-2.1.9-2.6.18.6-200611100917.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 910 Jan 25 23:25 4451_grsec-2.1.9-2.6.18.2-mute-warnings.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 1034 Jan 25 23:25 4452_selinux-avc_audit-log-curr_ip-grsec.patch
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;-rw-r--r-- 1 2097 Jan 25 23:25 4453_pax_curr_ip-fixes.patch
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;So far all patches are applying fine and according to Alexander it even works on his workstation. But I&amp;rsquo;ll wait for Steve/Ned to get back to me telling me if this release works for them or not (as they had serious issues with their hardened desktops - something about the cursor being stuck in the corners).&lt;/p&gt;</description></item><item><title>F*cking summer</title><link>https://christian.blog.pakiheim.de/posts/2006-07-30_f-cking-summer/</link><pubDate>Sun, 30 Jul 2006 09:56:21 +0000</pubDate><guid isPermaLink="false">http://blogs.barfoo.org/phreak/?p=75</guid><description>&lt;p&gt;Oh, yeah baby &lt;em&gt;&lt;strong&gt;g&lt;/strong&gt;&lt;/em&gt;. It&amp;rsquo;s finally hot &lt;strong&gt;f*cking&lt;/strong&gt; summer and I &lt;em&gt;&lt;strong&gt;really&lt;/strong&gt;&lt;/em&gt; like it. We have now three weeks in a row sunny weather with no rain at all.&lt;/p&gt;
&lt;p&gt;Everyone running around with less or nearly no clothes (heh, especially the girls) is also a nice present from above.&lt;/p&gt;
&lt;p&gt;Personally I haven&amp;rsquo;t felt better the last two years. Maybe that&amp;rsquo;s depending on my previous depressions and the like (you know these thoughts .. ) but this summer is definitely going rock my life!&lt;/p&gt;</description></item></channel></rss>