2009/09/23 Linux Kernel Podcast
Audio: COMING SOON
For Wednesday, September 23rd, 2009, I’m Jon Masters with a summary of today’s LKML traffic.
In today’s issue: Modules, dpriv, and running out of space in vm_flags.
Modules. Alan Jenkins and Rusty Russell discussed Alan’s previous patches that would sort the kernel built-in symbol map so that it could be binary searched at module load and dynamic linking time. Rusty thought it might be easier to sort the in-kernel symbols on boot, but Alan pointed out that this could add as much as 7ms to system boot times as “pure overhead” (in his hacked up prototype), and so for this (and other reasons) continues to favor having the kernel symbols be sorted at build time. The module loader will then have a much easier time resolving symbols and more quickly linking modules later. Separately, Tim Abbott sent Alan (and everyone else) an initial lib/bsearch.c patch implementing a generic binary search function for the kernel since “there a[re] a large number [of] hand-code binary searches in the kernel…[and] getting binary searches right is difficult”.
A Privilege dropping security module. Andy Spencer posted to let everyone know that he was working on a new LSM (Linux Security Module) called dpriv. This module (which can be used by any user, not just root) creates a dynamic runtime “policy” that does not implement MAC (Mandatory Access Control) but instead can be used simply to drop specific access rights at runtime. As an example, Andrew shows how one can cause the permissions on the root filesystem to be dropped by writing into /sys/kernel/security/dpriv/stage (followed by writting a “commit” into the /sys/kernel/security/dpriv/control “file”). Currently, only file permissions can be controlled using “dpriv”, and its author would like to know what you think about it.
Out of space in vm_flags. Nigel Cunningham posted asking for advice now that the new VM_MERGEABLE flag in post-2.6.31 has taken the last bit in vm_flags. Nigel has some code in his alternative suspend framework (TuxOnIce) that needs a bit too, which could be solved by adding a new long, but at least one kernel function is being passed the flags value directly and so would need to have its prototype and behavior changed.
In today’s pull requests: some tracing fixes for -tip from Frederic Weisbecker, “two radeon fixes” in the DRM tree from Dave Airlie, some input updates for 2.6.32 from Dmitry Torokhov, some S+Core patches for 2.6.32 from Liqin Chen, round 2 of OCFS2 changes for 2.6.32 (with the reflink() system call removed for the moment to avoid contention) from Joel Becker, some writeback fixes for 2.6.32 from Fengguang Wu, some lguest and virtio fixes for 2.6.32 from Rusty Russell, some USB patches for 2.6.32 from Greg Kroah-Hartman (containing “lots of usb stuff all over the map”), some wireless updates from John Linville, some plan9 filesystem changes for 2.6.32-rc1 from Eric Van Hensbergen, and some NFS client cleanups and bugfixes from Trond Myklebust.
In today’s miscellaneous items: a kmemleak fix from Roland McGrath, version 2 of a patchset convering IA64 over to dynamic per-cpu from Tejun Heo, a patch cleaning up orig_ax handling in getreg() (for e.g. ptrace/core-dump fetches) from Roland McGrath, a patch implementing the previously discussed TRACE_EVENT_ABI (using some suitably cunning macros) from Steven Rostedt by way of Arjan van de Ven, a suggestion that (after 10 years) it might be about time to remove the gcc option “-Wdeclaration-after-statement” since C99 has been around long enough at this point from Amerigo Wang, a patch adding a generic method of sending quota message warnings to userspace from Steven Whitehouse (for non-dqout filesystem use), some memory leak fixes from Jiri Slaby, a patch changing the kernel side of the sys_truncare/sys_ftruncate system calls to avoid what he deems a needless unsigned->signed->unsigned conversion cycle from Heiko Carstens, an RFC userspace RCU implementation from Mathieu Desnoyers “(ab)using futexes to save cpu cycles and energy”, and a patch changing some KSM defaults to “better fit into mainline kernel” now that KSM is in the mainline tree from Izik Eidus.
In today’s announcements: linux-trace-users. David Miller noted that he has created the linux-trace-users mailing list on vger.kernel.org (in reply to Steven Rostedt) for discussion of user issues relating to tracing and the various tracing tools.
SystemTAP 1.0. Josh Stone announce the (very long anticipated) 1.0 release of SystemTAP. This release features experimental support for unprivileged users, cross-compiling for foreign architectures (which gdb has supported forever), and a lot more besides.
The latest kernel release was 2.6.31.
Chris Malley was experiencing machine hangs when using “perf sched record” for which a patch from Peter Zijlstra did not seem to make a difference.
Stephen Rothwell posted a linux-next tree for September 23rd. Since Friday, the ocfs2, jdelvare-hwmon, block and usb trees gained problems, while the input-current and rr trees lost theirs and the kmemcheck tree needed an “obvious fix”. The drbd tree was dropped due to a build problem. The total sub-tree count is listed as 140, but does not seem to account for the tree that was removed in the compose. Stephen reminds everyone not to begin pushing patches for 2.6.33 until 2.6.32-rc1 has been released, and also reminds everyone that conflicts are bouncing between trees as Linus merges.
That’s a summary of today’s Linux Kernel Mailing List traffic, for further information visit www.kernel.org. I’m Jon Masters.

