Messages in this thread Patch in this message | | | Date | Thu, 13 Aug 1998 21:05:21 -0700 (PWT) | From | Max Inux <> | Subject | Linux 2.1.115 devpts bug improved fix (fwd) |
| |
I am sure this has prolly been posted, but just in case it has not here ya go... and hell, repetition is a proven advertising ethic (See: Hitler, Adolf; Microsoft)
William Tiemann -- William Tiemann <wtiemann@openpgp.net> Hey Christy! KeyID 0x8907E9E5 Kinky Sex makes the world go round O R Strong crypto makes the world safe If crypto is outlawed only outlaws will have crypto Fingerprint(photo soon): 259D 59F7 D98C CD73 1ACD 54Ea 6C43 4877 8907 E9E5 ================================================ http://dcs.ex.ac.uk/~aba/rsa/rsa-details.html BEGIN EXPORT OF CRYPTOGRAPHY
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1 lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
---------- Forwarded message ---------- Date: Thu, 13 Aug 1998 20:38:21 +0100 From: Duncan Simpson <dps@IO.STARGATE.CO.UK> To: BUGTRAQ@netspace.org Subject: Linux 2.1.115 devpts bug improved fix
After reading more source code here is a better fix to the linux 2.1.115 devpts bounds checking bug. This version bears the precious previous by adding a -ve entry in the cache for next time.
--- linux/fs/devpts/root.c.dist Thu Aug 13 17:54:17 1998 +++ linux/fs/devpts/root.c Thu Aug 13 20:33:50 1998 @@ -159,10 +159,12 @@ entry += (*p++ - '0'); } } - - dentry->d_inode = sbi->inodes[entry]; - if ( dentry->d_inode ) - dentry->d_inode->i_count++; + if (entry<sbi->max_ptys) /* Check range of number */ + { + dentry->d_inode = sbi->inodes[entry]; + if ( dentry->d_inode ) + dentry->d_inode->i_count++; + }
d_add(dentry, dentry->d_inode);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html
| |