[PATCH 21/37] NFS: Add comment banners to some NFS functions

2008-02-08 Thread David Howells
Add comment banners to some NFS functions so that they can be modified by the NFS fscache patches for further information. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/file.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/fs/nfs

[PATCH 27/37] NFS: Define and create inode-level cache objects

2008-02-08 Thread David Howells
Define and create inode-level cache data storage objects (as managed by nfs_inode structs). Each inode-level object is created in a superblock-level index object and is itself a data storage object into which pages from the inode are stored. The inode object key is the NFS file handle for the ino

[PATCH 24/37] NFS: Register NFS for caching and retrieve the top-level index

2008-02-08 Thread David Howells
Register NFS for caching and retrieve the top-level cache index object cookie. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- fs/nfs/Makefile|1 + fs/nfs/fscache-index.c | 53 fs/nfs/fscache.h | 35 +

[PATCH 15/37] CacheFiles: Add missing copy_page export for ia64

2008-02-08 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 H

[PATCH 25/37] NFS: Define and create server-level objects

2008-02-08 Thread David Howells
Define and create server-level cache index objects (as managed by nfs_client structs). Each server object is created in the NFS top-level index object and is itself an index into which superblock-level objects are inserted. Ideally there would be one superblock-level object per server, and the fo

Re: [PATCH] reduce large do_mount stack usage with noinlines

2008-02-08 Thread Eric Sandeen
Andi Kleen wrote: > Andrew Morton <[EMAIL PROTECTED]> writes: >>> */ >>> -static int do_change_type(struct nameidata *nd, int flag) >>> +static noinline int do_change_type(struct nameidata *nd, int flag) >> What we could do here is defined a new noinline_because_of_stack_suckiness >> and use that

[PATCH 22/37] NFS: Add FS-Cache option bit and debug bit

2008-02-08 Thread David Howells
Add FS-Cache option bit to nfs_server struct. This is set to indicate local on-disk caching is enabled for a particular superblock. Also add debug bit for local caching operations. Signed-off-by: David Howells <[EMAIL PROTECTED]> --- include/linux/nfs_fs.h|1 + include/linux/nfs_fs_sb.

[PATCH 19/37] CacheFiles: Export things for CacheFiles

2008-02-08 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 18/37] CacheFiles: Permit the page lock state to be monitored

2008-02-08 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. Signed-

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

2008-02-08 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 made

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

2008-02-08 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. Sup

[PATCH 13/37] FS-Cache: Provide an add_wait_queue_tail() function

2008-02-08 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/pagemap.h |7 +-- include/linux/wait.h|2 ++ kernel/wait.c | 18 ++ mm/filema

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

2008-02-08 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 be

[PATCH 11/37] FS-Cache: Release page->private after failed readahead

2008-02-08 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 do

[PATCH 10/37] Security: Make NFSD work with detached security

2008-02-08 Thread David Howells
Make NFSD work with detached security, using the patches that excise the security information from task_struct to struct task_security as a base. Each time NFSD wants a new security descriptor (to do NFS4 recovery or just to do NFS operations), a task_security record is derived from NFSD's *object

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

2008-02-08 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 retur

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

2008-02-08 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 trans

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

2008-02-08 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 ++-- drivers/isdn/capi/capif

[PATCH 00/37] Permit filesystem local caching

2008-02-08 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 peop

[PATCH 08/37] Security: Add a kernel_service object class to SELinux

2008-02-08 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 03/37] KEYS: Allow the callout data to be passed as a blob rather than a string

2008-02-08 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() re

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

2008-02-08 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

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

2008-02-08 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. Signed-o

[PATCH] Documentation/patch-tags, one more time

2008-02-08 Thread Jonathan Corbet
Somebody recently asked me about this patch, so I dug it up for one last try. I do believe there is value in describing patch tags, and, certainly, nobody has objected to the idea. Comments from several reviewers were addressed before the previous posting. jon -- Add a document describing the

[PATCH] splice: missing user pointer access verification (CVE-2008-0009/10)

2008-02-08 Thread Greg KH
From: Jens Axboe <[EMAIL PROTECTED]> vmsplice_to_user() must always check the user pointer and length with access_ok() before copying. Likewise, for the slow path of copy_from_user_mmap_sem() we need to check that we may read from the user region. Signed-off-by: Jens Axboe <[EMAIL PROTECTED]> Cc:

