public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 1/2] ioctl_sg01: Skip USB devices
Date: Wed, 22 Oct 2025 15:37:13 +0200	[thread overview]
Message-ID: <20251022133713.GC482903@pevik> (raw)
In-Reply-To: <20251022131321.GA482903@pevik>

Hi Martin,

> Hi Martin,

> > Some USB devices write hardware info and flags to the ioctl(SG_IO)
> > response buffer which results in test failure. But the info is constant
> > and doesn't represent any security risk. Skip USB devices to prevent
> > false positives.

> > ---

> > I've tested this patch on kernels v4.4 through v6.16. Non-USB generic SCSI
> > block devices get correctly found and used, USB block device get skipped.

> Thanks a lot for an extensive testing!

> I was also verify on my machine with block device connected over USB
> that it's skipped (and indeed test was blocked on master).

FYI running test with this HDD connected over USB no leaked info was printed (no
false positive), but test runs very slow (10 iterations in ~5 min, it will
likely manage below the limit, but 50x slower run is just waste of time given
vast majority of testers runs tests sequentially).

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2025-10-22 13:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-22  9:57 [LTP] [PATCH 1/2] ioctl_sg01: Skip USB devices Martin Doucha
2025-10-22  9:57 ` [LTP] [PATCH 2/2] ioctl_sg01: Print buffer contents on failure Martin Doucha
2025-10-22 13:31   ` Petr Vorel
2025-10-24  8:57     ` Petr Vorel
2025-10-29  9:54   ` Cyril Hrubis
2025-11-03 12:49     ` Martin Doucha
2025-11-03 14:58       ` Cyril Hrubis
2025-10-22 13:13 ` [LTP] [PATCH 1/2] ioctl_sg01: Skip USB devices Petr Vorel
2025-10-22 13:37   ` Petr Vorel [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=20251022133713.GC482903@pevik \
    --to=pvorel@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=mdoucha@suse.cz \
    /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