Re: [-mm patch] kernel/kexec.c: make code static

2007-09-10 Thread Maneesh Soni
64/kernel/machine_kexec.o] Error 1 > > make: *** [arch/ia64/kernel] Error 2 > > # > > Thanks, I missed this. > > That's 80% my fault and 20% the fault of the usage of generic names > SYMBOL/SIZE/OFFSET/LENGTH/CONFIG making it impossible to grep for them > (and namespa

Re: [PATCH 2/2] sysfs: fix race condition around sd->s_dentry, take#2

2007-05-20 Thread Maneesh Soni
put(dentry); > } > } > > Index: work/fs/sysfs/sysfs.h > === > --- work.orig/fs/sysfs/sysfs.h > +++ work/fs/sysfs/sysfs.h > @@ -32,6 +32,7 @@ extern const unsigned char * sysfs_get_n > extern void sysfs

Re: [PATCH -stable] sysfs: disable reclamation by default

2007-05-20 Thread Maneesh Soni
On Thu, May 17, 2007 at 07:49:31PM +0200, Tejun Heo wrote: > Maneesh Soni wrote: > > On Thu, May 17, 2007 at 05:04:23AM -0700, Greg KH wrote: > >> On Wed, May 16, 2007 at 08:31:00PM +0200, Tejun Heo wrote: > >>> sd->s_dentry updates made by dentry/inode reclamati

Re: [PATCH 1/2] sysfs: fix condition check in sysfs_drop_dentry()