Re: [PATCH] [POWERPC] Xilinx: hwicap driver

2008-02-08 Thread Randy Dunlap
On Thu, 7 Feb 2008 18:17:41 -0800 Stephen Neuendorffer wrote: > drivers/char/Kconfig |7 + > drivers/char/Makefile |1 + > drivers/char/xilinx_hwicap/Makefile|7 + > drivers/char/xilinx_hwicap/buffer_icap.c | 380 > d

Re: [PATCH] reduce large do_mount stack usage with noinlines

2008-02-08 Thread Andi Kleen
Andrew Morton <[EMAIL PROTECTED]> writes: >> */ >> -static int do_change_type(struct nameidata *nd, int flag) >> +static noinline int do_change_type(struct nameidata *nd, int flag) > > What we could do here is defined a new noinline_because_of_stack_suckiness > and use that. Reasons: > > - self-

RE: [patch 13/45] USB: sierra: add support for Onda H600/ZteMF330datacard to USB Driver for Sierra Wireless

2008-02-08 Thread Kevin Lloyd
> For now, yes, we should mirror what is going to be in the 2.6.25 kernel > release. I see the split happening for 2.6.26. So I say leave this for > now, it adds support for users of these devices. It's not that big a of a deal and I'm not sure how much of a pain it would be to change it, but if

Re: [PATCH] exporting capability code/name pairs (try #4)

2008-02-08 Thread Andrew G. Morgan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 KaiGai, Thanks for trying to accommodate me :-) Kohei KaiGai wrote: | In addition, Andrew suggested me to export these translation by symlinks | to reduce the number of invocation of system call. Yes, I wanted to make use of readlink() instead of o

[PATCH] misc: ifdef KMOD, saving some bytes probably

2008-02-08 Thread Jiri Olsa
found some code in misc.c that could be ifdef'ed for KMOD Signed-off-by: Jiri Olsa <[EMAIL PROTECTED]> --- drivers/char/misc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/char/misc.c b/drivers/char/misc.c index a39101f..3455b09 100644 --- a/drivers/char/

Re: [PATCH], issue EOI to APIC prior to calling crash_kexec in die_nmi path

2008-02-08 Thread Vivek Goyal
On Fri, Feb 08, 2008 at 11:14:22AM -0500, Neil Horman wrote: > On Thu, Feb 07, 2008 at 01:24:04PM +0100, Ingo Molnar wrote: > > > > * Neil Horman <[EMAIL PROTECTED]> wrote: > > > > > Ingo noted a few posts down the nmi_exit doesn't actually write to the > > > APIC EOI register, so yeah, I agree,

[PATCH 1/1] NBD: make nbd default to deadline I/O scheduler

2008-02-08 Thread Paul Clements
There have been numerous reports of problems with nbd and cfq. Deadline gives better performance for nbd, anyway, so let's use it by default. -- Paul There have been numerous reports of problems with nbd and cfq. Deadline gives better performance for nbd, anyway, so let's use it by default. Sig

Re: [-mm PATCH] sysdev_unregister() should call kobject_del()

2008-02-08 Thread Badari Pulavarty
On Thu, 2008-02-07 at 21:41 -0800, Greg KH wrote: > On Thu, Feb 07, 2008 at 09:08:42PM -0800, Badari Pulavarty wrote: > > > > On Thu, 2008-02-07 at 20:55 -0800, Greg KH wrote: > > > On Thu, Feb 07, 2008 at 05:25:46PM -0800, Badari Pulavarty wrote: > > > > On Thu, 2008-02-07 at 16:38 -0800, Greg KH

Re: Elf loader crash while zero-filling .bss

2008-02-08 Thread Andreas Schwab
"Abel Bernabeu" <[EMAIL PROTECTED]> writes: > The offset of some sections fall in the middle of the .bss section. In > instance, look at the sections 12 (.comment) and 13 (.ARM.atributes). > Both sections are overlapping with 11 (.bss): > > [11] .bss NOBITS 0001143c 00143c 00

