From: "Pandey, Radhey Shyam" <radheys@amd.com>
To: Shubhrajyoti Datta <shubhrajyoti.datta@amd.com>,
linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org
Cc: git@amd.com, shubhrajyoti.datta@gmail.com,
Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>,
Borislav Petkov <bp@alien8.de>, Tony Luck <tony.luck@intel.com>,
Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Subject: Re: [PATCH v3 0/7] EDAC/versalnet: Fix error handling, teardown, and robustness
Date: Mon, 30 Nov 2026 12:19:07 +0530 [thread overview]
Message-ID: <8c9a1b47-1b90-4f46-8372-f04d697fe76a@amd.com> (raw)
In-Reply-To: <20261127163853.3563991-1-shubhrajyoti.datta@amd.com>
On 11/27/2026 9:59 PM, Shubhrajyoti Datta wrote:
> This series addresses several correctness and robustness issues in
> the VersalNet EDAC driver, including NULL pointer dereferences,
> resource lifetime problems, shutdown handling, and probe/remove
> path cleanup.
>
> The main fixes are:
>
> * Robustness fixes
> - Add bounds validation in rpmsg_cb().
>
> * Probe and initialization cleanup
> - Move platform_set_drvdata() from init_one_mc() to mc_probe().
> - Reorder probe flow to initialize MCDI before RPMsg registration.
> - Remove unused pdev parameters from internal initialization
> functions.
>
> * Resource management fixes
> - Fix error handling in init_one_mc() to avoid a potential
> double-free by reordering device_register() and edac_mc_alloc().
>
>
> Changes in v3:
> If it is a split message tben discard both the messages
> Updated the description to dtype
> Update the memory allocation in edac_mc_alloc
> Update the kfree sequence
> Squash the "EDAC/versalnet: Wait for RPMsg endpoint initialization"
> Add reviewed by tag
> use sizeof outbuf
> Add a print for the failure
> Update the commit message
> update the numctrl check
> implement get_dtype
What's the base for this series? FYI on latest origin/edac-urgent
git am ./v3_20261127_shubhrajyoti_datta_edac_versalnet_fix_x.mbx
Applying: EDAC/versalnet: Add bounds validation in rpmsg_cb()
Applying: EDAC/versalnet: Make dwidth per-controller
Applying: EDAC/versalnet: Wait for RPMsg endpoint initialization
error: patch failed: drivers/edac/versalnet_edac.c:559
error: drivers/edac/versalnet_edac.c: patch does not apply
Patch failed at 0003 EDAC/versalnet: Wait for RPMsg endpoint initialization
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
>
>
> Changes in v2:
> Add the codeveloped tag and remove the non standard signature
> fix the name stack warning
> Use a macro for channel name
> Add reviewed by tag
> Sashiko comment
> "This is a pre-existing issue, but are offset and length validated before
> being used as indices?"
> New patch to fix shashiko review comment "this is a pre-existing
> issue, but is the per-controller width overwriting the shared
> state for all controllers?".
> Patch addition for the rpmsg endpoint race
> Update the labels
> Address the sashiko comment
> "register_rpmsg_driver() exposes the callback endpoint before setup_mcdi()
> initializes the mcdi pointer. Could this lead to a NULL pointer dereference
> if a response arrives early?"
> Patch addition for the rpmsg drvdata race
> Add reviewed-by tag
> Add amd,num-ctrl property to device tree
> The property was requested in the discussion below
> https://lore.kernel.org/all/34ffba5a-8e9a-49b9-9e36-c31d0e4369f8@amd.com/
> Adding the device tree parameter was suggested in the review in v1
> https://lore.kernel.org/all/34ffba5a-8e9a-49b9-9e36-c31d0e4369f8@amd.com/
> New patch added to bailout if the cdx_mcdi_rpc fails.
>
>
> Hayden Rinn (1):
> EDAC/versalnet: Wait for RPMsg endpoint initialization
>
> Shubhrajyoti Datta (6):
> EDAC/versalnet: Add bounds validation in rpmsg_cb()
> EDAC/versalnet: Make dwidth per-controller
> EDAC/versalnet: Guard against NULL drvdata in rpmsg_cb()
> EDAC/versalnet: Make get_ddr_config() return errors
> EDAC/versalnet: fix the remove controller crash
> EDAC/versalnet: Move platform_set_drvdata() to mc_probe()
>
> drivers/edac/versalnet_edac.c | 257 ++++++++++++++++++++++++++--------
> 1 file changed, 201 insertions(+), 56 deletions(-)
>
prev parent reply other threads:[~2026-11-30 6:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 16:29 Shubhrajyoti Datta
2026-11-27 16:29 ` [PATCH v3 1/7] EDAC/versalnet: Add bounds validation in rpmsg_cb() Shubhrajyoti Datta
2026-11-30 6:05 ` Pandey, Radhey Shyam
2026-11-27 16:29 ` [PATCH v3 2/7] EDAC/versalnet: Make dwidth per-controller Shubhrajyoti Datta
2026-11-30 6:14 ` Pandey, Radhey Shyam
2026-11-27 16:29 ` [PATCH v3 3/7] EDAC/versalnet: Wait for RPMsg endpoint initialization Shubhrajyoti Datta
2026-11-27 16:51 ` Shubhrajyoti Datta
2026-11-27 16:29 ` [PATCH v3 4/7] EDAC/versalnet: Guard against NULL drvdata in rpmsg_cb() Shubhrajyoti Datta
2026-11-27 16:29 ` [PATCH v3 5/7] EDAC/versalnet: Make get_ddr_config() return errors Shubhrajyoti Datta
2026-11-27 16:29 ` [PATCH v3 6/7] EDAC/versalnet: fix the remove controller crash Shubhrajyoti Datta
2026-11-27 16:29 ` [PATCH v3 7/7] EDAC/versalnet: Move platform_set_drvdata() to mc_probe() Shubhrajyoti Datta
2026-11-30 6:49 ` Pandey, Radhey Shyam [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=8c9a1b47-1b90-4f46-8372-f04d697fe76a@amd.com \
--to=radheys@amd.com \
--cc=bp@alien8.de \
--cc=git@amd.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=radhey.shyam.pandey@amd.com \
--cc=sai.krishna.potthuri@amd.com \
--cc=shubhrajyoti.datta@amd.com \
--cc=shubhrajyoti.datta@gmail.com \
--cc=tony.luck@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®