From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Jingyi Li <jinli@purestorage.com>
Cc: steve.wahl@hpe.com, dave.jiang@intel.com, vkoul@kernel.org,
Frank.Li@kernel.org, fenghuay@nvidia.com,
xueshuai@linux.alibaba.com, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org, Jingyi Li <jinli@purestorage.com>
Subject: Re: [PATCH 0/6] dmaengine: idxd: More error handling fixes
Date: Tue, 03 Nov 2026 17:11:36 -0800 [thread overview]
Message-ID: <8733thwgc7.fsf@intel.com> (raw)
In-Reply-To: <20261028202400.1144290-1-jinli@purestorage.com>
Hi,
Jingyi Li <jinli@purestorage.com> writes:
> Hi Vinicius,
>
> We hit the bug fixed by 1/6 and 2/6 in a kdump crash kernel on
> systems with DSA: idxd probe fails at device reset ("Device is
> HALTED!"), the error path oopses in destroy_workqueue() on a NULL
> idxd->wq, and no dump is saved. With slub_debug, the duplicate frees
> in idxd_free() are also reported.
>
> Testing: I applied patches 1-3 of this series on top of 6.18.57 and
> tested on 10 systems with DSA, triggering kdump with idxd loaded in
> the crash kernel, with and without slub_debug=FZPU. Unpatched: 10/10
> oopses in destroy_workqueue(), 0/10 dumps saved. With patches 1-3:
> 10/10 dumps saved in both configurations, no oopses, warnings or
> slub reports.
>
> The failure here is at device reset, before idxd_setup_internals(),
> so it exercises 1/6 and the idxd_free() part of 2/6; for 3/6 it only
> shows no regression on this path.
>
> Could 1-3 carry Cc: stable? The commits named in the Fixes: tags have
> been backported to stable kernels (we hit this on 6.18.57). Also,
> from reading the code, 1/6 alone only covers the case where idxd->wq
> was never allocated: with only 1/6, a failure after
> idxd_setup_internals() still destroys the wq twice (once in the
> unwind, once in the release callback), which 3/6 fixes by removing
> the early destroy. So 1/6 and 3/6 should be backported together.
> (Our kdump failure doesn't reach that path, so I haven't reproduced
> it.)
>
I am finishing testing the series, to be sent soon, but added the tags
to direct them to stable, with a small re-ordering of the series (patch
3 is going to be patch 2), hopefully that will make things (slightly)
easier.
> For patches 1-3:
> Tested-by: Jingyi Li <jinli@purestorage.com>
>
Thank you for the tests.
Cheers,
--
Vinicius
prev parent reply other threads:[~2026-11-04 1:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-12 21:38 [PATCH 0/6] dmaengine: idxd: More error handling fixes Vinicius Costa Gomes
2026-10-12 21:38 ` [PATCH 1/6] dmaengine: idxd: Do not call destroy_workqueue with null idxd->wq Vinicius Costa Gomes
2026-10-13 14:55 ` Frank Li
2026-10-13 17:18 ` Dave Jiang
2026-10-13 22:34 ` Vinicius Costa Gomes
2026-10-12 21:38 ` [PATCH 2/6] dmaengine: idxd: fix duplicate memory frees on initialization error path Vinicius Costa Gomes
2026-10-13 14:57 ` Frank Li
2026-10-13 22:31 ` Vinicius Costa Gomes
2026-10-13 17:21 ` Dave Jiang
2026-10-12 21:38 ` [PATCH 3/6] dmaengine: idxd: Fix potential double free on probe " Vinicius Costa Gomes
2026-10-13 17:30 ` Dave Jiang
2026-10-12 21:38 ` [PATCH 4/6] dmaengine: idxd: Fix unwind bounds in device registration error paths Vinicius Costa Gomes
2026-10-12 21:47 ` sashiko-bot
2026-10-14 22:10 ` Vinicius Costa Gomes
2026-10-12 21:38 ` [PATCH 5/6] dmaengine: idxd: Fix error code handling in idxd_cdev_open() Vinicius Costa Gomes
2026-10-12 21:50 ` sashiko-bot
2026-10-14 22:17 ` Vinicius Costa Gomes
2026-10-12 21:38 ` [PATCH 6/6] dmaengine: idxd: Do not release interrupt handles on terminate_all Vinicius Costa Gomes
2026-10-12 21:58 ` sashiko-bot
2026-10-14 22:25 ` Vinicius Costa Gomes
2026-10-28 20:24 ` [PATCH 0/6] dmaengine: idxd: More error handling fixes Jingyi Li
2026-11-04 1:11 ` Vinicius Costa Gomes [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=8733thwgc7.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=Frank.Li@kernel.org \
--cc=dave.jiang@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=fenghuay@nvidia.com \
--cc=jinli@purestorage.com \
--cc=linux-kernel@vger.kernel.org \
--cc=steve.wahl@hpe.com \
--cc=vkoul@kernel.org \
--cc=xueshuai@linux.alibaba.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 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.