Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 1998 13:02:47 -0700 (PDT)
From:      cmetz@inner.net
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   kern/6837: in_setpeeraddr() and in_setsockaddr() block on memory
Message-ID:  <199806022002.NAA29597@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         6837
>Category:       kern
>Synopsis:       in_setpeeraddr() and in_setsockaddr() block on memory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun  2 13:10:00 PDT 1998
>Last-Modified:
>Originator:     Craig Metz
>Organization:
NRL
>Release:        3.0-SNAP
>Environment:
>Description:
These two functions now MALLOC their address parameter inline rather
than having the address buffer passed in. They do so with M_WAITOK,
which will tsleep() the process indefinitely waiting for the memory.
Granted, if you're that short on memory on a BSD system, you'll have
bigger problems, but IMO these functions should kick ENOBUFS back up the
stack and get out of kernel mode (thus freeing up some other buffer
memory) rather than block the process.

>How-To-Repeat:

>Fix:

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806022002.NAA29597>