<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/kernel.h, branch linux-2.6.21.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.21.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2007-02-12T17:48:31Z</updated>
<entry>
<title>[PATCH] pid: make session_of_pgrp use struct pid instead of pid_t</title>
<updated>2007-02-12T17:48:31Z</updated>
<author>
<name>Eric W. Biederman</name>
</author>
<published>2007-02-12T08:52:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=04a2e6a5cbf84e85fe86de0a18f6509b147e1d89'/>
<id>urn:sha1:04a2e6a5cbf84e85fe86de0a18f6509b147e1d89</id>
<content type='text'>
To properly implement a pid namespace I need to deal exclusively in terms of
struct pid, because pid_t values become ambiguous.

To this end session_of_pgrp is transformed to take and return a struct pid
pointer.  To avoid the need to worry about reference counting I now require my
caller to hold the appropriate locks.  Leaving callers repsonsible for
increasing the reference count if they need access to the result outside of
the locks.

Since session_of_pgrp currently only has one caller and that caller simply
uses only test the result for equality with another process group, the locking
change means I don't actually have to acquire the tasklist_lock at all.

tiocspgrp is also modified to take and release the lock.  The logic there is a
little more complicated but nothing I won't need when I convert pgrp of a tty
to a struct pid pointer.

Signed-off-by: Eric W. Biederman &lt;ebiederm@xmission.com&gt;
Cc: Alan Cox &lt;alan@lxorguk.ukuu.org.uk&gt;
Cc: Oleg Nesterov &lt;oleg@tv-sign.ru&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] include/linux/kernel.h: Remove labs()</title>
<updated>2007-02-12T17:48:28Z</updated>
<author>
<name>Richard Knutsson</name>
</author>
<published>2007-02-12T08:51:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5be02f1d8af4c7baf3a5a31ab9c0cba9fdc52680'/>
<id>urn:sha1:5be02f1d8af4c7baf3a5a31ab9c0cba9fdc52680</id>
<content type='text'>
Remove labs() since it is not used/needed.

Signed-off-by: Richard Knutsson &lt;ricknu-0@student.ltu.se&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Extract and use wake_up_klogd()</title>
<updated>2007-02-11T18:51:34Z</updated>
<author>
<name>Kirill Korotaev</name>
</author>
<published>2007-02-10T09:46:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e3e8a75d2acfc61ebf25524666a0a2c6abb0620c'/>
<id>urn:sha1:e3e8a75d2acfc61ebf25524666a0a2c6abb0620c</id>
<content type='text'>
Remove hack with printing space to wake up klogd.  Use explicit
wake_up_klogd().

See earlier discussion
http://groups.google.com/group/fa.linux.kernel/browse_frm/thread/75f496668409f58d/1a8f28983a51e1ff?lnk=st&amp;q=wake_up_klogd+group%3Afa.linux.kernel&amp;rnum=2#1a8f28983a51e1ff

Signed-off-by: Alexey Dobriyan &lt;adobriyan@openvz.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Common compat_sys_sysinfo</title>
<updated>2007-02-11T18:51:32Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2007-02-10T09:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4d23add3abcd18d8021b99f230df608ccb2f007'/>
<id>urn:sha1:d4d23add3abcd18d8021b99f230df608ccb2f007</id>
<content type='text'>
I noticed that almost all architectures implemented exactly the same
sys32_sysinfo...  except parisc, where a bug was to be found in handling of
the uptime.  So let's remove a whole whack of code for fun and profit.
Cribbed compat_sys_sysinfo from x86_64's implementation, since I figured it
would be the best tested.

This patch incorporates Arnd's suggestion of not using set_fs/get_fs, but
instead extracting out the common code from sys_sysinfo.

Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: &lt;linux-arch@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add TAINT_USER and ability to set taint flags from userspace</title>
<updated>2007-02-11T18:51:29Z</updated>
<author>
<name>Theodore Ts'o</name>
</author>
<published>2007-02-10T09:45:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=34f5a39899f3f3e815da64f48ddb72942d86c366'/>
<id>urn:sha1:34f5a39899f3f3e815da64f48ddb72942d86c366</id>
<content type='text'>
Allow taint flags to be set from userspace by writing to
/proc/sys/kernel/tainted, and add a new taint flag, TAINT_USER, to be used
when userspace has potentially done something dangerous that might
compromise the kernel.  This will allow support personnel to ask further
questions about what may have caused the user taint flag to have been set.

For example, they might examine the logs of the realtime JVM to see if the
Java program has used the really silly, stupid, dangerous, and
completely-non-portable direct access to physical memory feature which MUST
be implemented according to the Real-Time Specification for Java (RTSJ).
Sigh.  What were those silly people at Sun thinking?

