All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <mkp@kernel.org>
To: Geert Uytterhoeven <geert@kernel.org>
Cc: "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Martin K . Petersen" <mkp@kernel.org>,
	 Kars de Jong <jongk@linux-m68k.org>,
	 linux-scsi@vger.kernel.org, linux-parisc@vger.kernel.org,
	 linux-alpha@vger.kernel.org,
	 Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: [PATCH] scsi: 53c700: Fix hostdata[] size on 64-bit
Date: Wed, 25 Nov 2026 21:48:59 -0500	[thread overview]
Message-ID: <yq1ik1kjoj1.fsf@mail.kernel.org> (raw)
In-Reply-To: <0df0fae8a75e46f2f1613d398c1e137211d924a0.1795423196.git.geert@linux-m68k.org>


Geert,

> NCR_700_detect() allocates four bytes for a single-entry hostdata
> array, to store the NCR_700_Host_Parameters pointer. However, hostdata
> is an array of unsigned longs, thus storing a pointer or unsigned long
> causes a buffer overflow on 64-bit platforms.

Applied to 7.5/scsi-staging, thanks!

-- 
Martin K. Petersen

      reply	other threads:[~2026-11-26  2:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  8:57 [PATCH] scsi: 53c700: Fix hostdata[] size on 64-bit Geert Uytterhoeven
2026-11-26  2:48 ` Martin K. Petersen [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=yq1ik1kjoj1.fsf@mail.kernel.org \
    --to=mkp@kernel.org \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=geert@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=jongk@linux-m68k.org \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-parisc@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.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.