NetBSD/sys/compat/svr4
he 7a30544200 When implementing "read directory", when there are too many empty entries
in a row, and we need to try to read the next block, and have passed a
non-NULL cookie pointer to VOP_READDIR, ensure that we free the cookie
buffer before re-doing VOP_READDIR, so that we don't leak memory.
This fix is similar to nfs_serv.c revisions 1.115 + 1.124.

This should fix the long-standing problem observed by e.g. using Linux-
emulated programs to take backup of servers, which is one of the problems
which were reported in PR#42661.

Thanks to pooka@ for the hints for traversing the VOP* layer.
2010-03-03 08:20:38 +00:00
..
files.svr4 add missing glue file, otherwise the emulation will not work if 2010-02-14 11:54:03 +00:00
Makefile
svr4_acl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_dirent.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_errno.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_errno.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_exec_elf32.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_exec_elf64.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_exec.c Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
svr4_exec.h Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly 2009-12-10 14:13:48 +00:00
svr4_fcntl.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_fcntl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_filio.c More changes to improve kern_descrip.c. 2009-05-24 21:41:25 +00:00
svr4_filio.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_fuser.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_hrt.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ioctl.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
svr4_ioctl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ipc.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ipc.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_lwp.c Use lwp_getpcb() in compat code, clean from struct user. 2009-11-23 00:46:06 +00:00
svr4_lwp.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_misc.c When implementing "read directory", when there are too many empty entries 2010-03-03 08:20:38 +00:00
svr4_mman.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_mod.c Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
svr4_net.c If a multithreaded app closes an fd while another thread is blocked in 2009-12-20 09:36:05 +00:00
svr4_resource.c - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total 2009-03-29 01:02:48 +00:00
svr4_resource.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_schedctl.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_schedctl.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_siginfo.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_signal.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_signal.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_signo.c Minor typo in license 2008-05-10 11:49:37 +00:00
svr4_socket.c make this compile 2009-01-11 10:47:37 +00:00
svr4_socket.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_sockio.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_sockio.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_sockmod.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_stat.c merge christos-time_t 2009-01-11 02:45:45 +00:00
svr4_stat.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_statvfs.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_stream.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_stropts.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_syscall.h Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_syscallargs.h Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_syscalls.c Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_sysconfig.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_sysent.c Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_systeminfo.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_termios.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_termios.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_time.h merge christos-time_t 2009-01-11 02:45:45 +00:00
svr4_timod.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ttold.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ttold.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_types.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ucontext.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ulimit.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_ustat.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_util.h Make the emulations, exec formats, coredump, NFS, and the NFS server 2008-11-19 18:35:57 +00:00
svr4_utsname.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
svr4_wait.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
syscalls.conf
syscalls.master Convert the syscalls.master to a format from which it is easier 2009-01-13 22:27:43 +00:00