From: Hillf Danton <hdanton@sina.com>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Hillf Danton <hdanton@sina.com>, Tejun Heo <tj@kernel.org>,
agruenba@redhat.com, linux-mm@kvack.org,
Waiman Long <longman@redhat.com>,
linux-kernel@vger.kernel.org, rpeterso@redhat.com,
syzkaller-bugs@googlegroups.com,
syzbot <syzbot+f51cb4b9afbd87ec06f2@syzkaller.appspotmail.com>
Subject: Re: [syzbot] INFO: task hung in freeze_super (3)
Date: Sun, 8 Jan 2023 20:07:47 +0800 [thread overview]
Message-ID: <20230108120747.5268-1-hdanton@sina.com> (raw)
In-Reply-To: <45699174-cb58-d57d-4c72-c0ae7622aeac@I-love.SAKURA.ne.jp>
On 8 Jan 2023 20:11:55 +0900 Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
> On 2023/01/04 13:01, Hillf Danton wrote:
> >
> > syz-executor330/3631 kworker/0:1H/120
> > --- ---
> > down_write_nested(&s->s_umount);
> > glock_work_func()
> > down_write(&sb->s_umount);
> > flush_workqueue(glock_workqueue);
> >
> >
> > No deadlock is reported yet. Whyyy?
> > See if extending the aperture of wq->lockdep_map can catch it.
>
> As far as I tested, this patch did not change likeliness of hitting lockdep warning.
> I feel that it was just by chance that this test request was able to hit lockdep warning.
cpu0 cpu1
--- ---
lock A
work B runs
a) lock_map_acquire(&wq->lockdep_map);
__flush_workqueue
lock_map_acquire(&wq->lockdep_map);
lock_map_release(&wq->lockdep_map);
b) lock_map_acquire(&wq->lockdep_map);
lock A
Currently report of deadlock escapes in mode b) because worker takes workqueue
lockdep_map after flusher releases it.
After this change, mode b) could be caught with no exception.
cpu0 cpu1
--- ---
lock A
work B runs
a) lock_map_acquire(&wq->lockdep_map);
__flush_workqueue
lock_map_acquire(&wq->lockdep_map);
b) lock_map_acquire(&wq->lockdep_map);
lock A
prev parent reply other threads:[~2023-01-08 12:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <000000000000c921b105ef617f05@google.com>
2023-01-04 4:01 ` Hillf Danton
2023-01-04 7:45 ` [syzbot] [gfs2?] " syzbot
2023-01-08 11:11 ` [syzbot] " Tetsuo Handa
2023-01-08 12:07 ` Hillf Danton [this message]
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=20230108120747.5268-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=agruenba@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=longman@redhat.com \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=rpeterso@redhat.com \
--cc=syzbot+f51cb4b9afbd87ec06f2@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=tj@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