1. 02 5月, 2008 2 次提交
    • A
      [PATCH] remove horrors with irix tty ioctls handling · bf7da7bc
      Al Viro 提交于
      Existing code in there (get_tty(), etc.) is both severely
      racy *and* pointless: ioctls in question have Linux equivalents
      and there's no need to play silly buggers in irix_ioctl() -
      just need to replace arguments and, in case of TIOCGSID,
      deal with API differences - Linux one expects pid_t __user *
      while Irix one does unsigned long __user *.  BFD...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      bf7da7bc
    • A
      [PATCH] fix file and descriptor handling in perfmon · 74d92abc
      Al Viro 提交于
      Races galore...  General rule: as soon as it's in descriptor table,
      it's over; another thread might have started IO on it/dup2() it
      elsewhere/dup2() something *over* it/etc.  fd_install() is the very
      last step one should take - it's a point of no return.
      
      Besides, the damn thing leaked on failure exits...
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      74d92abc
  2. 01 5月, 2008 38 次提交