Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Aug 2005 12:15:21 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/jls jls.c
Message-ID:  <200508151215.j7FCFMXw056329@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2005-08-15 12:15:21 UTC

  FreeBSD src repository

  Modified files:
    usr.sbin/jls         jls.c 
  Log:
  Not sure why, but SYSCTL_OUT() can sometimes keep returning ENOMEM
  in sysctl_jail_list(). Because of this, jls(8) could enter into
  an endless loop. The strange thing is, that we can call jls(8) while
  the other one is in loop and it will succeed - SYSCTL_OUT() will
  not return ENOMEM there.
  
  Maybe SYSCTL_OUT() returns first ENOMEM, because there is no memory,
  but is marking some memory range as wired even on failure and another
  SYSCTL_OUT() calls are not going to succeed, because process exceeds
  limit of wired memory? ENOVMCLUE.
  
  Anyway. Fix jls(8) to ignore ENOMEM and retry only 4 times.
  
  Submitted by:   Niklas Saers
  PR:             kern/79245
  MFC after:      3 days
  
  Revision  Changes    Path
  1.4       +17 -11    src/usr.sbin/jls/jls.c



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