Re: [PATCH 08/26] Add a secctx_to_secid() LSM hook to go along with the existing

2008-01-15 Thread James Morris
On Tue, 15 Jan 2008, David Howells wrote: > secid_to_secctx() LSM hook. This patch also includes the SELinux > implementation for this hook. > > Signed-off-by: Paul Moore <[EMAIL PROTECTED]> > Acked-by: Stephen Smalley <[EMAIL PROTECTED]> This is useful in its own right, and I would like to

[PATCHSET] printk: implement printk_header() and merging printk

2008-01-15 Thread Tejun Heo
Hello, all. This patchset implements printk_header() and mprintk - merging printk - to make printing multiline messages and assembling message piece-by-piece easier. In a nutshell, printk_header() lets you do the following atomically (against other messages). code: printk(KERN_INFO "ata1.00:

Re: [PATCH 7/7] driver-core : convert semaphore to mutex in struct class

2008-01-15 Thread Dave Young
On Jan 15, 2008 9:56 PM, Jarek Poplawski <[EMAIL PROTECTED]> wrote: > > On Tue, Jan 15, 2008 at 05:15:27PM +0800, Dave Young wrote: > > Convert the class semaphore to mutex. > > > > Signed-off-by: Dave Young <[EMAIL PROTECTED]> > > > > --- > > drivers/base/class.c | 38

[PATCH 3/4] printk: implement merging printk

2008-01-15 Thread Tejun Heo
There often are times printk messages need to be assembled piece by piece and it's usually done using one of the following methods. * Calling printk() on partial message segments. This used to be quite common but has a problem - the message can break up if someone else prints something in

[PATCH 4/4] libata: make libata use printk_header() and mprintk

2008-01-15 Thread Tejun Heo
Reimplement libata printk helpers using printk_header, implement helpers to initialize mprintk and use mprintk during device configuration and EH reporting. This fixes various formatting related problems of libata messages such as misaligned multiline messages, decoded register lines with leading

[PATCH 1/4] printk: keep log level on multiline messages

2008-01-15 Thread Tejun Heo
When printing multiline messages, printk() resets log level to default_message_loglevel after the first line. This changes log level unexpectedly when printing multiline messages. For example, libata error messages are printed like the following. <3>ata8.00: cmd

[PATCH 2/4] printk: implement [v]printk_header()

2008-01-15 Thread Tejun Heo
Implement [v]printk_header() which takes @header argument and automatically prints header in front of or indents multiline messages. For example, if @header is "<7>ata1.00: " and the formatted message is "<6>line0\nline1\n", the following gets written to the console. <6>ata1.00: line0 <6>

Re: [PATCH 00/26] Permit filesystem local caching

2008-01-15 Thread James Morris
On Tue, 15 Jan 2008, David Howells wrote: > The SELinux base code will also need updating to have the security class, lest > the following error appear in dmesg: > > context_struct_compute_av: unrecognized class 69 Alternately, what's needed is a newer policy which supports unknown

Re: [Bluez-devel] Oops involving RFCOMM and sysfs

2008-01-15 Thread Dave Young
On Tue, Jan 15, 2008 at 09:57:41AM +0800, Dave Young wrote: > On Mon, Jan 14, 2008 at 01:52:28PM +0100, Cornelia Huck wrote: > > On Mon, 14 Jan 2008 15:05:19 +0800, > > "Dave Young" <[EMAIL PROTECTED]> wrote: > > > > > On Jan 12, 2008 7:09 AM, Gabor Gombas <[EMAIL PROTECTED]> wrote: > > > > On

Re: [PATCH 6/7] spi : use class iteration api

2008-01-15 Thread Dave Young
Update the patch with minor return path changes in match function: Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/spi/spi.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff -upr linux/drivers/spi/spi.c

Re: [PATCH 5/7] scsi : use class iteration api

2008-01-15 Thread Dave Young
update the patch with minor return path changes in match function: Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/scsi/hosts.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff -upr

Re: [PATCH 2/7] ieee1394 : use class iteration api

2008-01-15 Thread Dave Young
Thanks for stefan's help to finish this patch, now updated one: Convert to use the class iteration api. Signed-off-by: Dave Young <[EMAIL PROTECTED]> --- drivers/ieee1394/nodemgr.c | 312 + 1 file changed, 175 insertions(+), 137 deletions(-) diff

Re: [PATCH 0 of 4] x86: some more patches

2008-01-15 Thread Andi Kleen
On Wednesday 16 January 2008 00:28:23 Jeremy Fitzhardinge wrote: > Ingo Molnar wrote: > > unfortunately they dont solve it: > > > > [ 92.042586] Freeing unused kernel memory: 328k freed > > [ 92.091838] khelper used greatest stack depth: 6244 bytes left > > [ 92.281738] init[1]: segfault

Re: [PATCH 3 of 4] x86: clean up pte_modify

2008-01-15 Thread Andi Kleen
On Tuesday 15 January 2008 23:17:08 Jeremy Fitzhardinge wrote: > pte_modify() got mushed in an apparent mismerge. Fix it up. Note it's not just a clean up -- it would actually drop bits of the PFN. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [patch] x86: lfence fix

2008-01-15 Thread Andi Kleen
On Tue, Jan 15, 2008 at 10:03:21PM +0100, Ingo Molnar wrote: > > * Andi Kleen <[EMAIL PROTECTED]> wrote: > > > I just tested x86.git and then x86.git + patch you send (+ build fixes > > in both cases), none of your patchkits. If you want me to test some > > other patchkit please point me to

Re: [PATCH 1/4] RT: remove duplicate time/Kconfig

2008-01-15 Thread Steven Rostedt
On Tue, Jan 15, 2008 at 02:18:45PM -0800, Frank Rowand wrote: > > Index: linux-2.6.24-rc7/arch/mips/Kconfig > === > --- linux-2.6.24-rc7.orig/arch/mips/Kconfig > +++ linux-2.6.24-rc7/arch/mips/Kconfig > @@ -1775,8 +1775,6 @@ config

Re: [PATCH] lost softirq, 2.6.24-rc7

2008-01-15 Thread Steven Rostedt
On Tue, Jan 15, 2008 at 02:15:26PM -0800, Frank Rowand wrote: > From: Frank Rowand <[EMAIL PROTECTED]> > > (Ingo, there is a question for you after the description, just before the > patch.) > > When running an interrupt and network intensive stress test with PREEMPT_RT > enabled, the target

Re: Netperf TCP_RR(loopback) 10% regression in 2.6.24-rc6, comparing with 2.6.22

2008-01-15 Thread Zhang, Yanmin
On Mon, 2008-01-14 at 21:53 +1100, Herbert Xu wrote: > On Mon, Jan 14, 2008 at 08:44:40AM +, Ilpo J�rvinen wrote: > > > > > > I tried to use bisect to locate the bad patch between 2.6.22 and > > > > 2.6.23-rc1, > > > > but the bisected kernel wasn't stable and went crazy. > > > > TCP work

[PATCH] drivers edac i3000 document type promotion

2008-01-15 Thread dougthompson
From: Jason Uhlenkott <[EMAIL PROTECTED]> Applied to 2.6.24-rc6-mm1 By popular request, add a comment documenting the implicit type promotion here. Signed-off-by: Jason Uhlenkott <[EMAIL PROTECTED]> Signed-off-by: Doug Thompson <[EMAIL PROTECTED] --- i3000_edac.c |7 +++ 1 file

Re: [TOMOYO #6 retry 02/21] Add struct vfsmount to struct task_struct.

2008-01-15 Thread Kentaro Takeda
Hello. Serge E. Hallyn wrote: > I must say I personally prefer the apparmor approach. No problem. > But I'd recommend > you get together and get this piece pushed on its own, whichever version > you can agree on. TOMOYO can use AppArmor's patch. > Yes it needs a user, but at this point I would

Re: questions on NAPI processing latency and dropped network packets

2008-01-15 Thread Herbert Xu
Jarek Poplawski <[EMAIL PROTECTED]> wrote: > > So, it was more a rhetorical trick (sorry!) to suggest, that such a > business model of being always late with kernels might be quite > practical and reasonable for many companies, but looks like the > worst possible development model for Linux. Well

Re: [Patch] document ext3 requirements (was Re: [RFD] Incremental fsck)

2008-01-15 Thread Alan Cox
> Writeback cache on disk in iteself is not bad, it only gets bad if the > disk is not engineered to save all its dirty cache on power loss, > using the disk motor as a generator or alternatively a small battery. > It would be awfully nice to know which brands fail here, if any, > because

[PATCH] getdelays: fix gcc warnings

2008-01-15 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> Fix gcc warnings in getdelays.c: Documentation/accounting/getdelays.c: In function 'task_context_switch_counts': Documentation/accounting/getdelays.c:214: warning: format '%15lu' expects type 'long unsigned int', but argument 4 has type '__u64'

[PATCH] ia64 aliasing-test: fix gcc warnings on non-ia64

2008-01-15 Thread Randy Dunlap
From: Randy Dunlap <[EMAIL PROTECTED]> Eliminate all build warnings. OK, these build warnings are from a build on x86_64. When I build on ia64, I don't see warnings. Now builds cleanly on ia64 and x86_64. Documentation/ia64/aliasing-test.c: In function 'map_mem':

[x86] please setup git for http access

2008-01-15 Thread Joachim Deguara
Hello, I am trying to access the x86 git tree behind a proxy and therefore over the http address. This works for Linus' tree but not for the x86 tree. Please follow these guidelines to enable http access. http://www.kernel.org/pub/software/scm/git/docs/user-manual.html#exporting-via-http

Re: Fw: G965 & on-board serial port

2008-01-15 Thread Tilman Schmidt
Am 09.01.2008 14:02 schrieb Folkert van Heusden: (no-one with a g965 mobo who uses the serial port?) I am using the on-board serial port of a Intel DQ965GF board for ongoing test and development of the ser_gigaset driver, which is implemented as a line discipline on top of the standard serial

[PATCH 26/26] NFS: Separate caching by superblock, explicitly if necessary

2008-01-15 Thread David Howells
Separate caching by superblock, explicitly if necessary. This means mounts of the same remote data with different parameters do not share cache objects for common files. The administrator may also provide a uniquifier to further enhance the uniqueness. Where it is otherwise impossible to

[PATCH] net_device refcnt bug when NFQUEUEing bridged packets

2008-01-15 Thread Jan Christoph Nordholz
Hi, I came across the following bug a few weeks ago (which still applies to 2.6.24-rc7): Packets that are to be sent out over a bridge device are skb_clone()d in br_loop() before traversing the appropriate (FORWARD/OUTPUT) NF chain. The copies made by skb_clone() share their nf_bridge metadata

[PATCH 24/26] NFS: Configuration and mount option changes to enable local caching on NFS

2008-01-15 Thread David Howells
Changes to the kernel configuration defintions and to the NFS mount options to allow the local caching support added by the previous patch to be enabled. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/Kconfig|8 fs/nfs/client.c |2 ++ fs/nfs/internal.h |1

[PATCH 25/26] NFS: Display local caching state

2008-01-15 Thread David Howells
Display the local caching state in /proc/fs/nfsfs/volumes. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/client.c |7 --- fs/nfs/fscache.h | 15 +++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index

[PATCH 23/26] NFS: Use local caching

2008-01-15 Thread David Howells
The attached patch makes it possible for the NFS filesystem to make use of the network filesystem local caching service (FS-Cache). To be able to use this, an updated mount program is required. This can be obtained from: http://people.redhat.com/steved/fscache/util-linux/ To mount an

[PATCH 22/26] NFS: Fix memory leak

2008-01-15 Thread David Howells
Fix a memory leak whereby multiple clientaddr=xxx mount options just overwrite the duplicated client_address option pointer, without freeing the old memory. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/super.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

[PATCH 20/26] CacheFiles: Export things for CacheFiles

2008-01-15 Thread David Howells
Export a number of functions for CacheFiles's use. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/super.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/super.c b/fs/super.c index ceaf2e3..cd199ae 100644 --- a/fs/super.c +++ b/fs/super.c @@ -266,6 +266,7

[PATCH 19/26] CacheFiles: Permit the page lock state to be monitored

2008-01-15 Thread David Howells
Add a function to install a monitor on the page lock waitqueue for a particular page, thus allowing the page being unlocked to be detected. This is used by CacheFiles to detect read completion on a page in the backing filesystem so that it can then copy the data to the waiting netfs page.

[PATCH 18/26] CacheFiles: Add a hook to write a single page of data to an inode

2008-01-15 Thread David Howells
Add an address space operation to write one single page of data to an inode at a page-aligned location (thus permitting the implementation to be highly optimised). The data source is a single page. This is used by CacheFiles to store the contents of netfs pages into their backing file pages.

[PATCH 17/26] CacheFiles: Be consistent about the use of mapping vs file->f_mapping in Ext3

2008-01-15 Thread David Howells
Change all the usages of file->f_mapping in ext3_*write_end() functions to use the mapping argument directly. This has two consequences: (*) Consistency. Without this patch sometimes one is used and sometimes the other is. (*) A NULL file pointer can be passed. This feature is then

[PATCH 08/26] Add a secctx_to_secid() LSM hook to go along with the existing

2008-01-15 Thread David Howells
secid_to_secctx() LSM hook. This patch also includes the SELinux implementation for this hook. Signed-off-by: Paul Moore <[EMAIL PROTECTED]> Acked-by: Stephen Smalley <[EMAIL PROTECTED]> --- include/linux/security.h | 13 + security/dummy.c |6 ++

[PATCH 16/26] CacheFiles: Add missing copy_page export for ia64

2008-01-15 Thread David Howells
This one-line patch fixes the missing export of copy_page introduced by the cachefile patches. This patch is not yet upstream, but is required for cachefile on ia64. It will be pushed upstream when cachefile goes upstream. Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]> Signed-off-by: David

[PATCH 13/26] FS-Cache: Recruit a couple of page flags for cache management

2008-01-15 Thread David Howells
Recruit a couple of page flags to aid in cache management. The following extra flags are defined: (1) PG_fscache (PG_private_2) The marked page is backed by a local cache and is pinning resources in the cache driver. (2) PG_fscache_write (PG_owner_priv_2) The marked page is

[PATCH 10/26] Security: Add a kernel_service object class to SELinux

2008-01-15 Thread David Howells
Add a 'kernel_service' object class to SELinux and give this object class two access vectors: 'use_as_override' and 'create_files_as'. The first vector is used to grant a process the right to nominate an alternate process security ID for the kernel to use as an override for the SELinux subjective

[PATCH 14/26] FS-Cache: Provide an add_wait_queue_tail() function

2008-01-15 Thread David Howells
Provide an add_wait_queue_tail() function to add a waiter to the back of a wait queue instead of the front. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/wait.h |2 ++ kernel/wait.c| 18 ++ 2 files changed, 20 insertions(+), 0 deletions(-)

[PATCH 12/26] FS-Cache: Release page->private after failed readahead

2008-01-15 Thread David Howells
The attached patch causes read_cache_pages() to release page-private data on a page for which add_to_page_cache() fails or the filler function fails. This permits pages with caching references associated with them to be cleaned up. The invalidatepage() address space op is called (indirectly) to

[PATCH 11/26] Security: Allow kernel services to override LSM settings for task actions

2008-01-15 Thread David Howells
Allow kernel services to override LSM settings appropriate to the actions performed by a task by duplicating a security record, modifying it and then using task_struct::act_as to point to it when performing operations on behalf of a task. This is used, for example, by CacheFiles which has to

[PATCH 09/26] Security: Pre-add additional non-caching classes

2008-01-15 Thread David Howells
Pre-add additional non-caching classes that are in the SELinux upstream repository, but not in the upstream kernel so they don't get in the fscache class patch. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- security/selinux/include/av_perm_to_string.h |5 +

[PATCH 03/26] KEYS: Allow the callout data to be passed as a blob rather than a string

2008-01-15 Thread David Howells
Allow the callout data to be passed as a blob rather than a string for internal kernel services that call any request_key_*() interface other than request_key(). request_key() itself still takes a NUL-terminated string. The functions that change are: request_key_with_auxdata()

[PATCH 05/26] Security: Change current->fs[ug]id to current_fs[ug]id()

2008-01-15 Thread David Howells
Change current->fs[ug]id to current_fs[ug]id() so that fsgid and fsuid can be separated from the task_struct. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- arch/ia64/kernel/perfmon.c|4 ++-- arch/powerpc/platforms/cell/spufs/inode.c |4 ++--

[PATCH 04/26] KEYS: Add keyctl function to get a security label

2008-01-15 Thread David Howells
Add a keyctl() function to get the security label of a key. The following is added to Documentation/keys.txt: (*) Get the LSM security context attached to a key. long keyctl(KEYCTL_GET_SECURITY, key_serial_t key, char *buffer, size_t buflen) This function

[PATCH 01/26] KEYS: Increase the payload size when instantiating a key

2008-01-15 Thread David Howells
Increase the size of a payload that can be used to instantiate a key in add_key() and keyctl_instantiate_key(). This permits huge CIFS SPNEGO blobs to be passed around. The limit is raised to 1MB. If kmalloc() can't allocate a buffer of sufficient size, vmalloc() will be tried instead.

Re: [CALL FOR TESTING] Make Ext3 fsck way faster [2.6.23.13]

2008-01-15 Thread Jeremy Fitzhardinge
Abhishek Rai wrote: Hi, (Sorry for the inconvenience caused due to previous misformatted patch, I've most definitely figured out the problem this time. Thanks Michael, Daniel, and Ingo for your help.) This patch speeds up e2fsck on Ext3 significantly using a technique called Metaclustering.

[PATCH 00/26] Permit filesystem local caching

2008-01-15 Thread David Howells
These patches add local caching for network filesystems such as NFS. The patches can roughly be broken down into a number of sets: (*) 01-keys-inc-payload.diff (*) 02-keys-search-keyring.diff (*) 03-keys-callout-blob.diff Three patches to the keyring code made to help the CIFS

[PATCH 02/26] KEYS: Check starting keyring as part of search

2008-01-15 Thread David Howells
Check the starting keyring as part of the search to (a) see if that is what we're searching for, and (b) to check it is still valid for searching. The scenario: User in process A does things that cause things to be created in its process session keyring. The user then does an su to another user

Re: [Patch] document ext3 requirements (was Re: [RFD] Incremental fsck)

2008-01-15 Thread Daniel Phillips
On Jan 15, 2008 6:07 PM, Pavel Machek <[EMAIL PROTECTED]> wrote: > I had write cache enabled on my main computer. Oops. I guess that > means we do need better documentation. Writeback cache on disk in iteself is not bad, it only gets bad if the disk is not engineered to save all its dirty cache

Re: Fwd: Fwd: laptop / computer hardlocks during execution of 32bit applications(binaries) on 64bit system (Gentoo)

2008-01-15 Thread Ed Tomlinson
On January 15, 2008, Ingo Molnar wrote: > > * Ed Tomlinson <[EMAIL PROTECTED]> wrote: > > > This is _not_ a regression. This has been occuring for ages here. A > > backport of this fix to 2.6.23 would be a very good thing - IMHO its > > something that should go into stable asap. > > the

Re: [RFC][PATCH 4/5] memory_pressure_notify() caller

2008-01-15 Thread Daniel Spång
On 1/15/08, Rik van Riel <[EMAIL PROTECTED]> wrote: > > On Tue, 15 Jan 2008 23:55:17 +0100 > "Daniel Spång" <[EMAIL PROTECTED]> wrote: > > > The notification fires after only ~100 MB allocated, i.e., when page > > reclaim is beginning to nag from page cache. Isn't this a bit early? > > Repeating

Re: [PATCH 0 of 4] x86: some more patches

2008-01-15 Thread Jeremy Fitzhardinge
Ingo Molnar wrote: unfortunately they dont solve it: [ 92.042586] Freeing unused kernel memory: 328k freed [ 92.091838] khelper used greatest stack depth: 6244 bytes left [ 92.281738] init[1]: segfault at 0004 ip 49471cbb sp bff8dbb0 error 4 [ 92.288761] init[1]: segfault at

Re: [patch 02/11] PAT x86: Map only usable memory in x86_64 identity map and kernel text

2008-01-15 Thread Siddha, Suresh B
On Tue, Jan 15, 2008 at 11:17:58PM +0100, Ingo Molnar wrote: > > * Siddha, Suresh B <[EMAIL PROTECTED]> wrote: > > Time to resurrect Jesse's old patches > > i386-trim-memory-not-covered-by-wb-mtrrs.patch(which was in -mm > > sometime back) > > just to make sure i understood the attribute

Re: where to maintain userspace daemon for line discipline

2008-01-15 Thread Randy Dunlap
On Wed, 16 Jan 2008 00:03:43 +0100 Tilman Schmidt wrote: > Hi, > > On Wed, 07 Feb 2007 14:05:38 -0800, H. Peter Anvin wrote: > > util-linux-ng is already going, so it's a good place. > > Not even a year later, I'd like to take up this proposal. I have: > - gigasetm101d.c (the source program) >

Re: [PATCH] net_device refcnt bug when NFQUEUEing bridged packets

2008-01-15 Thread Stephen Hemminger
On Wed, 16 Jan 2008 00:05:44 +0100 Jan Christoph Nordholz <[EMAIL PROTECTED]> wrote: > Hi, > > I came across the following bug a few weeks ago (which still applies to > 2.6.24-rc7): > > Packets that are to be sent out over a bridge device are skb_clone()d in > br_loop() before traversing the

Re: [patch 02/11] PAT x86: Map only usable memory in x86_64 identity map and kernel text

2008-01-15 Thread Andi Kleen
> just to make sure i understood the attribute priorities right: we cannot > just mark it WB in the PAT and expect it to be write-back - the UC of > the MTRR will control? There are different kinds of UC: UC+ and UC-. One controls the other doesn't. -Andi -- To unsubscribe from this list: send

Re: [Patch] document ext3 requirements (was Re: [RFD] Incremental fsck)

2008-01-15 Thread Pavel Machek
Hi! > > > > What are ext3 expectations of disk (is there doc somewhere)? For > > > > example... if disk does not lie, but powerfail during write damages > > > > the sector -- is ext3 still going to work properly? > > > > > > Nope. However the few disks that did this rapidly got firmware updates

Re: Performance loss 2.6.22->22.6.23->2.6.24-rc7 on CPU intensive benchmark on 8 Core Xeon

2008-01-15 Thread Colin Fowler
Hi Ingo, I'll get the results tomorrow as I'm now out of the office, but I can perhaps answer some of your queries now. On Jan 15, 2008 10:06 PM, Ingo Molnar <[EMAIL PROTECTED]> wrote: > hm, the system has considerable idle time left: > > r b swpd free buff cache si so bi bo in

Re: where to maintain userspace daemon for line discipline

2008-01-15 Thread Tilman Schmidt
Hi, On Wed, 07 Feb 2007 14:05:38 -0800, H. Peter Anvin wrote: util-linux-ng is already going, so it's a good place. Not even a year later, I'd like to take up this proposal. I have: - gigasetm101d.c (the source program) - gigasetm101d.8 (a manpage) - Makefile (trivial) How should I proceed in

Re: [RFC][PATCH 4/5] memory_pressure_notify() caller

2008-01-15 Thread Rik van Riel
On Tue, 15 Jan 2008 23:55:17 +0100 "Daniel Spång" <[EMAIL PROTECTED]> wrote: > The notification fires after only ~100 MB allocated, i.e., when page > reclaim is beginning to nag from page cache. Isn't this a bit early? > Repeating the test with swap enabled results in a notification after > ~600

Re: [RFC][PATCH 4/5] memory_pressure_notify() caller

2008-01-15 Thread Daniel Spång
Hi, On 1/15/08, KOSAKI Motohiro <[EMAIL PROTECTED]> wrote: > the notification point to happen whenever the VM moves an > anonymous page to the inactive list - this is a pretty good indication > that there are unused anonymous pages present which will be very likely > swapped out soon. > +

Re: [PATCH x86] [15/16] Force __cpuinit on for CONFIG_PM without HOTPLUG_CPU

2008-01-15 Thread Adrian Bunk
On Tue, Jan 15, 2008 at 11:14:09PM +0100, Ingo Molnar wrote: > > * Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > > make ARCH=x86_64 allyesconfig > > > will set CONFIG_64BIT for you - no? > > > > Yes. > > > > But this still leaves the fact that when someone says 'allyesconfig' > > it's no

Re: nosmp/maxcpus=0 or 1 -> TSC unstable

2008-01-15 Thread Pete Wyckoff
[EMAIL PROTECTED] wrote on Sat, 12 Jan 2008 11:48 -0800: > if i boot an x86 64-bit 2.6.24-rc7 kernel with nosmp, maxcpus=0 or 1 it > still disables TSC :) > > Marking TSC unstable due to TSCs unsynchronized > > this is an opteron 2xx box which does have two cpus and no clock-divide in > halt

Re: [PATCH 0 of 4] x86: some more patches

2008-01-15 Thread Ingo Molnar
* Jeremy Fitzhardinge <[EMAIL PROTECTED]> wrote: > Hi Ingo, > > More patches: > > - rearrange paravirt.h to remove duplicate code, and to make it easy > to drop in 4th level pagetable functions. > - fix a warning I got from clear_bit in pgtable.h > - fix up some bogosity in pte_modify > -

[PATCH 1 of 4] x86: refactor mmu ops in paravirt.h

2008-01-15 Thread Jeremy Fitzhardinge
Rearrange mmu ops in paravirt.h to remove duplication and to make adding 4th level operations simple. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> Cc: Eduardo Habkost <[EMAIL PROTECTED]> --- include/asm-x86/page.h | 10 + include/asm-x86/paravirt.h | 223

[PATCH 3 of 4] x86: clean up pte_modify

2008-01-15 Thread Jeremy Fitzhardinge
pte_modify() got mushed in an apparent mismerge. Fix it up. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- include/asm-x86/pgtable.h |5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h ---

[PATCH 4 of 4] x86: mask NX from pte_pfn

2008-01-15 Thread Jeremy Fitzhardinge
In 32-bit PAE, mask NX from pte_pfn, since it isn't part of the PFN. This code is due for unification anyway, but this fixes a latent bug. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- include/asm-x86/pgtable-3level.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2 of 4] x86: fix warning

2008-01-15 Thread Jeremy Fitzhardinge
>pte isn't always an unsigned long *, so cast it to avoid a warning. Signed-off-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- include/asm-x86/pgtable.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-x86/pgtable.h b/include/asm-x86/pgtable.h ---

[PATCH 0 of 4] x86: some more patches

2008-01-15 Thread Jeremy Fitzhardinge
Hi Ingo, More patches: - rearrange paravirt.h to remove duplicate code, and to make it easy to drop in 4th level pagetable functions. - fix a warning I got from clear_bit in pgtable.h - fix up some bogosity in pte_modify - mask NX from pte_pfn The last two may help with the problem that

Re: [PATCH 08/28] SECURITY: Allow kernel services to override LSM settings for task actions [try #2]

2008-01-15 Thread Casey Schaufler
--- David Howells <[EMAIL PROTECTED]> wrote: > Stephen Smalley <[EMAIL PROTECTED]> wrote: > > > The cache files are created by the cachefiles kernel module, not by the > > userspace daemon, and the userspace daemon doesn't need to directly > > read/write them at all > > That is correct. > > >

Re: [PATCH 08/10] x86: Change NR_CPUS arrays in numa_64 V2

2008-01-15 Thread Mike Travis
Andi Kleen wrote: > [EMAIL PROTECTED] writes: >> + >> /* Returns the number of the node containing CPU 'cpu' */ >> static inline int cpu_to_node(int cpu) >> { >> -return cpu_to_node_map[cpu]; >> +u16 *cpu_to_node_map = x86_cpu_to_node_map_early_ptr; >> + >> +if (cpu_to_node_map) >>

[PATCH 4/4] RT: change from raw_spinlock_t to __raw_spinlock_t

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> Fix compile warning (which becomes compile error due to -Werror), by changing from raw_spinlock_t to __raw_spinlock_t. Signed-off-by: Frank Rowand <[EMAIL PROTECTED]> --- arch/mips/kernel/gdb-stub.c |2 1 + 1 - 0 ! 1 files changed, 1

[PATCH 1/4] RT: remove duplicate time/Kconfig

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> time/Kconfig added by preempt-realtime-mips.patch duplicates other entry, resulting in kernel make error: Signed-off-by: Frank Rowand <[EMAIL PROTECTED]> --- arch/mips/Kconfig |2 0 + 2 - 0 ! 1 files changed, 2 deletions(-) Index:

[PATCH 2/4] RT: remove conflicting rtc_lock declaration

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> Declaration of rtc_lock in arch/mips/kernel/time.c conflicts with time.h, remove from include/asm-mips/time.h. Signed-off-by: Frank Rowand <[EMAIL PROTECTED]> --- include/asm-mips/time.h |2 0 + 2 - 0 ! 1 files changed, 2 deletions(-)

[PATCH 3/4] RT: remove finish_arch_switch

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> This is probably just a temporary workaround for one procssor - the MIPS community will most likely want to architect a solution to this issue. Make of preempt kernel barfs in kernel/sched.c ifdef finish_arch_switch. Remove the finish_arch_switch() for

Linux 2.6.16.58

2008-01-15 Thread Adrian Bunk
Security fixes since 2.6.16.57: - CVE-2007-2525: PPPOE: fix memory leak (local DoS) - CVE-2007-3731: Handle bogus %cs selector in single-step instruction decoding - CVE-2007-6417: tmpfs: restore missing clear_highpage Location: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/ git tree:

[PATCH 0/4] RT: fixes for kernel build errors on MIPS RBTX4927, 2.6.24-rc7

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> This patch series is a few small fixes to kernel build errors for the Toshiba RBTX4927 MIPS board in the 2.6.24-rc7 kernel, with the 2.6.24-rc7-rt2 patch previously applied. These patches are directly related to the -rt2 patch, not to the vanilla MIPS tree.

Re: [patch 02/11] PAT x86: Map only usable memory in x86_64 identity map and kernel text

2008-01-15 Thread Ingo Molnar
* Siddha, Suresh B <[EMAIL PROTECTED]> wrote: > On Mon, Jan 14, 2008 at 05:43:24PM +0100, Ingo Molnar wrote: > > > > * Pallipadi, Venkatesh <[EMAIL PROTECTED]> wrote: > > > > > Also, relying on MTRR, is like giving more importance to BIOS writer > > > than required :-). I think the best way

Re: [RFC][PATCH 3/5] add /dev/mem_notify device

2008-01-15 Thread Pavel Machek
Hi! > the core of this patch series. > add /dev/mem_notify device for notification low memory to user process. > > > > fd = open("/dev/mem_notify", O_RDONLY); > if (fd < 0) { > exit(1); > } > pollfds.fd = fd; > pollfds.events = POLLIN; >

[PATCH] lost softirq, 2.6.24-rc7

2008-01-15 Thread Frank Rowand
From: Frank Rowand <[EMAIL PROTECTED]> (Ingo, there is a question for you after the description, just before the patch.) When running an interrupt and network intensive stress test with PREEMPT_RT enabled, the target system stopped processing received network packets. skbs from received packets

Re: [RFC PATCH 28/30 v3] Generic command line storage

2008-01-15 Thread Steven Rostedt
On Tue, 15 Jan 2008, Mathieu Desnoyers wrote: > * Steven Rostedt ([EMAIL PROTECTED]) wrote: > > Saving the comm of tasks for each trace is very expensive. > > This patch includes in the context switch hook, a way to > > store the last 100 command lines of tasks. This table is > > examined when a

Re: [PATCH 0/2] Updating ctime and mtime for memory-mapped files [try #4]

2008-01-15 Thread Anton Salikhmetov
2008/1/15, Miklos Szeredi <[EMAIL PROTECTED]>: > > 1. Introduction > > > > This is the fourth version of my solution for the bug #2645: > > > > http://bugzilla.kernel.org/show_bug.cgi?id=2645 > > > > Changes since the previous version: > > > > 1) the case of retouching an already-dirty page

Re: [Patch v2] Make PCI extended config space (MMCONFIG) a driver opt-in

2008-01-15 Thread Loic Prylli
On 1/15/2008 2:38 PM, Linus Torvalds wrote: On Tue, 15 Jan 2008, Tony Camuso wrote: Linus is confident that conf1 is not going away for at least the next five years. Not on PC's. Small birds tell me that there can be all these non-PC x86 subarchitectures that may or may not have

Re: [PATCH x86] [15/16] Force __cpuinit on for CONFIG_PM without HOTPLUG_CPU

2008-01-15 Thread Ingo Molnar
* Adrian Bunk <[EMAIL PROTECTED]> wrote: > > make ARCH=x86_64 allyesconfig > > will set CONFIG_64BIT for you - no? > > Yes. > > But this still leaves the fact that when someone says 'allyesconfig' > it's no longer clear which configuration he has. And no, I do not > consider it funny that

[patch for v2.6.24] fix section mismatch warning in page_alloc.c

2008-01-15 Thread Ingo Molnar
* Sam Ravnborg <[EMAIL PROTECTED]> wrote: > [PATCH] mm: fix section mismatch warning in page_alloc.c > > With CONFIG_HOTPLUG=n and CONFIG_HOTPLUG_CPU=y we saw following > warning: WARNING: mm/built-in.o(.text+0x6864): Section mismatch: > reference to .init.text: (between 'process_zones' and

Re: [patch] auto-qa Kconfig

2008-01-15 Thread Pavel Machek
On Mon 2008-01-14 17:11:50, Ingo Molnar wrote: > > * Greg KH <[EMAIL PROTECTED]> wrote: > > > > and that is after fixing (in some sense) the first CONFIG_BLOCK=n > > > problem with the patch below. Please test lots of configs. and/or > > > use 'make randconfig' (automated, scripted, e.g.,

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-15 Thread Mathieu Desnoyers
* Steven Rostedt ([EMAIL PROTECTED]) wrote: > > > On Tue, 15 Jan 2008, Mathieu Desnoyers wrote: > > > > > > Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> > > > --- > > > include/linux/clocksource.h |3 ++ > > > kernel/time/timekeeping.c | 48 > > >

Re: Fwd: Fwd: laptop / computer hardlocks during execution of 32bit applications(binaries) on 64bit system (Gentoo)

2008-01-15 Thread Ingo Molnar
* Ed Tomlinson <[EMAIL PROTECTED]> wrote: > This is _not_ a regression. This has been occuring for ages here. A > backport of this fix to 2.6.23 would be a very good thing - IMHO its > something that should go into stable asap. the problem is that this bug was only present in x86.git. I.e.

Re: [PATCH] i386 : Make arch/x86/kernel/acpi/wakeup_32.S use a separate text section

2008-01-15 Thread Pavel Machek
On Thu 2008-01-03 21:04:26, Eric Dumazet wrote: > While examining vmlinux namelist on i386 (nm -v vmlinux) I noticed : > > c01021d0 t es7000_rename_gsi > c010221a T es7000_start_cpu > > c0103000 T thread_saved_pc > > and > > c0113218 T acpi_restore_state_mem > c0113219 T acpi_save_state_mem >

Re: [PATCH] input: psmouse: fix input_dev leak in lifebook driver

2008-01-15 Thread Dmitry Torokhov
On Sat, Jan 12, 2008 at 03:12:52PM -0500, Andres Salomon wrote: > > The lifebook driver may register a second input device, but it never > unregisters it. This fixes that. > > Signed-off-by: Andres Salomon <[EMAIL PROTECTED]> Applied, thank you Andres. -- Dmitry -- To unsubscribe from this

Re: Performance loss 2.6.22->22.6.23->2.6.24-rc7 on CPU intensive benchmark on 8 Core Xeon

2008-01-15 Thread Ingo Molnar
* Colin Fowler <[EMAIL PROTECTED]> wrote: > These data may be much better for you. It's a single 15 second data > collection run only when the actual ray-tracing is happening. These > data do not therefore cover the data structure building phase. > > http://vangogh.cs.tcd.ie/fowler/cfs2/ hm,

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-15 Thread Steven Rostedt
On Tue, 15 Jan 2008, Steven Rostedt wrote: > > Also, it just occurred to me that this is an old patch. I thought I > renamed cycle_raw to cycle_monotonic. But I must have lost that patch :-/ Ah, I changed this in the -rt patch queue, and never moved the patch back here. -- Steve -- To

Re: [RFC PATCH 16/22 -v2] add get_monotonic_cycles

2008-01-15 Thread Steven Rostedt
On Tue, 15 Jan 2008, Mathieu Desnoyers wrote: > > > > Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> > > --- > > include/linux/clocksource.h |3 ++ > > kernel/time/timekeeping.c | 48 > > > > 2 files changed, 51 insertions(+) > > > >

Re: Make checkpatch.pl's quiet option not print the summary on no errors

2008-01-15 Thread Ingo Molnar
* Andy Whitcroft <[EMAIL PROTECTED]> wrote: > On Thu, Jan 03, 2008 at 01:54:42AM +0100, Arjan van de Ven wrote: > > Subject: Make checkpatch.pl's quiet option not print the summary on no > > errors > > From: Arjan van de Ven <[EMAIL PROTECTED]> > > CC: [EMAIL PROTECTED] > > > > Right now, in

[PATCH 4/4] x86_64: set cfg_size for AMD Family 10h in case MMCONFIG is used.

2008-01-15 Thread Yinghai Lu
[PATCH] x86_64: set cfg_size for AMD Family 10h in case MMCONFIG is used. reuse pci_cfg_space_size but skip check pci express and pci-x CAP ID. Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> === Index: linux-2.6/arch/x86/pci/fixup.c

[PATCH 3/4] x86_64: check MSR to get MMCONFIG for AMD Family 10h Opteron v3

2008-01-15 Thread Yinghai Lu
[PATCH] x86_64: check MSR to get MMCONFIG for AMD Family 10h Opteron v3 so even booting kernel with acpi=off or even MCFG is not there, we still can use MMCONFIG. Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> Index: linux-2.6/arch/x86/pci/mmconfig-shared.c

[PATCH 1/4] x86: msr for AMD Fam 10h mmio

2008-01-15 Thread Yinghai Lu
[PATCH] x86: msr for AMD Fam 10h mmio Signed-off-by: Yinghai Lu <[EMAIL PROTECTED]> diff --git a/include/asm-x86/msr-index.h b/include/asm-x86/msr-index.h index f9c1453..c3237ff 100644 --- a/include/asm-x86/msr-index.h +++ b/include/asm-x86/msr-index.h @@ -96,6 +96,14 @@ #define

<    1   2   3   4   5   6   7   8   9   10   >