Re: [GIT PATCH] final SCSI updates for 2.6.24 merge window

2008-02-08 Thread James Bottomley
On Fri, 2008-02-08 at 10:03 +0100, Geert Uytterhoeven wrote: > On Thu, 7 Feb 2008, James Bottomley wrote: > > On Thu, 2008-02-07 at 17:04 -0800, Harvey Harrison wrote: > > > On Thu, 2008-02-07 at 18:56 -0600, James Bottomley wrote: > > > > Quite a bit of this is fixing things broken previously (the

[PATCH] [5/5] Switch i386 early boot page table initialization over to use required_static_prot()

2008-02-08 Thread Andi Kleen
This makes it use the same tests for this as pageattr. Does not check advisory protections yet because that is not needed yet. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/init_32.c| 15 +++ arch/x86/mm/pageattr.c |2 +- include/asm-x86/cacheflu

[PATCH] [1/5] CPA: Split static_protections into required_static_prot and advised_static_prot

2008-02-08 Thread Andi Kleen
There is a big difference between NX and RO. NX absolutely has to be cleared or the kernel will fail while RO just can be set, but does not need to. And for a large page area not setting NX if there is a area below it that needs it is essential, while making it ro is optional again. This is need

[PATCH] [4/5] Don't use inline for the protection checks

2008-02-08 Thread Andi Kleen
There are multiple call sites and they are not time critical Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux/arch/x86/mm/pageattr.c ===

[PATCH] [0/5] pageattr protection patchkit v2 for the latest kernel

2008-02-08 Thread Andi Kleen
There were some conflicts applying the previous patchkit to the latest mainline tree; only difference is that I resolved them. -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.

[PATCH] [3/5] CPA: Make advised protection check truly advisory

2008-02-08 Thread Andi Kleen
Only force RO in the advisory protection checks when all pages in the range are RO. Previously it would trigger when any page in the range was ro. I believe this will make try_preserve_large_page much safer to use. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c | 1

[PATCH] [2/5] Support range checking for required/advisory protections

2008-02-08 Thread Andi Kleen
Previously these checks would only check a single address, which is ok for 4k pages, but not for large pages Needed for followup patches Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c | 34 +++--- 1 file changed, 23 insertions(+), 11 dele

[PATCH 2.6.24-mm1] IPC: use ipc_buildid() directly from ipc_addid()

2008-02-08 Thread Pierre Peiffer
Hi, By continuing to consolidate a little the IPC code, each id can be built directly in ipc_addid() instead of having it built from each callers of ipc_addid() And I also remove shm_addid() in order to have, as much as possible, the same code for shm/sem/msg. Signed-off-by: Pierre Peiffer <[EM

Re: [PATCH] USB: mark USB drivers as being GPL only

2008-02-08 Thread David Newall
Alan Cox wrote: > On Fri, 08 Feb 2008 13:25:33 +1030 > David Newall <[EMAIL PROTECTED]> wrote: > > >> Alan Cox wrote: >> It would not be improper to say that "such and such a lawyer said this and that." I'm not proposing that you breach their copyright in their

Re: UBI: add mtd_num sysfs attribute

2008-02-08 Thread Greg KH
On Fri, Feb 08, 2008 at 10:25:41AM +0200, Artem Bityutskiy wrote: > Greg KH wrote: >> Can you please add this information to Documentation/ABI/ so that people >> know what is going on here? > > Sent you the patch (Subject: [PATCH] Documentation: add UBI sysfs ABI > docs). Thanks, looks good. > I

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread James Bottomley
On Fri, 2008-02-08 at 15:59 +, Alan Cox wrote: > > http://www.t10.org/ftp/t10/drafts/spc3/spc3r23.pdf > > > > By a simple text search. > > > > I don't think the pedantry is worth the confusion ... > > Ok so we should file a formal change request with T10 instead perhaps ? As long as that "w

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread Mark Hounschell
linux-os (Dick Johnson) wrote: > > The correct word should be "invalid," in spite of > the fact that the SCSI committee used invalid syntax. > > Alan is right. There is nothing illegal in the kernel > and if there is, it must be removed as soon as it > is discovered! > il·le·gal (-lgl) adj. 1

mutual trust in good faith

2008-02-08 Thread ris . sp
Greetings to you, I am the above named person I was married to Dr. Peter Hanff who worked with erithean Embassy in Poland as a diplomat and a bussiness man for over 6 years.I have a charitable project on ground which i want you as a sole person in charge.Please assure me that you will act a

Re: [rft] s2ram wakeup moves to .c, could fix few machines

2008-02-08 Thread Rafael J. Wysocki
On Friday, 8 of February 2008, Pavel Machek wrote: > Hi! Hi, > > >I really need the entry point to be at offset 0, so > > >that I can get > > >pointers to my data. I could not figure out how to do > > >it any other > > >way. And if 0 is taken, I thought I'd put header at the > > >end. > > > >

Re: [PATCH], issue EOI to APIC prior to calling crash_kexec in die_nmi path

2008-02-08 Thread Neil Horman
On Thu, Feb 07, 2008 at 01:24:04PM +0100, Ingo Molnar wrote: > > * Neil Horman <[EMAIL PROTECTED]> wrote: > > > Ingo noted a few posts down the nmi_exit doesn't actually write to the > > APIC EOI register, so yeah, I agree, its bogus (and I apologize, I > > should have checked that more careful

Re: Elf loader crash while zero-filling .bss

2008-02-08 Thread Abel Bernabeu
2008/1/31, Abel Bernabeu <[EMAIL PROTECTED]>: > 2008/1/30, Abel Bernabeu <[EMAIL PROTECTED]>: > > > Now I am trying to execute some bigger C applications: in instance > > BusyBox. I've chosen the buildroot package in order to produce a small > > "distro". > > > > Then I've tried to boot the system

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread Alan Cox
> http://www.t10.org/ftp/t10/drafts/spc3/spc3r23.pdf > > By a simple text search. > > I don't think the pedantry is worth the confusion ... Ok so we should file a formal change request with T10 instead perhaps ? Alan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread linux-os (Dick Johnson)
The correct word should be "invalid," in spite of the fact that the SCSI committee used invalid syntax. Alan is right. There is nothing illegal in the kernel and if there is, it must be removed as soon as it is discovered! On Fri, 8 Feb 2008, James Bottomley wrote: > > On Fri, 2008-02-08 at 1

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

2008-02-08 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 retur

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

2008-02-08 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() re

[PATCH 2/4] KEYS: Check starting keyring as part of search

2008-02-08 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

[PATCH 1/4] KEYS: Increase the payload size when instantiating a key

2008-02-08 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. Signed-o

Re: why kexec insists on syncing with recent kernels?

2008-02-08 Thread Vivek Goyal
On Thu, Feb 07, 2008 at 05:59:14PM +0100, Tomasz Chmielewski wrote: > Vivek Goyal schrieb: >> On Thu, Feb 07, 2008 at 03:13:30PM +0100, Tomasz Chmielewski wrote: >>> According to kernel/kexec.c: >>> >>> * kexec does not sync, or unmount filesystems so if you need >>> * that to happen you need to

2.6.24?: WARNING: at net/core/dev.c: skb_gso_segment()

2008-02-08 Thread Alexey Dobriyan
FYI, this happened several times with OpenVZ kernel here, though one user reported against v2.6.24 but without calltrace: http://marc.info/?l=linux-kernel&m=120155594432027&w=2 Anyway... Driver is tg3. [ 403.240511] WARNING: at net/core/dev.c:1407 skb_gso_segment() if (WARN_ON(skb->ip_

Re: current mainline ide doesn't like qemu/kvm (or vice versa)

2008-02-08 Thread Alan Cox
On Fri, 8 Feb 2008 16:25:08 +0100 Christoph Hellwig <[EMAIL PROTECTED]> wrote: > When trying to put some stress on qemu by running the xfs testsuite > I get the following: > > debian:~/xfs-cmds/xfstests# sh check > [ 438.166822] SGI XFS with ACLs, security attributes, realtime, large block > n

Re: [PATCH] ipvs: Make the synchronization interval controllable

2008-02-08 Thread Krzysztof Oledzki
On Fri, 8 Feb 2008, Andi Kleen wrote: Sven Wegener <[EMAIL PROTECTED]> writes: The default synchronization interval of 1000 milliseconds is too high for a heavily loaded director. Collecting the connection information from one second and then sending it out in a burst will overflow the socke

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread James Bottomley
On Fri, 2008-02-08 at 15:32 +, Alan Cox wrote: > The word "illegal" has a precise dictionary meaning of "prohibited by > law". The error messages are therefore incorrect as so far nobody has > made SCSI violations a criminal offence. Um, I'm really reluctant to do this without an incredibly g

Re: [patch 4/4] make pr_debug() dynamic - update docs

2008-02-08 Thread Jason Baron
On Thu, Feb 07, 2008 at 01:26:04PM -0800, Randy Dunlap wrote: > > --- a/Documentation/kernel-parameters.txt > > +++ b/Documentation/kernel-parameters.txt > > @@ -1494,6 +1494,11 @@ and is between 256 and 4096 characters. It is > > defined in the file > > autoconfiguration. > >

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Jan Engelhardt
On Feb 9 2008 00:14, Joonwoo Park wrote: >2008/2/8, rohit h <[EMAIL PROTECTED]>: >> Hi, >> I am a kernel newbie. >> I tried to insmod a C++ module containing classes, inheritance. >> I am getting 'unresolved symbol' error when I use the 'new' keyword. >> What could the problem be? >> >> What

Re: [patch 0/4] make pr_debug() dynamic

2008-02-08 Thread Jason Baron
On Thu, Feb 07, 2008 at 02:42:14PM -0800, Joe Perches wrote: > On Thu, 2008-02-07 at 16:03 -0500, Jason Baron wrote: > > make the pr_debug() function dependent upon the new immediate infrastruture. > > What's wrong with klogd -c 8 or equivalent? > > Setting the loglevel higher, will not make pr

Re: [patch 3/4] make pr_debug() dynamic - sysctl support

2008-02-08 Thread Jason Baron
On Thu, Feb 07, 2008 at 04:10:52PM -0800, Stephen Hemminger wrote: > Jason Baron <[EMAIL PROTECTED]> wrote: > > > > > -add /proc/sys/debug/pr_debug, to toggle pr_debug() on/off > > > > Signed-off-by: Jason Baron <[EMAIL PROTECTED]> > > --- > > > > kernel/sysctl.c | 41 +++

[PATCH] tty: BKL pushdown

2008-02-08 Thread Alan Cox
- Push the BKL down into the line disciplines - Switch the tty layer to unlocked_ioctl - Introduce a new ctrl_lock spin lock for the control bits - Eliminate much of the lock_kernel use in n_tty - Prepare to (but don't yet) call the drivers with the lock dropped on the paths that historically hel

[PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread Alan Cox
The word "illegal" has a precise dictionary meaning of "prohibited by law". The error messages are therefore incorrect as so far nobody has made SCSI violations a criminal offence. This corrects scsi to match various other subsystems I've slowly been ridding of this. Pedantically-signed-off-by:

[PATCH] x25_asy: Fix ref count rule violation

2008-02-08 Thread Alan Cox
x25_asy does not take an ldisc reference before calling the flush method. Fix it to use the helper function we provide. Signed-off-by: Alan Cox <[EMAIL PROTECTED]> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-mm1/drivers/net/wan/x25_asy.c linux-2.6.24-mm1/

Re: [PATCH] Replace nvidia timer override quirk with pci id list

2008-02-08 Thread Andi Kleen
On Fri, Feb 08, 2008 at 04:13:35PM +0100, Prakash Punnoor wrote: > On the day of Friday 08 February 2008 Andi Kleen hast written: > > On Thu, Feb 07, 2008 at 10:21:18PM +0100, Prakash Punnoor wrote: > > > On the day of Thursday 07 February 2008 Andi Kleen hast written: > > > > Replace the old "for

current mainline ide doesn't like qemu/kvm (or vice versa)

2008-02-08 Thread Christoph Hellwig
When trying to put some stress on qemu by running the xfs testsuite I get the following: debian:~/xfs-cmds/xfstests# sh check [ 438.166822] SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled [ 438.185557] SGI XFS Quota Management subsystem [ 438.193150] hd

Re: [PATCH] Replace nvidia timer override quirk with pci id list

2008-02-08 Thread Prakash Punnoor
On the day of Friday 08 February 2008 Prakash Punnoor hast written: > On the day of Friday 08 February 2008 Andi Kleen hast written: > > On Thu, Feb 07, 2008 at 10:21:18PM +0100, Prakash Punnoor wrote: > > > On the day of Thursday 07 February 2008 Andi Kleen hast written: > > > > Replace the old "f

Re: [PATCH] Replace nvidia timer override quirk with pci id list

2008-02-08 Thread Prakash Punnoor
On the day of Friday 08 February 2008 Andi Kleen hast written: > On Thu, Feb 07, 2008 at 10:21:18PM +0100, Prakash Punnoor wrote: > > On the day of Thursday 07 February 2008 Andi Kleen hast written: > > > Replace the old "for all of nvidia" quirk with a quirk containing pci > > > device ID. I goobl

Re: [LINUX-KERNEL] C++ in linux kernel

2008-02-08 Thread Joonwoo Park
2008/2/8, rohit h <[EMAIL PROTECTED]>: > Hi, > I am a kernel newbie. > I tried to insmod a C++ module containing classes, inheritance. > I am getting 'unresolved symbol' error when I use the 'new' keyword. > What could the problem be? > > What kind of runtime support is needed ( arm linux kern

Re: [patch] block layer: kmemcheck fixes

2008-02-08 Thread Arjan van de Ven
David Miller wrote: From: Linus Torvalds <[EMAIL PROTECTED]> Date: Thu, 7 Feb 2008 09:42:56 -0800 (PST) Can we please just stop doing these one-by-one assignments, and just do something like memset(rq, 0, sizeof(*rq)); rq->q = q; rq->ref_count = 1; INIT_HLIST_N

Re: [PATCH] proc: Add RLIMIT_RTTIME to /proc//limits

2008-02-08 Thread Peter Zijlstra
On Fri, 2008-02-08 at 22:59 +0800, Eugene Teo wrote: > RLIMIT_RTTIME was introduced to allow the user to set a runtime timeout on > real-time tasks: http://lkml.org/lkml/2007/12/18/218. This patch updates > /proc//limits with the new rlimit. Ah, didn't know about that file, thanks! > Signed-off-

Re: git tree urls

2008-02-08 Thread Jiri Kosina
On Fri, 8 Feb 2008, Andi Kleen wrote: > > Can someone who knows take a minute or two to put a note of the main > > urls on www.kernel.org or the FAQ, or have I just missed something? > -mm is not maintained in git, but in quilt format. The latest version is > on the ftp server in akpm's people

Re: 2.6.24-git15 Keyboard Issue?

2008-02-08 Thread Jiri Kosina
On Thu, 7 Feb 2008, Thomas Gleixner wrote: > > I hope that, from at least my perspective, your question is rhetorical. > Yeah. The non rhetorical one was directed to Jiri. :) Actually, I have no idea :) I am right now confused too, I am quite surprised that 'nohpet' fixes the problem for you, Ch

Re: [RFC] ext3 freeze feature

2008-02-08 Thread Christoph Hellwig
On Fri, Feb 08, 2008 at 08:26:57AM -0500, Andreas Dilger wrote: > You may as well make the common ioctl the same as the XFS version, > both by number and parameters, so that applications which already > understand the XFS ioctl will work on other filesystems. Yes. In facy you should be able to li

Re: [git pull] more SLUB updates for 2.6.25

2008-02-08 Thread Andi Kleen
Eric Dumazet <[EMAIL PROTECTED]> writes: > > What about IRQ masking then ? > > Many CPU pay high cost for cli/sti pair... Many? In the x86 world only P4. On the other cores cli/sti (and even pushf ; cli ; popf) is reasonably fast. > > And SLAB/SLUB allocators, even if only used from process co

Re: Integration of SCST in the mainstream Linux kernel

2008-02-08 Thread Vladislav Bolkhovitin
Nicholas A. Bellinger wrote: On Thu, 2008-02-07 at 12:37 -0800, Luben Tuikov wrote: Is there an open iSCSI Target implementation which does NOT issue commands to sub-target devices via the SCSI mid-layer, but bypasses it completely? Luben Hi Luben, I am guessing you mean futher down the

Re: Integration of SCST in the mainstream Linux kernel

2008-02-08 Thread Vladislav Bolkhovitin
Nicholas A. Bellinger wrote: - It has been discussed which iSCSI target implementation should be in the mainstream Linux kernel. There is no agreement on this subject yet. The short-term options are as follows: 1) Do not integrate any new iSCSI target implementation in the mainstream Linux kernel

Re: [PATCH] ipvs: Make the synchronization interval controllable

2008-02-08 Thread Andi Kleen
Sven Wegener <[EMAIL PROTECTED]> writes: > The default synchronization interval of 1000 milliseconds is too high for a > heavily loaded director. Collecting the connection information from one second > and then sending it out in a burst will overflow the socket buffer and lead to > synchronization

Re: [BUILD_FAILURE] 2.6.24-git18 build fails section type conflict psmouse-base

2008-02-08 Thread Kamalesh Babulal
Adrian Bunk wrote: > On Fri, Feb 08, 2008 at 06:20:52PM +0530, Kamalesh Babulal wrote: >> Adrian Bunk wrote: >>> On Fri, Feb 08, 2008 at 04:02:59PM +0530, Kamalesh Babulal wrote: Hi, The 2.6.24-git18 kernel build fails on the power machine with following message drive

Re: [patch 019/233] proc: fix the threaded /proc/self

2008-02-08 Thread Guillaume Chazarain
On Feb 8, 2008 1:18 PM, <[EMAIL PROTECTED]> wrote: > Long ago when the CLONE_THREAD support first went it someone thought it > would be wise to point /proc/self at /proc/ instead of /proc/. The last message about this conversation is: http://lkml.org/lkml/2007/12/1/172 So I thought we would end

Re: git tree urls

2008-02-08 Thread Andi Kleen
ael <[EMAIL PROTECTED]> writes: Mr. Anonymous, > I have trouble locating some of the git urls (the mm repository, for > example). I have browsed around > http://www.kernel.org/pub/scm/linux/kernel/git/, > consulted the kernel FAQ, and read the obvious links on www.kernel.org. > > git.kernel.org/

[PATCH] Documentation: sysctl/kernel.txt: fix documentation reference

2008-02-08 Thread Michael Opdenacker
This patch fixes a reference to Documentation/kmod.txt which was apparently renamed to Documentation/debugging-modules.txt Signed-off-by: Michael Opdenacker <[EMAIL PROTECTED]> diff -Naur linux-2.6.24/Documentation/sysctl/kernel.txt linux-2.6.24-doc-sysctl-kernel/Documentation/sysctl/kernel.txt

Re: [BUILD_FAILURE] 2.6.24-git18 build fails section type conflict psmouse-base

2008-02-08 Thread Adrian Bunk
On Fri, Feb 08, 2008 at 06:20:52PM +0530, Kamalesh Babulal wrote: > Adrian Bunk wrote: > > On Fri, Feb 08, 2008 at 04:02:59PM +0530, Kamalesh Babulal wrote: > >> Hi, > >> > >> The 2.6.24-git18 kernel build fails on the power machine with following > >> message > >> > >> drivers/input/mouse/psmouse

Re: C++ in linux kernel

2008-02-08 Thread Andi Kleen
"rohit h" <[EMAIL PROTECTED]> writes: > Hi, > I am a kernel newbie. > I tried to insmod a C++ module containing classes, inheritance. > I am getting 'unresolved symbol' error when I use the 'new' keyword. > What could the problem be? If you want to use C++ in the kernel you would need to prov

[PATCH] [2/5] Support range checking for required/advisory protections

2008-02-08 Thread Andi Kleen
Previously these checks would only check a single address, which is ok for 4k pages, but not for large pages Needed for followup patches Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c | 31 --- 1 file changed, 20 insertions(+), 11 deletio

[PATCH] [3/5] CPA: Make advised protection check truly advisory

2008-02-08 Thread Andi Kleen
Only force RO in the advisory protection checks when all pages in the range are RO. Previously it would trigger when any page in the range was ro. I believe this will make try_preserve_large_page much safer to use. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c |

[PATCH] [4/5] Don't use inline for the protection checks

2008-02-08 Thread Andi Kleen
There are multiple call sites and they are not time critical Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/pageattr.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux/arch/x86/mm/pageattr.c ===

[PATCH] [5/5] Switch i386 early boot page table initilization over to use required_static_prot()

2008-02-08 Thread Andi Kleen
This makes it use the same tests for this as pageattr. Does not check advisory protections yet because that is not needed yet. Signed-off-by: Andi Kleen <[EMAIL PROTECTED]> --- arch/x86/mm/init_32.c| 15 +++ arch/x86/mm/pageattr.c |2 +- include/asm-x86/cacheflu

[PATCH] [1/5] CPA: Split static_protections into required_static_prot and advised_static_prot

2008-02-08 Thread Andi Kleen
There is a big difference between NX and RO. NX absolutely has to be cleared or the kernel will fail while RO just can be set, but does not need to. And for a large page area not setting NX if there is a area below it that needs it is essential, while making it ro is optional again. This is need

Re: [RFC] ext3 freeze feature

2008-02-08 Thread Andreas Dilger
On Feb 08, 2008 19:48 +0900, Takashi Sato wrote: > OK I would like to implement the freeze feature on VFS > as the filesystem independent ioctl so that it can be > available on filesystems that have already had write_super_lockfs() > and unlockfs(). > The usage for the freeze ioctl is the followin

[PATCH 1/2] i8k - Move Kconfig entry to drivers/char

2008-02-08 Thread Carlos Corbacho
The source code for this driver is currently located in drivers/char, and given that this is not an x86 processor feature, it shouldn't live in the x86 Kconfig. So lets move it to the Kconfig for drivers/char instead, and just add a dependency on x86. Signed-off-by: Carlos Corbacho <[EMAIL PROTEC

[PATCH 0/2] x86 - Move laptop drivers out of x86 Kconfig

2008-02-08 Thread Carlos Corbacho
The following patch series moves the two laptop drivers from x86 Kconfig (i8k and toshiba) to drivers/char, which is where the source for them lives anyway. Given they are not x86 processor features, the x86 Kconfig menu is not really an appropriate place for them to live. This is against Linus l

[PATCH 2/2] toshiba - Move Kconfig entry to drivers/char

2008-02-08 Thread Carlos Corbacho
The source code for this driver is currently located in drivers/char, and given that this is not an x86 processor feature, it shouldn't live in the x86 Kconfig. So lets move it to the Kconfig for drivers/char instead. Signed-off-by: Carlos Corbacho <[EMAIL PROTECTED]> CC: Jonathan Buzzard <[EMAIL

Re: [PATCH 1/2] kmemcheck v3

2008-02-08 Thread Andi Kleen
On Fri, Feb 08, 2008 at 01:59:57PM +0100, Vegard Nossum wrote: > On 2/8/08, Andi Kleen <[EMAIL PROTECTED]> wrote: > > On Fri, Feb 08, 2008 at 01:18:37PM +0100, Vegard Nossum wrote: > > > On 2/8/08, Andi Kleen <[EMAIL PROTECTED]> wrote: > > > > Your assumption that only the string instructions can t

Re: [PATCH 1/2] kmemcheck v3

2008-02-08 Thread Vegard Nossum
On 2/8/08, Andi Kleen <[EMAIL PROTECTED]> wrote: > On Fri, Feb 08, 2008 at 01:18:37PM +0100, Vegard Nossum wrote: > > On 2/8/08, Andi Kleen <[EMAIL PROTECTED]> wrote: > > > Your assumption that only the string instructions can take > > > multiple page faults seems a little dangerous too. > > > > Ye

Re: [BUILD_FAILURE] 2.6.24-git18 build fails section type conflict psmouse-base

2008-02-08 Thread Kamalesh Babulal
Adrian Bunk wrote: > On Fri, Feb 08, 2008 at 04:02:59PM +0530, Kamalesh Babulal wrote: >> Hi, >> >> The 2.6.24-git18 kernel build fails on the power machine with following >> message >> >> drivers/input/mouse/psmouse-base.c:44: error: __param_proto causes a section >> type conflict >> drivers/inp

<    1   2   3   4   5   6   >