All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Keith Busch <kbusch@kernel.org>
Cc: qemu-devel@nongnu.org,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Kevin Wolf" <kwolf@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Avi Kivity" <avi@scylladb.com>, "Fam Zheng" <fam@euphon.net>,
	"Hanna Reitz" <hreitz@redhat.com>,
	"Jesper Devantier" <foss@defmacro.it>,
	qemu-block@nongnu.org, "Klaus Jensen" <its@irrelevant.dk>
Subject: Re: [PATCH 0/4] hw/nvme: make model & firmware version cnofigurable
Date: Tue, 10 Mar 2026 09:29:47 +0000	[thread overview]
Message-ID: <aa_ki7qkv4TLB6_N@redhat.com> (raw)
In-Reply-To: <aasJYeR9JRcb83Rb@kbusch-mbp>

On Fri, Mar 06, 2026 at 10:05:37AM -0700, Keith Busch wrote:
> On Fri, Mar 06, 2026 at 04:57:13PM +0000, Daniel P. Berrangé wrote:
> > The pre-existing serial field should also be length checked to
> > detect & report invalid user input instead of silently truncating.
> 
> Generally fine with that, but worried about user regressions from
> unknowingly relying on the truncation behavior. Could these overflow
> conditions just emit a truncation warn_report instead of failing to
> start?

There is always that possibility that someone is unknowingly having
their data truncated, however, we have generally taken the view that
it is fair game to introduce error checking for invalid input in
these kind of cases. As prior art, we introduced error checking to
the SCSI serial to remove truncation:

  commit 75997e182b695f2e3f0a2d649734952af5caf3ee
  Author: Kevin Wolf <kwolf@redhat.com>
  Date:   Tue Jun 4 18:17:55 2024 +0200

    scsi-disk: Don't silently truncate serial number

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|



  reply	other threads:[~2026-03-10  9:30 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-06 16:57 [PATCH 0/4] hw/nvme: make model & firmware version cnofigurable Daniel P. Berrangé
2026-03-06 16:57 ` [PATCH 1/4] include/block: define constants for NVME string fields Daniel P. Berrangé
2026-03-06 16:57 ` [PATCH 2/4] hw/nvme: report error for oversized 'serial' parameter Daniel P. Berrangé
2026-03-06 16:57 ` [PATCH 3/4] hw/nvme: add user controlled 'model' property Daniel P. Berrangé
2026-03-06 16:57 ` [PATCH 4/4] hw/nvme: add user controlled 'firmware-version' property Daniel P. Berrangé
2026-03-06 17:05 ` [PATCH 0/4] hw/nvme: make model & firmware version cnofigurable Keith Busch
2026-03-10  9:29   ` Daniel P. Berrangé [this message]
2026-03-19 15:55 ` Avi Kivity
2026-04-13 17:34 ` Klaus Jensen
2026-05-18 11:44   ` Avi Kivity
2026-05-21  8:17     ` Avi Kivity

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=aa_ki7qkv4TLB6_N@redhat.com \
    --to=berrange@redhat.com \
    --cc=avi@scylladb.com \
    --cc=fam@euphon.net \
    --cc=foss@defmacro.it \
    --cc=hreitz@redhat.com \
    --cc=its@irrelevant.dk \
    --cc=kbusch@kernel.org \
    --cc=kwolf@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 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.