[akpm@osdl.org: build fix]
[bunk@stusta.de: cleanup]
Signed-off-by: "Theodore Ts'o" &lt;tytso@mit.edu&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix linux banner format string</title>
<updated>2007-01-10T17:33:59Z</updated>
<author>
<name>Roman Zippel</name>
</author>
<published>2007-01-10T13:45:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3eb3c740f51c2126b53c2dde974c1c57e634aa7b'/>
<id>urn:sha1:3eb3c740f51c2126b53c2dde974c1c57e634aa7b</id>
<content type='text'>
Revert previous attempts at messing with the linux banner string and
simply use a separate format string for proc.

Signed-off-by: Roman Zippel &lt;zippel@linux-m68k.org&gt;
Acked-by: Olaf Hering &lt;olaf@aepfle.de&gt;
Acked-by: Jean Delvare &lt;khali@linux-fr.org&gt;
Cc: Andrey Borzenkov &lt;arvidjaar@mail.ru&gt;
Cc: Andrew Morton &lt;akpm@osdl.org&gt;
Cc: Andy Whitcroft &lt;apw@shadowen.org&gt;
Cc: Herbert Poetzl &lt;herbert@13thfloor.at&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Make SLES9 "get_kernel_version" work on the kernel binary again</title>
<updated>2006-12-11T19:34:11Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2006-12-11T17:28:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8993780a6e44fb4e7ed34e33458506a775356c6e'/>
<id>urn:sha1:8993780a6e44fb4e7ed34e33458506a775356c6e</id>
<content type='text'>
As reported by Andy Whitcroft, at least the SLES9 initrd build process
depends on getting the kernel version from the kernel binary.  It does
that by simply trawling the binary and looking for the signature of the
"linux_banner" string (the string "Linux version " to be exact. Which
is really broken in itself, but whatever..)

That got broken when the string was changed to allow /proc/version to
change the UTS release information dynamically, and "get_kernel_version"
thus returned "%s" (see commit a2ee8649ba6d71416712e798276bf7c40b64e6e5:
"[PATCH] Fix linux banner utsname information").

This just restores "linux_banner" as a static string, which should fix
the version finding.  And /proc/version simply uses a different string.

To avoid wasting even that miniscule amount of memory, the early boot
string should really be marked __initdata, but that just causes the same
bug in SLES9 to re-appear, since it will then find other occurrences of
"Linux version " first.

Cc: Andy Whitcroft &lt;apw@shadowen.org&gt;
Acked-by: Herbert Poetzl &lt;herbert@13thfloor.at&gt;
Cc: Andi Kleen &lt;ak@suse.de&gt;
Cc: Andrew Morton &lt;akpm@osdl.org&gt;
Cc: Steve Fox &lt;drfickle@us.ibm.com&gt;
Acked-by: Olaf Hering &lt;olaf@aepfle.de&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] LOG2: Alter roundup_pow_of_two() so that it can use a ilog2() on a constant</title>
<updated>2006-12-08T16:28:51Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2006-12-08T10:37:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=312a0c170945b49f319960afd2e492c05f9dd551'/>
<id>urn:sha1:312a0c170945b49f319960afd2e492c05f9dd551</id>
<content type='text'>
Alter roundup_pow_of_two() so that it can make use of ilog2() on a constant to
produce a constant value, retaining the ability for an arch to override it in
the non-const case.

This permits the function to be used to initialise variables.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] LOG2: Implement a general integer log2 facility in the kernel</title>
<updated>2006-12-08T16:28:51Z</updated>
<author>
<name>David Howells</name>
</author>
<published>2006-12-08T10:37:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f0d1b0b30d250a07627ad8b9fbbb5c7cc08422e8'/>
<id>urn:sha1:f0d1b0b30d250a07627ad8b9fbbb5c7cc08422e8</id>
<content type='text'>
This facility provides three entry points:

	ilog2()		Log base 2 of unsigned long
	ilog2_u32()	Log base 2 of u32
	ilog2_u64()	Log base 2 of u64

These facilities can either be used inside functions on dynamic data:

	int do_something(long q)
	{
		...;
		y = ilog2(x)
		...;
	}

Or can be used to statically initialise global variables with constant values:

	unsigned n = ilog2(27);

When performing static initialisation, the compiler will report "error:
initializer element is not constant" if asked to take a log of zero or of
something not reducible to a constant.  They treat negative numbers as
unsigned.

When not dealing with a constant, they fall back to using fls() which permits
them to use arch-specific log calculation instructions - such as BSR on
x86/x86_64 or SCAN on FRV - if available.

[akpm@osdl.org: MMC fix]
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: David Howells &lt;dhowells@redhat.com&gt;
Cc: Wojtek Kaniewski &lt;wojtekka@toxygen.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>fix spelling error in include/linux/kernel.h</title>
<updated>2006-11-30T03:46:13Z</updated>
<author>
<name>Jim Cromie</name>
</author>
<published>2006-11-30T03:46:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e20ec9911bfef897459b9f8aeaf6eadb0920299a'/>
<id>urn:sha1:e20ec9911bfef897459b9f8aeaf6eadb0920299a</id>
<content type='text'>
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
</feed>
