cvs commit: src/sbin/sysctl sysctl.c

Ruslan Ermilov ru at FreeBSD.org
Wed Sep 6 13:15:44 PDT 2006


ru          2006-09-06 20:15:43 UTC

  FreeBSD src repository

  Modified files:
    sbin/sysctl          sysctl.c 
  Log:
  While convenient, avoid using alloca() for reasons specified in
  the BUGS section of the alloca(3) manpage.  In particular, when
  the number of TCP sockets is several tens of thousand, trying to
  "sysctl -a" would SIGSEGV on the net.inet.tcp.pcblist entry (it
  would exceed the stacksize ulimit, in an undetectable manner).
  
  Reported by:    Igor Sysoev
  
  Revision  Changes    Path
  1.75      +20 -4     src/sbin/sysctl/sysctl.c


More information about the cvs-src mailing list