HardenedBSD/lib
Doug Rabson dfdcada31e Add the new kernel-mode NFS Lock Manager. To use it instead of the
user-mode lock manager, build a kernel with the NFSLOCKD option and
add '-k' to 'rpc_lockd_flags' in rc.conf.

Highlights include:

* Thread-safe kernel RPC client - many threads can use the same RPC
  client handle safely with replies being de-multiplexed at the socket
  upcall (typically driven directly by the NIC interrupt) and handed
  off to whichever thread matches the reply. For UDP sockets, many RPC
  clients can share the same socket. This allows the use of a single
  privileged UDP port number to talk to an arbitrary number of remote
  hosts.

* Single-threaded kernel RPC server. Adding support for multi-threaded
  server would be relatively straightforward and would follow
  approximately the Solaris KPI. A single thread should be sufficient
  for the NLM since it should rarely block in normal operation.

* Kernel mode NLM server supporting cancel requests and granted
  callbacks. I've tested the NLM server reasonably extensively - it
  passes both my own tests and the NFS Connectathon locking tests
  running on Solaris, Mac OS X and Ubuntu Linux.

* Userland NLM client supported. While the NLM server doesn't have
  support for the local NFS client's locking needs, it does have to
  field async replies and granted callbacks from remote NLMs that the
  local client has contacted. We relay these replies to the userland
  rpc.lockd over a local domain RPC socket.

* Robust deadlock detection for the local lock manager. In particular
  it will detect deadlocks caused by a lock request that covers more
  than one blocking request. As required by the NLM protocol, all
  deadlock detection happens synchronously - a user is guaranteed that
  if a lock request isn't rejected immediately, the lock will
  eventually be granted. The old system allowed for a 'deferred
  deadlock' condition where a blocked lock request could wake up and
  find that some other deadlock-causing lock owner had beaten them to
  the lock.

* Since both local and remote locks are managed by the same kernel
  locking code, local and remote processes can safely use file locks
  for mutual exclusion. Local processes have no fairness advantage
  compared to remote processes when contending to lock a region that
  has just been unlocked - the local lock manager enforces a strict
  first-come first-served model for both local and remote lockers.

Sponsored by:	Isilon Systems
PR:		95247 107555 115524 116679
MFC after:	2 weeks
2008-03-26 15:23:12 +00:00
..
bind
csu
libalias -Don't pass down the entire pkt to ProtoAliasIn, ProtoAliasOut, FragmentIn 2008-03-12 11:58:29 +00:00
libarchive Add MLINK for archive_write_close. 2008-03-21 11:10:20 +00:00
libatm
libautofs
libbegemot
libbluetooth
libbsm
libbsnmp
libbz2
libc Add the new kernel-mode NFS Lock Manager. To use it instead of the 2008-03-26 15:23:12 +00:00
libc_r Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
libcalendar
libcam
libcom_err
libcompat
libcrypt
libdevinfo
libdevstat
libdisk - Make Disk_Names() behave as documented in libdisk(3): return an array 2008-02-15 21:19:15 +00:00
libedit
libelf Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
libexpat
libfetch s/wait/delta/ to avoid namespace collision. 2008-03-20 09:55:27 +00:00
libftpio
libgeom
libgpib
libgssapi
libipsec
libipx
libkiconv
libkse Fix some "in in" typos in comments. 2008-03-26 07:32:08 +00:00
libkvm - Don't inspect the P_SA flag. It's being removed. 2008-03-12 10:00:33 +00:00
libmagic
libmd
libmemstat
libmilter Switch libmilter from select(2) to poll(2) so milters are not limited 2008-02-17 05:14:47 +00:00
libmp
libncp
libnetgraph
libngatm
libopie
libpam
libpcap
libpmc - Document Pentium and Pentium MMX events. 2008-03-14 06:22:03 +00:00
libradius
librpcsvc
librt
libsbuf
libsdp Add mandatory "security description" SDP parameter to the PANU profile 2008-03-19 00:06:30 +00:00
libsm
libsmb
libsmdb
libsmutil
libstand
libtacplus
libtelnet
libthr Compile libthr with warnings. 2008-03-25 13:28:12 +00:00
libthread_db - Restore kse.h in this directory so other tools don't find it by mistake. 2008-03-23 09:38:11 +00:00
libufs
libugidfw
libusbhid
libutil Merge changes from NetBSD on humanize_number.c, 1.8 -> 1.13 2008-03-08 21:55:59 +00:00
libvgl
libwrap
liby
libypclnt
libz
msun 1 << 47 needs to be written 1ULL << 47. 2008-03-02 20:16:55 +00:00
ncurses - Remove duplicate tputs.3 from MLINK. As we use termcap in the bsae, remove 2008-02-13 14:34:39 +00:00
Makefile - Remove libkse and related support code in libpthread from the build. 2008-03-12 09:49:39 +00:00
Makefile.inc