xfs
[Top] [All Lists]

Re: Why problems with mount and strace

To: "Blizbor (IMA)" <tb670725@xxxxxx>
Subject: Re: Why problems with mount and strace
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 26 Apr 2004 12:13:25 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <3F716CB2.6010805@ima.pl>
Organization: Eric Conspiracy Secret Labs
References: <3F716CB2.6010805@ima.pl>
Sender: linux-xfs-bounce@xxxxxxxxxxx
I came across this again, and I have an answer for you... at least
relating to today's code.

xfs mount tries to start linvfs_xfs_syncd, which invokes a
kernel_thread(), which contains this code:


         /* lock out any potential ptracer */
         task_lock(task);
         if (task->ptrace) {
                 task_unlock(task);
                 return -EPERM;
         }

for security reasons... in short, when stracing, linvfs_xfs_syncd() fails, 
and hence the mount fails.

-Eric


On Wed, 2003-09-24 at 05:06, Blizbor (IMA) wrote:
> Hi,
> 
> I have tested something and I have found weird behaviour.
> 
> I repeated the same for fstype in ext2, jfs, reiserfs and xfs curious 
> how mkfs and mount
> are working (trying to trace whats wrong beetween drbd and xfs)
> 
> strace -o mkfs.${fstype}.txt -ff mkfs.${fstype} /dev/xxx
> strace -o mount.${fstype} /dev/xxx /mountpoint
> 
> I've got all mkfs logs.
> I've got all but xfs logs for mount.
> 
> Telling the trueth, I've got log of mounting xfs but something weird 
> happened.
> Mount without strace was working fine but "strace mount" was failed.
> (No such device, bad options ... easy to reproduce)
> Why I can't mount xfs and strace it ?
> 
> Regards,
> Blizbor
-- 
Eric Sandeen      [C]XFS for Linux   http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.          651-683-3102


<Prev in Thread] Current Thread [Next in Thread>
  • Re: Why problems with mount and strace, Eric Sandeen <=