All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagannathan Raman <jag.raman@oracle.com>
To: grub-devel@gnu.org
Cc: daniel.kiper@oracle.com, darren.kenny@oracle.com,
	alec.r.brown@oracle.com
Subject: GRUB coverity fixes for CIDs 314020 and 314023
Date: Thu,  2 Jun 2022 15:18:25 +0000	[thread overview]
Message-ID: <cover.1654182611.git.jag.raman@oracle.com> (raw)

Hi,

This series addresses a couple of untrusted loop bounds flagged by
Coverity in "grub-core/fs/zfs". Both the bugs addressed in this series
are of the same type - caused by downcast of pointer from a strict type
to a less strict type.

Please share your thoughts on this.

Thank you!
--
Jag

Jagannathan Raman (2):
  fs/zfs/zfs.c: make_mdn() - avoid pointer downcasting
  fs/zfs/zfs.c: zfs_mount() - avoid pointer downcasting

 grub-core/fs/zfs/zfs.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

-- 
2.31.1



             reply	other threads:[~2022-06-02 15:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-02 15:18 Jagannathan Raman [this message]
2022-06-02 15:18 ` [PATCH 1/2] fs/zfs/zfs.c: make_mdn() - avoid pointer downcasting Jagannathan Raman
2022-06-02 15:18 ` [PATCH 2/2] fs/zfs/zfs.c: zfs_mount() " Jagannathan Raman
2022-06-03 13:12 ` GRUB coverity fixes for CIDs 314020 and 314023 Darren Kenny
2022-06-06 18:42   ` Daniel Kiper

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=cover.1654182611.git.jag.raman@oracle.com \
    --to=jag.raman@oracle.com \
    --cc=alec.r.brown@oracle.com \
    --cc=daniel.kiper@oracle.com \
    --cc=darren.kenny@oracle.com \
    --cc=grub-devel@gnu.org \
    /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.