[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Testbed-admins] kernel memory leaks in FreeBSD NFS (patched)



Im running FreeBSD 6.3 and I applied the patch to the nfs_serv.c file.
I have 2 questions regarding the server faults:

1) After applying the patch and restarting ops I still see server faults increasing - am I forgetting to do something? compiling/installing (still new to freebsd)?
It does say 'nfsserver is up to date' if you do make nfsserver.
2) Could the server faults be increasing because of something else? Or is it just memory leaks? I havent seen an out of memory error yet on ops.

Thanks,
Adit


Robert P Ricci wrote:
Aha!

We do periodically run out of memory on our ops, and this certainly
could be it.

Nice detective work!

Thus spake Mike Ryan on Thu, Dec 03, 2009 at 02:02:05PM -0800:
tb-admins:

The DETER team recently uncovered a bug in FreeBSD's NFS code that
causes the kernel to leak memory. If left untreated this bug can exhaust
kernel memory, causing a panic. As far as we can tell, this affects all
versions of FreeBSD currently in production.

We submitted a patch which has been pushed into FreeBSD CVS. The file
affected is src/sys/nfsserver/nfs_serv.c:
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/nfsserver/nfs_serv.c?sortby=date

An NFS client which tries to delete an inexistent file will trigger the
bug. This can result from rebooting the ops node while experiments are
running.

To test if you've been affected, on your ops node run:

$ nfsstat | grep -A1 faults
Server Faults
            0

If this number is greater than zero (or worse, climbing), then your NFS
server has been leaking memory. Regardless, we recommend patching your
systems.


For more details about the problem, see the original PR:
http://www.freebsd.org/cgi/query-pr.cgi?pr=140853

Mike Ryan
_______________________________________________
Testbed-admins mailing list
Testbed-admins@flux.utah.edu
http://www.flux.utah.edu/mailman/listinfo/testbed-admins
_______________________________________________
Testbed-admins mailing list
Testbed-admins@flux.utah.edu
http://www.flux.utah.edu/mailman/listinfo/testbed-admins