All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Björn Bärtschi" <linuxsatellite@gmail.com>
To: syzbot+144a1c0e22e53a08ef5a@syzkaller.appspotmail.com
Cc: axboe@kernel.dk, cgroups@vger.kernel.org, josef@toxicpanda.com,
	linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	syzkaller-bugs@googlegroups.com, tj@kernel.org
Subject: Re: [syzbot] [block?] [cgroups?] possible deadlock in blkg_conf_prep
Date: Wed,  2 Dec 2026 20:36:31 +0100	[thread overview]
Message-ID: <20261202193633.1258494-1-linuxsatellite@gmail.com> (raw)
In-Reply-To: <6a807bfd.f7a79266.2f965f.0008.GAE@google.com>

#syz fix: block: don't enter reclaim under rq_qos_mutex

Commit 045cbfc369f5 (v7.4-rc1) switched the radix_tree_preload() in
blkg_conf_prep() to GFP_NOIO, which removes the blkcg_mutex ->
fs_reclaim edge of this cycle. That also covers the change proposed in
"[PATCH] blk-cgroup: use GFP_NOIO for radix tree preload in
blkg_conf_prep". syzbot has not seen the crash since the merge.

I checked it on v7.4-rc5 with a small trigger: write
"<loop0 maj:min> wiops=100" to io.max of a fresh child cgroup, once per
CPU via taskset. The splat only shows when radix_tree_preload() really
allocates, i.e. on a CPU whose preload pool was never filled, so I used
a 4-CPU guest.

- with 045cbfc369f5 reverted: lockdep reports the same blkcg_mutex /
  q_usage_counter(io) / fs_reclaim cycle, with __radix_tree_preload()
  <- blkg_conf_prep() as the new edge (2 of 2 runs);
- with 045cbfc369f5 applied: 3 of 3 runs clean.

The syzbot C reproducer did not trigger it in my guest, with or without
the fix.

The analysis was done with the help of an AI assistant (Claude); I
reviewed the results.

Björn

  parent reply	other threads:[~2026-12-02 19:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-15 14:47 [syzbot] [block?] [cgroups?] possible deadlock in blkg_conf_prep syzbot
2026-08-21  9:20 ` syzbot
2026-08-29  0:33 ` syzbot
2026-12-02 19:36 ` Björn Bärtschi [this message]
     [not found] <db1a2ef9-0e68-4461-8fbf-b4e37093f24an@googlegroups.com>
2026-08-31  3:17 ` syzbot
     [not found] <96064883-7d31-4ba9-b849-bc29f734afcan@googlegroups.com>
2026-08-31  3:50 ` syzbot
     [not found] <f1e20018-8314-4400-9c73-d0a3b972eb0fn@googlegroups.com>
2026-08-31  5:43 ` syzbot

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=20261202193633.1258494-1-linuxsatellite@gmail.com \
    --to=linuxsatellite@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=cgroups@vger.kernel.org \
    --cc=josef@toxicpanda.com \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+144a1c0e22e53a08ef5a@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 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.