From: Benjamin Marzinski <bmarzins@redhat.com>
To: Martin Wilck <martin.wilck@suse.com>
Cc: "dm-devel@redhat.com" <dm-devel@redhat.com>,
"brian@purestorage.com" <brian@purestorage.com>
Subject: Re: [dm-devel] [PATCH] libmultipathd Avoid parsing errors due to unsupported designators
Date: Fri, 24 Mar 2023 09:25:03 -0500 [thread overview]
Message-ID: <20230324142503.GM19878@octiron.msp.redhat.com> (raw)
In-Reply-To: <e52c66c71e3a3f25412c86763af8de9fadbfd3c8.camel@suse.com>
On Thu, Mar 23, 2023 at 08:23:24PM +0000, Martin Wilck wrote:
> On Mon, 2023-03-20 at 12:22 -0700, Brian Bunker wrote:
> > Unsupported designators, even if they are correct, will result
> > in parsing errors. Add support for these two:
> >
> > Logical Unit Group (0x6)
> > Vendor Specific (0x0)
> >
> > Mar 20 13:37:35 init107-18 multipath[45016]: parse_vpd_pg83:
> > invalid device designator at offset 87: 01060004
> > Mar 20 13:37:35 init107-18 multipath[45016]: parse_vpd_pg83:
> > invalid device designator at offset 131: 02000005
> >
> > Thanks,
> > Brian
>
> Thanks. I've modified your patch as attached.
>
> Martin
>
> From 9edbc2b6154786a9e7bb38890d023301c65c8a6a Mon Sep 17 00:00:00 2001
> From: Brian Bunker <brian@purestorage.com>
> Date: Mon, 20 Mar 2023 12:22:02 -0700
> Subject: [PATCH] libmultipathd Avoid parsing errors due to unsupported
> designators
>
> Unsupported designators, even if they are correct, will result
> in parsing errors. Add support for these two:
>
> Logical Unit Group (0x6)
> Vendor Specific (0x0)
>
> Mar 20 13:37:35 init107-18 multipath[45016]: parse_vpd_pg83:
> invalid device designator at offset 87: 01060004
> Mar 20 13:37:35 init107-18 multipath[45016]: parse_vpd_pg83:
> invalid device designator at offset 131: 02000005
>
> Thanks,
> Brian
>
> mwilck: added descriptor type 7 (MD5) for completeness.
>
> Signed-off-by: Brian Bunker <brian@purestorage.com>
> Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
> ---
> libmultipath/discovery.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
> index 3a5ba17..6865cd9 100644
> --- a/libmultipath/discovery.c
> +++ b/libmultipath/discovery.c
> @@ -1211,6 +1211,17 @@ parse_vpd_pg83(const unsigned char *in, size_t in_len,
> invalid = (d[3] < 8);
> new_prio = 2;
> break;
> + case 0x6:
> + /* Logical Unit Group */
> + invalid = (d[3] != 4);
> + break;
> + case 0x7:
> + /* MD5 logical unit designator */
> + invalid = (d[3] != 16);
> + break;
> + case 0x0:
> + /* Vendor Specific */
> + break;
> case 0xa:
> condlog(2, "%s: UUID identifiers not yet supported",
> __func__);
> --
> 2.39.2
>
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
prev parent reply other threads:[~2023-03-24 14:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 19:22 [dm-devel] [PATCH] libmultipathd Avoid parsing errors due to unsupported designators Brian Bunker
2023-03-23 20:23 ` Martin Wilck
2023-03-24 14:25 ` Benjamin Marzinski [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=20230324142503.GM19878@octiron.msp.redhat.com \
--to=bmarzins@redhat.com \
--cc=brian@purestorage.com \
--cc=dm-devel@redhat.com \
--cc=martin.wilck@suse.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;
as well as URLs for NNTP newsgroup(s).