Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2008 14:58:42 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm swap_pager.c
Message-ID:  <200801081458.m08Ewg0C021135@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2008-01-08 14:58:42 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               swap_pager.c 
  Log:
  When MAC is enabled in the kernel, fix a panic triggered by a locking
  assertion hit in swapoff_one() when we un-mount a swap partition.  We
  should be using curthread where we used thread0 before.  This change
  also replaces the thread argument with a credential argument, as the
  MAC framework only requires the cred.
  
  It should be noted that this allows the machine to be rebooted without
  panicing with "cannot differ from curthread or NULL" when MAC is enabled.
  
  Submitted by:   rwatson
  Reviewed by:    attilio
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.298     +8 -8      src/sys/vm/swap_pager.c



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