Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2006 03:37:12 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libmemstat memstat_uma.c
Message-ID:  <200602140337.k1E3bCus049645@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2006-02-14 03:37:12 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    lib/libmemstat       memstat_uma.c 
  Log:
  Merge memstat_uma.c:1.16 from HEAD to RELENG_6:
  
    The uma_zone data structure defines the size of its uz_cpu[] array as 1,
    but then sizes the containing data structure at run-time to make room
    for per-cpu cache data.  Modify libmemstat to separately allocate a
    buffer to hold per-cpu cache data, sized based on the run-time mp_maxid
    variable when using libkvm to access UMA data.  This avoids reading
    invalid cache data from beyond the end of the uma_zone data structure
    on the stack, which can result in invalid statistics and/or reads from
    invalid kernel addresses.
  
  Approved by:    re (scottl)
  
  Revision  Changes    Path
  1.7.2.9   +24 -2     src/lib/libmemstat/memstat_uma.c



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