lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <LV5PR12MB9828A123A3ADFA1EB177E58681F8A@LV5PR12MB9828.namprd12.prod.outlook.com>
Date: Fri, 31 Oct 2025 09:41:58 +0000
From: "Datta, Shubhrajyoti" <shubhrajyoti.datta@....com>
To: Borislav Petkov <bp@...en8.de>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-edac@...r.kernel.org" <linux-edac@...r.kernel.org>, "git (AMD-Xilinx)"
	<git@....com>, "shubhrajyoti.datta@...il.com" <shubhrajyoti.datta@...il.com>,
	Tony Luck <tony.luck@...el.com>, James Morse <james.morse@....com>, Mauro
 Carvalho Chehab <mchehab@...nel.org>, Robert Richter <rric@...nel.org>
Subject: RE: [PATCH] EDAC/versalnet: Handle split messages for non-standard
 errors

[AMD Official Use Only - AMD Internal Distribution Only]

> -----Original Message-----
> From: Borislav Petkov <bp@...en8.de>
> Sent: Wednesday, October 29, 2025 6:39 PM
> To: Datta, Shubhrajyoti <shubhrajyoti.datta@....com>
> Cc: linux-kernel@...r.kernel.org; linux-edac@...r.kernel.org; git (AMD-Xilinx)
> <git@....com>; shubhrajyoti.datta@...il.com; Tony Luck
> <tony.luck@...el.com>; James Morse <james.morse@....com>; Mauro
> Carvalho Chehab <mchehab@...nel.org>; Robert Richter <rric@...nel.org>
> Subject: Re: [PATCH] EDAC/versalnet: Handle split messages for non-standard
> errors
>
> Caution: This message originated from an External Source. Use proper caution
> when opening attachments, clicking links, or responding.
>
>
> On Thu, Oct 23, 2025 at 05:01:08PM +0530, Shubhrajyoti Datta wrote:
> > The current code assumes that only DDR errors have split messages.
> > Ensures proper logging of non-standard event errors that may be split
> > across multiple messages.
> >
> > Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@....com>
> > ---
> >
> >  drivers/edac/versalnet_edac.c | 13 +++++++------
> >  1 file changed, 7 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/edac/versalnet_edac.c
> > b/drivers/edac/versalnet_edac.c index fc7e4c43b387..a055f54a389b
> > 100644
> > --- a/drivers/edac/versalnet_edac.c
> > +++ b/drivers/edac/versalnet_edac.c
> > @@ -605,6 +605,12 @@ static int rpmsg_cb(struct rpmsg_device *rpdev,
> void *data,
> >       length = result[MSG_ERR_LENGTH];
> >       offset = result[MSG_ERR_OFFSET];
> >
> > +     for (i = 0 ; i < length; i++) {
> > +             k = offset + i;
> > +             j = ERROR_DATA + i;
> > +             mc_priv->regs[k] = result[j];
> > +     }
> > +
> >       if (result[TOTAL_ERR_LENGTH] > length) {
> >               if (!mc_priv->part_len)
> >                       mc_priv->part_len = length; @@ -615,11 +621,6 @@
> > static int rpmsg_cb(struct rpmsg_device *rpdev, void *data,
> >                * messages the offset indicates the offset from which the data is to
> >                * be taken
> >                */
>
> I'm guessing you want to move that comment too?
>
> If so, I can move it - you don't have to resend.

Thanks for the catch . I agree.

>
> > -             for (i = 0 ; i < length; i++) {
> > -                     k = offset + i;
> > -                     j = ERROR_DATA + i;
> > -                     mc_priv->regs[k] = result[j];
> > -             }a
>
> --
> Regards/Gruss,
>     Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