[SSI] openssi/kernel/fs/proc base.c,1.28,1.29
Roger Tsang <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ssic-linux/openssi/kernel/fs/proc
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv15118/fs/proc
Modified Files:
Tag: OPENSSI-FC
base.c
Log Message:
- Fix [ ssic-linux-Bugs-2924122 ] NULL pointer dereference on
destination node when migrating process with open FD in procfs.
Index: base.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/fs/proc/base.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- base.c 17 Dec 2009 06:43:51 -0000 1.28
+++ base.c 2 Feb 2010 04:35:52 -0000 1.29
@@ -2426,8 +2426,13 @@
task = proc_ssi_task(vp);
if( task == NULL ) { /* remote process */
#endif /* !VPROC_HOLD_ZERO_GET_TASK */
+#ifdef TASK_HOLD_VPROC
+ if ((current->p_vproc && PVP(current->p_vproc)->pvp_localview == 1) ||
+ (!PIDNODE(tgid) && tgid != 1)) {
+#else
if (PVP(current->p_vproc)->pvp_localview == 1 ||
( !PIDNODE(tgid) && (tgid != 1) )) {
+#endif
/*
* The reading process has localview set
* It is not interested in remote process
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com