mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: syzbot <syzbot+611be8174be36ca5dbc9@syzkaller.appspotmail.com>
Cc: cem@kernel.org, chandan.babu@oracle.com, djwong@kernel.org,
	linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org,
	syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [xfs?] INFO: task hung in xfs_ail_push_all_sync (2)
Date: Thu, 17 Oct 2024 11:53:21 +1100	[thread overview]
Message-ID: <ZxBgAU7aasIzcBfj@dread.disaster.area> (raw)
In-Reply-To: <67104ab3.050a0220.d9b66.0175.GAE@google.com>

On Wed, Oct 16, 2024 at 04:22:27PM -0700, syzbot wrote:
> Hello,
> 
> syzbot found the following issue on:
> 
> HEAD commit:    09f6b0c8904b Merge tag 'linux_kselftest-fixes-6.12-rc3' of..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=14af3fd0580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=7cd9e7e4a8a0a15b
> dashboard link: https://syzkaller.appspot.com/bug?extid=611be8174be36ca5dbc9
> compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=16c7705f980000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=14d2fb27980000

I explained this last time syzbot triggered this: this is a syzbot
configuration problem, not a filesystem bug.

[   96.418071][ T5112] XFS (loop0): Mounting V5 Filesystem c496e05e-540d-4c72-b591-04d79d8b4eeb
[   96.593743][ T5112] XFS (loop0): Ending clean mount
[   96.791357][ T5112] loop0: detected capacity change from 32768 to 0
[   96.814808][ T5127] xfsaild/loop0: attempt to access beyond end of device
[   96.814808][ T5127] loop0: rw=4097, sector=2, nr_sectors = 1 limit=0
[   96.851235][ T5127] xfsaild/loop0: attempt to access beyond end of device
[   96.851235][ T5127] loop0: rw=4097, sector=24, nr_sectors = 8 limit=0
[   96.860284][    T9] XFS (loop0): metadata I/O error in "xfs_buf_ioerror_alert_ratelimited+0x7b/0x1e0" at daddr 0x2 len 1 error 5
[   96.886045][    T9] kworker/0:1: attempt to access beyond end of device
[   96.886045][    T9] loop0: rw=4097, sector=2, nr_sectors = 1 limit=0
[   96.900489][ T5127] xfsaild/loop0: attempt to access beyond end of device
[   96.900489][ T5127] loop0: rw=4097, sector=32, nr_sectors = 8 limit=0
[   96.932892][    T9] kworker/0:1: attempt to access beyond end of device
[   96.932892][    T9] loop0: rw=4097, sector=24, nr_sectors = 8 limit=0
[   96.940364][ T5127] xfsaild/loop0: attempt to access beyond end of device
[   96.940364][ T5127] loop0: rw=4097, sector=8832, nr_sectors = 64 limit=0
.....

And so it goes until something tries to freeze the filesystem and
gets stuck waiting for writeback of metadata that is not making
progress because XFS defaults to -retry metadata write errors
forever- until the filesystem is shut down.

If the user expects an XFS filesystem to fail fast when they
accidentally shrink the block device under a mounted filesytem, then
they need to configure XFS to fail metadata IO fast. Otherwise
metadata will remain dirty and be retried until the filesystem is
shut down or the error behaviour is reconfigured.

Please fix your syzbot configurations and/or tests that screw with
the block device under filesystems to configure XFS filesystems to
fail fast so that these tests no longer generate unwanted noise.

#syz invalid

-Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2024-10-17  0:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-16 23:22 syzbot
2024-10-17  0:53 ` Dave Chinner [this message]
2024-10-18 10:13   ` Aleksandr Nogikh
2024-10-21 22:44     ` 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=ZxBgAU7aasIzcBfj@dread.disaster.area \
    --to=david@fromorbit.com \
    --cc=cem@kernel.org \
    --cc=chandan.babu@oracle.com \
    --cc=djwong@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=syzbot+611be8174be36ca5dbc9@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®