search for: mmalloc

Displaying 6 results from an estimated 6 matches for "mmalloc".

Did you mean: kmalloc
2002 Jun 26
0
IRIX 6.5 patch for Compression with UsePrivilegeSeparation
...+ AC_DEFINE(HAVE_MMAP_DEV_ZERO) ;; *-*-linux*) no_dev_ptmx=1 --- ./monitor_mm.c Tue Jun 25 20:29:03 2002 +++ ../openssh-3.4p1/./monitor_mm.c Wed Jun 26 17:54:29 2002 @@ -71,6 +71,9 @@ { void *address; struct mm_master *mm; +#if defined(HAVE_MMAP_DEV_ZERO) + int fd_zero; +#endif if (mmalloc == NULL) mm = xmalloc(sizeof(struct mm_master)); @@ -84,7 +87,16 @@ */ mm->mmalloc = mmalloc; -#ifdef HAVE_MMAP_ANON_SHARED +#if defined(HAVE_MMAP_DEV_ZERO) + fd_zero = open ("/dev/zero", O_RDWR); + if (!fd_zero) + fatal("open(/dev/zero): %s", strerror(errno)); + a...
2002 Jul 27
1
Patch to OpenSSH-3.4p1/monitor_mm.c for Linux 2.0
...ncluding the patch to config.h---if there's a better name for it, please, by all means, change it. Thanks for your time and consideration. Sean --- openssh-3.4p1/monitor_mm.c Tue Jun 25 20:29:03 2002 +++ openssh-3.4p1.new/monitor_mm.c Fri Jul 26 03:00:35 2002 @@ -85,10 +85,24 @@ mm->mmalloc = mmalloc; #ifdef HAVE_MMAP_ANON_SHARED +# ifdef USE_MMAP_DEV_ZERO + { + int fh; + + fh = open("/dev/zero",O_RDWR); + if (fh == -1) + fatal("mmap(`/dev/zero'): %s",strerror(errno)); + + address = mmap(NULL,size,PROT_WRITE|PROT_READ,MAP_PRIVATE,fh,0); + if (...
2002 Jun 25
2
Help wanted: configure test for busted mmap
Linux 2.2 (and probably others) have a deficient mmap which has caused a number of problems (e.g. bug #285). A workaround is in development, but it would be helpful to have a configure test to detect the bad mmaps(). Any takers? -d
2002 Jun 25
2
Linux 2.2 + borken mmap() round 1
...itor_mm.c =================================================================== RCS file: /var/cvs/openssh/monitor_mm.c,v retrieving revision 1.10 diff -u -r1.10 monitor_mm.c --- monitor_mm.c 7 Jun 2002 01:57:25 -0000 1.10 +++ monitor_mm.c 25 Jun 2002 00:16:09 -0000 @@ -84,13 +84,11 @@ */ mm->mmalloc = mmalloc; -#if defined(HAVE_MMAP) && defined(MAP_ANON) +#ifdef HAVE_MMAP_ANON_SHARED address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); - if (address == MAP_FAILED) - fatal("mmap(%lu): %s", (u_long)size, strerror(errno)); #else - fatal(&quot...
2002 Jun 25
1
[Bug 259] UsePrivilegeSeparation crashed sshd under Linux 2.2
...llowing is a quick hack to get openssh to compile on linux 2.2: diff -ur openssh-3.3p1-orig/monitor_mm.c openssh-3.3p1/monitor_mm.c --- openssh-3.3p1-orig/monitor_mm.c Fri Jun 7 03:57:25 2002 +++ openssh-3.3p1/monitor_mm.c Tue Jun 25 10:06:06 2002 @@ -84,6 +84,7 @@ */ mm->mmalloc = mmalloc; +#undef MAP_ANON #if defined(HAVE_MMAP) && defined(MAP_ANON) address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); diff -ur openssh-3.3p1-orig/servconf.c openssh-3.3p1/servconf.c --- openssh-3.3p1-orig/servconf.c Fri Jun 21 08...
2002 Jun 25
3
3.3p1 patch for Solaris 2.6
...and compression"); --- work.i386/openssh-3.3p1/monitor_mm.c- Tue Jun 25 23:42:02 2002 +++ work.i386/openssh-3.3p1/monitor_mm.c Tue Jun 25 23:43:11 2002 @@ -71,6 +71,9 @@ { void *address; struct mm_master *mm; +#if defined(HAVE_MMAP) && !defined(MAP_ANON) + int fd; +#endif if (mmalloc == NULL) mm = xmalloc(sizeof(struct mm_master)); @@ -87,6 +90,13 @@ #if defined(HAVE_MMAP) && defined(MAP_ANON) address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED, -1, 0); + if (address == MAP_FAILED) + fatal("mmap(%lu): %s", (u_long)size, strerror(...