All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Zorro Lang <zlang@redhat.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: [xfstests generic/648] 64k directory block size (-n size=65536) crash on _xfs_buf_ioapply
Date: Sun, 21 Jan 2024 10:58:49 +1100	[thread overview]
Message-ID: <ZaxeOXSb0+jPYCe1@dread.disaster.area> (raw)
In-Reply-To: <20240120112600.phkv37z4nx3pj2jn@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com>

On Sat, Jan 20, 2024 at 07:26:00PM +0800, Zorro Lang wrote:
> On Fri, Jan 19, 2024 at 06:17:24PM +1100, Dave Chinner wrote:
> > Perhaps a bisect from 6.7 to 6.7+linux-xfs/for-next to identify what
> > fixed it? Nothing in the for-next branch really looks relevant to
> > the problem to me....
> 
> Hi Dave,
> 
> Finally, I got a chance to reproduce this issue on latest upstream mainline
> linux (HEAD=9d64bf433c53) (and linux-xfs) again.
> 
> Looks like some userspace updates hide the issue, but I haven't found out what
> change does that, due to it's a big change about a whole system version. I
> reproduced this issue again by using an old RHEL distro (but the kernel is the newest).
> (I'll try to find out what changes cause that later if it's necessary)
> 
> Anyway, I enabled the "CONFIG_XFS_ASSERT_FATAL=y" and "CONFIG_XFS_DEBUG=y" as
> you suggested. And got the xfs metadump file after it crashed [1] and rebooted.
> 
> Due to g/648 tests on a loopimg in SCRATCH_MNT, so I didn't dump the SCRATCH_DEV,
> but dumped the $SCRATCH_MNT/testfs file, you can get the metadump file from:
> 
> https://drive.google.com/file/d/14q7iRl7vFyrEKvv_Wqqwlue6vHGdIFO1/view?usp=sharing

Ok, I forgot the log on s390 is in big endian format. I don't have a
bigendian machine here, so I can't replay the log to trace it or
find out what disk address the buffer belongs. I can't even use
xfs_logprint to dump the log.

Can you take that metadump, restore it on the s390 machine, and
trace a mount attempt? i.e in one shell run 'trace-cmd record -e
xfs\*' and then in another shell run 'mount testfs.img /mnt/test'
and then after the assert fail terminate the tracing and run
'trace-cmd report > testfs.trace.txt'?

The trace will tell me what buffer was being replayed when the
failure occurred, and from there I can look at the raw dump of the
log and the buffer on disk and go from there...

>  [ 1707.044730] XFS (loop3): Mounting V5 Filesystem 59e2f6ae-ceab-4232-9531-a85417847238
>  [ 1707.061925] XFS (loop3): Starting recovery (logdev: internal)
>  [ 1707.079549] XFS (loop3): Bad dir block magic!

At minimum, this error message will need to be improved to tell us
what buffer failed this check....

-Dave.

-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2024-01-20 23:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-18 14:01 [xfstests generic/648] 64k directory block size (-n size=65536) crash on _xfs_buf_ioapply Zorro Lang
2023-12-18 17:48 ` Darrick J. Wong
2023-12-19  6:34   ` Zorro Lang
2023-12-25 13:38     ` Zorro Lang
2024-01-04  4:35       ` Darrick J. Wong
2024-01-18  1:59         ` Dave Chinner
2024-01-18  4:20 ` Dave Chinner
2024-01-19  1:38   ` Zorro Lang
2024-01-19  7:17     ` Dave Chinner
2024-01-20 11:26       ` Zorro Lang
2024-01-20 23:58         ` Dave Chinner [this message]
2024-01-22  7:23           ` Zorro Lang
2024-01-22 11:21             ` Dave Chinner
2024-01-22 13:18               ` Zorro Lang
2024-01-22 22:09                 ` Dave Chinner
2024-01-22 22:49                 ` Dave Chinner
2024-01-23  7:02                   ` Zorro Lang
2024-01-23 20:52                     ` Dave Chinner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZaxeOXSb0+jPYCe1@dread.disaster.area \
    --to=david@fromorbit.com \
    --cc=linux-xfs@vger.kernel.org \
    --cc=zlang@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.