[Devel] Re: utrace regressions (was: -mm merge plans for 2.6.21)

2007-02-15 Thread Alexey Dobriyan
On Tue, Feb 13, 2007 at 04:05:30PM +0300, Alexey Dobriyan wrote: On Mon, Feb 12, 2007 at 01:36:34PM -0800, Roland McGrath wrote: 2. The following proggie renders box unusable in ~10 seconds (but not mainline kernel where Ctrl+C will kill process). I haven't been able to reproduce

[Devel] [PATCH] Sync compat getdents on ia64 and parisc

2007-02-21 Thread Alexey Dobriyan
PROTECTED] Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/ia64/ia32/sys_ia32.c | 10 +++--- arch/parisc/kernel/sys_parisc32.c | 10 -- 2 files changed, 15 insertions(+), 5 deletions(-) --- a/arch/ia64/ia32/sys_ia32.c +++ b/arch/ia64/ia32/sys_ia32.c @@ -1267,6

[Devel] [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64

2007-02-26 Thread Alexey Dobriyan
[Apply after: lutimesat-simplify-utime2.patch lutimesat-extend-do_utimes-with-flags.patch lutimesat-actual-syscall-and-wire-up-on-i386.patch Tweak compat syscall number to match normal syscall number if needed.] Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/x86_64/ia32

[Devel] Re: [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64

2007-02-27 Thread Alexey Dobriyan
On Tue, Feb 27, 2007 at 02:06:24PM +1100, Stephen Rothwell wrote: On Mon, 26 Feb 2007 19:50:24 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: +asmlinkage long compat_sys_lutimesat(int dfd, char __user *filename, struct compat_timespec __user *utimes) +{ + struct timespec ts[2

[Devel] [PATCH] Fix race between proc_get_inode() and remove_proc_entry()

2007-03-07 Thread Alexey Dobriyan
); [find PDE with refcount 0] [check refcount and free PDE] spin_unlock(proc_subdir_lock); proc_get_inode: de_get(de); /* boom */ Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED

[Devel] [PATCH -mm] Fix race between proc_readdir and remove_proc_entry

2007-03-12 Thread Alexey Dobriyan
, ... [de_put on error path --adobriyan] Signed-off-by: Darrick J. Wong [EMAIL PROTECTED] Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -478,14 +478,21

[Devel] [PATCH -mm] proc: remove pathetic -deleted WARN_ON

2007-03-13 Thread Alexey Dobriyan
, or not? Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/inode.c |2 -- 1 file changed, 2 deletions(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -418,8 +418,6 @@ struct inode *proc_get_inode(struct supe { struct inode * inode; - WARN_ON(de de-deleted

[Devel] [PATCH] Copy mac_len in skb_clone() as well

2007-03-14 Thread Alexey Dobriyan
ANK says: It is rarely used, that's wy it was not noticed. But in the places, where it is used, it should be disaster. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/core/skbuff.c |1 + 1 file changed, 1 insertion(+) --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -463,6

[Devel] [PATCH] Fix some kallsyms_lookup() vs rmmod races

2007-03-15 Thread Alexey Dobriyan
:d30b8e78 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/base.c|7 +++ kernel/time/timer_list.c |6 ++ kernel/time/timer_stats.c |6 ++ mm/slab.c |3 +++ 4 files changed, 22 insertions(+) --- a/fs/proc/base.c +++ b/fs/proc/base.c

[Devel] Re: [PATCH] Fix some kallsyms_lookup() vs rmmod races

2007-03-15 Thread Alexey Dobriyan
On Thu, Mar 15, 2007 at 04:53:59PM +, Paulo Marques wrote: Alexey Dobriyan wrote: [cc'ing folks whose proc files are affected] kallsyms_lookup() can call module_address_lookup() which iterates over modules list without module_mutex taken. Comment at the top of module_address_lookup

[Devel] Re: [PATCH v5] Fix rmmod/read/write races in /proc entries

2007-03-16 Thread Alexey Dobriyan
On Thu, Mar 15, 2007 at 05:53:04PM -0800, Andrew Morton wrote: My, what a lot of code you have here. I note that nobody can be assed even reviewing it. Now why is that? I hope, Al could find some time again. On Sun, 11 Mar 2007 20:04:56 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: Fix

[Devel] [PATCH RESEND 1/2] Race between cat /proc/kallsyms and rmmod

2007-03-16 Thread Alexey Dobriyan
4d 85 ed 7f f1 e9 b9 00 00 00 8b 0f 81 f9 ff 0f 00 00 b8 ea 45 36 c0 0f 46 c8 8b 54 24 30 89 c8 eb 06 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 89 c3 89 e8 f6 44 24 EIP: [c01dc361] vsnprintf+0x2af/0x48c SS:ESP 0068:dbe2bec4 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux

[Devel] [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-16 Thread Alexey Dobriyan
:d30b8e78 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/base.c|7 +++ kernel/time/timer_list.c |6 ++ kernel/time/timer_stats.c |6 ++ mm/slab.c |3 +++ 4 files changed, 22 insertions(+) --- a/fs/proc/base.c +++ b/fs/proc/base.c

[Devel] Re: [PATCH RESEND 2/2] Fix some kallsyms_lookup() vs rmmod races

2007-03-19 Thread Alexey Dobriyan
On Fri, Mar 16, 2007 at 08:27:29PM +, Paulo Marques wrote: Andrew Morton wrote: On Fri, 16 Mar 2007 17:16:39 + Paulo Marques [EMAIL PROTECTED] wrote: Does freeze_processes() / unfreeze_processes() solve this by only freezing processes that have voluntarily scheduled (opposed to

[Devel] Re: [PATCH v5] Fix rmmod/read/write races in /proc entries

2007-03-19 Thread Alexey Dobriyan
On Fri, Mar 16, 2007 at 03:50:30AM -0800, Andrew Morton wrote: On Fri, 16 Mar 2007 12:16:13 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: On Thu, Mar 15, 2007 at 05:53:04PM -0800, Andrew Morton wrote: My, what a lot of code you have here. I note that nobody can be assed even

[Devel] [PATCH] p4-clockmod: switch to rdmsr_on_cpu/wrmsr_on_cpu

2007-03-19 Thread Alexey Dobriyan
Dances with cpumasks go away. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/i386/kernel/cpu/cpufreq/p4-clockmod.c | 31 + 1 file changed, 6 insertions(+), 25 deletions(-) --- a/arch/i386/kernel/cpu/cpufreq/p4-clockmod.c +++ b/arch/i386/kernel/cpu

[Devel] [PATCH] Protect tty drivers list a little

2007-03-22 Thread Alexey Dobriyan
eb 06 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 89 c6 8b 44 24 28 89 EIP: [c01cefa7] vsnprintf+0x3a4/0x5fc SS:ESP 0068:f31f5e68 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/char/tty_io.c |9 - fs/proc/proc_tty.c |3 +++ include/linux/tty_driver.h

[Devel] Re: [PATCH] Protect tty drivers list a little

2007-03-23 Thread Alexey Dobriyan
On Thu, Mar 22, 2007 at 09:29:05AM -0800, Andrew Morton wrote: On Thu, 22 Mar 2007 14:25:42 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: Additions and removal from tty_drivers list were just done as well as iterating on it for /proc/tty/drivers generation. --- a/drivers/char/tty_io.c

[Devel] [PATCH] Correct accept(2) recovery after sock_attach_fd()

2007-03-26 Thread Alexey Dobriyan
* d_alloc() in sock_attach_fd() fails leaving -f_dentry of new file NULL * bail out to out_fd label, doing fput()/__fput() on new file * but __fput() assumes valid -f_dentry and dereferences it Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/socket.c |7 ++- 1 file changed, 6

[Devel] [PATCH 3/3] cpuid: switch to cpuid_on_cpu()

2007-04-02 Thread Alexey Dobriyan
Now that cpuid_on_cpu() is in core, cpuid driver can be shrinked. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/i386/kernel/cpuid.c | 41 + 1 file changed, 1 insertion(+), 40 deletions(-) --- a/arch/i386/kernel/cpuid.c +++ b/arch/i386

[Devel] [PATCH 1/3] Introduce cpuid_on_cpu() and cpuid_eax_on_cpu()

2007-04-02 Thread Alexey Dobriyan
They will be used by cpuid driver and powernow-k8 cpufreq driver. With these changes powernow-k8 driver could run correctly on OpenVZ kernels with virtual cpus enabled (SCHED_VCPU). Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/i386/lib/Makefile |2 - arch/i386/lib

[Devel] [PATCH 2/3] powernow-k8: switch to *_on_cpu() functions

2007-04-02 Thread Alexey Dobriyan
Remove changes and restoring of allowed cpu masks as they aren't needed now. Tested on 2-way Opteron. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/i386/kernel/cpu/cpufreq/powernow-k8.c | 102 - 1 file changed, 29 insertions(+), 73 deletions

[Devel] [PATCH 3/5] Simplify kallsyms_lookup()

2007-04-02 Thread Alexey Dobriyan
Several kallsyms_lookup() pass dummy arguments but only need, say, module's name. Make kallsyms_lookup() accept NULLs where possible. Also, makes picture clearer about what interfaces are needed for all symbol resolving business. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/parisc

[Devel] Re: [PATCH 1/3] Introduce cpuid_on_cpu() and cpuid_eax_on_cpu()

2007-04-03 Thread Alexey Dobriyan
On Mon, Apr 02, 2007 at 02:10:29PM +0200, Andi Kleen wrote: On Monday 02 April 2007 13:38, Alexey Dobriyan wrote: They will be used by cpuid driver and powernow-k8 cpufreq driver. With these changes powernow-k8 driver could run correctly on OpenVZ kernels with virtual cpus enabled

[Devel] Re: [PATCH 1/3] Introduce cpuid_on_cpu() and cpuid_eax_on_cpu()

2007-04-03 Thread Alexey Dobriyan
On Tue, Apr 03, 2007 at 03:42:50PM +0200, Andi Kleen wrote: Both powernow-k8 and cpuid attempt to schedule to the target CPU so they should already run there. But it is some other CPU, but when they ask your _on_cpu() functions they suddenly get a real CPU? Where is the difference

[Devel] /proc/*/pagemap BUG: sleeping function called from invalid context

2007-04-09 Thread Alexey Dobriyan
After cat /proc/self/pagemap BUG: sleeping function called from invalid context at include/asm/uaccess.h:453 in_atomic():1, irqs_disabled():0 1 lock held by cat/14183: #0: (mm-mmap_sem){}, at: [c017d17b] pagemap_read+0x11f/0x21b [c01b7bc7] copy_to_user+0x37/0x4c [c017cf92]

[Devel] [PATCH] paride drivers: initialize spinlocks

2007-04-16 Thread Alexey Dobriyan
pcd_lock and pf_spin_lock are passed to blk_init_queue() which, seeing them as valid lock pointer, sets it as -queue_lock. The problem is that pcd_lock and pf_spin_lock aren't initialized anywhere. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/block/paride/pcd.c |2

[Devel] Re: utrace, RCU and ia64

2007-04-17 Thread Alexey Dobriyan
[double freeing of struct utrace leading to oops in __rcu_process_callbacks] Hi, Roland, utrace debugging you've put into 2.6.21-rc6-mm1 helped. Two double-frees reproduced: 1) BUG at kernel/utrace.c:176 rcu_utrace_free utrace_reap utrace_release_task

[Devel] [PATCH -mm] utrace: fix double free re __rcu_process_callbacks()

2007-04-24 Thread Alexey Dobriyan
message and double frees on 2-way P3, 8-way ia64, Core 2 Duo boxes. Testcase is at the first link. I _think_ it adds leak if utrace_reap() takes branch without freeing but, well, I hope Roland will give me some clue on how to fix it too. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel

Re: [Devel] [PATCH -mm] utrace: fix double free re __rcu_process_callbacks()

2007-04-24 Thread Alexey Dobriyan
On Tue, Apr 24, 2007 at 01:10:23PM +0400, Alexey Dobriyan wrote: ยน But I see whole can of other bugs! I think they were already lurking but weren't easily reproducable without hitting double-free first. FWIW, it's BUG_ON(!list_empty(tsk-ptracees)); mmm, pretty easily reproduced

[Devel] [PATCH -utrace] Move utrace into task_struct

2007-05-02 Thread Alexey Dobriyan
still happen NOTE: most certainly some locking is still missed and I need to test on a couple more boxes. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux/sched.h |7 include/linux/tracehook.h | 15 - include/linux/utrace.h| 39 ++- kernel/fork.c

Re: [Devel] LTP syscall failures

2007-05-21 Thread Alexey Dobriyan
On Mon, May 21, 2007 at 09:47:31AM +0200, Christian Kaiser2 wrote: I did some testing with the LTP Regression Test Suite (http://ltp.sourceforge.net) inside a VE the last days. When I enable all capabilites except setpcap I get one warning and three failures. When I run the tests native (in

Re: [Devel] PPC64 Kernel 2.6.18 + RPM packages

2007-05-23 Thread Alexey Dobriyan
On Wed, May 23, 2007 at 04:41:03PM +0400, Kirill Korotaev wrote: Christian Kaiser2 wrote: [EMAIL PROTECTED] vzctl-3.0.16]# /etc/init.d/vz start Starting OpenVZ: [ OK ] Bringing up interface venet0: [ OK ]

[Devel] LTP: serge2 hostname

2007-05-23 Thread Alexey Dobriyan
I ran ltp-full-20070430 and utstest.c forgot to restore original hostname from serge2. ;-) ___ Devel mailing list Devel@openvz.org https://openvz.org/mailman/listinfo/devel

[Devel] Re: LTP: serge2 hostname

2007-05-24 Thread Alexey Dobriyan
On Wed, May 23, 2007 at 09:49:44AM -0500, Serge E. Hallyn wrote: Quoting Alexey Dobriyan ([EMAIL PROTECTED]): I ran ltp-full-20070430 and utstest.c forgot to restore original hostname from serge2. ;-) Oh that's just me taking over the world, one workstation at a time. Hopefully

[Devel] [PATCH] mutex_unlock() later in seq_lseek()

2007-05-29 Thread Alexey Dobriyan
All manipulations with struct seq_file::version are done under struct seq_file::lock except one introduced in commit d6b7a781c51c91dd054e5c437885205592faac21 aka [PATCH] Speed up /proc/pid/maps Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/seq_file.c |2 +- 1 file changed, 1

[Devel] Re: [PATCH] /proc/*/environ: wrong placing of ptrace_may_attach() check

2007-05-30 Thread Alexey Dobriyan
On Tue, May 29, 2007 at 05:16:23PM -0700, Andrew Morton wrote: On Mon, 28 May 2007 17:41:57 +0400 Alexey Dobriyan [EMAIL PROTECTED] wrote: --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -204,12 +204,17 @@ static int proc_pid_environ(struct task_ int res = 0; struct mm_struct *mm

[Devel] [PATCH 2.6.16] Fix NULL bio crash in loop worker thread

2007-06-01 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/block/loop.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -521,7 +521,7 @@ static int loop_make_request(request_queue_t *q, struct bio *old_bio

[Devel] [PATCH] seq_file: more atomicity in traverse()

2007-06-01 Thread Alexey Dobriyan
line of first object every time it's called, until enough objects are added to -f_pos return in bounds. Fix is to update -index only after we're sure we saw enough objects down the road. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/seq_file.c | 16 ++-- 1 file changed, 10

[Devel] [PATCH -mm] Fix /proc/slab_allocators re seq_list_next() conversion

2007-06-04 Thread Alexey Dobriyan
Wrong pointer was used as kmem_cache pointer. [Here /proc/slab_allocators appears as empty file, but it's just me, probably] Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- mm/slab.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/slab.c +++ b/mm/slab.c @@ -4401,7

Re: [Devel] nptl perf bench and profiling with pidns patchsets

2007-06-09 Thread Alexey Dobriyan
On Sat, Jun 09, 2007 at 12:10:25PM +0400, Pavel Emelianov wrote: * definitely better results for suka's patchset. suka's patchset is also getting better results with unixbench on a 2.6.22-rc1-mm1 but the values are really dispersed. can you confirm ? * suka's patchset would benefit

[Devel] Re: [PATCH -mm 2/2] x86_64: semi-rewrite of PTRACE_PEEKUSR, PTRACE_POKEUSR

2007-06-25 Thread Alexey Dobriyan
On Wed, Jun 20, 2007 at 02:41:48PM -0700, Roland McGrath wrote: What's the purpose of the change? Chopping small bits of utrace to mainline. regset stuff looks reasonable and self-contained enough to start with. However, regset part in utrace contain quite a few unused things, so I'm leaving

[Devel] [PATCH] x86_64: arch_pick_mmap_layout() fixlet

2007-06-28 Thread Alexey Dobriyan
sparse now warns about arch/x86_64/mm/mmap.c:15:3: warning: returning void-valued expression Generated code looks correct: there is jump to the end of arch_pick_mmap_layout() after ia32_pick_mmap_layout(), but this should be fixed regardless. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED

[Devel] filemap.c: interesting check around zero_length_segment:

2007-06-29 Thread Alexey Dobriyan
Adding -W -Wno-stupid-warnings results in the following warning: mm/filemap.c: In function 'generic_file_buffered_write': mm/filemap.c:2179: warning: comparison of unsigned expression = 0 is always true if (likely(copied = 0)) { if (!status)

[Devel] [PATCH] se401: fix 0x typo

2007-07-02 Thread Alexey Dobriyan
about this driver. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/media/video/se401.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/video/se401.c +++ b/drivers/media/video/se401.c @@ -1280,7 +1280,7 @@ static int se401_init(struct usb_se401 *se401

[Devel] [PATCH 2/2] Make unregister_binfmt() return void

2007-07-16 Thread Alexey Dobriyan
list_del() hardly can fail, so checking for return value is pointless (and current code always return 0). Nobody really cared that return value anyway. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/ia64/ia32/binfmt_elf32.c |2 +- fs/exec.c |3

[Devel] [PATCH] SLAB_PANIC more (proc, posix-timers, shmem)

2007-07-17 Thread Alexey Dobriyan
These aren't modular, so SLAB_PANIC is OK. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/inode.c |4 +--- kernel/posix-timers.c |3 ++- mm/shmem.c|4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c

[Devel] [PATCH] Fix leaks on /proc/{*/sched, sched_debug, timer_list, timer_stats}

2007-07-17 Thread Alexey Dobriyan
On every open/close one struct seq_operations leaks. Kudos to /proc/slab_allocators. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/base.c|2 +- kernel/sched_debug.c |2 +- kernel/time/timer_list.c |2 +- kernel/time/timer_stats.c |2 +- 4 files

[Devel] [PATCH] Add kernel/notifier.c

2007-07-19 Thread Alexey Dobriyan
There is separate notifier header, but no separate notifier .c file. Extract notifier code out of kernel/sys.c which will remain for misc syscalls I hope. Merge kernel/die_notifier.c into kernel/notifier.c. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux/notifier.h |2

[Devel] Re: [PATCH] Add kernel/notifier.c

2007-07-20 Thread Alexey Dobriyan
On Thu, Jul 19, 2007 at 02:48:59PM -0700, Andrew Morton wrote: On Thu, 19 Jul 2007 20:46:11 +0400 Alexey Dobriyan [EMAIL PROTECTED] wrote: There is separate notifier header, but no separate notifier .c file. Extract notifier code out of kernel/sys.c which will remain for misc syscalls

[Devel] [PATCH] Remove CTL_UNNUMBERED

2007-07-26 Thread Alexey Dobriyan
the flow of new CTL_ numbers, because most of sysctls are copy-pasted. CTL_UNNUMBERED doesn't solve this problem at all. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- Documentation/sysctl/ctl_unnumbered.txt| 15 ++- arch/ia64/kernel/crash.c |1 - arch

[Devel] Re: [PATCH] Remove CTL_UNNUMBERED

2007-07-27 Thread Alexey Dobriyan
On Thu, Jul 26, 2007 at 11:24:12AM -0600, Eric W. Biederman wrote: Alexey Dobriyan [EMAIL PROTECTED] writes: CTL_UNNUMBERED is unneeded, because it expands to .ctl_name = 0 The same effect can be achieved by skipping .ctl_name initialization, saving one line per sysctl

[Devel] [PATCH] Add CTL_PROC back

2007-07-30 Thread Alexey Dobriyan
commit eab03ac7bd3e0da99eb9dc068772a85a5e3f3577 aka [PATCH] Get rid of /proc/sys/proc was good commit except strace(1) compile breakage it introduced: system.c:1581: error: 'CTL_PROC' undeclared here (not in a function) So, add dummy enum back. Signed-off-by: Alexey Dobriyan [EMAIL

[Devel] [PATCH] single_open/seq_release leak diagnostics

2007-07-31 Thread Alexey Dobriyan
[c010248e] sysenter_past_esp+0x5f/0x85 === Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/seq_file.c| 25 - include/linux/seq_file.h |1 + 2 files changed, 21 insertions(+), 5 deletions(-) --- a/fs/seq_file.c +++ b/fs

[Devel] [PATCH] late checking of permissions during PTRACE_ATTACH

2007-08-02 Thread Alexey Dobriyan
=245735 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/ptrace.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -327,6 +327,8 @@ static int ptrace_attach(struct task_struct *task

[Devel] Tweak /proc/ipmi removal

2007-08-03 Thread Alexey Dobriyan
in such cases. Please, apply. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/char/ipmi/ipmi_msghandler.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -4136,7 +4136,7 @@ static __exit void

[Devel] [PATCH 1/2] sysctl: remove binary sysctls from kernel.sched_domain

2007-08-06 Thread Alexey Dobriyan
kernel.sched_domain hierarchy is under CTL_UNNUMBERED and thus unreachable to sysctl(2). Generating .ctl_number's in such situation is not useful. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/sched.c | 38 +- 1 file changed, 21 insertions

[Devel] [PATCH] userns: don't leak root user

2007-08-23 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/user_namespace.c |1 + 1 file changed, 1 insertion(+) --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -81,6 +81,7 @@ void free_user_ns(struct kref *kref) struct user_namespace *ns; ns = container_of

[Devel] [PATCH] Fix UTS corruption during clone(CLONE_NEWUTS)

2007-09-14 Thread Alexey Dobriyan
' hostname = 'aa' Hostname is sometimes corrupted. Yes, even _the_ simplest namespace activity had bug in it. :-( Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/utsname.c |2 ++ 1 file changed, 2 insertions(+) --- a/kernel/utsname.c +++ b

[Devel] [PATCH 3/3] user.c: #ifdef -mq_bytes

2007-09-21 Thread Alexey Dobriyan
for those who deselect POSIX message queues. Reduces SLAB size of user_struct from 64 to 32 bytes here, SLUB size -- from 40 bytes to 32 bytes. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux/sched.h |2 ++ kernel/user.c |2 -- 2 files changed, 2 insertions

[Devel] [PATCH 1/1] user.c: deinline

2007-09-21 Thread Alexey Dobriyan
Save some space because uid_hash_find() has 3 callsites. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/user.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) --- a/kernel/user.c +++ b/kernel/user.c @@ -55,17 +55,17 @@ struct user_struct root_user

[Devel] [PATCH 2/3] user.c: use kmem_cache_zalloc()

2007-09-21 Thread Alexey Dobriyan
Quite a few fields are zeroed during user_struct creation, so use kmem_cache_zalloc() -- save a few lines and #ifdef. Also will help avoid #ifdef CONFIG_POSIX_MQUEUE in next patch. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/user.c | 13 + 1 file changed, 1

[Devel] [PATCH] Move kasprintf.o to obj-y

2007-09-24 Thread Alexey Dobriyan
Modular puppyvisor started giving linking errors MODPOST 1 modules ERROR: kasprintf [drivers/lguest/lg.ko] undefined! Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- lib/Makefile |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/lib/Makefile +++ b/lib

[Devel] [PATCH] Uninline fork.c/exit.c

2007-10-01 Thread Alexey Dobriyan
tests on 2-way Opteron 246. Sml degradation on UP P4 (within errors). Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- kernel/exit.c |6 +++--- kernel/fork.c | 20 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) --- a/kernel/exit.c +++ b/kernel/exit.c

Re: [Devel] [PATCH][NETNS] Move some code into __init section when CONFIG_NET_NS=n

2007-10-04 Thread Alexey Dobriyan
On Thu, Oct 04, 2007 at 05:54:11PM +0400, Pavel Emelyanov wrote: With the net namespaces many code leaved the __init section, thus making the kernel occupy more memory than it did before. Since we have a config option that prohibits the namespace creation, the functions that

[Devel] [PATCH] ip{,6}_queue: convert to seq_file interface

2007-10-19 Thread Alexey Dobriyan
I plan to kill -get_info which means killing proc_net_create(). Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/ipv4/netfilter/ip_queue.c | 36 +++- net/ipv6/netfilter/ip6_queue.c | 36 +++- 2 files changed, 38

[Devel] [PATCH] Bogus KERN_ALERT on oops

2007-10-22 Thread Alexey Dobriyan
printing eip: f881b9f3 *pdpt = 3001 1*pde = 0480a067 *pte = ^^^ Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- arch/x86/mm/fault_32.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch

[Devel] [PATCH] nf_sockopts list head cleanup

2007-10-22 Thread Alexey Dobriyan
Code is using knowledge that nf_sockopt_ops::list list_head is first field in structure by using casts. Switch to list_for_each_entry() itetators while I am at it. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/netfilter/nf_sockopt.c | 12 1 file changed, 4 insertions

Re: [Devel] [PATCH 1/5] Cut off br_port fied from net_device

2007-10-22 Thread Alexey Dobriyan
On Mon, Oct 22, 2007 at 04:33:33PM +0400, Pavel Emelyanov wrote: And add the forward declaration for br_handle_frame_hook in include/linux/if_bridge.h --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -699,8 +699,10 @@ struct net_device /* Network namespace this

[Devel] Re: [PATCH] Bogus KERN_ALERT on oops

2007-10-24 Thread Alexey Dobriyan
On Wed, Oct 24, 2007 at 12:33:18PM +0200, Ingo Molnar wrote: * Pekka Enberg [EMAIL PROTECTED] wrote: - printk(KERN_ALERT *pde = %016Lx , page); + printk(*pde = %016Lx , page); Use the new KERN_CONT annotation here? indeed - i changed

[Devel] [PATCH] watchdog: spin_lock_init() fixes

2007-10-29 Thread Alexey Dobriyan
Some watchdog drivers initialize global spinlocks in module's init function which is tolerable, but some do it in PCI probe function. So, switch to static initialization to fix theoretical bugs and, more importantly, stop giving people bad examples. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED

[Devel] [PATCH] Remove /proc/net/stat/*_arp_cache upon module removal

2007-11-01 Thread Alexey Dobriyan
/0x3f SS:ESP 0068:c587bf1c Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/core/neighbour.c |2 ++ 1 file changed, 2 insertions(+) --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1435,6 +1435,8 @@ int neigh_table_clear(struct neigh_table *tbl) kfree(tbl-phash_buckets

Re: [Devel] Re: [PATCH resend] proc: Fix proc_kill_inodes to kill dentries on all proc superblocks

2007-11-01 Thread Alexey Dobriyan
On Thu, Nov 01, 2007 at 06:48:25PM +0300, Pavel Emelyanov wrote: Eric W. Biederman wrote: It appears we overlooked support for removing generic proc files when we added support for multiple proc super blocks. Handle that now. Signed-off-by: Eric W. Biederman [EMAIL PROTECTED] AFAIS

[Devel] [PATCH -net 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-11-06 Thread Alexey Dobriyan
This removes last proc_net_create() user. Kudos to Benjamin Thery and Stephen Hemminger for comments on previous version. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/ipv6/route.c | 91 +-- 1 file changed, 29 insertions(+), 62

[Devel] [PATCH -net 2/2] Put proc_net_create() on death row

2007-11-06 Thread Alexey Dobriyan
proc_net_create() stands on the way of shrinking the number of interfaces one can use for /proc files, namely, it uses -get_info hook which will be converted, deprecated and deleted on its own schedule. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- Documentation/feature-removal

[Devel] [PATCH] netns: init dev_base_lock only once

2007-11-07 Thread Alexey Dobriyan
* it already statically initialized * reinitializing live global spinlock every time netns is setup is also wrong Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/core/dev.c |1 - 1 file changed, 1 deletion(-) --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4330,7 +4330,6 @@ static

[Devel] [PATCH] proc: remove MODULE_LICENSE

2007-11-15 Thread Alexey Dobriyan
proc is not modular, so MODULE_LICENSE just expands to empty space. proc without doubts remains GPLed. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/inode.c |1 - 1 file changed, 1 deletion(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -476,4 +476,3 @@ out_no_root

[Devel] [PATCH] proc: use BUG_ON() in de_put()

2007-11-15 Thread Alexey Dobriyan
It's much more visible that some printk. I still has an unexplained oops in proc, so let's leave it for a while. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/inode.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) --- a/fs/proc/inode.c +++ b/fs/proc/inode.c

[Devel] [PATCH] proc: less LOCK operations during lookup

2007-11-15 Thread Alexey Dobriyan
kernel We can get rid of LOCK/UNLOCK pair after getting inode simply by jumping to unlock_kernel() directly. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/fs/proc/generic.c +++ b/fs/proc/generic.c

[Devel] [PATCH] proc: prototypes redux

2007-11-15 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 18 ++ fs/proc/proc_tty.c |3 --- 2 files changed, 6 insertions(+), 15 deletions(-) --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -25,12 +25,6 @@ #include internal.h -static ssize_t

[Devel] [PATCH] proc: remove useless check on symlink removal

2007-11-15 Thread Alexey Dobriyan
proc symlinks always have valid -data containing destination of symlink. No need to check it on removal -- proc_symlink() already done it. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/proc/generic.c

[Devel] [PATCH] proc: remove useless checks in proc_register()

2007-11-15 Thread Alexey Dobriyan
Before proc_register() all PDEs are created by proc_create() which doesn't set -proc_iops and -proc_fops -- they're NULL. So those branches in proc_register() always taken. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 15 +-- 1 file changed, 5

[Devel] [PATCH 2/4] proc: detect duplicate names on registration

2007-11-16 Thread Alexey Dobriyan
fix can be found here: http://bugzilla.kernel.org/show_bug.cgi?id=8798 [\n fixlet and no undescriptive variable usage --adobriyan] Signed-off-by: Zhang Rui [EMAIL PROTECTED] Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 10 ++ 1 file changed, 10 insertions

[Devel] [PATCH 1/4] proc: fix NULL -i_fop oops

2007-11-16 Thread Alexey Dobriyan
Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 37 - fs/proc/internal.h |2 -- fs/proc/root.c |2 +- 3 files changed, 1 insertion(+), 40 deletions(-) --- a/fs/proc/generic.c +++ b/fs/proc/generic.c @@ -544,41 +544,6

[Devel] [PATCH 3/4] proc: simplify remove_proc_entry() wrt locking

2007-11-16 Thread Alexey Dobriyan
more undestandable: * original looks like a loop, however, it's a loop with unconditional trailing break; -- not loop at all. * more explicit statement that proc_subdir_lock protects only -subdir lists. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c | 67

[Devel] [PATCH 4/4] proc: fix PDE refcounting

2007-11-16 Thread Alexey Dobriyan
:f380be44 Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c |9 ++--- fs/proc/inode.c |9 ++--- fs/proc/root.c |1 + include/linux/proc_fs.h |1 - 4 files changed, 5 insertions(+), 15 deletions(-) --- a/fs/proc/generic.c +++ b/fs/proc

[Devel] Re: [PATCH] proc: use BUG_ON() in de_put()

2007-11-22 Thread Alexey Dobriyan
On Fri, Nov 16, 2007 at 01:46:42PM -0800, Andrew Morton wrote: On Thu, 15 Nov 2007 19:12:49 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: It's much more visible that some printk. I still has an unexplained oops in proc, so let's leave it for a while. --- a/fs/proc/inode.c +++ b/fs

[Devel] Re: [PATCH 3/4] proc: simplify remove_proc_entry() wrt locking

2007-11-23 Thread Alexey Dobriyan
On Tue, Nov 20, 2007 at 08:08:42PM -0800, Andrew Morton wrote: On Fri, 16 Nov 2007 18:10:15 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: We can take proc_subdir_lock for duration of list searching and removing from lists only. It can't hurt -- we can gather any amount of looked up PDEs

Re: [Devel] kernel/cpt/cpt_dump.c breakage in 2.6.22?

2007-11-29 Thread Alexey Dobriyan
On Wed, Nov 28, 2007 at 11:37:48PM +0100, Josip Rodin wrote: Is there a known problem with checkpointing in OpenVZ kernel 2.6.22? Yes. Hopefully CPT will be back in 2.6.24 branch. I'm getting the following errors: CC [M] kernel/cpt/cpt_dump.o kernel/cpt/cpt_dump.c: In function

[Devel] [PATCH] proc: fix PDE refcounting

2007-11-30 Thread Alexey Dobriyan
continues to work. Patch survives many hours of modprobe/rmmod/cat loops without new bugs which can be attributed to refcounting. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- fs/proc/generic.c |9 ++--- fs/proc/inode.c |9 ++--- fs/proc/root.c |1

Re: [Devel] [PATCH 2.6.25] [IPV4] Reduce whitespaces in fib_rules.h.

2007-12-13 Thread Alexey Dobriyan
On Thu, Dec 13, 2007 at 05:18:42PM +0300, Denis V. Lunev wrote: There are to many spaces between type and function name in the declaration of fib rules manipulation routines. Eat them and save a couple of lines. If this patch is going in, it would be nice to get rid of extern as well.

[Devel] [PATCH] proc: fix -open'less usage due to -proc_fops flip

2007-12-29 Thread Alexey Dobriyan
. Code: 75 21 68 e1 1a 19 c1 68 87 00 00 00 68 b8 e8 1f c1 68 25 73 1f c1 e8 84 06 e9 ff e8 52 b8 e7 ff 83 c4 10 9c 5f fa e8 28 89 ea ff f0 fe 4e 04 79 0a f3 90 80 7e 04 00 7e f8 eb f0 39 76 34 74 33 EIP: [c1188c1b] mutex_lock_nested+0x75/0x25d SS:ESP 0068:e8ea1ef8 Signed-off-by: Alexey Dobriyan

[Devel] [PATCH -mm 2/4] hifn_795x: fixup container_of() usage

2008-01-08 Thread Alexey Dobriyan
[PATCH -mm 2/4] hifn_795x: fixup container_of() usage Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- drivers/crypto/hifn_795x.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -664,7 +664,7 @@ struct

[Devel] Broken Make ip6_frags per namespace patch

2008-01-17 Thread Alexey Dobriyan
commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace. The ip6_frags is moved to the network namespace structure. Because there can be multiple instances

[Devel] Re: Broken Make ip6_frags per namespace patch

2008-01-17 Thread Alexey Dobriyan
On Thu, Jan 17, 2008 at 11:40:42AM +0100, Daniel Lezcano wrote: Alexey Dobriyan wrote: commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace. The ip6_frags

[Devel] Re: Broken Make ip6_frags per namespace patch

2008-01-18 Thread Alexey Dobriyan
On Thu, Jan 17, 2008 at 01:01:11PM +0100, Daniel Lezcano wrote: Alexey Dobriyan wrote: On Thu, Jan 17, 2008 at 11:40:42AM +0100, Daniel Lezcano wrote: Alexey Dobriyan wrote: commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03

[Devel] [PATCH 3/5] netns netfilter: return new table from {arp, ip, ip6}t_register_table()

2008-01-21 Thread Alexey Dobriyan
of table modules is done. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux/netfilter_arp/arp_tables.h |4 ++-- include/linux/netfilter_ipv4/ip_tables.h |5 +++-- include/linux/netfilter_ipv6/ip6_tables.h |4 ++-- net/ipv4/netfilter/arp_tables.c | 22

[Devel] [PATCH 2/5] netns netfilter: per-netns xt_tables

2008-01-21 Thread Alexey Dobriyan
In fact all we want is per-netns set of rules, however doing that will unnecessary complicate routines such as ipt_hook()/ipt_do_table, so make full xt_table array per-netns. Every user stubbed with init_net for a while. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/linux

[Devel] [PATCH 4/5] netns netfilter: propagate netns from userspace

2008-01-21 Thread Alexey Dobriyan
.. all the way down to table searching functions. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/ipv4/netfilter/ip_tables.c | 46 - 1 file changed, 23 insertions(+), 23 deletions(-) --- a/net/ipv4/netfilter/ip_tables.c +++ b/net/ipv4

[Devel] [PATCH 5/5] netns netfilter: per-netns FILTER, MANGLE, RAW

2008-01-21 Thread Alexey Dobriyan
the effect. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- include/net/netns/ipv4.h|5 net/ipv4/netfilter/iptable_filter.c | 41 --- net/ipv4/netfilter/iptable_mangle.c | 41 --- net/ipv4/netfilter

  1   2   3   4   5   >