From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796240211; b=w/q6eK1DSH3lAVSh4IV9v6V0GuNiRHXhtWvmpqKZDOk9C7ywqrK2RZ4vPh1BeCjgfZFR F4VDS0q3zBxhq1+O9KxnZIrz9q0nCixPFlrOFcpjK1qGscCDElDFTLnIx0YpJ9S5zq1Wq uanLuGOCbp/l7bgNut4GvODNh/ThMrITjz7wEwEAVpf6WKuapnS3q4NGaMoH43aNIuRUr bI00UVL/X80IZG3q7+DPH3S3ghbEQV1LxLjtAHkrKD0GGkqISS2zagTeVlzrtghmX7K8I KdUtkUf7d5yNf1q1itVXfmHhRJMlwTfDaXQem7cTnd3jbFMbOOUksTLI2X8RXBGpNEg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796240211; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=qwmOmieqOGzT4IoLKhV92eQ8oTB0H4jQlW85fEIHA+E=; b=tLU/zCmKdjnlljr5WxhybsqAj6cKzcgS7Xd5EmmAmskcqlLoVR6+xv5Qe3OwD0+mq7Vb bUbd4T/Wa8QE7OwaBtXlDcHprzEXra2DvI2ROi8b5AncwUg7cXe74ZqMxumkCnEwJLRv3 FwtbdrFVLSdAKa8ih7f8q3Wz78bpSzwprCl9AynH+FlXtJV73WzJhqv6jkPxmsvHCY9iG LHYfdt12N0o7eOU+syUA28/nhdblOME9tvhOrP0JzC0IkHbL0drKHxwuHvgQSkQ9tMCq1 4D85y5/ozPNUTO7Fmomu4SUrSRYqw4yTdcmiOaXtqBoVbWnR2kk+GzyBJY8feDxs8EQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=IlJIqQV+; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79FB9606A322 for ; Wed, 2 Dec 2026 19:36:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 79FB9606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=IlJIqQV+ Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso105321785e9.0 for ; Wed, 02 Dec 2026 11:36:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796240210; x=1796845010; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=qwmOmieqOGzT4IoLKhV92eQ8oTB0H4jQlW85fEIHA+E=; b=IlJIqQV+uZGQSEtShWnZOnL3Q5KEGo7GCz9ieoPoUnIEqaMulqTJSkdkc+trK9qMe3 oRPV57y7xENLHLu8j18lnZ+dfOGcTSnDC8LWkssirl7+YHiyuh53K2yop9jKTKXHCJ0o QpcjXZlbqFYsM2Hw/LBhOyVOsFea9eIkwtepNXVRTN1A2GQhVvJwDblrIUKNUsFuMGgh je/3lnSHRGZ2W0QuzWqM732eVUPzG6s/Z2TEku85hhkdqbBSzdfsFAnqVBZOvml1knE+ 2aopvKV13iJmto6aET57N8g2Cnnp+cgqa28jWYL7Ib3OKxcqXX231IrZoAZcSa+4gXVs ObSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796240210; x=1796845010; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=qwmOmieqOGzT4IoLKhV92eQ8oTB0H4jQlW85fEIHA+E=; b=UD1meyB66UjaAku9Ra7nXAwvKb4StbcbTQb0UHaAJfSsqYxBk2w4iyo6PevNMew4+P sr81iL8OD51N8Y5CzmPqsjB1EIZpb4dYCAweIAEWkQelfcDXonzye8u0OWSUFyjNDKy1 +ULoc4Xf+icIQ/izbDF82wwt5fKILUscVZN5uwuqq4pIeYnolyU7wxMJ0vJfVF5gpapw Ntv5RcwJO2BQdNnPcHXAVaOu69MZsFqALB7lvTt44v6WRneSL33+oWn3/akPRTe2UM7n dMTCm9fW8MFi0/KE0S79LNbEWuDwOOMbRTDDm0sn/96dWpEqo8J5WtAgkNcGSZA4iAwd CwXg== X-Forwarded-Encrypted: i=1; AL+hErFVSZkEOhG8dOp+aIFxneERBn4SXgmWorX3vnWco7r9i0p8K1+sTiqWFmeoKZGhTRIo88L85ONf@vger.kernel.org X-Gm-Message-State: APuU4Z9vHZCw8s9bqdVLio/tX3XOB94MfR8DYNCRCWUCnlpG2mmAnNya BUmp2bv0mTEe5aF7VHF0wcO79tWGYNzDvGjwbgiQ+iLhVBLy1LMkoxxd X-Gm-Gg: AZFdTZeXLpCkH4UD95Ezba2oZDYB1Dv/jk1puvI7JMwqVn1JmFXA8Be8gi636oQKkoh XdWArvcywjye86n5COUdmynJ749A+YKXyF7hotZVeFl8bThizcMz9L+2qec22sOtzjTnkh9BLUN T8GxEGIOQxh+iYIa9VZmZwNHV6TzVBHIL8cJHBXyqpQTZNxl52EpkeTYFh/HWnyvkbIyw0eqN/u Fm4ZNMi9fV7BMtpl5uVjRZqi9jDHp2cvUKaBassZMcBfQ+EGWDhnEUQPdvzDNLGNg3fUI+f+EyE dxaBh7df6UYp2gKrlfw3Ct8ROX3kmPB9nsHH9EkID6ztlzI7ONtowK3013os8rqqUm5zIqE0+H1 mohadCRnJsEcIgjPiaGxIFHe63MEIKq9rXqrgHFRK4p3dDsS1qDg7ulrNbNwJJQz+79u6biieED Dk1VhHHVoUaJmmRlKGQ5p4hQ2Z3xgcB3br3Ba9gZ+tvoB9DnIHe17DfB1FrlFn+SRomaCPUg3sA TDfD/OxluBn8RC9BDhyF8wyFntBMrcFFKKqNS5Epr8HOV4LwKMk7yVG9Y6vC5LxVsldW64iIzq1 n7/s2Yqwh1HaFxKrpjYM0qpKemcezuwGmtPM X-Received: by 2002:a05:600c:4514:b0:4bb:6823:3d3c with SMTP id 5b1f17b1804b1-4bb888169d0mr890354555e9.20.1796240209781; Wed, 02 Dec 2026 11:36:49 -0800 (PST) Received: from localhost ([2a02:1210:8229:bc00:30f4:3c72:467d:59f3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbdff53b41sm12466305e9.0.2026.12.02.11.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 11:36:49 -0800 (PST) From: =?UTF-8?q?Bj=C3=B6rn=20B=C3=A4rtschi?= 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 Message-ID: <20261202193633.1258494-1-linuxsatellite@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <6a807bfd.f7a79266.2f965f.0008.GAE@google.com> References: <6a807bfd.f7a79266.2f965f.0008.GAE@google.com> X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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 " 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