Re: unionfs unusable on multiuser systems (was Re: [PATCH 01/24] Unionfs: Documentation)

2007-01-12 Thread Shaya Potter
Pavel Machek wrote: Hi! That statement is meant to scare people away from modifying the lower fs :) I tortured unionfs quite a bit, and it can oops but it takes some effort. But isn't it then potential DOS? If you happen to union two filesystems and an untrusted user has write access to

Re: [PATCH 19/19] ide: use PIO/MMIO operations directly where possible

2007-01-12 Thread Bartlomiej Zolnierkiewicz
On 1/12/07, Alan <[EMAIL PROTECTED]> wrote: On Fri, 12 Jan 2007 05:28:07 +0100 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > [PATCH] ide: use PIO/MMIO operations directly where possible > > This results in smaller/faster/simpler code and allows future optimizations. > Also remove no

Re: [PATCH 18/19] ide: add ide_use_fast_pio() helper

2007-01-12 Thread Alan
> if(strstr(id->model, "Integrated Technology Express")) { > /* In raid mode the ident block is slightly buggy > We need to set the bits so that the IDE layer knows > LBA28. LBA48 and DMA ar valid */ >

Re: kexec + USB storage in 2.6.19

2007-01-12 Thread Eric W. Biederman
Dan Aloni <[EMAIL PROTECTED]> writes: > Hello, > > After upgrading from 2.6.18.3 to 2.6.19.2 on an x86_64 machine I noticed > that the EHCI USB host is unable to work properly after a kexec invocation. > This makes it impossible to mount the rootfs in the configuration I'm using. > > According

Re: Linux Software RAID 5 Performance Optimizations: 2.6.19.1: (211MB/s read & 195MB/s write)

2007-01-12 Thread Michael Tokarev
Justin Piszcz wrote: > Using 4 raptor 150s: > > Without the tweaks, I get 111MB/s write and 87MB/s read. > With the tweaks, 195MB/s write and 211MB/s read. > > Using kernel 2.6.19.1. > > Without the tweaks and with the tweaks: > > # Stripe tests: > echo 8192 >

Re: [PATCH 18/19] ide: add ide_use_fast_pio() helper

2007-01-12 Thread Bartlomiej Zolnierkiewicz
On 1/12/07, Alan <[EMAIL PROTECTED]> wrote: On Fri, 12 Jan 2007 05:28:00 +0100 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > [PATCH] ide: add ide_use_fast_pio() helper > > * add ide_use_fast_pio() helper for use by host drivers > * add DMA capability and autodma checks to ide_use_dma()

[-mm patch] remove tcp header from tcp_v4_check (take #2)

2007-01-12 Thread Frederik Deweerdt
On Fri, Jan 12, 2007 at 01:33:09PM +, Frederik Deweerdt wrote: > On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: > > > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ > > Hi, Sorry for the resend, I forgot the Signed-off-by

[patch]cleanup and error reporting for sound/core/init.c

2007-01-12 Thread Oliver Neukum
Hi, please accept this patch, which makes the control flow clear with indentation, adds some comments and improves error reporting. Regards Oliver Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> -- --- a/sound/core/init.c 2007-01-12 14:26:47.0 +0100 +++

Proposed changes for libata speed handling

2007-01-12 Thread Alan
I'm currently hacking on the speed handling code a bit I'd like to do the following unless anyone has any objections - Remove post_set_mode and make drivers wrap the guts of the existing set_mode() function. This allows a driver to wrap and see success/failure while removing a callback, and also

[-mm patch] remove tcp header from tcp_v4_check

2007-01-12 Thread Frederik Deweerdt
On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ > Hi, The tcphdr struct passed to tcp_v4_check is not used, the following patch removes it from the parameter list. (This adds the

2.6.20-rc4-mm1 md problem

2007-01-12 Thread Michal Piotrowski
My system hangs on this http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug2.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Debug plan: - revert md-* patches - binary search Does someone have a better idea? Regards, Michal -- Michal K. K.

Re: spurious sparse warnings from linux/aio.h (was: 2.6.20-rc4-mm1)

2007-01-12 Thread Suparna Bhattacharya
On Fri, Jan 12, 2007 at 12:55:18PM +0100, Tilman Schmidt wrote: > Andrew Morton schrieb: > > - Merged the "filesystem AIO patches". > > This construct: > > > --- linux-2.6.20-rc4/include/linux/aio.h2007-01-06 > > 23:34:08.0 -0800 > > +++ devel/include/linux/aio.h 2007-01-11

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Erik Mouw
On Fri, Jan 12, 2007 at 11:27:01AM +0100, Jesper Juhl wrote: > On 12/01/07, congwen <[EMAIL PROTECTED]> wrote: > >Hello everyone, I want to create and read/write a file in Linux kernel or > >device driver, > > Don't read/write user space files from kernel space. > > Please search the archives,

Choosing a HyperThreading/SMP/MultiCore kernel ?

2007-01-12 Thread Sunil Naidu
Hello All, There are 2 cases:- #1 Intel Pentium 4 Workstation with HyperThreading Since kernel takes HT as 2 processors, I did say in KConfig as: CONFIG_SMP= y CONFIG_NR_CPUS=2 CONFIG_SCHED_MC=not set CONFIG_MPENTIUM4=y (Or should I say CONFIG_X86_PC=y) CONFIG_SCHED_SMT=y CONFIG_SCHED_MC=not

Re: 2.6.20-rc4-mm1

2007-01-12 Thread Frederik Deweerdt
On Fri, Jan 12, 2007 at 11:25:58AM +0100, Mariusz Kozlowski wrote: > Hello, > > Doesn't build on my laptop. > > drivers/mmc/mmc.c: In function 'mmc_lock_unlock': > drivers/mmc/mmc.c:1527: error: dereferencing pointer to incomplete type > drivers/mmc/mmc.c:1527: warning: type defaults to

Re: 2.6.20-rc4-mm1strange bug

2007-01-12 Thread Michal Piotrowski
On 12/01/07, Jiri Slaby <[EMAIL PROTECTED]> wrote: Michal Piotrowski wrote: > Hi, > > This bug looks strange > http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg > http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Here too, see

Kernel command line for a specific framebuffer console driver

2007-01-12 Thread Juergen Beisert
Hi, does someone know how to forward a kernel command line option to configure the AMD Geode GX1 framebuffer? I tried with "video=gx1fb:[EMAIL PROTECTED]" but it does not work. On another machine with an SIS framebuffer the line "video=sisfb:[EMAIL PROTECTED]" works as expected. Any ideas?

[patch] audit: fix audit_filter_user_rules() initialization bug

2007-01-12 Thread Ingo Molnar
From: Ingo Molnar <[EMAIL PROTECTED]> Subject: [patch] audit: fix audit_filter_user_rules() initialization bug gcc emits this warning: kernel/auditfilter.c: In function 'audit_filter_user': kernel/auditfilter.c:1611: warning: 'state' is used uninitialized in this function i tend to agree

Re: 2.6.20-rc4-mm1strange bug

2007-01-12 Thread Jiri Slaby
Michal Piotrowski wrote: > Hi, > > This bug looks strange > http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg > http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Here too, see http://lkml.org/lkml/2007/1/12/45 regards, --

Re: [PATCH/RFC 2.6.21 2/5] ehca: ehca_uverbs.c: "proper" use of mmap

2007-01-12 Thread Christoph Raisch
Roland Dreier wrote on 11.01.2007 20:54:58: > > > int ehca_mmap(struct ib_ucontext *context, struct vm_area_struct *vma) > > > { > > > > Can you split this monster routine into individual functions for > > each type of mmap please? With two helpers to get and verify the cq/qp > > shared

kexec + USB storage in 2.6.19

2007-01-12 Thread Dan Aloni
Hello, After upgrading from 2.6.18.3 to 2.6.19.2 on an x86_64 machine I noticed that the EHCI USB host is unable to work properly after a kexec invocation. This makes it impossible to mount the rootfs in the configuration I'm using. According to the prints, the irq changes from 23 to 10.

ieee1394 feature needed: overwrite SPLIT_TIMEOUT from userspace

2007-01-12 Thread Philipp Beyer
Hi, I'm investigating an unwanted behaviour of our firewire devices in connection with the ieee1394 kernel module. The problem is caused by a non standard-conform behaviour of our devices. Anyway, changes on the device-side dont seem to be the best solution, so I'm looking for a workaround in

spurious sparse warnings from linux/aio.h (was: 2.6.20-rc4-mm1)

2007-01-12 Thread Tilman Schmidt
Andrew Morton schrieb: > - Merged the "filesystem AIO patches". This construct: > --- linux-2.6.20-rc4/include/linux/aio.h2007-01-06 23:34:08.0 > -0800 > +++ devel/include/linux/aio.h 2007-01-11 21:36:16.0 -0800 > @@ -237,7 +243,8 @@ do {

Re: Replace nopage() / nopfn() with fault()

2007-01-12 Thread Thomas Hellström
Nick Piggin wrote: On Tue, Jan 09, 2007 at 04:02:08PM +0100, Thomas Hellström wrote: Nick, We're working to slowly get the new DRM memory manager into the mainstream kernel. This means we have a need for the page fault handler patch you wrote some time ago. I guess we could take the

2.6.20-rc4-mm1strange bug

2007-01-12 Thread Michal Piotrowski
Hi, This bug looks strange http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Regards, Michal -- Michal K. K. Piotrowski LTG - Linux Testers Group (http://www.stardust.webpages.pl/ltg/) - To

Re: 'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Paul Jackson
Sander wrote: > > +mbind-restrict-nodes-to-the-currently-allowed-cpuset.patch > > I had to revert this patch because of: > > === > mm/mempolicy.c: In function 'sys_mbind': > mm/mempolicy.c:885: error: 'struct task_struct' has no member named > 'mems_allowed' You're right - this patch won't

Re: [kvm-devel] [RFC] Stable kvm userspace interface

2007-01-12 Thread Pavel Machek
Hi! > >>Can we please avoid adding a ton of new ioctls? > >>ioctls inevitably require 64-bit compat code for > >>certain architectures, whereas sysfs/procfs does not. > > > >For performance reasons, an ascii string based > >interface is not > >desireable here, some of these calls should be

'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Sander
Andrew Morton wrote (ao): > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ > x86/x86_64 things > +mbind-restrict-nodes-to-the-currently-allowed-cpuset.patch I had to revert this patch because of: === mm/mempolicy.c: In function 'sys_mbind':

Re: [Suspend-devel] asus p5ld2 se, serial port gone after suspend and i8042 problems (solved, pnpacpi=off needed)

2007-01-12 Thread emisca
But using pnpacpi=no, I disable the acpi code.. the "normal" pnp code, what does on suspend? Does it simply do nothing? In the dmesg I don't see anything related to pnp device reinit. I tried suspend to ram on this motherboard. A strange thing happens.. the system goes to suspend and then

Re: pci_driver resume() callback return value

2007-01-12 Thread Pavel Machek
Hi! > Now question. Should we,or should we not return error code from resume > callback? > Where a two possible ways: > a) Comment in document section is out of date and we have to properly handle >and return error code if something goes wrong. This is right. > b) Comment in document

unionfs unusable on multiuser systems (was Re: [PATCH 01/24] Unionfs: Documentation)

2007-01-12 Thread Pavel Machek
Hi! > > > That statement is meant to scare people away from modifying the lower fs > > > :) > > > I tortured unionfs quite a bit, and it can oops but it takes some effort. > > But isn't it then potential DOS? If you happen to union two filesystems > > and an untrusted user has write access to

Re: mprotect abuse in slim

2007-01-12 Thread Pavel Machek
Hi! > SLIM implements dynamic process labels, so when a process > is demoted, we must be able to revoke write access to some > resources to which it has previously valid handles. > For example, if a shell reads an untrusted file, the > shell is demoted, and write access to more trusted files >

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jan Engelhardt
On Jan 12 2007 11:54, Jesper Juhl wrote: >> >> The article does it the bad way. IMHO filp_open() and >> vfs_read/vfs_write() are much less problematic wrt. to userspace. >> FWIW see >> ftp://ftp-1.gwdg.de/pub/linux/misc/suser-jengelh/kernel/quad_dsp-1.5.1.tar.bz2 > > There is no good way. You

Re: kvm & dyntick

2007-01-12 Thread Ingo Molnar
* Ingo Molnar <[EMAIL PROTECTED]> wrote: > > dyntick-enabled guest: > > - reduce the load on the host when the guest is idling > > (currently an idle guest consumes a few percent cpu) > > yeah. KVM under -rt already works with dynticks enabled on both the > host and the guest. (but it's more

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jesper Juhl
On 12/01/07, Jan Engelhardt <[EMAIL PROTECTED]> wrote: On Jan 12 2007 11:27, Jesper Juhl wrote: > On 12/01/07, congwen <[EMAIL PROTECTED]> wrote: >> Hello everyone, I want to create and read/write a file in Linux kernel or >> device driver, > > Don't read/write user space files from kernel

Re: How git affects kernel.org performance

2007-01-12 Thread Nigel Cunningham
Hi. On Wed, 2007-01-10 at 22:07 +0800, Fengguang Wu wrote: > Thanks, Nigel. > But I'm very sorry that the calculation in the patch was wrong. > > Would you give this new patch a run? Sorry for my slowness. I just did time find /usr/src | wc -l again: Without patch: 35.137, 35.104, 35.351

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jan Engelhardt
On Jan 12 2007 11:27, Jesper Juhl wrote: > On 12/01/07, congwen <[EMAIL PROTECTED]> wrote: >> Hello everyone, I want to create and read/write a file in Linux kernel or >> device driver, > > Don't read/write user space files from kernel space. > > Please search the archives, this get asked a lot

Re: [PATCH] Kdump documentation update for 2.6.20: ia64 portion

2007-01-12 Thread Andreas Schwab
Horms <[EMAIL PROTECTED]> writes: > + If the start address is specified, not that the start address of the note > + kernel will be alligned to 64Mb, so any if the start address is not then aligned XXX > + any space below

Re: [patch] sched: avoid div in rebalance_tick

2007-01-12 Thread Nick Piggin
On Fri, Jan 12, 2007 at 09:59:40AM +, Alan wrote: > On Fri, 12 Jan 2007 07:02:13 +0100 > Nick Piggin <[EMAIL PROTECTED]> wrote: > > > Just noticed this while looking at a bug. > > Avoid an expensive integer divide 3 times per CPU per tick. > > Integer divide is cheap on some modern

Re: 2.6.20-rc4-mm1

2007-01-12 Thread Mariusz Kozlowski
Hello, Doesn't build on my laptop. drivers/mmc/mmc.c: In function 'mmc_lock_unlock': drivers/mmc/mmc.c:1527: error: dereferencing pointer to incomplete type drivers/mmc/mmc.c:1527: warning: type defaults to 'int' in declaration of '_p1' drivers/mmc/mmc.c:1527: error:

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jesper Juhl
On 12/01/07, congwen <[EMAIL PROTECTED]> wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space. Please search the archives, this get asked a lot and it has been explained a million times why it's a

Early ACPI lockup (was Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Frederik Deweerdt
On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ > Hi, The git-acpi.patch replaces earlier "if(!handler) return -EINVAL" by "BUG_ON(!handler)". This locks my machine early at boot

Re: [PATCH 0/19] new IDE quilt tree

2007-01-12 Thread Alan
Generally looks very good - couple of odd items I noticed I've send replies about. Good to have someone working on the old IDE code again. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Problem with out-dated Linux 2.14-rt system

2007-01-12 Thread Harald Krammer
Hi, I have running Linux Version 2.6.14-rc5-rt7 on ARM EP9302 and in the most of time all works fine for me, but very seldom my system crash. With a JTAG-debugger I dumped out the kernel-log message and saw following entries: <4>BUG: unbalanced irq-handler preempt count in

[PATCH] 2.6.20-rc4: async I/O support for inotify

2007-01-12 Thread Dmitry Antipov
Hello, this is a proposal async I/O notification support for the inotify. Dmitry --- .orig-2.6.20-rc4/fs/inotify_user.c 2007-01-12 08:27:10.0 +0300 +++ 2.6.20-rc4/fs/inotify_user.c2007-01-12 09:53:12.0 +0300 @@ -72,6 +72,7 @@ */ struct inotify_device {

Re: [PATCH 18/19] ide: add ide_use_fast_pio() helper

2007-01-12 Thread Alan
On Fri, 12 Jan 2007 05:28:00 +0100 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > [PATCH] ide: add ide_use_fast_pio() helper > > * add ide_use_fast_pio() helper for use by host drivers > * add DMA capability and autodma checks to ide_use_dma() > - au1xxx-ide/it8213/it821x drivers

[PATCH] 2.6.20-rc4: force fcntl(..., FASYNC) to return -EINVAL when f_op->fasync is NULL

2007-01-12 Thread Dmitry Antipov
Hello, this is a proposal fix needed to receive an error when the user requests 'fcntl(fd, F_SETFL, FASYNC)' but lower levels are too poor to handle this. Dmitry --- .orig-2.6.20-rc4/fs/fcntl.c 2007-01-12 08:27:10.0 +0300 +++ 2.6.20-rc4/fs/fcntl.c 2007-01-12 09:56:14.0

Re: [PATCH 19/19] ide: use PIO/MMIO operations directly where possible

2007-01-12 Thread Alan
On Fri, 12 Jan 2007 05:28:07 +0100 Bartlomiej Zolnierkiewicz <[EMAIL PROTECTED]> wrote: > [PATCH] ide: use PIO/MMIO operations directly where possible > > This results in smaller/faster/simpler code and allows future optimizations. > Also remove no longer needed ide[_mm]_{inl,outl}() and

Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex

2007-01-12 Thread Srinivasa Ds
Andrew Morton wrote: On Tue, 07 Nov 2006 16:45:07 -0600 Eric Sandeen <[EMAIL PROTECTED]> wrote: Andrew Morton wrote: --- linux-2.6.19-rc4.orig/fs/buffer.c 2006-11-07 17:06:20.0 + +++ linux-2.6.19-rc4/fs/buffer.c2006-11-07 17:26:04.0 + @@ -188,7

Re: [patch] sched: avoid div in rebalance_tick

2007-01-12 Thread Alan
On Fri, 12 Jan 2007 07:02:13 +0100 Nick Piggin <[EMAIL PROTECTED]> wrote: > Just noticed this while looking at a bug. > Avoid an expensive integer divide 3 times per CPU per tick. Integer divide is cheap on some modern processors, and multibit shift isn't on all embedded ones. How about putting

Re: mprotect abuse in slim

2007-01-12 Thread Pekka Enberg
On 1/10/07, Serge E. Hallyn <[EMAIL PROTECTED]> wrote: Now, what slim needs isn't "revoke all files for this inode", but "revoke this task's write access to this fd". So two functions which could be useful are int fd_revoke_write(struct task_struct *tsk, int fd) int

Re: [PATCH] slab: cache_grow cleanup

2007-01-12 Thread Pekka Enberg
Hi Andrew, On 1/9/07, Pekka J Enberg <[EMAIL PROTECTED]> wrote: From: Pekka Enberg <[EMAIL PROTECTED]> The current implementation of cache_grow() has to either (1) use pre-allocated memory for the slab or (2) allocate the memory itself which makes the error paths messy. Move __GFP_NO_GROW and

Re: [PATCH] Kdump documentation update for 2.6.20: ia64 portion

2007-01-12 Thread Horms
Hi, this patch fills in the portions for ia64 kexec. I'm actually not sure what options are required for the dump-capture kernel, but "init 1 irqpoll maxcpus=1" has been working fine for me. Or more to the point, I'm not sure if irqpoll is needed or not. This patch requires the documentation

Re: [PATCH] binfmt_elf: core dump masking support

2007-01-12 Thread Kawai, Hidehiro
Hi, $ echo 1 > /proc/self/coremask $ ./some_program >>> >>>User can already ulimit -c 0 on himself, perhaps we want to use same >>>interface here? ulimit -cmask=(bitmask)? >> >>Are you saying that 1) it is good to change ulimit (shell programs) >>so that shell programs will read/write

RE: [PATCH] Kdump documentation update for 2.6.20: ia64 portion

2007-01-12 Thread Zou, Nanhai
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Horms > Sent: 2007年1月12日 14:07 > To: Vivek Goyal > Cc: Mohan Kumar M; Andrew Morton; Zou, Nanhai; Luck, Tony; > linux-kernel@vger.kernel.org; fastboot@lists.osdl.org; > linux-ia64@vger.kernel.org >

Re: [ckrm-tech] [PATCH 4/6] containers: Simple CPU accounting container subsystem

2007-01-12 Thread Balbir Singh
Paul Menage wrote: > On 1/11/07, Balbir Singh <[EMAIL PROTECTED]> wrote: >> I tried something similar, I added an activated field, which is set >> to true when the ->create() callback is invoked. That did not help >> either, the machine still panic'ed. > > I think that marking it active when

Re: [ckrm-tech] [PATCH 3/6] containers: Add generic multi-subsystem API to containers

2007-01-12 Thread Balbir Singh
Paul Menage wrote: > On 1/11/07, Balbir Singh <[EMAIL PROTECTED]> wrote: >> to 0. To walk the hierarchy, I have no root now since I do not have >> any task context. I was wondering if exporting the rootnode or providing >> a function to export the rootnode of the mounter hierarchy will make >>

Re: [ckrm-tech] [PATCH 4/6] containers: Simple CPU accounting container subsystem

2007-01-12 Thread Paul Menage
On 1/11/07, Balbir Singh <[EMAIL PROTECTED]> wrote: I tried something similar, I added an activated field, which is set to true when the ->create() callback is invoked. That did not help either, the machine still panic'ed. I think that marking it active when create() is called may be too

Re: [ckrm-tech] [PATCH 3/6] containers: Add generic multi-subsystem API to containers

2007-01-12 Thread Paul Menage
On 1/11/07, Balbir Singh <[EMAIL PROTECTED]> wrote: to 0. To walk the hierarchy, I have no root now since I do not have any task context. I was wondering if exporting the rootnode or providing a function to export the rootnode of the mounter hierarchy will make programming easier. Ah - I

Re: [PATCH 2.6.20-rc4 0/4] futexes functionalities and improvements

2007-01-12 Thread Ingo Molnar
* Pierre Peiffer <[EMAIL PROTECTED]> wrote: > [...] Any measure will be difficult to do with only FUTEX_WAIT/WAKE. that's not a problem - just do such a measurement and show that it does /not/ impact performance measurably. That's what we want to know... > (*) I'll try the volano bench, if I

Re: [PATCH 2.6.20-rc4 0/4] futexes functionalities and improvements

2007-01-12 Thread Ingo Molnar
* Pierre Peiffer [EMAIL PROTECTED] wrote: [...] Any measure will be difficult to do with only FUTEX_WAIT/WAKE. that's not a problem - just do such a measurement and show that it does /not/ impact performance measurably. That's what we want to know... (*) I'll try the volano bench, if I have

Re: [PATCH] binfmt_elf: core dump masking support

2007-01-12 Thread Kawai, Hidehiro
Hi, $ echo 1 /proc/self/coremask $ ./some_program User can already ulimit -c 0 on himself, perhaps we want to use same interface here? ulimit -cmask=(bitmask)? Are you saying that 1) it is good to change ulimit (shell programs) so that shell programs will read/write /proc/self/coremask

Re: [PATCH] slab: cache_grow cleanup

2007-01-12 Thread Pekka Enberg
Hi Andrew, On 1/9/07, Pekka J Enberg [EMAIL PROTECTED] wrote: From: Pekka Enberg [EMAIL PROTECTED] The current implementation of cache_grow() has to either (1) use pre-allocated memory for the slab or (2) allocate the memory itself which makes the error paths messy. Move __GFP_NO_GROW and

Re: mprotect abuse in slim

2007-01-12 Thread Pekka Enberg
On 1/10/07, Serge E. Hallyn [EMAIL PROTECTED] wrote: Now, what slim needs isn't revoke all files for this inode, but revoke this task's write access to this fd. So two functions which could be useful are int fd_revoke_write(struct task_struct *tsk, int fd) int

Re: [patch] sched: avoid div in rebalance_tick

2007-01-12 Thread Alan
On Fri, 12 Jan 2007 07:02:13 +0100 Nick Piggin [EMAIL PROTECTED] wrote: Just noticed this while looking at a bug. Avoid an expensive integer divide 3 times per CPU per tick. Integer divide is cheap on some modern processors, and multibit shift isn't on all embedded ones. How about putting

Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex

2007-01-12 Thread Srinivasa Ds
Andrew Morton wrote: On Tue, 07 Nov 2006 16:45:07 -0600 Eric Sandeen [EMAIL PROTECTED] wrote: Andrew Morton wrote: --- linux-2.6.19-rc4.orig/fs/buffer.c 2006-11-07 17:06:20.0 + +++ linux-2.6.19-rc4/fs/buffer.c2006-11-07 17:26:04.0 + @@ -188,7 +188,9

[PATCH] 2.6.20-rc4: force fcntl(..., FASYNC) to return -EINVAL when f_op-fasync is NULL

2007-01-12 Thread Dmitry Antipov
Hello, this is a proposal fix needed to receive an error when the user requests 'fcntl(fd, F_SETFL, FASYNC)' but lower levels are too poor to handle this. Dmitry --- .orig-2.6.20-rc4/fs/fcntl.c 2007-01-12 08:27:10.0 +0300 +++ 2.6.20-rc4/fs/fcntl.c 2007-01-12 09:56:14.0

[PATCH] 2.6.20-rc4: async I/O support for inotify

2007-01-12 Thread Dmitry Antipov
Hello, this is a proposal async I/O notification support for the inotify. Dmitry --- .orig-2.6.20-rc4/fs/inotify_user.c 2007-01-12 08:27:10.0 +0300 +++ 2.6.20-rc4/fs/inotify_user.c2007-01-12 09:53:12.0 +0300 @@ -72,6 +72,7 @@ */ struct inotify_device {

Problem with out-dated Linux 2.14-rt system

2007-01-12 Thread Harald Krammer
Hi, I have running Linux Version 2.6.14-rc5-rt7 on ARM EP9302 and in the most of time all works fine for me, but very seldom my system crash. With a JTAG-debugger I dumped out the kernel-log message and saw following entries: 4BUG: unbalanced irq-handler preempt count in

Early ACPI lockup (was Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Frederik Deweerdt
On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ Hi, The git-acpi.patch replaces earlier if(!handler) return -EINVAL by BUG_ON(!handler). This locks my machine early at boot with a

Re: 2.6.20-rc4-mm1

2007-01-12 Thread Mariusz Kozlowski
Hello, Doesn't build on my laptop. drivers/mmc/mmc.c: In function 'mmc_lock_unlock': drivers/mmc/mmc.c:1527: error: dereferencing pointer to incomplete type drivers/mmc/mmc.c:1527: warning: type defaults to 'int' in declaration of '_p1' drivers/mmc/mmc.c:1527: error:

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jesper Juhl
On 12/01/07, congwen [EMAIL PROTECTED] wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space. Please search the archives, this get asked a lot and it has been explained a million times why it's a

Re: [patch] sched: avoid div in rebalance_tick

2007-01-12 Thread Nick Piggin
On Fri, Jan 12, 2007 at 09:59:40AM +, Alan wrote: On Fri, 12 Jan 2007 07:02:13 +0100 Nick Piggin [EMAIL PROTECTED] wrote: Just noticed this while looking at a bug. Avoid an expensive integer divide 3 times per CPU per tick. Integer divide is cheap on some modern processors, and

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jan Engelhardt
On Jan 12 2007 11:27, Jesper Juhl wrote: On 12/01/07, congwen [EMAIL PROTECTED] wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space. Please search the archives, this get asked a lot and it has

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jesper Juhl
On 12/01/07, Jan Engelhardt [EMAIL PROTECTED] wrote: On Jan 12 2007 11:27, Jesper Juhl wrote: On 12/01/07, congwen [EMAIL PROTECTED] wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space. Please

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Jan Engelhardt
On Jan 12 2007 11:54, Jesper Juhl wrote: The article does it the bad way. IMHO filp_open() and vfs_read/vfs_write() are much less problematic wrt. to userspace. FWIW see ftp://ftp-1.gwdg.de/pub/linux/misc/suser-jengelh/kernel/quad_dsp-1.5.1.tar.bz2 There is no good way. You simply should

Re: mprotect abuse in slim

2007-01-12 Thread Pavel Machek
Hi! SLIM implements dynamic process labels, so when a process is demoted, we must be able to revoke write access to some resources to which it has previously valid handles. For example, if a shell reads an untrusted file, the shell is demoted, and write access to more trusted files revoked.

Re: pci_driver resume() callback return value

2007-01-12 Thread Pavel Machek
Hi! Now question. Should we,or should we not return error code from resume callback? Where a two possible ways: a) Comment in document section is out of date and we have to properly handle and return error code if something goes wrong. This is right. b) Comment in document section is

'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Sander
Andrew Morton wrote (ao): ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ x86/x86_64 things +mbind-restrict-nodes-to-the-currently-allowed-cpuset.patch I had to revert this patch because of: === mm/mempolicy.c: In function 'sys_mbind':

Re: 'struct task_struct' has no member named 'mems_allowed' (was: Re: 2.6.20-rc4-mm1)

2007-01-12 Thread Paul Jackson
Sander wrote: +mbind-restrict-nodes-to-the-currently-allowed-cpuset.patch I had to revert this patch because of: === mm/mempolicy.c: In function 'sys_mbind': mm/mempolicy.c:885: error: 'struct task_struct' has no member named 'mems_allowed' You're right - this patch won't build if

2.6.20-rc4-mm1strange bug

2007-01-12 Thread Michal Piotrowski
Hi, This bug looks strange http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Regards, Michal -- Michal K. K. Piotrowski LTG - Linux Testers Group (http://www.stardust.webpages.pl/ltg/) - To

Re: Replace nopage() / nopfn() with fault()

2007-01-12 Thread Thomas Hellström
Nick Piggin wrote: On Tue, Jan 09, 2007 at 04:02:08PM +0100, Thomas Hellström wrote: Nick, We're working to slowly get the new DRM memory manager into the mainstream kernel. This means we have a need for the page fault handler patch you wrote some time ago. I guess we could take the

spurious sparse warnings from linux/aio.h (was: 2.6.20-rc4-mm1)

2007-01-12 Thread Tilman Schmidt
Andrew Morton schrieb: - Merged the filesystem AIO patches. This construct: --- linux-2.6.20-rc4/include/linux/aio.h2007-01-06 23:34:08.0 -0800 +++ devel/include/linux/aio.h 2007-01-11 21:36:16.0 -0800 @@ -237,7 +243,8 @@ do {

ieee1394 feature needed: overwrite SPLIT_TIMEOUT from userspace

2007-01-12 Thread Philipp Beyer
Hi, I'm investigating an unwanted behaviour of our firewire devices in connection with the ieee1394 kernel module. The problem is caused by a non standard-conform behaviour of our devices. Anyway, changes on the device-side dont seem to be the best solution, so I'm looking for a workaround in

Re: 2.6.20-rc4-mm1strange bug

2007-01-12 Thread Jiri Slaby
Michal Piotrowski wrote: Hi, This bug looks strange http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Here too, see http://lkml.org/lkml/2007/1/12/45 regards, --

[patch] audit: fix audit_filter_user_rules() initialization bug

2007-01-12 Thread Ingo Molnar
From: Ingo Molnar [EMAIL PROTECTED] Subject: [patch] audit: fix audit_filter_user_rules() initialization bug gcc emits this warning: kernel/auditfilter.c: In function 'audit_filter_user': kernel/auditfilter.c:1611: warning: 'state' is used uninitialized in this function i tend to agree with

Kernel command line for a specific framebuffer console driver

2007-01-12 Thread Juergen Beisert
Hi, does someone know how to forward a kernel command line option to configure the AMD Geode GX1 framebuffer? I tried with video=gx1fb:[EMAIL PROTECTED] but it does not work. On another machine with an SIS framebuffer the line video=sisfb:[EMAIL PROTECTED] works as expected. Any ideas?

Re: 2.6.20-rc4-mm1strange bug

2007-01-12 Thread Michal Piotrowski
On 12/01/07, Jiri Slaby [EMAIL PROTECTED] wrote: Michal Piotrowski wrote: Hi, This bug looks strange http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Here too, see

Re: 2.6.20-rc4-mm1

2007-01-12 Thread Frederik Deweerdt
On Fri, Jan 12, 2007 at 11:25:58AM +0100, Mariusz Kozlowski wrote: Hello, Doesn't build on my laptop. drivers/mmc/mmc.c: In function 'mmc_lock_unlock': drivers/mmc/mmc.c:1527: error: dereferencing pointer to incomplete type drivers/mmc/mmc.c:1527: warning: type defaults to 'int' in

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Erik Mouw
On Fri, Jan 12, 2007 at 11:27:01AM +0100, Jesper Juhl wrote: On 12/01/07, congwen [EMAIL PROTECTED] wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space. Please search the archives, this get

Choosing a HyperThreading/SMP/MultiCore kernel ?

2007-01-12 Thread Sunil Naidu
Hello All, There are 2 cases:- #1 Intel Pentium 4 Workstation with HyperThreading Since kernel takes HT as 2 processors, I did say in KConfig as: CONFIG_SMP= y CONFIG_NR_CPUS=2 CONFIG_SCHED_MC=not set CONFIG_MPENTIUM4=y (Or should I say CONFIG_X86_PC=y) CONFIG_SCHED_SMT=y CONFIG_SCHED_MC=not

Re: spurious sparse warnings from linux/aio.h (was: 2.6.20-rc4-mm1)

2007-01-12 Thread Suparna Bhattacharya
On Fri, Jan 12, 2007 at 12:55:18PM +0100, Tilman Schmidt wrote: Andrew Morton schrieb: - Merged the filesystem AIO patches. This construct: --- linux-2.6.20-rc4/include/linux/aio.h2007-01-06 23:34:08.0 -0800 +++ devel/include/linux/aio.h 2007-01-11

2.6.20-rc4-mm1 md problem

2007-01-12 Thread Michal Piotrowski
My system hangs on this http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/bug2.jpg http://www.stardust.webpages.pl/files/tbf/euridica/2.6.20-rc4-mm1/mm-config Debug plan: - revert md-* patches - binary search Does someone have a better idea? Regards, Michal -- Michal K. K.

[-mm patch] remove tcp header from tcp_v4_check

2007-01-12 Thread Frederik Deweerdt
On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ Hi, The tcphdr struct passed to tcp_v4_check is not used, the following patch removes it from the parameter list. (This adds the

[-mm patch] remove tcp header from tcp_v4_check (take #2)

2007-01-12 Thread Frederik Deweerdt
On Fri, Jan 12, 2007 at 01:33:09PM +, Frederik Deweerdt wrote: On Thu, Jan 11, 2007 at 10:26:27PM -0800, Andrew Morton wrote: ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc3/2.6.20-rc4-mm1/ Hi, Sorry for the resend, I forgot the Signed-off-by line, and

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread linux-os \(Dick Johnson\)
On Fri, 12 Jan 2007, Erik Mouw wrote: On Fri, Jan 12, 2007 at 11:27:01AM +0100, Jesper Juhl wrote: On 12/01/07, congwen [EMAIL PROTECTED] wrote: Hello everyone, I want to create and read/write a file in Linux kernel or device driver, Don't read/write user space files from kernel space.

Re: How can I create or read/write a file in linux device driver?

2007-01-12 Thread Erik Mouw
On Fri, Jan 12, 2007 at 09:27:01AM -0500, linux-os (Dick Johnson) wrote: Sometimes a idiot boss will say; You need to read or write files from within the driver. If you don't do what I tell you, you are fired! Sometimes PHBs want you to break the laws of physics. I suggest you read Dilbert

Re: O_DIRECT question

2007-01-12 Thread Bill Davidsen
Aubrey wrote: On 1/12/07, Nick Piggin [EMAIL PROTECTED] wrote: Linus Torvalds wrote: On Fri, 12 Jan 2007, Nick Piggin wrote: We are talking about about fragmentation. And limiting pagecache to try to avoid fragmentation is a bandaid, especially when the problem can be solved (not just

Re: Choosing a HyperThreading/SMP/MultiCore kernel ?

2007-01-12 Thread Lennart Sorensen
On Fri, Jan 12, 2007 at 06:55:32PM +0530, Sunil Naidu wrote: There are 2 cases:- #1 Intel Pentium 4 Workstation with HyperThreading Since kernel takes HT as 2 processors, I did say in KConfig as: CONFIG_SMP= y CONFIG_NR_CPUS=2 CONFIG_SCHED_MC=not set CONFIG_MPENTIUM4=y (Or should I

Re: 2.6.20-rc4-mm1

2007-01-12 Thread Mariusz Kozlowski
Hello, That's because mmc_lock_unlock should depend on CONFIG_KEYS, it uses struct key. Could you try the following patch (compile tested)? Thanks. Compiles ok but now I run into another problem and the laptop doesn't boot. The last thing I see is grub. So no way to test it now. Time to

<    1   2   3   4   5   6   >