Possible race in the filesystem code (softupdates) ?

From: Martin Blapp (mb_at_imp.ch)
Date: 04/04/04

  • Next message: Ivan Voras: "Re: Possible race in the filesystem code (softupdates) ?"
    Date: Sun, 4 Apr 2004 22:55:59 +0200 (CEST)
    To: current@freebsd.org


    During testing I found that the following procedure is pretty dangerous
    and leads sometimes to a panic():

    cd /usr/ports/editors/openoffice-1.1
    make patch
    mv work work.old
    rm -rfd work.old &
    make patch &
    find work.old > /dev/null 2>&1

    The filesystem was mounted with softupdates.

    I'm trying to reproduce it tomorrow for a useful dump. I had it happen twice but
    was not able to take any notices because it happenend on a productive server.
    I can exclude any hardware problems. We use current from a week ago.

    Find(8) seems to trigger that bug while we are deleting this really huge
    work dir with ~200000 files in it and doing a stat on it at the same

    I'd call the bug pretty serious. I'll post more info after I got one
    more panic.

    Some other thing that scares me is that reading a filesystem with many many
    little files (as the openoffice work dir) slows down all IO operations. At
    BSDCon Matt Dillon talked to me about this issue and about his plan to solve it.

    Matt, did you make any progress here ? It is really scaring how slow UFS is
    in this area.

    freebsd-current@freebsd.org mailing list
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

  • Next message: Ivan Voras: "Re: Possible race in the filesystem code (softupdates) ?"

    Relevant Pages

    • Weekly Python Patch/Bug Summary
      ... Patch / Bug Summary ... http://python.org/sf/606098 closed by rhettinger ... http://python.org/sf/1088716 closed by loewis ...
    • [Full-Disclosure] RE: [kinda-but-not-really-Full-Disclosure-so-we-feel-warm-and-fuzzy] Re: <to va
      ... Because it must be realised that as soon as a patch and or advisory is ... there are global teams of people working to discover and exploit said bug. ... quiet and MS just released patches for 'undisclosed' problems... ... > engineer a ms patch to find the changed code and produce a working ...
    • Re: Getting rid of atomic_load_acq_int(&fdp->fd_nfiles)) from fget_unlocked
      ... looked at the patch 1. ... A cast of a value to a qualified type has no effect; ... using volatile semantics, the technique is to cast the address of the ... just the first bug in it. ...
    • RE: Mailslot bug (MS06-035) vs non-Mailslot bug (CVE-2006-3942)
      ... made patch for SRV.SYS. ... vulnerabilities that everyone is so afraid to talk about. ... the mailslot bug, and they didn't have any technical details to turn to, ... So keep on truckin Core Security, Michal Zalewski, and even ...
    • Re: Cant take skilled talent?
      ... least playing an easier version of the game than everyone else has. ... mind changing or removing the patch if TB emailed me about it. ... -fixing skilled bug is good ... The patch simply stops the monsters from growing too powerful compared to the ...