linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Is coredump_wait broken in 6.4-rc5?
Date: Tue, 6 Jun 2023 16:28:15 +0100	[thread overview]
Message-ID: <ZH9Qj5oCIfFBeoBo@casper.infradead.org> (raw)

Have you seen anything like this?  It could be one of my patches that
broke it:

00135 fio[39217]: segfault at 560494fe654c ip 00007fe9fb6b3e67 sp 00007ffc8f08b6d0 error 4 in libc.so.6[7fe9fb645000+155000] likely on CPU 0 (core 0, socket 0)
00135 Code: 1f 40 00 48 83 ec 08 48 8b 4f 08 48 89 c8 48 83 e0 f8 48 3b 04 07 0f 85 a9 00 00 00 f3 0f 6f 47 10 48 8b 57 18 66 48 0f 7e c0 <48> 3b 78 18 75 7b 48 3b 7a 10 75 75 48 8b 77 10 48 89 50 18 66 0f
00363 INFO: task fsstress:39216 blocked for more than 120 seconds.
00363       Not tainted 6.4.0-rc5-00028-gf824d48d50fc #391
00363 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
00363 task:fsstress        state:D stack:11496 pid:39216 ppid:39214  flags:0x00000002
00363 Call Trace:
[snip]
00363  wait_for_completion_state+0x11c/0x1e0
00363  do_coredump+0x265/0x15b0
00363  get_signal+0x904/0x9c0
00363  arch_do_signal_or_restart+0x1b/0x250
00363  exit_to_user_mode_prepare+0x99/0x100
00363  syscall_exit_to_user_mode+0x21/0x40

# cat /proc/39216/stack
[<0>] do_coredump+0x265/0x15b0
[<0>] get_signal+0x904/0x9c0
[<0>] arch_do_signal_or_restart+0x1b/0x250
[<0>] exit_to_user_mode_prepare+0x99/0x100
[<0>] syscall_exit_to_user_mode+0x21/0x40
[<0>] do_syscall_64+0x40/0x80
[<0>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

# cat /proc/39214/stack
[<0>] do_wait+0x161/0x2f0
[<0>] kernel_wait4+0x8a/0x110
[<0>] __do_sys_wait4+0x67/0x80
[<0>] __x64_sys_wait4+0x17/0x20
[<0>] do_syscall_64+0x34/0x80
[<0>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

Those are the only two pids running fsstress.

# ps -aux | grep fsstress
root       39214  0.0  0.0   2580  1664 ?        S    15:11   0:00 ./ltp/fsstress -p 1 -n999999999 -f setattr 0 -ffsync 0 -fsync 0 -ffdatasync 0 -f setattr 1 -d /mnt/scratch/fsstress.39009
root       39216  0.3  0.3   8024  6792 ?        D    15:11   0:02 ./ltp/fsstress -p 1 -n999999999 -f setattr 0 -ffsync 0 -fsync 0 -ffdatasync 0 -f setattr 1 -d /mnt/scratch/fsstress.39009

Obviously fio shouldn't've segfaulted in the first place, but sometimes
when it does, fsstress hangs during coredump, and that also seems like
it shouldn't happen.

                 reply	other threads:[~2023-06-06 15:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=ZH9Qj5oCIfFBeoBo@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=ebiederm@xmission.com \
    --cc=linux-fsdevel@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).