| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches |
| From: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
| Date: | Sun, 19 Nov 2006 21:50:57 -0600 |
| Cc: | xfs@xxxxxxxxxxx |
| In-reply-to: | <455CE1E3.7020703@sandeen.net> |
| References: | <455CB54F.8080901@sandeen.net> <455CE1E3.7020703@sandeen.net> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Thunderbird 1.5 (X11/20060313) |
Eric Sandeen wrote:
Eric Sandeen wrote:see also https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=212201 here's a testcase to corrupt it FWIW. Russell has a slightly different one derived from this.
remount() {
umount mnt
xfs_db -r fsfile2 -c "inode 131" -c "p core.forkoff" -c "p u" -c "p a"
mount -o loop fsfile2 mnt/
}umount mnt/ rm -f fsfile2 mkfs.xfs -dfile,name=fsfile2,size=100m -iattr=2 mount -o loop fsfile2 mnt/ mkdir mnt/dir setfattr -n user.rity.selinux -v user_foo:blah_foo:mnt_what:0 mnt/dir/ for I in `seq 10 20`; do touch mnt/file$I; done for I in `seq 100 700`; do touch mnt/dir/file$I; done remount for I in `seq 1000 1400`; do touch mnt/dir/file$I; done #remount # works if we do remount here setfattr -n user.rity.selinux -v user_foo:blah_foo:mnt_what:0 mnt/dir/ echo "unmounting" umount mnt/ xfs_db -r fsfile2 -c "inode 131" -c "p core.forkoff" -c "p u" -c "p a" -c "type text" -c "p" Run it and you'll get the bmap root block from the wrong offset; it'll be "0" -Eric |
| Previous by Date: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Nathan Scott |
|---|---|
| Next by Date: | Re: [PATCH][RFC][resend] potential NULL pointer deref in XFS on failed mount, Jesper Juhl |
| Previous by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Eric Sandeen |
| Next by Thread: | Re: [PATCH] (and bad attr2 bug) - pack xfs_sb_t for 64-bit arches, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |