home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / kernel-s / v1.2 / patch-1.000 / patch-1.2.13
Text File  |  1995-08-02  |  3KB  |  119 lines

  1. diff -u --recursive --new-file v1.2.12/linux/Makefile linux/Makefile
  2. --- v1.2.12/linux/Makefile    Tue Jul 25 12:39:54 1995
  3. +++ linux/Makefile    Wed Jul 26 09:43:44 1995
  4. @@ -1,6 +1,6 @@
  5.  VERSION = 1
  6.  PATCHLEVEL = 2
  7. -SUBLEVEL = 12
  8. +SUBLEVEL = 13
  9.  
  10.  ARCH = i386
  11.  
  12. diff -u --recursive --new-file v1.2.12/linux/drivers/net/ppp.c linux/drivers/net/ppp.c
  13. --- v1.2.12/linux/drivers/net/ppp.c    Tue Jul 25 12:39:54 1995
  14. +++ linux/drivers/net/ppp.c    Thu Jul 27 09:08:11 1995
  15. @@ -1262,6 +1262,12 @@
  16.          } else goto wait;
  17.        }
  18.  
  19. +      i = verify_area (VERIFY_WRITE,buf,nr);
  20. +      if (i != 0) {
  21. +    ppp->us_rbuff_lock = 0;
  22. +    return i;
  23. +      }
  24. +
  25.        /* reset the time of the last read operation */
  26.        ppp->ddinfo.nip_rjiffies = jiffies;
  27.  
  28. @@ -1303,6 +1309,12 @@
  29.      current->timeout = 0;
  30.      PRINTKN (3,(KERN_DEBUG "ppp_read: sleeping\n"));
  31.      interruptible_sleep_on (&ppp->read_wait);
  32. +
  33. +    /* Ensure that the ppp device is still attached. */
  34. +    ppp = ppp_find(tty);
  35. +    if (!ppp || ppp->magic != PPP_MAGIC || !ppp->inuse)
  36. +      return 0;
  37. +      
  38.      if (current->signal & ~current->blocked)
  39.        return -EINTR;
  40.    } while (1);
  41. @@ -1354,6 +1366,10 @@
  42.      nr = ppp->mtu;
  43.    }
  44.  
  45. +  i = verify_area (VERIFY_READ,buf,nr);
  46. +  if (i != 0)
  47. +    return i;
  48. +
  49.    if (ppp_debug >= 3)
  50.      ppp_print_buffer ("write frame", buf, nr, USER_DS);
  51.  
  52. @@ -1363,6 +1379,12 @@
  53.      current->timeout = 0;
  54.      PRINTKN (3,(KERN_DEBUG "ppp_write: sleeping\n"));
  55.      interruptible_sleep_on(&ppp->write_wait);
  56. +
  57. +    /* Ensure that the ppp device is still attached. */
  58. +    ppp = ppp_find(tty);
  59. +    if (!ppp || ppp->magic != PPP_MAGIC || !ppp->inuse)
  60. +      return 0;
  61. +
  62.      if (current->signal & ~current->blocked)
  63.        return -EINTR;
  64.    }
  65. diff -u --recursive --new-file v1.2.12/linux/fs/block_dev.c linux/fs/block_dev.c
  66. --- v1.2.12/linux/fs/block_dev.c    Mon Jan 23 23:04:09 1995
  67. +++ linux/fs/block_dev.c    Tue Aug  1 10:05:32 1995
  68. @@ -197,6 +197,9 @@
  69.  
  70.      if (offset > size)
  71.          left = 0;
  72. +    /* size - offset might not fit into left, so check explicitly. */
  73. +    else if (size - offset > INT_MAX)
  74. +        left = INT_MAX;
  75.      else
  76.          left = size - offset;
  77.      if (left > count)
  78. diff -u --recursive --new-file v1.2.12/linux/fs/hpfs/hpfs_fs.c linux/fs/hpfs/hpfs_fs.c
  79. --- v1.2.12/linux/fs/hpfs/hpfs_fs.c    Sun Feb  5 14:44:32 1995
  80. +++ linux/fs/hpfs/hpfs_fs.c    Wed Jul 26 09:43:32 1995
  81. @@ -1297,7 +1297,7 @@
  82.      /*
  83.       * name not found.
  84.       */
  85. -
  86. +    brelse4(qbh);
  87.      return 0;
  88.  }
  89.  
  90. diff -u --recursive --new-file v1.2.12/linux/fs/nfs/dir.c linux/fs/nfs/dir.c
  91. --- v1.2.12/linux/fs/nfs/dir.c    Mon Jan 23 10:38:29 1995
  92. +++ linux/fs/nfs/dir.c    Wed Aug  2 09:52:08 1995
  93. @@ -248,7 +248,7 @@
  94.      entry->fhandle = *fhandle;
  95.      entry->fattr = *fattr;
  96.      entry->expiration_date = jiffies + (S_ISDIR(fattr->mode)
  97. -        ? NFS_SERVER(dir)->acdirmax : NFS_SERVER(dir)->acregmax);
  98. +        ? NFS_SERVER(dir)->acdirmin : NFS_SERVER(dir)->acregmin);
  99.  }
  100.  
  101.  static void nfs_lookup_cache_remove(struct inode *dir, struct inode *inode,
  102. diff -u --recursive --new-file v1.2.12/linux/fs/proc/inode.c linux/fs/proc/inode.c
  103. --- v1.2.12/linux/fs/proc/inode.c    Tue Jul 25 12:39:54 1995
  104. +++ linux/fs/proc/inode.c    Tue Aug  1 13:06:57 1995
  105. @@ -194,10 +194,9 @@
  106.          return;
  107.      }
  108.      ino &= 0x0000ffff;
  109. -    if (ino == PROC_PID_INO ||
  110. -        (p->dumpable && p->uid == p->euid && p->gid == p->egid)) {
  111. -        inode->i_uid = p->uid;
  112. -        inode->i_gid = p->gid;
  113. +    if (ino == PROC_PID_INO || p->dumpable) {
  114. +        inode->i_uid = p->euid;
  115. +        inode->i_gid = p->egid;
  116.      }
  117.      switch (ino) {
  118.          case PROC_PID_INO:
  119.