xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 7632] New: Race: a lock should be acquired before cal

To: xfs-masters@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 7632] New: Race: a lock should be acquired before calling bhv_base_unlocked
From: bugme-daemon@xxxxxxxxxxxxxxxxxxx
Date: Mon, 4 Dec 2006 22:50:22 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://bugzilla.kernel.org/show_bug.cgi?id=7632

           Summary: Race: a lock should be acquired before calling
                    bhv_base_unlocked
    Kernel Version: 2.6.18
            Status: NEW
          Severity: normal
             Owner: xfs-masters@xxxxxxxxxxx
         Submitter: tammy000@xxxxxxxxx


Potential Data Race: a lock should be acquired before calling bhv_base_unlocked
according to comments before bhv_base. However, in the following 
call chain, no lock is acquired before calling 
435         bdp = bhv_base_unlocked(VN_BHV_HEAD(vp));
(This code is in file fs/xfs/linux-2.6/xfs_ioctl.c)

The call chain is:
xfs_ioctl  calls
xfs_fssetdm_by_handle calls
bhv_base_unlocked

In the entire call chain, no lock is acquired for calling bhv_base_unlocked, and
xfs_ioctl can be exposed functions outside the module, which can be very 
dangerous.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 7632] New: Race: a lock should be acquired before calling bhv_base_unlocked, bugme-daemon <=