2007-05-20 Thread Maneesh Soni
) { > + if (!d_unhashed(dentry) && dentry->d_inode) { > inode = dentry->d_inode; > spin_lock(&inode->i_lock); > __iget(inode); Ack'ed Thanks Maneesh -- Maneesh Soni Linux Technol

Re: [PATCH -stable] sysfs: disable reclamation by default

2007-05-17 Thread Maneesh Soni
le. > At least not make it default. This might create boot issues with these boxes. > Maneesh, any other thoughts? > I actually wanted to investigate this oops but left it considering the rework being done by Tejun. If this still make sense we can have some more debug code stuffed

Re: [PATCHSET #master] sysfs: make sysfs disconnect immediately on deletion, take 2

2007-04-16 Thread Maneesh Soni
7fff181c4160 0880 803a0c1a Call Trace: [] sysfs_hash_and_remove+0x7c/0xef [] device_del+0x66/0x20a [] netdev_run_todo+0xc6/0x225 [] :dummy:dummy_free_one+0x1c/0x2d [] :dummy:dummy_cleanup_module+0xe/0x23 [] sys_delete_module+0x1b1/0x1e0 [] __up_write+0x21/0x10e [] system_call

Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

2007-04-14 Thread Maneesh Soni
e data collection echo "1" > /debug/kprobes/snapshot_probe Thus, the actual data collection code can reside in a separate module or a systemtap script which provides very good post-processing capabalities, and can be used without recompiling or rebooting the kernel. Thanks Maneesh --

[PATCH] fix sysfs_readdir oops (was Re: sysfs reclaim crash)

2007-04-03 Thread Maneesh Soni
On Sat, Mar 24, 2007 at 08:35:35AM +0530, Maneesh Soni wrote: > On Fri, Mar 23, 2007 at 12:43:27PM -0700, Ethan Solomita wrote: > > I ran stress testing overnight and came up with a similar failure > > (s_dentry == NULL) but in a different location. A NULL pointer > > de

Re: [RFD driver-core] Lifetime problems of the current driver model

2007-04-02 Thread Maneesh Soni
poll and shadow directory support, for which respective authors can review and I can review the VFS related changes but please split the patches as you like but one possible way could be as chunks dealing with changes related to 1. data structure changes 2. creation/removal of directories 3. cr

Re: tty OOPS (Re: 2.6.21-rc5-mm2)

2007-03-29 Thread Maneesh Soni
testing and he has thankfully provided me a crashdump. In the dump, so far it looks like that we have a sysfs_dirent (corresponding to file /sys/devices/system/cpu/cpu1/microcode/processor_flags), with a corrupted s_dentry. crash> struct sysfs_dirent c7721f2c struct sysfs_dirent { s_count = {

Re: sysfs reclaim crash

2007-03-27 Thread Maneesh Soni
saw. And the second one should not occur as now we are not using the s_dentry in sysfs_readdir(). Regards, Maneesh -- Maneesh Soni Linux Technology Center, IBM India Systems and Technology Lab, Bangalore, India - To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: sysfs reclaim crash

2007-03-23 Thread Maneesh Soni
the associated dentry, if there is one, else it invokes iunique(). This can create a race situation, and crash while accessing the dentry/inode in sysfs_readdir(). o The following patch always use i_unique() to get the inode number. This is ok as sysfs doesnot have permanent inode num

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-11 Thread Maneesh Soni
On Mon, Dec 04, 2006 at 11:06:41AM -0500, Alan Stern wrote: > On Mon, 4 Dec 2006, Maneesh Soni wrote: > > > hmm, I guess Greg has to say the final word. The question is either to fail > > the IO (-ENODEV) or fail the file removal (-EBUSY). If we are not going to > > fa

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-04 Thread Maneesh Soni
On Mon, Dec 04, 2006 at 07:38:00AM +0100, Oliver Neukum wrote: > Am Montag, 4. Dezember 2006 05:43 schrieb Maneesh Soni: > > On Fri, Dec 01, 2006 at 11:43:06PM +0100, Oliver Neukum wrote: > > > Hi, > > > > > > Alan Stern has discovered a race in sysfs, wher

Re: race in sysfs between sysfs_remove_file() and read()/write() #2

2006-12-03 Thread Maneesh Soni
On Fri, Dec 01, 2006 at 11:43:06PM +0100, Oliver Neukum wrote: > Hi, > > Alan Stern has discovered a race in sysfs, whereby driver callbacks could be > called after sysfs_remove_file() has run. The attached patch should fix it. > > It introduces a new data structure acting as a collection of all

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-10 Thread Maneesh Soni
On Wed, Aug 10, 2005 at 03:35:53PM -0700, Greg KH wrote: > On Wed, Aug 10, 2005 at 03:36:36PM +0530, Maneesh Soni wrote: > > On Wed, Aug 10, 2005 at 04:26:51PM +1000, Keith Owens wrote: > > > FYI, the intermittent free after use in sysfs is still there in > > > 2.6.13-rc

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-10 Thread Maneesh Soni
ut, if this helps or not. Thanks Maneesh o following patch moves the code to free devt_attr from class_device_del() to class_dev_release() which is called after the last reference to the corresponding kobject() is gone. This allows to keep the devt_attr alive while the corresponding sysfs file

Re: 2.6.13-rc4 use after free in class_device_attr_show

2005-08-02 Thread Maneesh Soni
On Tue, Aug 02, 2005 at 01:05:50PM +1000, Keith Owens wrote: > On Mon, 1 Aug 2005 12:03:21 -0700, > Andrew Morton <[EMAIL PROTECTED]> wrote: > >Keith Owens <[EMAIL PROTECTED]> wrote: > >> > >> On Sat, 30 Jul 2005 02:29:55 -0700, > >> Andrew Morton <[EMAIL PROTECTED]> wrote: > >> >Keith Owens <[EMAI

[PATCH 1/2] sysfs: fix sysfs_chmod_file

2005-07-12 Thread Maneesh Soni
evacuation from cache. Signed-off-by: Maneesh Soni <[EMAIL PROTECTED]> --- linux-2.6.13-rc2-maneesh/fs/sysfs/file.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff -puN fs/sysfs/file.c~fix-sysfs_chmod_file fs/sysfs/file.c --- linux-2.6.13-rc2/fs/sysfs/file

Re: [PATCH 2/2] sysfs: fix sysfs_setattr

2005-07-12 Thread Maneesh Soni
o sysfs_dirent's s_mode field should also be updated in sysfs_setattr(), else there could be inconsistency in the two fields. s_mode is used while ->readdir so as not to bring in the inode to cache. Signed-off-by: Maneesh Soni <[EMAIL PROTECTED]> --- linux-2.6.13-rc2-ma

Re: [RFC] Kprobes: Multiple probes feature at given address

2005-04-10 Thread Maneesh Soni
truct hlist_head head; > + /*common kprobes object where common pre and post handlers are defined*/ > + struct kprobe comm_probe; > +}; > + > #ifdef CONFIG_KPROBES > /* Locks kprobe: irq must be disabled */ > void lock_kprobes(void); > @@ -109,6 +129,8 @@ int longjmp_break_handler(s

Re: [PATCH] ppc64: Add mem=X option, updated NUMA support

2005-03-24 Thread Maneesh Soni
se > has an interesting NUMA machine they can test it on I'd love to hear > about it! > > This also includes a fix for the bug Maneesh found last week with > GCC 3.3 generating a switch table in prom_init.c, which doesn't > work. > I tried the patch and it works fin

Re: [Fastboot] Re: [PATCH] Fix for broken kexec on panic

2005-02-24 Thread Maneesh Soni
On Thu, Feb 24, 2005 at 06:05:45AM -0700, Eric W. Biederman wrote: > Maneesh Soni <[EMAIL PROTECTED]> writes: > > > On Thu, Feb 24, 2005 at 01:13:12AM -0800, Andrew Morton wrote: > > > Vivek Goyal <[EMAIL PROTECTED]> wrote: > > > > > > >

Re: [Fastboot] Re: [PATCH] Fix for broken kexec on panic

2005-02-24 Thread Maneesh Soni
it in user-space. We are evaluating both the approaches and should arrive at the conclusion asap. Thanks Maneesh -- Maneesh Soni Linux Technology Center, IBM India Software Labs, Bangalore, India email: [EMAIL PROTECTED] Phone: 91-80-25044990 - To unsubscribe from this list: send the line "uns

Re: 2.6.10 kprobes/jprobes panic

2005-02-10 Thread Maneesh Soni
le > myprobe: Unknown symbol kallsyms_lookup_name > > How did you use it ? it looks like kallsyms_lookup_name() > is not exported. Thats the reason why I was hardcoding addresses. > I checked the network packet logging patch, it also adds the EXPORT_SYMBOL(kallsyms_lookup_name).

Re: [PATCH] relayfs redux, part 4

2005-02-09 Thread Maneesh Soni
ly(relay_buf_full(buf))) { > + return 0; > + buf->chan->cb->buf_full(buf); Typo? statement after return ! Thanks Maneesh -- Maneesh Soni Linux Technology Center, IBM India Software Labs, Bangalore, India email: [EMAI

Re: [Lse-tech] Re: Linux 2.4 Scalability, Samba, and Netbench

2001-05-10 Thread Maneesh Soni
copy-update mechanism and FD management at "http://lse.sourceforge.net/locking/rclock.html"; as rclock-2.4.2-01.patch and files_struct_rcu-2.4.2-03.patch but we are working on simpler interfaces. Also let me know if you need the patches for a different 2.4 kernel version. Maneesh -- Man

Re: Scalable FD Management ....

2001-04-17 Thread Maneesh Soni
erybody tries to acquire the same files->file_lock. And in those scenarios we should see considerable performance improvement by using the files_struct patch as in the case of "chat"benchmark. Regards, Maneesh -- Maneesh Soni <[EMAIL PROTECTED]> http://lse.sourceforge.net/

Re: module load/unload race protection?

2001-04-16 Thread Maneesh Soni
eforge.net/locking/rclock.html) and by using synchronize_kernel() (from Rusty Russell, Keith Owens). Regards, Maneesh -- Maneesh Soni <[EMAIL PROTECTED]> http://lse.sourceforge.net/locking/rclock.html IBM Linux Technolo

[Patch] Module Unloading using Read-Copy-Update

2001-04-16 Thread Maneesh Soni
http://lse.sourceforge.net/locking/module_unloading-2.4.1-0.1.tar.gz Thank you, Maneesh -- Maneesh Soni Linux Technology Center, IBM Software Labs, Bangalore, INDIA Phone: +91-80-5262355 Extn: 2717 -- - To unsubscribe from this list: send the line &quo

Re: [Lse-tech] Re: [RFC][PATCH] Scalable FD Management using Read-Copy-Update

2001-04-12 Thread Maneesh Soni
filing to look into this but it will be helpfull if you can tell me if there is some known thing regarding this. I am copying this to Andrew also, if he can also help. Also if you have some dbench numbers from 2.4.x kernel, please let me have a look into those also. Thank you, Maneesh -- Maneesh S

[RFC][PATCH] Scalable FD Management using Read-Copy-Update

2001-04-09 Thread Maneesh Soni
ing/rclock.html. The config options required for this patch are CONFIG_RCLOCK and CONFIG_FD_RCU. Regards, Maneesh -- Maneesh Soni <[EMAIL PROTECTED]> IBM Linux Technology Center, IBM Software Lab, Bangalore, India ---patch--

Re: [PATCH] Re: Race in fs/proc/generic.c:make_inode_number()

2001-04-06 Thread Maneesh Soni
Just a couple of points: On Thu, Apr 05, 2001 at 10:36:10AM -0400, Tom Leete wrote: [...] > +spinlock_t proc_alloc_map_lock = RW_LOCK_UNLOCKED; > + Why not make this static? Initializer should be SPIN_LOCK_UNLOCKED. Maneesh Soni Linux Technology Center, IBM Bangalore. - To unsubscribe fro

[Patch] Module Unloading using Read-Copy-Update

2001-03-08 Thread Maneesh Soni
http://lse.sourceforge.net/locking/module_unloading-2.4.1-0.1.tar.gz Thank you, Maneesh -- Maneesh Soni Linux Technology Center, IBM Software Labs, Bangalore, INDIA Phone: +91-80-5262355 Extn: 2717 -- - To unsubscribe from this list: send the line &quo