Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-12 Thread Marcus Brinkmann
On Thu, Jul 12, 2001 at 04:34:45PM -0400, Roland McGrath wrote: > I didn't look closely, but now I am thinking twice. If the data is small > enough to fit inline, and you use a separate reply stub, then you can send > it without copying. That ought to be the common case. This would be what you

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-12 Thread Marcus Brinkmann
On Thu, Jul 12, 2001 at 04:34:45PM -0400, Roland McGrath wrote: > > On Wed, Jul 11, 2001 at 04:49:17PM -0400, Roland McGrath wrote: > > > That's fine by me if it's tested. BTW add -p to your diff switches. > > > > Actually, I goofed up. The arguments to the reply stub have not been > > changed

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-12 Thread Roland McGrath
> On Wed, Jul 11, 2001 at 04:49:17PM -0400, Roland McGrath wrote: > > That's fine by me if it's tested. BTW add -p to your diff switches. > > Actually, I goofed up. The arguments to the reply stub have not been > changed by my patch. In fact, as we now copy the user data all the time, a > sepe

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-12 Thread Marcus Brinkmann
On Thu, Jul 12, 2001 at 09:06:12PM +0200, Marcus Brinkmann wrote: > On Wed, Jul 11, 2001 at 04:49:17PM -0400, Roland McGrath wrote: > > That's fine by me if it's tested. BTW add -p to your diff switches. > > Actually, I goofed up. The arguments to the reply stub have not been > changed by my pa

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-12 Thread Marcus Brinkmann
On Wed, Jul 11, 2001 at 04:49:17PM -0400, Roland McGrath wrote: > That's fine by me if it's tested. BTW add -p to your diff switches. Actually, I goofed up. The arguments to the reply stub have not been changed by my patch. In fact, as we now copy the user data all the time, a seperate reply s

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-11 Thread Roland McGrath
That's fine by me if it's tested. BTW add -p to your diff switches. ___ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-11 Thread Marcus Brinkmann
On Wed, Jul 11, 2001 at 12:18:32AM +0200, Marcus Brinkmann wrote: > For the auth server, I will send a patch for review soon. Here it comes. I am not too happy about the macro magic, but it works out ok. The code for S_auth_getids is completely reduplicated in S_auth_server_authenticate. Do yo

Bug#102437: dealloc analysis for each server function, more bugs!

2001-07-10 Thread Marcus Brinkmann
On Sat, Jun 30, 2001 at 08:54:12PM -0700, Thomas Bushnell, BSG wrote: > Marcus Brinkmann <[EMAIL PROTECTED]> writes: > > > I would suggest dealloc + iohelp_return_malloced_buffer, as usually those > > uid vectors are small, and keeping them on one page each is a waste of > > space. > > iohelp_re

Bug#102437: dealloc analysis for each server function, more bugs!

2001-06-30 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > I would suggest dealloc + iohelp_return_malloced_buffer, as usually those > uid vectors are small, and keeping them on one page each is a waste of > space. iohelp_return_malloced_buffer is not available in auth, nor should it be just duplicated

Bug#102437: dealloc analysis for each server function, more bugs!

2001-06-30 Thread Marcus Brinkmann
On Wed, Jun 27, 2001 at 02:52:17PM +0200, Marcus Brinkmann wrote: [auth_getids] > This one is questionable. auth_getids uses idvec_copyout, which provides > the internal buffer: > > inline void idvec_copyout (struct idvec *idvec, uid_t **ids, uid_t *nids) > { > if (idvec->num > *nids) >

Bug#102437: dealloc analysis for each server function, more bugs!

2001-06-29 Thread Thomas Bushnell, BSG
Marcus Brinkmann <[EMAIL PROTECTED]> writes: > It just occured to me that it is probably safe to use malloc()'ed buffers, > as long as you don't use dealloc with them? It's a bit awkward, because > this is mixing Mach level with glibc level stuff. I don't know if it is > safe to return a buffer

Bug#102437: dealloc analysis for each server function, more bugs!

2001-06-27 Thread Marcus Brinkmann
Hi, ok, here a detailed analysis. It seems I found four other bugs along the way. ;) On Wed, Jun 27, 2001 at 12:35:25PM +0200, Marcus Brinkmann wrote: > routine proc_getprocinfo ( > process: process_t; > which: pid_t; > inout flags: int; > - out procinfo:

Bug#102437: dealloc analysis for each server function, more bugs!

2001-06-27 Thread Marcus Brinkmann
On Wed, Jun 27, 2001 at 02:52:17PM +0200, Marcus Brinkmann wrote: > So, this should not use dealloc. However, idvec->ids is NOT a mmap'ed > buffer! It is a malloced/realloced buffer (coming from > libshouldbeinlibc/idvec.c). > > Is it correct that this should better use iohelp_return_malloced_b