NetBSD/sys/compat/svr4_32
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_32
Makefile
sed.script
svr4_32_acl.h
svr4_32_dirent.h
svr4_32_exec_elf32.c
svr4_32_exec.c
svr4_32_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_32_fcntl.c
svr4_32_fcntl.h
svr4_32_filio.c
svr4_32_fuser.h
svr4_32_hrt.h
svr4_32_ioctl.c
svr4_32_ioctl.h
svr4_32_ipc.c
svr4_32_ipc.h
svr4_32_lwp.c Use lwp_getpcb() in compat code, clean from struct user. 2009-11-23 00:46:06 +00:00
svr4_32_lwp.h
svr4_32_misc.c When implementing "read directory", when there are too many empty entries 2010-03-03 08:20:38 +00:00
svr4_32_mod.c
svr4_32_net.c If a multithreaded app closes an fd while another thread is blocked in 2009-12-20 09:36:05 +00:00
svr4_32_resource.c
svr4_32_resource.h
svr4_32_schedctl.c
svr4_32_schedctl.h
svr4_32_siginfo.h
svr4_32_signal.c
svr4_32_signal.h
svr4_32_socket.c
svr4_32_socket.h
svr4_32_sockio.c
svr4_32_sockio.h
svr4_32_stat.c
svr4_32_stat.h
svr4_32_statvfs.h
svr4_32_stream.c
svr4_32_stropts.h
svr4_32_syscall.h Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_32_syscallargs.h Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_32_syscalls.c Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_32_sysent.c Regen (new makesyscalls.sh) 2009-12-14 00:53:32 +00:00
svr4_32_termios.c
svr4_32_termios.h
svr4_32_time.h
svr4_32_timod.h
svr4_32_types.h
svr4_32_ucontext.h
svr4_32_ustat.h
svr4_32_util.h
syscalls.conf
syscalls.master